/* TalentForge — styles.css (Blue/Navy, no green)
   - Dark/navy background site-wide (same vibe as timeline)
   - Nice blue everywhere possible + subtle gold accents
   - Taller timeline cards + desktop pin support styling
*/

:root{
  --ink: #F6F8FB;         /* main text on dark */
  --muted: rgba(233,240,252,.82);
  --muted2: rgba(233,240,252,.62);
  --line: rgba(255,255,255,.14);

  --blue: #0A66C2;        /* Nice blue */
  --navy: #071A2E;
  --navy2:#0B1F3B;
  --slate:#111827;
  --slate2:#1F2937;
  --purple: #7C3AED;      /* vivid purple */
  --indigo: #312E81;      /* deep indigo */

  --gold: #D6A24A;        /* small accent only */

  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --shadow2: 0 10px 26px rgba(0,0,0,.28);

  --r: 18px;
  --r2: 26px;

  --max: 1320px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.6;

  /* Dark/navy background everywhere (timeline vibe) */
  background:
    radial-gradient(1000px 560px at 12% 8%, rgba(10,102,194,.26), transparent 62%),
    radial-gradient(900px 520px at 88% 0%, rgba(214,162,74,.16), transparent 66%),
    linear-gradient(180deg, var(--navy), var(--navy2));

  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; height:auto; display:block; }

.container{ max-width:var(--max); margin:0 auto; padding:0 22px; }

/* WebGL canvas (optional) */
#bg{
  position:fixed; inset:0;
  z-index:-3;
  width:100%; height:100%;
  display:block;
  opacity: .22;
}

/* Grain */
.grain{
  position:fixed; inset:-80px;
  z-index:-2;
  pointer-events:none;
  opacity:.12;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Accessibility */
.skip-link{
  position:absolute; left:-999px; top:12px;
  background: rgba(255,255,255,.92);
  color: #0B1220;
  padding:10px 14px;
  border-radius:12px;
  box-shadow: var(--shadow2);
  z-index:9999;
}
.skip-link:focus{ left:12px; }

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(7,26,46,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
  position:relative;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{ width:150px; height:auto; }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,240,252,.78);
  font-weight:800;
  font-size:12px;
}
.dot{
  width:8px; height:8px; border-radius:99px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
}

.links{
  display:flex; gap:6px; align-items:center;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:6px;
  background: rgba(255,255,255,.04);
}
.links a{
  padding:10px 12px;
  border-radius:999px;
  color: rgba(233,240,252,.72);
  font-weight:900;
  font-size:13px;
}
.links a.active{
  color: var(--ink);
  background: rgba(255,255,255,.10);
}
.links a:hover{
  text-decoration:none;
  background: rgba(255,255,255,.08);
}

.cta{ display:flex; gap:10px; align-items:center; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:11px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: var(--ink);
  font-weight:900;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
  box-shadow: var(--shadow2);
  text-decoration:none;
}
.btn-primary{
  border-color: rgba(10,102,194,.50);
  background: linear-gradient(135deg, rgba(10,102,194,.60), rgba(124,58,237,.18));
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(10,102,194,.62), rgba(7,26,46,.22));
}

.menu{
  display:none;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: var(--ink);
  font-weight:900;
}

.progress{
  height:2px;
  background: rgba(255,255,255,.14);
}
.progress > div{
  height:2px;
  width:0%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

/* Hero */
.hero{ padding:64px 0 26px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}

.kicker{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  color: rgba(233,240,252,.72);
  font-weight:900;
}
.kicker .tag{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

h1{
  margin:14px 0 12px;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing:-1.6px;
  line-height:.98;
}

/* Headline emphasis: deep navy -> purple */
.grad{
  /* Blue -> purple -> light lavender (readable on dark) */
  background: linear-gradient(135deg,
    #0A66C2 0%,
    #7C3AED 55%,
    #C4B5FD 100%
  );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  /* Optional: helps readability against dark backgrounds */
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.28));
}

.sub{
  margin:0 0 16px;
  max-width:62ch;
  color: var(--muted);
  font-size:18px;
}
.actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; }

.ribbon{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:14px;
}
.chip{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,240,252,.78);
  font-weight:900;
  font-size:13px;
}
.chip i{
  width:10px; height:10px; border-radius:99px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  display:inline-block;
}

