/* sezish landing — deep-black minimalism, single red accent.
   Native CSS, system font stack (SF on Mac), no build step. */

:root {
  --bg: #0c0a09;
  --bg-soft: #14110f;
  --text: #f5f5f4;
  --muted: rgba(245, 245, 244, 0.46);
  --faint: rgba(245, 245, 244, 0.10);
  --red: #ed1c24;
  --red-hot: #ff3b30;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
img, svg, video { max-width: 100%; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: clip;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* Primary buttons: a quiet static metal rim under the red fill (inset 2px).
   Light falls softly from the top-left — a muted brushed edge, no loud glints. */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    #45474e 0%, #303237 18%, #1e1f23 42%, #121215 68%, #1a1b1f 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(237, 28, 36, 0.28);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(100deg, #FFA700, #FF3600 55%, #FF0087);
  transition: filter 0.25s var(--ease);
}
.btn-primary > span { position: relative; z-index: 1; }
.btn-metal { position: absolute; inset: 0; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(237, 28, 36, 0.42);
}
.btn-primary:hover::after { filter: brightness(1.12) saturate(1.08); }
.btn-lg { font-size: 18px; padding: 16px 28px; }

/* morphing icon: apple slides out, arrow slides in */
.btn-morph .btn-icon {
  position: relative;
  width: 20px; height: 20px;
  display: inline-grid;
  place-items: center;
}
.btn-morph .btn-icon svg { position: absolute; inset: 0; margin: auto; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.btn-morph .icon-arrow { opacity: 0; transform: translateX(8px); }
.btn-morph:hover .icon-apple { opacity: 0; transform: translateX(-8px) scale(0.6); }
.btn-morph:hover .icon-arrow { opacity: 1; transform: translateX(0); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--faint); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { display: block; }
.brand-word { font-weight: 800; letter-spacing: 0.02em; font-size: 19px; }
.brand-dot { color: var(--red); }
.site-header .btn { padding: 9px 16px; font-size: 14px; }
.site-header .btn-icon { width: 18px; height: 18px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; align-items: center; gap: 1px; }
.lang-switch button {
  background: none; border: none; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 700;
  padding: 6px 9px; cursor: pointer; border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: var(--text); background: var(--faint); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(120px, 16vh, 180px) clamp(20px, 5vw, 56px) 90px;
  text-align: center;
}
.hero-title {
  font-size: clamp(32px, 7.4vw, 104px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}
.hero-langs {
  margin: 18px auto 0;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  color: rgba(245, 245, 244, 0.75);
  letter-spacing: 0.01em;
}
.hero-sub {
  margin: 12px auto 0;
  max-width: 34ch;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
}

/* record button, metal.jakubantalik.com style: a dark matte disc whose bezel
   ring is the chromatic liquid-metal canvas (metal.js), the colour glyph on
   top. Without WebGL the canvas stays empty and the ring falls back to a thin
   grey stroke. */
.hero-record { position: relative; margin: 54px auto 0; display: grid; justify-items: center; gap: 22px; }

/* hand-drawn arrow (CC0, SVG Repo) pointing at the record button. Filled
   artwork, so it "draws" via a top-to-bottom mask wipe — along the S-stroke
   the head appears last, like a real flourish. */
.demo-arrow {
  position: absolute;
  left: calc(50% - 213px);
  top: -48px;
  width: 132px; height: 132px;
  fill: var(--red);
  transform: rotate(-9deg);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 62%);
  -webkit-mask-size: 100% 320%;
  mask-size: 100% 320%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  animation: wipeDown 0.8s ease-out 1.15s forwards;
}
@keyframes wipeDown {
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
/* mobile: smaller arrow tucked to the upper-left of the button, still aimed at it */
@media (max-width: 760px) {
  .demo-arrow {
    width: 84px; height: 84px;
    left: calc(50% - 148px);
    top: -18px;
    transform: rotate(-6deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .oval path { animation: none; stroke-dashoffset: 0; }
  .demo-arrow { animation: none; mask-image: none; -webkit-mask-image: none; }
  .hero-record.recording .record-wave { animation: none; }
  .rec-dot { animation: none; }
}
.record-btn {
  position: relative;
  width: 116px; height: 116px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  overflow: hidden;
  background: #17171a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07),
              0 20px 55px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.4s var(--ease);
  display: grid; place-items: center;
}
.record-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12),
              0 0 44px rgba(170, 232, 255, 0.16),
              0 0 80px rgba(247, 136, 141, 0.14),
              0 20px 60px rgba(0, 0, 0, 0.65);
}
.record-metal {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
}
/* the matte disc hides all of the canvas except a ~7px bezel ring */
.record-disc {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #2a2a2e, #1b1b1e 72%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05),
              0 0 0 2px rgba(0, 0, 0, 0.6),
              0 6px 18px rgba(0, 0, 0, 0.5);
}
.record-glyph {
  position: relative;
  width: 40px; height: 53px;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.record-glyph rect {
  transform-box: fill-box;
  transform-origin: center;
}
/* Recording: the button reads as pressed-in and RED — chromatic ring loses its
   greens/whites via a CSS filter (no shader changes), the disc relief inverts,
   red sound-waves ripple outward, and the big hint below says what to do. */
.record-btn.live {
  transform: scale(0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
              0 0 34px rgba(255, 54, 0, 0.28),
              0 8px 26px rgba(0, 0, 0, 0.7);
}
.record-btn.live .record-metal {
  filter: sepia(1) saturate(3.2) hue-rotate(-28deg) brightness(0.9);
}
.record-btn.live .record-disc {
  background: radial-gradient(circle at 50% 72%, #242024, #151114 74%);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.65),
              inset 0 -1px 1px rgba(255, 255, 255, 0.04),
              0 0 0 2px rgba(0, 0, 0, 0.6);
}
.record-btn.live .record-glyph { transform: scale(0.93); }
.record-btn.live + .record-glow {
  opacity: 0.5;
  filter: blur(20px) sepia(1) saturate(3) hue-rotate(-28deg);
}

/* sound waves rippling out of the button while recording */
.record-wave {
  position: absolute;
  left: calc(50% - 58px);
  top: 0;
  width: 116px; height: 116px;
  border-radius: 50%;
  border: 2px solid rgba(237, 28, 36, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-record.recording .record-wave { animation: recordWave 2.2s ease-out infinite; }
.hero-record.recording .record-wave.w2 { animation-delay: 1.1s; }
@keyframes recordWave {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* big recording hint: pulsing REC dot + instruction + timer */
.record-live {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.rec-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  animation: recPulse 1s ease-in-out infinite;
}
.record-live-timer { color: var(--muted); font-weight: 400; font-size: 16px; }
@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* hover glow: a blurred copy of the same shader texture behind the button —
   another MetalEngine consumer, so no extra shader pass. Sits under the button
   (z-index -1) and fades in on hover. */
.record-glow {
  position: absolute;
  left: calc(50% - 88px);
  top: -30px;
  width: 176px; height: 176px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(20px) saturate(1.5);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.record-btn:hover + .record-glow { opacity: 0.35; }
.record-hint { color: var(--muted); font-size: 14px; min-height: 18px; }

.record-result {
  margin-top: 6px;
  max-width: 460px;
  background: var(--bg-soft);
  border: 1px solid var(--faint);
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  justify-items: center;
  animation: rise 0.4s var(--ease);
}
.result-text { color: var(--text); font-size: 17px; line-height: 1.45; text-align: center; }
.result-copy {
  border: 1px solid var(--faint);
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.result-copy:hover { color: var(--text); border-color: rgba(245, 245, 244, 0.25); }

.hero-cta { margin: 46px auto 0; display: flex; justify-content: center; }

/* ---------- reveal cascade ---------- */
.reveal { opacity: 0; transform: translateY(20px); animation: rise 0.8s var(--ease) forwards; }
.r1 { animation-delay: 0.15s; }
.r2 { animation-delay: 0.30s; }
.r3 { animation-delay: 0.48s; }
.r4 { animation-delay: 0.66s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* scroll-reveal for sections */
.in-view { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.in-view.shown { opacity: 1; transform: translateY(0); }

/* ---------- sections shared ---------- */
section.feature, section.langs, section.speed, section.install {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 130px) clamp(20px, 5vw, 56px);
}
h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
section p { color: var(--muted); font-size: clamp(16px, 2.1vw, 19px); max-width: 52ch; margin-top: 20px; }

/* feature 1: split with transcript */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.feature-text h2 br { display: inline; }
.transcript {
  background: var(--bg-soft);
  border: 1px solid var(--faint);
  border-radius: 22px;
  padding: 26px;
  display: grid;
  gap: 16px;
}
.tr-line { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: baseline; opacity: 0; transform: translateX(-8px); }
.transcript.run .tr-line { animation: trIn 0.5s var(--ease) forwards; }
.transcript.run .tr-line:nth-child(1) { animation-delay: 0.05s; }
.transcript.run .tr-line:nth-child(2) { animation-delay: 0.35s; }
.transcript.run .tr-line:nth-child(3) { animation-delay: 0.65s; }
.transcript.run .tr-line:nth-child(4) { animation-delay: 0.95s; }
.transcript.run .tr-line:nth-child(5) { animation-delay: 1.25s; }
@keyframes trIn { to { opacity: 1; transform: translateX(0); } }
.tr-time { font-variant-numeric: tabular-nums; color: var(--red); font-size: 14px; font-weight: 600; }
.tr-text { color: var(--text); font-size: 15px; }

/* feature 2: mirror of feature 1 — terminal on the left, text on the right */
.feature-dictation .feature-text { grid-column: 2; grid-row: 1; }
.feature-dictation .type-demo { grid-column: 1; grid-row: 1; }
.type-demo {
  max-width: 640px;
  background: var(--bg-soft);
  border: 1px solid var(--faint);
  border-radius: 16px;
  padding: 22px 26px;
  text-align: left;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.65;
}
.type-prompt { color: var(--red); font-weight: 700; margin-right: 12px; }
.type-text { color: var(--text); white-space: pre-wrap; overflow-wrap: break-word; }
.type-rest { visibility: hidden; }
.type-caret { width: 9px; height: 1.05em; background: var(--red); display: inline-block; vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* speed */
.speed { text-align: center; }
.speed h2 { margin: 0 auto; }
.speed-num {
  margin-top: 28px;
  font-size: clamp(88px, 17vw, 190px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  background: linear-gradient(100deg, #FFA700, #FF3600 55%, #FF0087);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.speed-note { margin: 30px auto 0; text-align: center; }

/* langs */
.langs { text-align: center; }
.langs h2 { margin: 0 auto; }
.lang-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
  margin: 50px auto 0;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 700;
}
.lang-row li { color: var(--muted); transition: color 0.4s var(--ease); }
.lang-row .lang-uz { color: var(--text); }
.oval-wrap { position: relative; display: inline-block; }
/* svg is a replaced element: inset won't stretch it, so it matches the word
   1:1 and the path draws outside the viewBox (overflow: visible) */
.oval { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.oval path { stroke: var(--red); stroke-dasharray: 578; stroke-dashoffset: 578; }
.langs.shown .oval path { animation: draw 1.1s var(--ease) 0.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lang-note { margin: 44px auto 0; text-align: center; }

/* install */
.install { text-align: center; }
.install h2, .install > p { margin-left: auto; margin-right: auto; }
.install > p { text-align: center; }
.install-row { margin: 44px auto 0; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cli { display: grid; justify-items: center; gap: 10px; }
.cli-hint { color: var(--muted); font-size: 14px; }
.cli-cmd {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--faint);
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.3s var(--ease);
}
.cli-cmd:hover { border-color: rgba(245, 245, 244, 0.25); }
.cli-cmd code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; }
.cli-cmd svg { color: var(--muted); }
.cli-cmd.copied svg { color: var(--red); }
.install-fine { font-size: 14px; margin-top: 40px; }
.install-fine a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* footer */
.site-footer { position: relative; padding: 80px clamp(20px, 5vw, 56px) 48px; text-align: center; overflow: hidden; }
.footer-links { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: 20px; }
.footer-links a { color: var(--muted); transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-word {
  margin-top: 24px;
  font-size: clamp(64px, 20vw, 300px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  max-width: 100%;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(245, 245, 244, 0.12), rgba(245, 245, 244, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
/* the record mark replaces the "." in SEZI.SH */
.footer-word .mark {
  display: inline-block;
  width: 0.19em; height: 0.19em;
  vertical-align: -0.03em;
  border-radius: 50%;
  background: linear-gradient(120deg, #FFA700, #FF3600 40%, #FF0087 70%, #FFA700);
  background-size: 300% 300%;
  animation: markFlow 7s ease-in-out infinite;
}
@keyframes markFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* made-with line + the Majento brandmark: lettering with a small "AI" hanging
   off its top-right corner, like a trademark sign */
.footer-made {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.footer-majento {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}
.footer-majento:hover { opacity: 1; }
.footer-majento img {
  width: 86px; height: auto;
  display: block;
  /* the J tail is not part of the cap band — trimming it lets the lettering
     centre optically against the sentence instead of riding high */
  margin-bottom: -7px;
  filter: brightness(0) invert(1);
}
.footer-majento b {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 1px;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-dictation .feature-text, .feature-dictation .type-demo { grid-column: auto; grid-row: auto; }
  .site-header .btn-label { display: none; }
  .site-header .btn { padding: 9px 12px; }
  section p { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .in-view { opacity: 1; transform: none; }
  .tr-line { opacity: 1; transform: none; }
  .oval path { stroke-dashoffset: 0; }
}
