/* ─────────────────────────────────────────────────────────────────────────
   MARITIME — styles.css
   ───────────────────────────────────────────────────────────────────────── */

/* ── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  /* Brand — swap --color-accent once final brand color is confirmed */
  --color-accent:        #2bc4d8;
  --color-accent-dark:   #0077b6;
  --color-accent-green:  #4ddcac;
  --color-accent-dim:    rgba(43, 196, 216, 0.08);

  /* Backgrounds */
  --color-bg:            #080c10;
  --color-surface:       #0e1420;
  --color-border:        rgba(43, 196, 216, 0.12);

  /* Text */
  --color-text-primary:  #e8f4f8;
  --color-text-muted:    #4a6070;

  /* Overlay */
  --overlay-start:       rgba(8, 12, 16, 0.52);
  --overlay-end:         rgba(8, 12, 16, 0.80);

  /* Layout */
  --max-content:         640px;
  --section-pad:         clamp(5rem, 10vw, 9rem);

  /* Typography */
  --font:                'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease:                cubic-bezier(0.22, 1, 0.36, 1);
  --fade-dur:            900ms;
  --transition:          200ms ease;
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Screen-reader utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── FADE-IN ANIMATION ──────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity   var(--fade-dur) var(--ease),
    transform var(--fade-dur) var(--ease);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for hero elements */
.hero__logo     { transition-delay:  80ms; }
.hero__company  { transition-delay: 240ms; }
.hero__name     { transition-delay: 380ms; }
.hero__tagline  { transition-delay: 500ms; }
.hero__cta      { transition-delay: 620ms; }
.hero__scroll-hint { transition-delay: 860ms; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video layer */
.hero__video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark overlay — gradient for text legibility at bottom */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    var(--overlay-start) 0%,
    var(--overlay-end)   100%
  );
}

/* Content above video */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  gap: 1.1rem;
}

.hero__logo {
  width: clamp(120px, 20vw, 160px);
  height: auto;
  display: block;
  /* Drop shadow to make icon pop on dark/video bg */
  filter: drop-shadow(0 0 24px rgba(43, 196, 216, 0.25));
}

.hero__company {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.hero__name {
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.55em;
  color: var(--color-accent);
  text-transform: uppercase;
  padding-left: 0.55em;
  margin-top: -0.4rem;
}

.hero__tagline {
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  padding-left: 0.18em;
}

/* CTA button */
.hero__cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  transition: background-color var(--transition), color var(--transition);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-bg);
  outline: none;
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.15; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 0.6;  transform: scaleY(1);   transform-origin: top; }
}

/* ── SIGNUP ──────────────────────────────────────────────────────────────── */
#signup {
  padding: var(--section-pad) 1.5rem;
  display: flex;
  justify-content: center;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.signup__inner {
  width: 100%;
  max-width: var(--max-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.signup__heading {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
}

.signup__sub {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  line-height: 1.7;
  max-width: 420px;
}

.signup__form {
  width: 100%;
  max-width: 480px;
}

.signup__field {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.signup__field:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.signup__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.9rem 1rem;
  color: var(--color-text-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 300;
}

.signup__input::placeholder {
  color: var(--color-text-muted);
}

.signup__button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  padding: 0.9rem 1.4rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.signup__button:hover:not(:disabled) {
  opacity: 0.88;
}

.signup__button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Loading state */
.btn-loading { display: none; }

.signup__form.is-loading .btn-label  { display: none; }
.signup__form.is-loading .btn-loading { display: flex; }

/* Status message */
.signup__status {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  min-height: 1.2em;
  text-align: center;
  letter-spacing: 0.04em;
  color: transparent;
  transition: color var(--transition);
}

.signup__status.is-success { color: var(--color-accent-green); }
.signup__status.is-error   { color: #f87171; }

/* ── GRAPHIC ─────────────────────────────────────────────────────────────── */
#graphic {
  padding: var(--section-pad) 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-bg);
}

.graphic__wrapper {
  width: 100%;
  max-width: 1000px;
  opacity: 0.9;
}

.graphic__image {
  width: 40%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.graphic__company {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  text-align: center;
}

.graphic__name {
  margin-top: 0.35rem;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: var(--color-accent);
  text-transform: uppercase;
  text-align: center;
  padding-left: 0.5em;
}

.graphic__divider {
  width: 120px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.3;
  margin: 0.85rem auto 0;
}

.graphic__tagline {
  margin-top: 0.75rem;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .signup__field {
    flex-direction: column;
  }

  .signup__button {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
  }

  .signup__field:focus-within {
    box-shadow: none;
  }

  .signup__input {
    border-bottom: 1px solid var(--color-border);
  }
}

/* ── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .hero__scroll-hint span {
    animation: none;
    opacity: 0.3;
  }

  /* Hide video on reduced motion — poster image shows as fallback */
  .hero__video {
    display: none;
  }
}
