:root {
    --bg: #0b0b0c;
    --bg-soft: #111113;
    --bg-elev: #16161a;
    --ink: #f4f1ea;
    --ink-dim: #a8a39a;
    --ink-mute: #6b675f;
    --line: #25252a;
    --accent: #d4ff3c;
    --accent-2: #ff5b2e;
    --display: 'Fraunces', 'Times New Roman', serif;
    --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* Grain overlay */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.035;
    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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  ::selection { background: var(--accent); color: var(--bg); }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    background: rgba(11, 11, 12, 0.65);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
  }
  nav.scrolled { border-bottom-color: var(--line); }
  .logo {
    font-family: var(--display);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .logo a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
  .logo-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
  }
  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  .nav-links a {
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a.active { color: var(--accent); }
  .nav-cta {
    display: inline-block;
    padding: 10px 20px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
  }
  .nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

  @media (max-width: 768px) {
    nav { padding: 18px 20px; }
    .nav-links { display: none; }
  }

  /* ===== BUTTONS ===== */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 255, 60, 0.25);
  }
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-weight: 500;
    font-size: 15px;
    transition: border-color 0.25s, background 0.25s;
  }
  .btn-secondary:hover { border-color: var(--ink); background: var(--bg-soft); }
  .btn-arrow {
    width: 18px; height: 18px;
    transition: transform 0.25s;
  }
  .btn-primary:hover .btn-arrow,
  .btn-secondary:hover .btn-arrow { transform: translateX(4px); }

  /* ===== SECTIONS ===== */
  section { padding: 120px 40px; position: relative; }
  .container { max-width: 1280px; margin: 0 auto; }
  .section-label {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-label::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--accent);
  }
  .section-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 18ch;
  }
  .section-title em { font-style: italic; color: var(--accent); font-weight: 300; }
  .section-intro {
    font-size: 18px;
    color: var(--ink-dim);
    max-width: 60ch;
    line-height: 1.6;
  }

  /* ===== PAGE HERO ===== */
  .page-hero {
    min-height: 62vh;
    padding: 180px 40px 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
  }
  .page-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
  }
  .page-hero .container { position: relative; z-index: 2; width: 100%; }
  .breadcrumb {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.1s forwards;
  }
  .breadcrumb a { color: var(--ink-mute); text-decoration: none; transition: color 0.2s; }
  .breadcrumb a:hover { color: var(--accent); }
  .breadcrumb span { color: var(--accent); }
  .page-hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(44px, 8vw, 110px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    max-width: 16ch;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
  }
  .page-hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
  .page-hero-sub {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--ink-dim);
    max-width: 58ch;
    line-height: 1.55;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.45s forwards;
  }
  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
  @media (max-width: 640px) {
    .page-hero { padding: 140px 20px 60px; min-height: 50vh; }
  }

  

  /* ===== PHASES ===== */
  .phase {
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 110px;
  }
  .phase:nth-of-type(even) { background: var(--bg-soft); }
  .phase-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
  .phase-kicker {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink-mute);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .phase-kicker .meta { color: var(--accent); }
  .phase h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 16ch;
  }
  .phase h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
  .phase-lede { font-size: 18px; color: var(--ink-dim); line-height: 1.65; margin-bottom: 20px; max-width: 52ch; }
  .phase-body { font-size: 15px; color: var(--ink-dim); line-height: 1.7; max-width: 52ch; }

  .phase-panel {
    border: 1px solid var(--line);
    background: var(--bg-elev);
    border-radius: 16px;
    overflow: hidden;
  }
  .phase-panel-head {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .phase-panel-head::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
  }
  .phase-panel ul { list-style: none; }
  .phase-panel li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
  }
  .phase-panel li:last-child { border-bottom: none; }
  .phase-panel .li-num { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
  .phase-panel .li-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
  .phase-panel .li-desc { color: var(--ink-dim); font-size: 13.5px; line-height: 1.6; }
  .phase-commit {
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 28px;
    background: var(--bg-soft);
  }
  .phase-commit-label {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
  }
  .phase-commit p { color: var(--ink-dim); font-size: 14px; line-height: 1.65; }
  @media (max-width: 1024px) { .phase-grid { grid-template-columns: 1fr; gap: 48px; } }
  @media (max-width: 640px) {
    .phase-panel li, .phase-panel-head { padding-left: 20px; padding-right: 20px; }
  }

  /* ===== RULES ===== */
  .rules { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
  .rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 64px; }
  .rule-card {
    padding: 35px;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
  }
  .rule-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.4s ease;
  }
  .rule-card:hover { background: var(--bg-elev); border-color: var(--ink-mute); }
  .rule-card:hover::before { width: 100%; }
  .rule-card h3 { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 12px; }
  .rule-card p { color: var(--ink-dim); font-size: 14px; line-height: 1.65; }
  @media (max-width: 768px) { .rules-grid { grid-template-columns: 1fr; gap: 16px; } }

  /* ===== TIMELINE BAR ===== */
  .tbar {
    margin-top: 64px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 2fr 3fr 5fr 2.5fr;
    background: var(--line);
    gap: 1px;
  }
  .tbar-seg { background: var(--bg-soft); padding: 22px 20px; transition: background 0.3s; }
  .tbar-seg:hover { background: var(--bg-elev); }
  .tbar-seg .seg-week { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 8px; }
  .tbar-seg .seg-name { font-weight: 600; font-size: 14px; }
  @media (max-width: 768px) { .tbar { grid-template-columns: 1fr 1fr; } }


/* ===== CTA ===== */
  .cta {
    background: var(--bg);
    text-align: center;
    padding: 160px 40px;
    position: relative;
    overflow: hidden;
  }
  .cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212, 255, 60, 0.08), transparent);
    pointer-events: none;
  }
  .cta-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
  .cta h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(40px, 7vw, 96px);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
  }
  .cta h2 em { font-style: italic; color: var(--accent); }
  .cta-sub {
    font-size: 18px;
    color: var(--ink-dim);
    margin-bottom: 48px;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
  }
  .cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

  /* ===== FOOTER ===== */
  footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 64px 40px 32px;
  }
  .footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
  }
  .footer-brand p {
    color: var(--ink-dim);
    font-size: 14px;
    margin-top: 16px;
    max-width: 36ch;
    line-height: 1.6;
  }
  .footer-col h4 {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    font-weight: 500;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 12px; }
  .footer-col a {
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-mute);
  }
  @media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    footer { padding: 48px 20px 24px; }
  }
  @media (max-width: 640px) {
    section { padding: 80px 20px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
  }