:root {
  color-scheme: dark;
  --ink: #0b0d0d;
  --ink-solid: #0b0d0d;
  --panel: #131716;
  --line: #2a302e;
  --muted: #9ca7a3;
  --paper: #e8edea;
  --paper-solid: #e8edea;
  --acid: #b7ff5a;
  --acid-deep: #8fdb3e;
  --acid-text: #b7ff5a;
}

/* Light theme, toggled via [data-theme="light"] on <html> (persisted in
   localStorage, same mechanism as the tond-admin dashboard). --ink-solid,
   --paper-solid and --acid stay fixed across themes: they back the hero
   terminal/path diagram and button label contrast, which are meant to
   look identical regardless of theme. */
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #f4f6f3;
  --panel: #ffffff;
  --line: #d3dbd2;
  --muted: #4d574f;
  --paper: #14171a;
  --acid-text: #3f6d10;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.site-shell { overflow: hidden; }
.nav { width: min(1200px, calc(100% - 48px)); height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.04em; }
.brand-logo { width: 180px; height: 52px; object-fit: cover; object-position: center; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: .9rem; }
.nav-links a:hover { color: var(--paper); }
.nav-login { color: var(--ink-solid) !important; padding: 10px 16px; background: var(--acid); border-radius: 3px; font-weight: 700; }
.menu-toggle { display: none; color: var(--paper); border: 1px solid var(--line); padding: 8px 11px; background: transparent; border-radius: 3px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--paper); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--acid); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .icon-dark, .theme-toggle .icon-light { display: none; }
:root:not([data-theme="light"]) .theme-toggle .icon-dark { display: inline-flex; }
:root[data-theme="light"] .theme-toggle .icon-light { display: inline-flex; }
.hero { width: min(1200px, calc(100% - 48px)); min-height: 660px; margin: auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--acid-text); margin: 0 0 22px; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--acid); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 24px; font-size: clamp(3.2rem, 6.1vw, 6.6rem); line-height: .94; letter-spacing: -.08em; }
h1 em { color: var(--acid-text); font-style: normal; }
h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: .98; letter-spacing: -.07em; }
h3 { margin-bottom: 7px; font-size: 1.1rem; letter-spacing: -.03em; }
.hero-subhead { max-width: 540px; margin: 0 0 18px; color: var(--paper); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.hero-lead, .security-panel > p, .relay-copy > p, .contact-section > p { max-width: 540px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 52px; }
.button { display: inline-flex; gap: 22px; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 3px; font-size: .92rem; font-weight: 750; }
.button-primary { color: var(--ink-solid); background: var(--acid); }.button-primary:hover { background: #cbff88; }
.button-quiet { border: 1px solid var(--line); color: var(--paper); }.button-quiet:hover { border-color: var(--muted); }
.hero-facts { display: flex; gap: 28px; margin: 0; }.hero-facts div { border-left: 1px solid var(--line); padding-left: 12px; }.hero-facts dt { color: var(--paper); font-weight: 750; font-size: .85rem; }.hero-facts dd { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.grid-glow { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(#252b29 1px, transparent 1px), linear-gradient(90deg, #252b29 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle, black 30%, transparent 75%); }
.terminal-card { position: relative; z-index: 1; width: min(100%, 445px); padding: 15px 18px 24px; border: 1px solid #37413d; border-radius: 5px; background: rgba(19, 23, 22, .94); box-shadow: 0 35px 90px rgba(0,0,0,.55); font: .8rem/2.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-title { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; margin-bottom: 13px; border-bottom: 1px solid var(--line); }.terminal-title span { width: 7px; height: 7px; border-radius: 50%; background: #59635e; }.terminal-title b { margin-left: 6px; color: #9ca7a3; font-size: .67rem; font-weight: 500; }
.terminal-line { color: #d6e2dc; }.terminal-line.muted { color: #7d8983; }.success { color: var(--acid); }.cursor::after { content: "_"; color: var(--acid); animation: blink .9s infinite; }
.path { position: absolute; z-index: 2; right: -28px; bottom: 52px; display: flex; align-items: center; }.path-node { padding: 7px 9px; border: 1px solid #2a302e; border-radius: 2px; background: #0b0d0d; color: #9ca7a3; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }.path-node.relay { color: var(--acid); border-color: var(--acid-deep); }.path-line { width: 38px; height: 1px; background: var(--acid-deep); overflow: hidden; }.path-line span { display: block; width: 10px; height: 100%; background: #e8edea; animation: travel 1.2s linear infinite; }
.demo-section { width: min(920px, calc(100% - 48px)); margin: 90px auto 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: center; }
.demo-copy h2 { font-size: clamp(2rem, 3.2vw, 3.25rem); }
.demo-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.demo-video-trigger { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--paper); cursor: zoom-in; box-shadow: 0 24px 65px rgba(0,0,0,.28); }
.demo-video-trigger:hover, .demo-video-trigger:focus-visible { border-color: var(--acid-deep); outline: none; }
.demo-video-trigger video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.demo-expand { position: absolute; right: 12px; bottom: 12px; padding: 8px 11px; border: 1px solid #3b4541; border-radius: 3px; background: rgba(11,13,13,.88); color: var(--acid); font-size: .75rem; font-weight: 750; }
.demo-video-dialog { width: min(1100px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid #37413d; border-radius: 5px; background: #0b0d0d; color: #e8edea; box-shadow: 0 35px 100px rgba(0,0,0,.75); }
.demo-video-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.demo-dialog-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 12px 0 18px; border-bottom: 1px solid #2a302e; }
.demo-dialog-head strong { font-size: .85rem; }
.demo-dialog-close { width: 34px; height: 34px; border: 1px solid #37413d; border-radius: 3px; background: transparent; color: #e8edea; cursor: pointer; font-size: 1.35rem; line-height: 1; }
.demo-dialog-close:hover, .demo-dialog-close:focus-visible { border-color: var(--acid); color: var(--acid); outline: none; }
.demo-video-dialog video { display: block; width: 100%; max-height: calc(100vh - 100px); background: #000; }
.statement { width: min(900px, calc(100% - 48px)); padding: 120px 0; margin: auto; }.statement p { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3.35rem); line-height: 1.12; letter-spacing: -.055em; }
.split-section, .security-section, .relay-section, .comparison-section { width: min(1200px, calc(100% - 48px)); margin: auto; padding: 110px 0; border-top: 1px solid var(--line); display: grid; gap: 70px; }
.split-section { grid-template-columns: .88fr 1.12fr; }.feature-list article { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }.feature-list p, .security-grid p { margin: 0; color: var(--muted); line-height: 1.55; }.feature-number, .icon { color: var(--acid-text); font: .8rem ui-monospace, monospace; }
.security-section { grid-template-columns: .95fr 1.05fr; }.security-panel { padding: 38px; background: var(--panel); border: 1px solid var(--line); }.security-panel h2 { font-size: clamp(2.1rem, 3.4vw, 3.5rem); }.text-link { display: inline-flex; gap: 18px; margin-top: 20px; color: var(--acid-text); font-weight: 700; font-size: .9rem; }.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }.security-grid article { padding: 28px; background: var(--ink); }.security-grid .icon { display: block; margin-bottom: 48px; }
.relay-section { grid-template-columns: 1fr 1fr; align-items: center; }.config-card { border: 1px solid var(--line); background: var(--panel); }.config-head { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: .72rem ui-monospace, monospace; }.copy-button { color: var(--acid-text); border: 0; padding: 0; background: none; font: inherit; cursor: pointer; }.config-card pre { margin: 0; padding: 28px; overflow-x: auto; font: .85rem/1.85 ui-monospace, monospace; color: #bfcac4; }.config-card b { color: var(--acid-text); font-weight: 500; }
.comparison-section { grid-template-columns: .85fr 1.15fr; }.comparison-section > div > p:not(.eyebrow) { max-width: 420px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }.comparison-links { border-top: 1px solid var(--line); }.comparison-links a { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: color .15s ease; }.comparison-links a:hover { color: var(--acid-text); }.comparison-links span { color: var(--acid-text); font: .75rem ui-monospace, monospace; }.comparison-links strong { font-size: .95rem; }.comparison-links b { font-size: 1.1rem; font-weight: 500; }
.contact-section { width: min(1200px, calc(100% - 48px)); margin: 0 auto 70px; padding: 95px 50px; border-radius: 5px; background: var(--acid); color: var(--ink-solid); }.contact-section .eyebrow { color: #335c0c; }.contact-section .eyebrow span { background: #335c0c; }.contact-section h2 { max-width: 800px; margin-bottom: 18px; }.contact-section > p { color: #365823; }.contact-section .button-primary { background: var(--ink-solid); color: var(--paper-solid); margin-top: 15px; }
footer { width: min(1200px, calc(100% - 48px)); display: grid; grid-template-columns: 1fr 2fr auto; gap: 30px; align-items: center; padding: 28px 0 48px; margin: auto; color: var(--muted); border-top: 1px solid var(--line); font-size: .78rem; } footer p { margin: 0; }.footer-note { white-space: nowrap; }
@keyframes blink { 50% { opacity: 0; } } @keyframes travel { from { transform: translateX(-10px); } to { transform: translateX(38px); } }
@media (max-width: 760px) { .nav { width: min(100% - 32px, 1200px); height: 72px; }.menu-toggle { display: block; }.nav-links { display: none; position: absolute; z-index: 4; top: 72px; left: 16px; right: 16px; padding: 20px; background: var(--panel); border: 1px solid var(--line); flex-direction: column; align-items: stretch; }.nav-links.open { display: flex; }.nav-login { text-align: center; }.hero, .demo-section, .split-section, .security-section, .relay-section, .comparison-section { grid-template-columns: 1fr; }.hero { width: min(100% - 32px, 1200px); padding: 75px 0; min-height: auto; }.hero-visual { min-height: 370px; }.path { right: -10px; bottom: 8px; transform: scale(.8); transform-origin: right bottom; }.hero-facts { gap: 12px; }.hero-facts div { padding-left: 8px; }.demo-section { width: min(100% - 32px, 920px); margin-top: 65px; gap: 22px; }.statement { padding: 80px 0; }.split-section, .security-section, .relay-section, .comparison-section { width: min(100% - 32px, 1200px); padding: 75px 0; gap: 35px; }.security-grid { grid-template-columns: 1fr; }.security-grid .icon { margin-bottom: 25px; }.contact-section { width: min(100% - 32px, 1200px); padding: 65px 25px; }.contact-section h2 { font-size: 2.65rem; } footer { width: min(100% - 32px, 1200px); grid-template-columns: 1fr; gap: 14px; } }
