/* layout.css - nav, hero, section scaffolding, marquee, showcase, how, cta, footer */

.section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section__head { max-width: 820px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__title { font-size: clamp(2.2rem, 6vw, 4.6rem); }
.section__lead {
  margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft); max-width: 600px;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px var(--pad);
  transition: padding .4s var(--ease), background .4s var(--ease);
}
.nav.is-scrolled {
  padding: 12px var(--pad);
  background: rgba(244, 237, 228, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: -0.03em;
}
.nav__logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex;
  box-shadow: 0 2px 8px rgba(226, 63, 35, 0.30), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform .4s var(--ease);
}
.nav__logo-mark svg { width: 100%; height: 100%; display: block; border-radius: inherit; }
.nav__logo:hover .nav__logo-mark { transform: rotate(-6deg) scale(1.06); }

/* live equalizer — each bar scales from its center */
.nav__logo-bars rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: eq-bar 1.15s var(--ease) infinite;
}
.nav__logo-bars rect:nth-child(1) { animation-delay: -0.9s; }
.nav__logo-bars rect:nth-child(2) { animation-delay: -0.2s; }
.nav__logo-bars rect:nth-child(3) { animation-delay: -0.55s; }
.nav__logo-bars rect:nth-child(4) { animation-delay: -0.05s; }
.nav__logo-bars rect:nth-child(5) { animation-delay: -0.7s; }
@keyframes eq-bar {
  0%, 100% { transform: scaleY(0.42); }
  50%      { transform: scaleY(1.55); }
}
.nav__logo-word { font-family: var(--font-display); font-weight: 700; }
.nav__logo-tld { color: var(--accent); font-weight: 600; opacity: 0.85; margin-left: 1px; }
@media (prefers-reduced-motion: reduce) {
  .nav__logo-bars rect { animation: none; }
}
.nav__links { display: flex; gap: 30px; justify-content: center; }
.nav__links a {
  font-size: 0.96rem; font-weight: 500; color: var(--ink-soft);
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1.5px; background: var(--ink);
  transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 0 var(--pad);
  overflow: hidden;
}
/* WebGL voice orb canvas (the cool centerpiece) */
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero__gradient {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 75% 18%, var(--peach), transparent 70%),
    radial-gradient(55% 45% at 18% 30%, var(--lavender), transparent 72%),
    radial-gradient(70% 60% at 50% 115%, var(--rose), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--cream-2));
  animation: heroGradientShift 4s ease-in-out infinite alternate;
}
@keyframes heroGradientShift {
  0%   { filter: hue-rotate(0deg)   saturate(1); }
  33%  { filter: hue-rotate(30deg)  saturate(1.2); }
  66%  { filter: hue-rotate(-20deg) saturate(1.1); }
  100% { filter: hue-rotate(15deg)  saturate(1.15); }
}
.hero__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content {
  position: relative; z-index: 5;
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 900px; margin: 0 auto; width: 100%;
  text-align: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  background: rgba(22, 19, 15, 0.78);
  color: var(--cream);
  border-radius: 100px;
  font-size: 0.86rem; font-weight: 500;
  backdrop-filter: blur(8px);
  margin-bottom: 30px;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.hero__badge:hover { transform: translateY(-2px); background: var(--ink); }
.hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: pulse-dot 2s infinite;
}
.hero__badge-arrow { transition: transform .35s var(--ease); }
.hero__badge:hover .hero__badge-arrow { transform: translateX(4px); }
.hero__title {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}
.hero__subtitle {
  margin: 30px auto 0; max-width: 600px;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: var(--ink-soft);
}
.hero__actions {
  margin-top: 40px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.hero__note {
  margin-top: 18px; text-align: center;
  font-size: 0.86rem; color: var(--ink-mute, #8a8275);
  letter-spacing: 0.01em;
}
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--ink-mute), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--ink);
  animation: scroll-line 2s var(--ease) infinite;
}
@keyframes scroll-line { 0% { transform: translateY(-100%); } 100% { transform: translateY(280%); } }

/* MARQUEE */
.marquee {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0; overflow: hidden;
  background: var(--ink); color: var(--cream);
}
.marquee__track {
  display: flex; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  will-change: transform;
}
.marquee__track span { padding-right: 0; }

