/* Hece website, direction "Gece". Tokens and rules live in DESIGN.md (Website section). */
:root {
  --canvas: #07080a;
  --surface: #0d0d0d;
  --surface-2: #101111;
  --card: #121212;
  --hairline: #242728;
  --hairline-soft: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4f4f6;
  --body: #cdcdcd;
  --mute: #9c9c9d;
  --ash: #8a8b8c;
  --violet: #9682ff;
  --blue: #57c1ff;
  --green: #59d499;
  --yellow: #ffc533;
  --red: #ff6161;
  --radius: 12px;
  --wrap: 1120px;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--canvas); color: var(--body); font: 400 17px/1.6 var(--sans); }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(7, 8, 10, 0.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline-soft); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font: 400 30px/1 var(--serif); color: #fff; text-decoration: none; }
.logo i { font-style: normal; color: var(--violet); }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--mute); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top .hide-sm { display: inline; }

/* Buttons and keycaps */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 24px; font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.btn-primary { background: #fff; color: #18191a; }
.btn-primary:hover { background: #e8e8e8; }
.btn-ghost { border: 1px solid var(--hairline-strong); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.top nav .btn-primary { color: #18191a; }
kbd { display: inline-block; padding: 5px 10px; border-radius: 7px; font: 600 13px/1 var(--sans); color: var(--ink);
  background: linear-gradient(#1c1d1f, #0d0d0d); border: 1px solid #2c2e30; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }

/* Hero */
.hero { position: relative; text-align: center; padding: 8px 0 0; overflow: hidden; }
/* Full-bleed art (hero wave, final keyboard): spans the viewport, top and bottom fade into the canvas. */
.bleed { position: relative; left: 50%; width: 100vw; max-width: none; transform: translateX(-50%); object-fit: cover; background: var(--canvas); }
/* A voice wave that ends in a text cursor; it enters from the left edge of the screen. */
.hero-art { height: clamp(240px, 36vw, 540px); object-position: 40% 50%;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent); }
.hero h1 { margin-top: -24px; color: #fff; font-size: clamp(48px, 8vw, 88px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
/* Serif accent: what is spoken is Instrument Serif italic, what is typed is sans. */
.say { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }
/* The text cursor from the hero wave, waiting at the end of the headline. */
.cursor { display: inline-block; width: 0.07em; height: 0.82em; margin-left: 0.08em; vertical-align: -0.04em; border-radius: 0.04em;
  background: linear-gradient(#ff7a6b, #ffb86b, #59d499, #57c1ff, #9682ff); animation: blink 1.1s steps(1) infinite; }
.hero .lede { max-width: 640px; margin: 22px auto 0; font-size: 20px; line-height: 1.5; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hint { margin-top: 22px; color: var(--ash); font-size: 14px; }
.hint kbd { margin: 0 2px; }
.req { margin-top: 10px; color: var(--ash); font-size: 13px; }

/* Demo video slot (#58); the figure carries `hidden` until site/demo.mp4 exists. */
.demo { max-width: 960px; margin: 56px auto 0; }
.demo video { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--hairline); background: var(--surface); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 72px; text-align: left; }
.pillar { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.pillar h2, .pillar h3 { color: var(--ink); font-size: 17px; font-weight: 600; margin: 20px 22px 6px; }
.pillar p { color: var(--mute); font-size: 15px; line-height: 1.5; margin: 0 22px 24px; }
/* A photo with a small piece of the real UI over it. */
.shot { position: relative; aspect-ratio: 3 / 2; background: var(--surface); border-bottom: 1px solid var(--hairline); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.demo { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px;
  border-radius: 10px; background: rgba(7, 8, 10, 0.72); border: 1px solid var(--hairline-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hairline-strong); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3; }
.chip.g { color: var(--green); border-color: rgba(89, 212, 153, 0.4); background: rgba(89, 212, 153, 0.1); }
.chip.y { color: var(--yellow); border-color: rgba(255, 197, 51, 0.4); background: rgba(255, 197, 51, 0.1); }
.said-line { color: var(--ink); font-size: 14px; font-weight: 500; margin-right: 4px; }
.said-line s { color: var(--ash); text-decoration-color: var(--red); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; }

/* Sections */
section.band { padding: 120px 0 0; }
.eyebrow { color: var(--violet); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.band h2, .final h2 { color: #fff; font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; max-width: 760px; }
.band .intro { max-width: 640px; margin-top: 16px; font-size: 18px; }

/* How it works */
.how { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; margin-top: 48px; }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 6px 14px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hairline-strong);
  display: grid; place-items: center; color: var(--ink); font-weight: 600; font-size: 14px; }
.steps b { color: var(--ink); font-weight: 600; }
.steps span { color: var(--mute); font-size: 15px; }

.scene { position: relative; border-radius: 16px; padding: 28px; background:
  radial-gradient(ellipse at 85% 0%, rgba(150, 130, 255, 0.22), transparent 55%), var(--surface); border: 1px solid var(--hairline); }
.window { background: var(--card); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }
.window .bar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--hairline); font-size: 13px; color: var(--ash); }
.window .msgs { padding: 8px 18px 0; font-size: 15px; }
.msg { padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); }
.msg b { display: block; color: var(--ink); font-size: 13px; }
.compose { margin: 16px 18px 18px; border: 1px solid var(--hairline-strong); border-radius: 8px; padding: 12px 14px; font-size: 15px; color: var(--ink); }
.compose mark { background: rgba(150, 130, 255, 0.22); color: inherit; border-radius: 3px; }
.caret { display: inline-block; width: 2px; height: 18px; background: var(--violet); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Meaning: before / after */
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.pair { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.pair .said, .pair .got { padding: 18px 20px; }
.pair small { display: block; color: var(--ash); font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.pair .said { color: var(--body); font: italic 400 22px/1.25 var(--serif); border-bottom: 1px solid var(--hairline); }
.pair .said small { font-family: var(--sans); font-style: normal; }
.pair .got { color: #fff; font-size: 19px; font-weight: 500; line-height: 1.35; }
.pair del { color: var(--ash); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.tag { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.tag.g { color: var(--green); background: rgba(89, 212, 153, 0.12); }
.tag.b { color: var(--blue); background: rgba(87, 193, 255, 0.12); }
.tag.y { color: var(--yellow); background: rgba(255, 197, 51, 0.12); }
.note { margin-top: 14px; color: var(--ash); font-size: 13px; }

/* Local or cloud */
.photo { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 30%; margin-top: 40px;
  border-radius: var(--radius); border: 1px solid var(--hairline); background: var(--surface); color: var(--ash); font-size: 14px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.mode { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; }
.mode h3 { color: #fff; font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.mode > p { color: var(--mute); }
.mode ul { list-style: none; margin-top: 18px; }
.mode li { padding: 10px 0 10px 24px; border-top: 1px solid var(--hairline-soft); position: relative; font-size: 15px; }
.mode li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.grid div { background: var(--canvas); padding: 24px; }
.grid h3 { color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.grid p { color: var(--mute); font-size: 15px; line-height: 1.5; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--hairline); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; color: var(--ink); font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--mute); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; max-width: 700px; }
.faq code { font-size: 0.92em; color: var(--ink); }

/* Final CTA and footer */
.final { text-align: center; padding: 140px 0 0; overflow: hidden; }
/* The page ends on a keyboard at rest. */
.final-art { height: clamp(220px, 34vw, 500px); margin-top: 24px; object-position: 50% 55%;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 75%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 75%, transparent); }
.final h2 { margin: 0 auto; }
.foot { border-top: 1px solid var(--hairline); padding: 28px 0 40px; font-size: 14px; color: var(--ash); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .pillars, .pairs, .modes, .grid, .how { grid-template-columns: 1fr; }
  .how { gap: 36px; }
  section.band { padding-top: 88px; }
  .top .hide-sm { display: none; }
  .hero .lede { font-size: 18px; }
  .hero-art { height: 64vw; object-position: 30% 50%; }
  .photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .top nav { gap: 16px; }
  .cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
