/* ============ TOKENS (EDS 01) ============ */
  :root {
    --graphite: #0B1220;
    --graphite-2: #111A2C;
    --graphite-3: #182338;
    --signal: #2C5EF2;
    --signal-soft: rgba(44, 94, 242, 0.55);
    --dark-text-primary: #EDEFF3;
    --dark-text-secondary: #9AA4B6;
    --dark-text-tertiary: #6B7688;
    --dark-hairline: rgba(154, 164, 182, 0.16);

    --light-bg: #FFFFFF;
    --light-bg-2: #F6F7F9;
    --light-bg-3: #EEF0F3;
    --light-text-primary: #13233B;
    --light-text-secondary: #4B5768;
    --light-text-tertiary: #7A8494;
    --light-hairline: #E2E5EA;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--graphite);
  }

  .display { font-family: 'General Sans', 'Inter', sans-serif; }
  .mono { font-family: 'JetBrains Mono', monospace; }

  /* ============ MODE WRAPPERS ============ */
  section.dark {
    background: var(--graphite);
    color: var(--dark-text-primary);
  }
  section.light {
    background: var(--light-bg);
    color: var(--light-text-primary);
  }

  .dark .secondary { color: var(--dark-text-secondary); }
  .dark .tertiary { color: var(--dark-text-tertiary); }
  .dark .hairline-color { color: var(--dark-hairline); }
  .light .secondary { color: var(--light-text-secondary); }
  .light .tertiary { color: var(--light-text-tertiary); }

  /* ============ SIGNATURE: THE NODE MARK ============ */
  /* The EnerMind Signature — a small circle with a single radiating stem,
     the atomic unit every diagram on this page is built from, reduced to
     its smallest form. Prefixes every eyebrow label; also used as the
     scroll cue and as the sole section-divider mark. Never decorative —
     it is always the same shape that appears, larger, in the diagrams
     below it, so a visitor's eye connects the small mark to the systems
     it represents. */
  .node-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    position: relative;
    flex-shrink: 0;
  }
  .node-mark::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.4px solid currentColor;
    background: transparent;
  }
  .node-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    width: 1px;
    height: 6px;
    background: currentColor;
    opacity: 0.5;
  }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--signal-soft);
    margin-bottom: 48px;
  }
  .eyebrow.center { justify-content: center; }

  /* section divider mark, used between major sections */
  .divider {
    display: flex;
    justify-content: center;
    padding: 56px 0;
  }
  .divider .node-mark { color: var(--dark-hairline); width: 14px; height: 14px; }
  .divider .node-mark::before { width: 7px; height: 7px; }
  section.light .divider .node-mark { color: var(--light-hairline); }

  /* ============ SHARED LAYOUT ============ */
  .wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
  .wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }
  .wrap-wide { max-width: 900px; margin: 0 auto; padding: 0 24px; }

  p.body-text { font-size: 19px; line-height: 1.65; margin-bottom: 28px; }
  p.body-text strong { font-weight: 500; }
  .dark p.body-text strong { color: var(--dark-text-primary); }
  .light p.body-text strong { color: var(--light-text-primary); }

  p.statement {
    font-family: 'General Sans', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.35;
    text-align: center;
    margin: 56px auto;
    max-width: 480px;
  }

  /* ============ FADE-IN UTILITY ============ */
  .fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .fade-in.visible { opacity: 1; transform: translateY(0); }

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

  /* ============ NAV ============ */
  body > nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--graphite-2);
    border-bottom: 1px solid var(--dark-hairline);
  }
  body > nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-text-primary);
  }
  nav .logo .node-mark { width: 14px; height: 14px; color: var(--signal); }
  nav .logo .node-mark::before { width: 7px; height: 7px; border-color: var(--signal); }
  body > nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
  }
  body > nav a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text-secondary);
    text-decoration: none;
    transition: color 0.15s var(--ease);
  }
  body > nav a:hover { color: var(--dark-text-primary); }

  @media (max-width: 720px) {
    body > nav ul { display: none; }
  }

  /* ============ SECTION 01 — HERO ============ */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 24px;
    isolation: isolate;
  }
  .grid-field {
    position: absolute; inset: 0; z-index: -1;
    background-image:
      linear-gradient(to right, var(--dark-hairline) 1px, transparent 1px),
      linear-gradient(to bottom, var(--dark-hairline) 1px, transparent 1px);
    background-size: 96px 96px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 0%, transparent 75%);
    opacity: 0.55;
  }
  .hero-content { max-width: 720px; text-align: center; }
  .hero-content .eyebrow { justify-content: center; margin-bottom: 24px; }
  .hero h1 {
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    opacity: 0; transform: translateY(8px);
    animation: rise 0.35s var(--ease) forwards;
    animation-delay: 0.15s;
  }
  .hero .supporting {
    font-size: 20px; line-height: 1.5;
    max-width: 560px; margin: 0 auto;
    opacity: 0; transform: translateY(8px);
    animation: rise 0.35s var(--ease) forwards;
    animation-delay: 0.28s;
  }
  .hero-content .eyebrow { opacity: 0; transform: translateY(8px); animation: rise 0.35s var(--ease) forwards; animation-delay: 0.05s; }

  .scroll-cue {
    position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0; animation: rise-cue 0.4s var(--ease) forwards; animation-delay: 0.55s;
    transition: transform 0.15s var(--ease);
  }
  .scroll-cue:hover { transform: translateX(-50%) translateY(3px); }
  .scroll-cue .node-mark { color: var(--dark-text-tertiary); animation: pulse 2.4s ease-in-out infinite; }

  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
  @keyframes rise-cue { to { opacity: 1; } }
  @keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.9; } }

  @media (max-width: 640px) {
    .hero h1 { font-size: 40px; }
    .hero .supporting { font-size: 17px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-content .eyebrow, .hero h1, .hero .supporting, .scroll-cue { animation: none !important; opacity: 1 !important; transform: none !important; }
    .scroll-cue .node-mark { animation: none !important; }
  }

  /* ============ SECTION 02 — PROOF ============ */
  .proof { padding: 160px 24px; }

  /* ============ SECTION 03/04/05 — DIAGRAM SECTIONS ============ */
  .diagram-section { padding: 160px 24px 180px; display: flex; flex-direction: column; align-items: center; }
  .diagram-section .narrative { margin-bottom: 120px; }
  .diagram-wrap { width: 100%; max-width: 780px; display: flex; flex-direction: column; align-items: center; }
  .diagram-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 40px; text-align: center; }
  svg { width: 100%; height: auto; overflow: visible; }

  .node-circle { fill: var(--graphite-2); stroke: var(--dark-hairline); stroke-width: 1; }
  .center-circle { fill: var(--graphite-2); stroke: var(--signal); stroke-width: 1.4; }
  .connector { stroke: var(--dark-hairline); stroke-width: 1; stroke-dasharray: 260; stroke-dashoffset: 260; }
  .connector.animate { animation: draw 1.1s var(--ease) forwards; }
  .node-label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; fill: var(--dark-text-secondary); text-anchor: middle; }
  .center-label-1 { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 13px; fill: var(--dark-text-primary); text-anchor: middle; }
  .center-label-2 { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.04em; fill: var(--signal-soft); text-anchor: middle; text-transform: uppercase; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  /* Platform layered diagram */
  .app-node rect { fill: var(--graphite-2); stroke: var(--signal); stroke-width: 1.2; }
  .app-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; fill: var(--dark-text-primary); text-anchor: middle; }
  .layer-band { fill: var(--graphite-2); stroke: var(--dark-hairline); stroke-width: 1; }
  .layer-title { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 15px; fill: var(--dark-text-primary); }
  .layer-desc { font-family: 'Inter', sans-serif; font-size: 12px; fill: var(--dark-text-tertiary); }
  .layer-index { font-family: 'JetBrains Mono', monospace; font-size: 11px; fill: var(--signal-soft); }
  .riser { stroke: var(--dark-hairline); stroke-width: 1; stroke-dasharray: 400; stroke-dashoffset: 400; }
  .riser.animate { animation: draw-riser 1.4s var(--ease) forwards; }
  @keyframes draw-riser { to { stroke-dashoffset: 0; } }

  /* Domains orbital diagram */
  .orbit-ring { fill: none; stroke: var(--dark-hairline); stroke-width: 1; }
  .orbit-ring.future { stroke-dasharray: 3 5; }
  .node-solar rect { fill: var(--graphite-2); stroke: var(--signal); stroke-width: 1.4; }
  .node-wind rect { fill: var(--graphite-2); stroke: rgba(44,94,242,0.6); stroke-width: 1.1; }
  .node-future rect { fill: var(--graphite-2); stroke: var(--dark-hairline); stroke-width: 1; stroke-dasharray: 3 4; }
  .node-label.solar { fill: var(--dark-text-primary); font-size: 11px; }
  .node-label.wind { fill: var(--dark-text-primary); }
  .node-label.future { fill: var(--dark-text-tertiary); }
  .connector.solar { stroke: var(--signal); stroke-width: 1.2; }
  .connector.wind { stroke: rgba(44,94,242,0.5); }
  .connector.future { stroke-dasharray: 2 4; }

  .legend { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
  .legend-item { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dark-text-tertiary); }
  .legend-dot { width: 8px; height: 8px; border-radius: 50%; }

  /* ============ SECTION 06 — WHY ENERMIND ============ */
  .why { padding: 128px 24px; }
  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
  }
  .why-block { text-align: left; }
  .why-block .label {
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--signal);
    margin-bottom: 12px;
  }
  .why-block p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--light-text-secondary);
  }
  @media (max-width: 800px) {
    .why-grid { grid-template-columns: 1fr; gap: 48px; }
  }

  /* ============ SECTION 07 — THE FUTURE ============ */
  .future {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 24px;
    position: relative;
    isolation: isolate;
    text-align: center;
  }
  .future .eyebrow { justify-content: center; }
  .future p.statement {
    font-size: 40px;
    line-height: 1.3;
    max-width: 640px;
  }
  @media (max-width: 640px) {
    .future p.statement { font-size: 26px; }
  }

  /* ============ SECTION 08 — LAUNCH ============ */
  .launch { padding: 160px 24px; text-align: center; }
  .launch .eyebrow { justify-content: center; }
  .launch p.statement {
    font-size: 32px;
    color: var(--light-text-primary);
    max-width: 620px;
  }
  .launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 16px 32px;
    background: var(--signal);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s var(--ease), transform 0.15s var(--ease);
  }
  .launch-btn:hover { background: #1E46C4; transform: translateY(-1px); }
  .launch-btn .arrow { transition: transform 0.15s var(--ease); }
  .launch-btn:hover .arrow { transform: translateX(3px); }

  /* ============ FOOTER ============ */
  footer.dark {
    padding: 64px 24px 40px;
    border-top: 1px solid var(--dark-hairline);
  }
  .footer-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
  }
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
  }
  .footer-logo .node-mark { width: 14px; height: 14px; color: var(--signal); }
  .footer-logo .node-mark::before { width: 7px; height: 7px; border-color: var(--signal); }
  footer nav ul {
    position: static;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    list-style: none;
  }
  footer a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--dark-text-secondary);
    text-decoration: none;
  }
  footer a:hover { color: var(--dark-text-primary); }
  .footer-meta {
    max-width: 900px;
    margin: 32px auto 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--dark-text-tertiary);
    letter-spacing: 0.02em;
  }
