/* Captain's World parent landing — tokens aligned with Captain's Words marketing */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #05070b;
  --midnight: #0a1020;
  --navy: #0f1830;
  --rim: rgba(255, 255, 255, 0.06);
  --rim-2: rgba(255, 255, 255, 0.1);
  --rim-3: rgba(255, 255, 255, 0.18);
  --gold-deep: #9a7a2c;
  --gold: #c9a05a;
  --gold-bright: #e8c98a;
  --gold-pale: #f4e4be;
  --emerald: #3a8b6f;
  --t1: rgba(247, 243, 232, 0.96);
  --t2: rgba(232, 224, 206, 0.62);
  --t3: rgba(232, 224, 206, 0.36);
  --sky: #87c4e8;
  --sea: #2d6f88;
  --sea-deep: #1a5268;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter Tight", system-ui, sans-serif;
  background: var(--ink);
  color: var(--t1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

.atmos-noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.atmos-vignette {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1.display, h2.display {
  font-family: Fraunces, serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
  line-height: 0.96;
  color: var(--t1);
}

h1.display { font-size: clamp(3rem, 6.5vw, 5.5rem); margin-bottom: 2rem; }
h1.display .line { display: block; }
h2.display { font-size: clamp(2.4rem, 5vw, 4rem); margin-top: 1.4rem; }

h1.display em, h2.display em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--t2);
  max-width: 42ch;
}

.lede strong { color: var(--t1); font-weight: 500; }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; }
.r-d1 { transition-delay: 0.12s; }
.r-d2 { transition-delay: 0.24s; }
.r-d3 { transition-delay: 0.36s; }

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.6rem);
  transition: background 0.6s ease, backdrop-filter 0.6s ease, border-color 0.6s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--rim);
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.captains-words-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.captains-words-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  background: transparent;
}

.nav-product {
  font-family: Fraunces, serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--t2);
  padding-left: 1.25rem;
  border-left: 1px solid var(--rim-2);
}

.nav-product strong { color: var(--t1); font-weight: 500; }
.nav-product em { font-style: italic; color: var(--gold); }

.nav-brand {
  display: none;
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--t2);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-link:hover { color: var(--t1); }

.nav-play {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold) 100%);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.35s;
}

.nav-play:hover { transform: translateY(-2px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 1rem 1.7rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.4s;
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  box-shadow: 0 12px 30px -8px rgba(201, 160, 90, 0.4);
}

.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary svg { transition: transform 0.4s; }

.btn-ghost {
  color: var(--t1);
  background: transparent;
  border: 1px solid var(--rim-3);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 9rem clamp(1.25rem, 4vw, 2.6rem) 6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-atmos { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-atmos .layer { position: absolute; inset: 0; }

.atmos-base {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(22, 37, 72, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 85% 80%, rgba(154, 122, 44, 0.18) 0%, transparent 65%),
    var(--ink);
}

.atmos-contours {
  background-image:
    radial-gradient(ellipse 90% 60% at 75% 75%, transparent 28%, rgba(201, 160, 90, 0.04) 28%, rgba(201, 160, 90, 0.04) 28.4%, transparent 28.4%),
    radial-gradient(ellipse 90% 60% at 75% 75%, transparent 35%, rgba(201, 160, 90, 0.05) 35%, rgba(201, 160, 90, 0.05) 35.4%, transparent 35.4%);
  opacity: 0.7;
}

.atmos-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  mask: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 80%);
}

.particles { position: absolute; inset: 0; overflow: hidden; }

.particle {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: drift var(--d) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: var(--op); }
  50% { transform: translate(var(--tx), var(--ty)); opacity: calc(var(--op) * 0.25); }
}

.compass-ghost {
  position: absolute;
  right: -20vw;
  bottom: -30vh;
  width: 90vw;
  height: 90vw;
  max-width: 1400px;
  opacity: 0.06;
  animation: spin 240s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 160, 90, 0.45) 50%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.8rem 0.45rem 0.55rem;
  background: rgba(201, 160, 90, 0.06);
  border: 1px solid rgba(201, 160, 90, 0.18);
  border-radius: 999px;
  margin-bottom: 2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero-kicker .pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-sub {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--t2);
  max-width: 48ch;
  margin-bottom: 2.6rem;
}

.hero-sub strong { color: var(--t1); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--rim);
}

.trust { display: flex; align-items: flex-start; gap: 0.7rem; }
.trust + .trust { padding-left: 1.4rem; border-left: 1px solid var(--rim); }

.trust-glyph {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.trust-glyph svg { width: 18px; height: 18px; }

.trust-text { font-size: 0.78rem; line-height: 1.5; color: var(--t2); }
.trust-text strong { color: var(--t1); display: block; font-size: 0.82rem; margin-bottom: 0.1rem; }

/* World frame */
.hero-frame { position: relative; }

.world-frame {
  background: linear-gradient(180deg, #0d1426 0%, #070a14 100%);
  border: 1px solid var(--rim-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(7, 10, 18, 0.6);
  border-bottom: 1px solid var(--rim);
}

.frame-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.frame-url {
  margin-left: 0.7rem;
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.frame-url .lock { color: var(--emerald); }

.world-scene {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2844 0%, #0a1226 55%, var(--sea-deep) 100%);
}

.world-sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%);
}

.scene-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(5, 7, 11, 0.65);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 160, 90, 0.25);
}