/* Waveform keyframe - used by buttons, demo, dashboard feed */
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* HOW - dark "screen" band with the dot-matrix waveform behind it */
.how {
  position: relative; z-index: 1; overflow: hidden;
  background: var(--screen); color: var(--cream);
  padding: var(--section-pad) 0;
}
.how__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: .9; pointer-events: none;
}
.how__head { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto clamp(28px, 3.5vw, 48px); padding: 0 var(--pad); }
.how .section__title { color: var(--cream); }
.how .eyebrow { color: #ff8163; }
.how .eyebrow::before { background: #ff8163; }
.how__track {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
}
.how__panel {
  background: rgba(14, 11, 8, 0.32);
  border: 1px solid rgba(233, 220, 203, 0.16);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex; flex-direction: column;
}
.how__num {
  font-family: var(--font-display); font-size: clamp(2.8rem, 4vw, 3.6rem); font-weight: 700;
  color: var(--accent); letter-spacing: -0.04em; line-height: 1;
}
.how__panel h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); margin: 18px 0 10px; color: var(--cream); }
.how__panel p { color: rgba(244, 237, 228, .72); font-size: 1rem; }

/* CTA */
.cta {
  position: relative; z-index: 1; overflow: hidden;
  margin: clamp(40px, 8vw, 100px) var(--pad) 0;
  border-radius: var(--radius-lg);
  background: var(--screen);
  color: var(--cream);
  padding: clamp(70px, 12vw, 150px) var(--pad);
  text-align: center;
}
.cta__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(255, 90, 60, 0.5), transparent 70%),
    radial-gradient(40% 50% at 80% 100%, rgba(207, 195, 232, 0.35), transparent 70%);
}
.cta__title { position: relative; font-size: clamp(2.4rem, 6.5vw, 5.4rem); max-width: 900px; margin: 0 auto; }
.cta__subtitle { position: relative; margin: 26px auto 40px; color: rgba(244, 237, 228, .7); font-size: 1.2rem; max-width: 540px; }

/* LEGAL PAGE (terms, privacy, imprint) */
.legal {
  max-width: 820px; margin: 0 auto;
  padding: clamp(120px, 16vh, 180px) var(--pad) clamp(60px, 9vw, 110px);
}
.legal__head { margin-bottom: clamp(40px, 6vw, 64px); }
.legal__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.03em;
  line-height: 1.05; margin: 10px 0 16px;
}
.legal__updated { color: var(--ink-mute); font-size: 0.95rem; }
.legal__intro { margin-top: 18px; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; max-width: 640px; }
.legal__body { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.legal__item { padding-top: 24px; border-top: 1px solid var(--line); }
.legal__item h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem); letter-spacing: -0.02em; margin-bottom: 12px;
}
.legal__item p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.7; }
.legal__back { margin-top: clamp(48px, 7vw, 72px); }

/* FOOTER */
.footer {
  position: relative; z-index: 1;
  max-width: none; margin: 0;
  background: var(--screen); color: var(--cream);
  border-top: 1px solid rgba(244, 237, 228, 0.12);
  padding: clamp(20px, 3vw, 32px) max(var(--pad), calc((100% - var(--maxw)) / 2)) 16px;
}
.footer__top {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(20px, 3vw, 40px);
  padding-bottom: 16px; border-bottom: 1px solid rgba(244, 237, 228, 0.14);
}
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr; gap: 20px; } }
.footer__brand { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--cream); }
.footer__brand p { color: rgba(244, 237, 228, 0.62); font-size: 1.1rem; max-width: 34ch; }
.footer__cta {
  margin-top: 8px; color: var(--accent); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; transition: color .2s ease;
}
.footer__cta:hover { color: var(--cream); }
.footer__cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 480px) { .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
.footer__col { display: flex; flex-direction: column; gap: 7px; }
.footer__col-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(244, 237, 228, 0.45); margin-bottom: 4px;
}
.footer__col a {
  color: rgba(244, 237, 228, 0.72); text-decoration: none; font-size: 0.96rem;
  transition: color .2s ease, transform .2s ease; width: fit-content;
}
.footer__col a:hover { color: var(--cream); transform: translateX(3px); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; color: rgba(244, 237, 228, 0.5); font-size: 0.82rem; gap: 12px; flex-wrap: wrap;
}
.footer__bottom a { color: rgba(244, 237, 228, 0.78); text-decoration: none; transition: color .2s ease; }
.footer__bottom a:hover { color: var(--cream); }
