:root {
  --navy: #0b1f3a;
  --navy-deep: #071526;
  --teal: #2ec4b6;
  --teal-soft: #7ee8dd;
  --ink: #f4f8fb;
  --muted: rgba(244, 248, 251, 0.74);
  --muted-2: rgba(244, 248, 251, 0.55);
  --line: rgba(46, 196, 182, 0.28);
  --font-brand: "Montserrat", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --gutter: clamp(1rem, 3.5vw, 2rem);
  --wrap: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: var(--navy-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-soft);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* ---------- Home hero (full-bleed composition) ---------- */

.hero-stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  animation: kenburns 18s ease-out forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(7, 21, 38, 0.72) 0%,
      rgba(7, 21, 38, 0.45) 40%,
      rgba(7, 21, 38, 0.28) 70%,
      rgba(7, 21, 38, 0.4) 100%
    ),
    linear-gradient(to top, rgba(7, 21, 38, 0.7) 0%, transparent 48%);
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: clamp(0.9rem, 2vw, 1.25rem) 0;
  animation: fadeIn 0.8s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(46, 196, 182, 0.35);
}

.brand--compact img {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Cover-style header lockup */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: clamp(32px, 4.5vw, 40px);
  height: clamp(32px, 4.5vw, 40px);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-rule {
  width: 1px;
  height: clamp(22px, 3.2vw, 28px);
  background: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1;
  font-family: var(--font-brand);
  text-transform: uppercase;
}

.brand-wordmark-top {
  font-weight: 700;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  letter-spacing: 0.08em;
}

.brand-wordmark-bottom {
  font-weight: 400;
  font-size: clamp(0.48rem, 1vw, 0.56rem);
  letter-spacing: 0.24em;
  opacity: 0.92;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.8vw, 1.15rem);
  font-family: var(--font-body);
  font-size: clamp(0.86rem, 1.3vw, 0.92rem);
  font-weight: 500;
  flex-shrink: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
}

.nav-cta:hover {
  border-color: var(--teal);
  color: var(--teal-soft) !important;
}

.hero-center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}

.hero-emblem {
  width: clamp(96px, 16vw, 148px);
  height: auto;
  margin-bottom: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(46, 196, 182, 0.35),
    0 18px 50px rgba(0, 0, 0, 0.35);
  animation: emblemIn 1s cubic-bezier(0.22, 1, 0.36, 1) both,
    emblemFloat 5.5s ease-in-out 1s infinite;
}

.hero-title {
  margin: 0 0 clamp(0.85rem, 2vw, 1.1rem);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw + 0.5rem, 3.85rem);
  line-height: 1.02;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title-line:nth-child(1) {
  letter-spacing: 0.1em;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.1s;
  font-weight: 400;
  font-size: clamp(0.38em, 0.4em + 0.1vw, 0.42em);
  letter-spacing: clamp(0.18em, 0.4vw + 0.12em, 0.32em);
  margin-top: 0.45em;
  opacity: 0.95;
}

.hero-lede {
  margin: 0 0 clamp(1.35rem, 3vw, 1.75rem);
  max-width: 28rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw + 0.7rem, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.82rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.2vw, 0.95rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: var(--navy-deep);
  box-shadow: 0 10px 30px rgba(46, 196, 182, 0.28);
}

.btn-primary:hover {
  background: var(--teal-soft);
  color: var(--navy-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-soft);
}

/* ---------- How it works ---------- */

.section {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  background: var(--navy-deep);
}

.section h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-brand);
  font-size: clamp(1.4rem, 2.5vw + 0.6rem, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section > .wrap > p.lead {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  color: var(--muted);
  max-width: 28rem;
  font-size: clamp(1rem, 1.2vw + 0.7rem, 1.08rem);
  line-height: 1.5;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(46, 196, 182, 0.18);
}

.step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: clamp(1.15rem, 2.5vw, 1.45rem) 0;
  border-bottom: 1px solid rgba(46, 196, 182, 0.18);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--font-brand);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  padding-top: 0.2rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: clamp(0.95rem, 1.1vw, 1rem);
  line-height: 1.55;
}

.trust-note {
  margin: 2.25rem 0 0;
  max-width: 38rem;
  color: var(--muted-2);
  font-size: 0.95rem;
}

/* ---------- Shared (success / legal / header elsewhere) ---------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(46, 196, 182, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(46, 196, 182, 0.12), transparent 50%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 55%, #06101f 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("../images/emblem.png");
  background-size: 140px;
  background-repeat: repeat;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: clamp(1rem, 2.5vw, 1.25rem) 0;
}

.panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.6rem);
  backdrop-filter: blur(8px);
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.success-card {
  max-width: 40rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto clamp(3rem, 8vw, 5rem);
  text-align: center;
  animation: rise 0.7s ease-out both;
}

.page-success {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--navy-deep);
}

.page-legal {
  min-height: 100svh;
  background: var(--navy-deep);
}

.page-success main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-success .success-card {
  margin-block: clamp(2rem, 5vw, 3rem);
}

.page-success .site-footer {
  margin-top: auto;
}

.success-card .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46, 196, 182, 0.15);
  border: 1px solid var(--line);
  font-size: 1.75rem;
  color: var(--teal);
  animation: pop 0.55s ease-out 0.15s both;
}

.success-card h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.success-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.05rem);
}

.legal {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4rem);
}

.legal-doc {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2.5rem);
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-brand);
  font-size: clamp(1.45rem, 2.8vw + 0.5rem, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-doc .updated {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-doc h2 {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-brand);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-doc p,
.legal-doc li {
  color: rgba(244, 248, 251, 0.82);
  font-size: clamp(0.95rem, 1.1vw, 1rem);
}

.legal-doc ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid rgba(46, 196, 182, 0.15);
  padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(2rem, 4vw, 2.5rem);
  background: var(--navy-deep);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid strong {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 196, 182, 0.22);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  color: var(--teal-soft);
  border-color: var(--teal);
  background: rgba(46, 196, 182, 0.08);
}

.social-link svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes emblemIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes emblemFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(0, -0.6%, 0);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }
}

/* Tablet and down */
@media (max-width: 900px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero-center {
    align-items: center;
    text-align: center;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-title {
    letter-spacing: 0.045em;
  }

  .hero-title-line:nth-child(1) {
    letter-spacing: 0.07em;
  }

  .hero-title-line:nth-child(2) {
    letter-spacing: 0.16em;
  }
}

/* Phones */
@media (max-width: 720px) {
  .brand-wordmark-bottom {
    letter-spacing: 0.16em;
  }

  .hero-title {
    letter-spacing: 0.04em;
  }

  .hero-title-line:nth-child(1) {
    letter-spacing: 0.06em;
  }

  .hero-title-line:nth-child(2) {
    letter-spacing: 0.14em;
  }

  .cta-row {
    width: 100%;
  }

  .hero-veil {
    background:
      linear-gradient(
        to top,
        rgba(7, 21, 38, 0.82) 0%,
        rgba(7, 21, 38, 0.45) 45%,
        rgba(7, 21, 38, 0.32) 100%
      );
  }

  .step {
    grid-template-columns: 3rem 1fr;
    gap: 0.75rem;
  }

  .success-card .cta-row,
  .success-card .btn {
    width: 100%;
  }
}

/* Narrow phones */
@media (max-width: 420px) {
  .brand-rule {
    display: none;
  }

  .brand-wordmark-bottom {
    letter-spacing: 0.12em;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.85rem, 11vw, 2.25rem);
  }

  .nav-cta {
    padding: 0.38rem 0.7rem;
    font-size: 0.84rem;
  }
}
