* { box-sizing: border-box; }
:root {
  --bg-1: #f6f7f4;
  --bg-2: #f2f0ec;
  --text: #3a4532; /* sage-700 */
  --muted: #556a4a;
  --accent-1: #6d8260; /* sage */
  --accent-2: #a8997f; /* sand */
  --glass-bg: rgba(255,255,255,0.65);
  --glass-line: rgba(150,168,96,0.20);
  /* Tron link colors (light default = blue) */
  --tron: #2B8CFF; /* vivid blue for light theme */
  --tron-glow1: rgba(43,140,255,0.55);
  --tron-glow2: rgba(43,140,255,0.30);
}
html[data-theme="dark"] {
  --bg-1: #111412;
  --bg-2: #161a16;
  --text: #e9efe4;
  --muted: #cfd7c9;
  --accent-1: #96A860;
  --accent-2: #a8997f;
  --glass-bg: rgba(34,38,34,0.6);
  --glass-line: rgba(200,220,190,0.18);
  /* Dark theme: fluorescent neon green */
  --tron: #39FF14; /* neon green */
  --tron-glow1: rgba(57,255,20,0.75);
  --tron-glow2: rgba(57,255,20,0.40);
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.nav { position: sticky; top: 0; backdrop-filter: blur(10px); background: var(--glass-bg); border-bottom: 1px solid var(--glass-line); z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.brand-logo { height: 36px; width: auto; display: block; border-radius: 8px; }
.brand-text { display: inline-block; }
.cta { color: var(--text); text-decoration: none; background: rgba(150,168,96,0.12); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--glass-line); }
.cta:hover { background: rgba(150,168,96,0.18); }

.hero { position: relative; padding: 64px 0 32px; overflow: hidden; min-height: 520px; isolation: isolate; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; z-index: 1; }
.hero-inner.single { grid-template-columns: 1fr; }
.hero-visual { position: absolute; inset: 0; pointer-events: none; }
.wave { position: absolute; bottom: -20px; left: -10%; width: 120%; height: 55%; opacity: 0.35; filter: blur(1px); }
.wave path { fill: none; stroke: url(#waveGradient); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; animation: dash 12s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -1200; } }
.wave { will-change: transform; transition: transform 0.08s linear; }

/* Background video in hero */
.video-background { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.video-background video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); transform: scale(1.02); }
.shade-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.35) 100%); }

/* Hide wave by default when video is active */
.hero .hero-visual { display: none; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .wave path { animation: none !important; }
  .wave { transition: none !important; transform: none !important; }
  .video-background { display: none !important; }
  .hero .hero-visual { display: block !important; }
}

/* Manual reduced-motion override via attribute */
html[data-reduce-motion="1"] .wave path { animation: none !important; }
html[data-reduce-motion="1"] .wave { transition: none !important; transform: none !important; }
html[data-reduce-motion="1"] .video-background { display: none !important; }
html[data-reduce-motion="1"] .hero .hero-visual { display: block !important; }

/* Light theme: improve hero text contrast over background video */
html:not([data-theme="dark"]) .hero .hero-copy h1 { color: #ffffff; }
html:not([data-theme="dark"]) .hero .hero-copy { color: rgba(255,255,255,0.98); }
html:not([data-theme="dark"]) .hero .hero-copy .lead { color: rgba(255,255,255,0.92); }
html:not([data-theme="dark"]) .hero .hero-copy h1,
html:not([data-theme="dark"]) .hero .hero-copy p,
html:not([data-theme="dark"]) .hero .hero-copy .lead { text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
html:not([data-theme="dark"]) .hero .btn { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.14); }
html:not([data-theme="dark"]) .hero .btn.ghost:hover { background: rgba(255,255,255,0.22); }
html:not([data-theme="dark"]) .shade-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.50) 100%); }