/* Surfaces (cards/panels) — dark site defaults */
.card{
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.card .inner{ padding:18px; }
.card h3{ margin:0 0 8px; letter-spacing:-.5px; }
.card p{ margin:0; color: var(--muted); }

.metric-grid{ margin-top:14px; display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.metric{
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.metric b{ display:block; font-size:15px; }
.metric span{ display:block; margin-top:2px; color: var(--muted2); font-size:12px; font-weight:800; }

/* Sections */
section{
  padding:64px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
h2{
  margin:0;
  font-size:34px;
  letter-spacing:-.9px;
}
.lead{
  margin:0;
  max-width:72ch;
  color: var(--muted);
}

/* Split + panels */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:stretch;
}
.panel{
  padding:18px;
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.panel h3{ margin:0 0 10px; }
.panel ul{ margin:0; padding-left:18px; color: var(--muted); }
.panel li{ margin:8px 0; }

/* Big CTA */
.big-cta{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:18px;
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(700px 220px at 20% 0%, rgba(10,102,194,.26), transparent 60%),
    radial-gradient(700px 220px at 85% 60%, rgba(214,162,74,.16), transparent 65%),
    rgba(255,255,255,.05);
}
.big-cta p{ margin:0; color: var(--muted); max-width:72ch; }
.big-cta strong{ color: var(--ink); }

/* Chapter rail */
.chapter-rail{
  margin-top:20px;
  padding:16px;
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow2);
}
.rail-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.smallcaps{
  font-size:12px;
  font-weight:950;
  letter-spacing:.22em;
  text-transform: uppercase;
  color: rgba(233,240,252,.62);
}
.rail-actions a{ color: rgba(233,240,252,.72); font-weight:900; }

.chapters{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:12px;
}
.chapter{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  padding:14px;
  transition: transform .12s ease, background .12s ease;
}
.chapter:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  text-decoration:none;
}
.chapter .num{
  font-weight:950;
  letter-spacing:.08em;
  color: rgba(233,240,252,.62);
  font-size:12px;
  text-transform:uppercase;
}
.chapter .meta{
  margin-top:8px;
  color: rgba(233,240,252,.62);
  font-weight:900;
  font-size:12px;
}
.chapter .title{
  margin-top:2px;
  font-weight:950;
  letter-spacing:-.3px;
  line-height:1.15;
}
.chapter .desc{
  margin-top:6px;
  color: var(--muted);
  font-size:13px;
}
.chapter .learn{
  margin-top:10px;
  font-weight:950;
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.chapter .learn span{
  width:22px; height:22px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

/* Timeline */
.timeline-wrap{
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow2);
  padding: 28px;
}
.timeline-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}

.timeline{
  display:flex;
  gap:12px;
  overflow:auto;
  padding: 8px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.timeline::-webkit-scrollbar{ height:10px; }
.timeline::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.18); border-radius:999px; }

.tcard{
  flex: 0 0 min(420px, 84vw);
  scroll-snap-align: start;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  padding: 22px;
  min-height: 62vh; /* taller cards */
}
.tcard .k{
  display:flex; gap:10px; align-items:center;
  font-weight:950;
}
.tcard .k .badge{
  width:32px; height:32px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.tcard p{ margin:10px 0 0; color: var(--muted); }

.tprogress{
  height:2px;
  background: rgba(255,255,255,.18);
  border-radius:999px;
  overflow:hidden;
}
.tprogress > div{
  height:2px;
  width:0%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

/* Desktop pinned timeline support */
@media (min-width: 980px){
  #timeline{
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
  }
  #timeline .container{ width:100%; }
  /* IMPORTANT: disable snap on desktop so pin scroll feels smooth */
  #timeline .timeline{ scroll-snap-type: none !important; scrollbar-width:none; }
  #timeline .timeline::-webkit-scrollbar{ display:none; }
}

/* Forms */
.form{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.field{ display:flex; flex-direction:column; gap:8px; }
label{
  color: rgba(233,240,252,.62);
  font-weight:950;
  font-size:12px;
  letter-spacing:.22em;
  text-transform: uppercase;
}
input, textarea{
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  font: inherit;
}
textarea{ min-height:130px; resize: vertical; grid-column: 1 / -1; }
.small{ color: rgba(233,240,252,.62); font-size:12px; margin-top:10px; }

/* Footer */
footer{
  padding:34px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(233,240,252,.72);
}
.foot{
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; align-items:center;
}

/* Motion helpers */
[data-reveal]{ opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1 !important; transform:none !important; }
}

/* Intro overlay */
.intro{
  position:fixed; inset:0; z-index:999;
  display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(10,102,194,.22), transparent 60%),
    radial-gradient(900px 520px at 80% 0%, rgba(214,162,74,.16), transparent 55%),
    rgba(7,26,46,.92);
  backdrop-filter: blur(10px);
}
.intro .box{
  width:min(680px, 92vw);
  border-radius:28px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  padding:18px;
}
.intro .row{ display:flex; align-items:center; justify-content:space-between; gap:14px; }
.intro .box img{ width:180px; }
.intro h3{ margin:12px 0 6px; letter-spacing:-.6px; }
.intro p{ margin:0; color: var(--muted); }
.intro .enter{ margin-top:14px; display:flex; gap:10px; align-items:center; justify-content:flex-end; }
.intro .hint{ font-size:12px; color: rgba(233,240,252,.62); font-weight:900; }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .form{ grid-template-columns: 1fr; }
  .chapters{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .links{ display:none; }
  .menu{ display:inline-flex; }
  .links.open{
    display:flex;
    position:absolute;
    left:22px; right:22px; top:64px;
    flex-direction:column;
    border-radius:22px;
    padding:10px;
    background: rgba(7,26,46,.94);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow2);
  }
  .links.open a{ border-radius:16px; }
}