.world-islands {
  position: absolute;
  inset: 12% 8% 28%;
  z-index: 2;
}

.island {
  position: absolute;
  width: 28%;
  aspect-ratio: 1.2;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #3a8b6f 0%, #2a6b55 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.island-words { left: 8%; bottom: 18%; }
.island-numbers { right: 12%; top: 8%; background: linear-gradient(180deg, #9a7340 0%, #6b5228 100%); }
.island-quest { left: 42%; bottom: 5%; width: 22%; opacity: 0.35; }

.island-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: Fraunces, serif;
  font-size: 0.95rem;
  color: var(--gold-pale);
}

.island-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 201, 138, 0.25) 0%, transparent 70%);
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.route-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ship-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold);
  left: 18%;
  bottom: 42%;
  animation: sail 8s ease-in-out infinite;
}

@keyframes sail {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(120px, -40px); }
}

.frame-caption {
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  color: var(--t3);
  border-top: 1px solid var(--rim);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.frame-caption strong { color: var(--t2); }

/* Sections */
.section { padding: 8rem clamp(1.25rem, 4vw, 2.6rem); }
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.how-card {
  background: linear-gradient(180deg, rgba(15, 24, 48, 0.5) 0%, rgba(7, 10, 18, 0.5) 100%);
  border: 1px solid var(--rim);
  border-radius: 10px;
  padding: 2.4rem 2rem;
  transition: transform 0.6s, border-color 0.6s;
}

.how-card:hover { transform: translateY(-4px); border-color: var(--rim-2); }

.how-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.how-card h3 {
  font-family: Fraunces, serif;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}

.how-card p { font-size: 0.92rem; line-height: 1.6; color: var(--t2); }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--rim);
  border-radius: 12px;
  background: rgba(15, 24, 48, 0.35);
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s, border-color 0.5s;
  min-height: 100%;
}

.product-card:not(.locked):hover {
  transform: translateY(-4px);
  border-color: rgba(201, 160, 90, 0.35);
}

.product-card.locked { opacity: 0.45; pointer-events: none; }

.product-logo {
  display: block;
  height: 3.25rem;
  width: auto;
  margin-bottom: 0.25rem;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--rim-2);
  display: grid;
  place-items: center;
  font-family: Fraunces, serif;
  font-size: 1.2rem;
  color: var(--gold);
  background: rgba(201, 160, 90, 0.06);
}

.product-body h3 {
  font-family: Fraunces, serif;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.product-tagline {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
}

.product-desc { font-size: 0.88rem; line-height: 1.55; color: var(--t2); flex: 1; }

.product-badge {
  align-self: flex-start;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.product-badge.live {
  color: #7ec4a8;
  background: rgba(58, 139, 111, 0.18);
  border: 1px solid rgba(58, 139, 111, 0.35);
}

.product-badge.soon {
  color: var(--gold-bright);
  background: rgba(201, 160, 90, 0.1);
  border: 1px solid rgba(201, 160, 90, 0.28);
}

.product-badge.future {
  color: var(--t3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rim);
}

.inline-link {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.logo-review { padding-top: 0; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.logo-option {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--rim);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.logo-option img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.logo-option figcaption {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--t2);
}

.logo-option figcaption strong { color: var(--t1); }

/* Schools */
.schools-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  padding: 2.8rem clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--rim-2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 24, 48, 0.55) 0%, rgba(7, 10, 18, 0.85) 100%);
}

.school-list {
  margin-top: 1.5rem;
  padding-left: 1.2rem;
  color: var(--t2);
  font-size: 0.92rem;
  line-height: 1.7;
}

.school-list li { margin-bottom: 0.35rem; }

.schools-visual { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }

.class-card {
  padding: 1.25rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.03);
}

.class-card.dim { opacity: 0.55; }

.class-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.class-title { font-family: Fraunces, serif; font-size: 1.1rem; margin-bottom: 0.75rem; }

.class-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--rim);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.class-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}

.class-meta { font-size: 0.78rem; color: var(--t3); }

/* Footer */
footer {
  background: #030508;
  border-top: 1px solid var(--rim);
  padding: 4rem clamp(1.25rem, 4vw, 2.6rem) 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr);
  gap: 3rem;
}

.footer-brand .captains-words-logo { height: 2rem; }

.footer-brand p {
  max-width: 32ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--t2);
  margin: 1rem 0;
}

.footer-brand a, .footer-links a {
  font-size: 0.74rem;
  color: var(--t3);
  text-decoration: none;
}

.footer-brand a:hover, .footer-links a:hover { color: var(--gold-bright); }

.footer-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-section h2 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--rim);
  padding-top: 1.4rem;
  font-size: 0.72rem;
  color: var(--t3);
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-frame { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .section-header { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .schools-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-product { display: none; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust + .trust { padding-left: 0; border-left: none; padding-top: 1rem; border-top: 1px solid var(--rim); }
  .how-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-sections { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .particle, .compass-ghost, .ship-dot, .island-glow, .hero-kicker .pip { animation: none; }
  html.reveal-ready .reveal:not(.in) { opacity: 1; transform: none; }
}

.btn:focus-visible, .nav-link:focus-visible, .nav-play:focus-visible, .product-card:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