/* When motion is reduced (video hidden), revert light theme colors */
@media (prefers-reduced-motion: reduce) {
  html:not([data-theme="dark"]) .hero .hero-copy h1 { color: var(--text); }
  html:not([data-theme="dark"]) .hero .hero-copy { color: var(--text); }
  html:not([data-theme="dark"]) .hero .hero-copy .lead { color: var(--muted); }
  html:not([data-theme="dark"]) .hero .hero-copy h1,
  html:not([data-theme="dark"]) .hero .hero-copy p,
  html:not([data-theme="dark"]) .hero .hero-copy .lead { text-shadow: none; }
  html:not([data-theme="dark"]) .hero .btn { color: #3a4532; border-color: rgba(150,168,96,0.25); background: rgba(150,168,96,0.10); }
  html:not([data-theme="dark"]) .hero .btn.ghost:hover { background: rgba(150,168,96,0.16); }
}
html[data-reduce-motion="1"]:not([data-theme="dark"]) .hero .hero-copy h1 { color: var(--text); }
html[data-reduce-motion="1"]:not([data-theme="dark"]) .hero .hero-copy { color: var(--text); }
html[data-reduce-motion="1"]:not([data-theme="dark"]) .hero .hero-copy .lead { color: var(--muted); }
html[data-reduce-motion="1"]:not([data-theme="dark"]) .hero .hero-copy h1,
html[data-reduce-motion="1"]:not([data-theme="dark"]) .hero .hero-copy p,
html[data-reduce-motion="1"]:not([data-theme="dark"]) .hero .hero-copy .lead { text-shadow: none; }
html[data-reduce-motion="1"]:not([data-theme="dark"]) .hero .btn { color: #3a4532; border-color: rgba(150,168,96,0.25); background: rgba(150,168,96,0.10); }
html[data-reduce-motion="1"]:not([data-theme="dark"]) .hero .btn.ghost:hover { background: rgba(150,168,96,0.16); }

/* Toggle button shared style */
.theme-toggle { border: 1px solid var(--glass-line); background: var(--glass-bg); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.theme-toggle:hover { background: rgba(150,168,96,0.12); }
.hero-copy h1 { font-size: 44px; line-height: 1.1; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.bullets { margin: 0 0 22px; padding-left: 18px; color: #556a4a; }
.bullets li { margin: 4px 0; }
.hero-actions { display: flex; gap: 10px; }
.btn { display: inline-block; text-decoration: none; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(150,168,96,0.25); color: #3a4532; background: rgba(150,168,96,0.10); backdrop-filter: blur(6px); }
.btn.primary { background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%); color: #fff; border: none; box-shadow: 0 6px 16px rgba(109,130,96,0.35); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(109,130,96,0.40); }
.btn.ghost:hover { background: rgba(150,168,96,0.16); }

.hero-card { background: rgba(255,255,255,0.65); border: 1px solid rgba(150,168,96,0.2); backdrop-filter: blur(20px); box-shadow: 0 8px 32px rgba(150,168,96,0.15); border-radius: 20px; padding: 12px; }
.video { display: block; width: 100%; height: auto; border-radius: 12px; }
.video.large { max-width: 860px; margin: 10px auto 0; }
.video-wrap { background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: 20px; padding: 10px; backdrop-filter: blur(14px); }

.section { padding: 56px 0; }
.section.muted { background: rgba(150,168,96,0.07); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.checklist, .pitch { padding-left: 18px; color: #556a4a; }
.checklist li, .pitch li { margin: 8px 0; }

.cta-section .callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--glass-bg); border: 1px solid var(--glass-line); padding: 18px 22px; border-radius: 18px; box-shadow: 0 6px 22px rgba(150,168,96,0.12); backdrop-filter: blur(14px); }
.cta-actions { display: flex; gap: 10px; }

.footer { border-top: 1px solid var(--glass-line); background: var(--glass-bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 10px 0; }
.muted-text { color: var(--muted); }
.footer-block { display: flex; flex-direction: column; line-height: 1.2; }
.footer .small { font-size: 13px; }
.tron-link { color: var(--tron); text-decoration: none; font-weight: 700; }
.tron-link, .tron-link:visited { color: var(--tron); }
.tron-link { text-shadow: 0 0 6px var(--tron-glow1), 0 0 16px var(--tron-glow2); }
.tron-link:hover { filter: brightness(1.15); }

@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
}

/* Interactive demo */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: 0 6px 22px rgba(150,168,96,0.12); backdrop-filter: blur(14px); }
.demo-section { padding: 16px; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
.demo-output { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.waveform-animation { border-radius: 12px; border: 1px solid var(--glass-line); background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); position: relative; overflow: hidden; min-height: 160px; }
.waveform-animation::before, .waveform-animation::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient( to right, rgba(109,130,96,0.25) 0, rgba(109,130,96,0.25) 2px, transparent 2px, transparent 6px ); opacity: .35; transform: translateX(0); animation: move 2.8s linear infinite; }
.waveform-animation::after { animation-duration: 3.3s; opacity: .22; }
@keyframes move { to { transform: translateX(-12px); } }
.summary-card { border: 1px solid var(--glass-line); border-radius: 12px; padding: 16px; background: var(--glass-bg); }
.summary-card h3 { margin: 0 0 10px; }
.summary-card ul { margin: 0; padding-left: 18px; color: var(--muted); }

@media (max-width: 900px) {
  .demo-output { grid-template-columns: 1fr; }
}

/* Integrations chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.chip { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-bg); color: var(--text); font-weight: 500; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-card { background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: 16px; padding: 18px; box-shadow: 0 6px 22px rgba(150,168,96,0.12); }
.plan-card h3 { margin: 0 0 8px; }
.price { font-size: 28px; font-weight: 700; margin: 8px 0 10px; }
.features { margin: 0 0 12px; padding-left: 18px; color: var(--muted); }
.plan-card .btn { width: 100%; text-align: center; }

@media (max-width: 1000px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .plan-grid { grid-template-columns: 1fr; } }
