/* ==========================================================================
   ViVox — design system
   Discover. Create. Publish.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  --bg: #06070a;
  --bg-soft: #0a0c11;
  --bg-elevated: #0e1118;
  --text: #f3f5f9;
  --text-soft: #c3c9d6;
  --muted: #8d95a6;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.1);
  --glass: rgba(14, 17, 24, 0.62);
  --glass-strong: rgba(10, 12, 18, 0.82);
  --accent: #8f7dff;
  --accent-2: #4fd8ff;
  --accent-3: #ff86c8;
  --accent-soft: rgba(143, 125, 255, 0.16);
  --invert-bg: #f6f7fb;
  --invert-text: #07080b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 50px 90px -40px rgba(0, 0, 0, 0.95);
  --glow-1: rgba(120, 92, 255, 0.4);
  --glow-2: rgba(64, 199, 255, 0.22);
  --grid-line: rgba(255, 255, 255, 0.035);
  --noise-opacity: 0.035;
  --thumb-a: #1b1b3a;
  --thumb-b: #101a2c;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7fa;
  --bg-soft: #ffffff;
  --bg-elevated: #ffffff;
  --text: #0a0b10;
  --text-soft: #2f3644;
  --muted: #576073;
  --stroke: rgba(10, 12, 20, 0.11);
  --stroke-strong: rgba(10, 12, 20, 0.22);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: #ffffff;
  --surface-3: rgba(10, 12, 20, 0.06);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --accent: #6247f5;
  --accent-2: #0aa5c9;
  --accent-3: #d94b9b;
  --accent-soft: rgba(98, 71, 245, 0.09);
  --invert-bg: #0a0b10;
  --invert-text: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 18, 30, 0.06);
  --shadow-md: 0 20px 40px -26px rgba(15, 18, 30, 0.22);
  --shadow-lg: 0 50px 90px -46px rgba(15, 18, 30, 0.3);
  --glow-1: rgba(120, 92, 255, 0.22);
  --glow-2: rgba(64, 199, 255, 0.16);
  --grid-line: rgba(10, 12, 20, 0.045);
  --noise-opacity: 0.025;
  --thumb-a: #e4e2ff;
  --thumb-b: #dceefb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding-block: clamp(56px, 7vw, 100px);
  position: relative;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--stroke) 18%, var(--stroke) 82%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  margin-top: 18px;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 56ch;
}

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.section-head--split > div {
  max-width: 640px;
}

.gradient-text {
  background: linear-gradient(96deg, var(--text) 8%, var(--accent) 52%, var(--accent-2) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .gradient-text {
  background: linear-gradient(96deg, #1a1a2e 4%, var(--accent) 52%, var(--accent-2) 98%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- glass + cards ---------- */

.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--shadow-md);
}

.card {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 45%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

html[data-theme="light"] .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55)),
    var(--surface);
}

.card:hover {
  border-color: var(--stroke-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.012em;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease),
    border-color 0.35s var(--ease), opacity 0.3s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  --btn-bg: var(--invert-bg);
  --btn-fg: var(--invert-text);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  border-color: var(--stroke);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

html[data-theme="light"] .btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.75);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--stroke-strong);
  transform: translateY(-2px);
}

.btn-sm {
  height: 42px;
  padding-inline: 18px;
  font-size: 14px;
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 560;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--stroke-strong);
  transition: gap 0.3s var(--ease), border-color 0.3s;
}

.text-link:hover {
  gap: 11px;
  border-color: var(--accent);
}

.text-link svg {
  width: 14px;
  height: 14px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: padding 0.4s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled .header-inner {
  background: var(--glass);
  border-color: var(--stroke);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.03em;
  flex: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: visible;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.045);
  filter: drop-shadow(0 8px 18px rgba(143, 125, 255, 0.55));
}

.footer-credit {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--stroke-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .sun {
  display: block;
}

html[data-theme="light"] .theme-toggle .moon {
  display: none;
}

.nav-toggle {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(120px, 16vh, 176px);
  padding-bottom: clamp(48px, 7vw, 80px);
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 22% 26%, var(--glow-1), transparent 70%),
    radial-gradient(42% 40% at 78% 18%, var(--glow-2), transparent 72%),
    radial-gradient(40% 40% at 50% 62%, rgba(255, 134, 200, 0.13), transparent 74%);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 2%, 0) scale(1.08);
  }
}

.hero-grid {
  position: absolute;
  inset: 0 0 auto;
  height: 780px;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 78%);
}

.hero-copy {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 7px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
}

.badge-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="light"] .badge-tag {
  color: var(--accent);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 550;
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.hero-stage {
  margin-top: clamp(44px, 6vw, 76px);
  position: relative;
  perspective: 2200px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -40px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--glow-1), transparent 70%);
  filter: blur(50px);
  opacity: 0.7;
  z-index: -1;
}

.hero-caption {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- application mockup ---------- */

.app {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--stroke-strong);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  transform: rotateX(7deg) translateZ(0);
  transform-origin: 50% 0;
  transition: transform 1s var(--ease);
  text-align: left;
}


.app-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: var(--muted);
}

.app-dots {
  display: flex;
  gap: 6px;
}

.app-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stroke-strong);
}

.app-dots i:nth-child(1) {
  background: #ff5f57;
  opacity: 0.75;
}

.app-dots i:nth-child(2) {
  background: #febc2e;
  opacity: 0.75;
}

.app-dots i:nth-child(3) {
  background: #28c840;
  opacity: 0.75;
}

.app-chrome-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
  color: var(--text-soft);
}

.app-chrome-title .app-mark {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.app-chrome-title .crumb {
  color: var(--muted);
  font-weight: 500;
}

.app-chrome-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.app-chrome-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #37d67a;
  box-shadow: 0 0 8px #37d67a;
}

.app-body {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 540px;
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 12px;
  border-right: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.018);
}

.app-side-label {
  padding: 0 10px;
  margin: 6px 0 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.app-nav-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.65;
  flex: none;
}

.app-nav-item.is-active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--stroke);
}

.app-nav-item.is-active svg {
  opacity: 1;
  color: var(--accent);
}

.app-nav-item .count {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
}

.app-side-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 11px;
  color: var(--muted);
}

.app-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  flex: none;
}

.app-main {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.app-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.app-toolbar h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
  font-weight: 580;
}

.app-toolbar p {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.app-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  min-width: 200px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 11.5px;
  color: var(--muted);
}

.app-search svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

.app-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 10.5px;
  color: var(--muted);
  background: transparent;
}

.chip.is-active {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--stroke-strong);
}

.app-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 18px;
  min-width: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.story {
  border-radius: 13px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}

.story:hover {
  border-color: var(--stroke-strong);
}

.story-thumb {
  position: relative;
  height: 74px;
  background: linear-gradient(135deg, var(--thumb-a), var(--thumb-b));
  overflow: hidden;
}

.story-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(50% 60% at 85% 80%, rgba(120, 92, 255, 0.5), transparent 65%);
}

.story-thumb .story-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 9, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #f4f6ff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.story-body {
  padding: 10px 11px 12px;
}

.story-cat {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-title {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 550;
  color: var(--text);
  letter-spacing: -0.015em;
}

.story-foot {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}

.momentum {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.momentum i {
  width: 2.5px;
  border-radius: 2px;
  background: #35d07f;
  opacity: 0.8;
}

.momentum i:nth-child(1) { height: 4px; }
.momentum i:nth-child(2) { height: 7px; }
.momentum i:nth-child(3) { height: 10px; }

.story .spark {
  margin-left: auto;
  color: #35d07f;
  font-weight: 550;
}

.preview-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.preview-card {
  border-radius: 15px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  padding: 12px;
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.preview-card-head strong {
  color: var(--text-soft);
  font-weight: 550;
  font-size: 11px;
}

.phone {
  position: relative;
  width: min(100%, 178px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 80% at 20% 10%, #4b3ea8 0%, transparent 60%),
    radial-gradient(90% 70% at 80% 90%, #0f6a80 0%, transparent 62%),
    linear-gradient(160deg, #14162c, #080a13);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  color: #fff;
  isolation: isolate;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 35% at 55% 45%, rgba(255, 255, 255, 0.25), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 550;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.phone-top .live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.phone-top .live::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff5a5a;
}

.phone-caption {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.phone-caption span {
  display: block;
  margin-top: 6px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
  text-shadow: none;
}

.phone-progress {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.phone-progress::after {
  content: "";
  display: block;
  width: 46%;
  height: 100%;
  background: #fff;
}

.phone-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  opacity: 0.8;
}

.phone-bottom .bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 9px;
}

.phone-bottom .bars i {
  width: 2px;
  background: #fff;
  border-radius: 1px;
  opacity: 0.8;
}

.phone-bottom .bars i:nth-child(1) { height: 4px; }
.phone-bottom .bars i:nth-child(2) { height: 8px; }
.phone-bottom .bars i:nth-child(3) { height: 6px; }
.phone-bottom .bars i:nth-child(4) { height: 9px; }

.timeline {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.timeline i {
  height: 5px;
  border-radius: 2px;
  background: var(--surface-3);
  flex: 1;
}

.timeline i:nth-child(1) { background: var(--accent); flex: 2; }
.timeline i:nth-child(2) { background: var(--accent-2); flex: 3; }
.timeline i:nth-child(3) { background: var(--accent-3); flex: 1.4; }

.publish-list {
  display: grid;
  gap: 7px;
  font-size: 10.5px;
  color: var(--text-soft);
}

.publish-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--stroke);
}

.publish-row svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
  flex: none;
}

.publish-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  color: #35d07f;
}

/* mockup labels */
.mock-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-figure {
  margin: 0;
  position: relative;
}

.mock-figure figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- marquee / value strip ---------- */

.strip {
  border-block: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--surface), transparent);
  padding-block: 22px;
  overflow: hidden;
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 34px;
  font-size: 12.5px;
  color: var(--muted);
}

.strip-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.strip-inner svg {
  width: 15px;
  height: 15px;
  color: var(--text-soft);
  opacity: 0.8;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  padding: 30px 26px 28px;
  border-radius: var(--radius-md);
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 100% at 0% 0%, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.step:hover::after {
  opacity: 1;
}

.step-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.step-num b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--stroke-strong);
  background: var(--surface-2);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0;
}

.step-icon {
  margin: 26px 0 18px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, var(--surface-2), transparent);
}

.step-icon svg {
  width: 21px;
  height: 21px;
}

.step h3 {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.step p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  grid-column: span 2;
  padding: 26px 24px 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.feature--wide {
  grid-column: span 3;
  min-height: 250px;
}

.feature--tall {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 100%;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  color: var(--text);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature h3 {
  font-size: 1.02rem;
  letter-spacing: -0.025em;
}

.feature p {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.feature-visual {
  margin-top: auto;
  padding-top: 22px;
}

.mini-stack {
  display: grid;
  gap: 7px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 10.5px;
  color: var(--text-soft);
}

.mini-row i.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.mini-row .mini-bar {
  margin-left: auto;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}

.mini-row .mini-bar::after {
  content: "";
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.mini-row.is-muted .mini-bar::after {
  width: 34%;
  opacity: 0.6;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.shot {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: linear-gradient(150deg, var(--thumb-a), var(--thumb-b));
  position: relative;
  overflow: hidden;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 30% 20%, rgba(255, 255, 255, 0.18), transparent 65%);
}

.shot.is-picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.phone-mini {
  width: 92px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(100% 70% at 25% 12%, #5342b8, transparent 62%),
    radial-gradient(80% 60% at 80% 88%, #0f6a80, transparent 66%),
    linear-gradient(160deg, #14162c, #070910);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.phone-mini span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.phone-mini span:nth-child(2) {
  width: 70%;
  opacity: 0.55;
}

.phone-mini span:nth-child(3) {
  width: 45%;
  opacity: 0.35;
}

.feature-split {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
}

.clip-strip {
  display: flex;
  gap: 4px;
  flex: 1;
}

.clip-strip i {
  height: 34px;
  border-radius: 5px;
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, var(--surface-3), transparent);
  flex: 1;
}

.clip-strip i:nth-child(1) { background: linear-gradient(160deg, rgba(143,125,255,.5), rgba(143,125,255,.12)); }
.clip-strip i:nth-child(3) { background: linear-gradient(160deg, rgba(79,216,255,.4), rgba(79,216,255,.1)); }
.clip-strip i:nth-child(5) { background: linear-gradient(160deg, rgba(255,134,200,.35), rgba(255,134,200,.08)); }

.publish-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
}

.publish-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 10px;
  color: var(--muted);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
}

.library-grid div {
  aspect-ratio: 9 / 16;
  border-radius: 7px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(143, 125, 255, 0.5), transparent 65%),
    linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
}

.library-grid div:nth-child(2) {
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(79, 216, 255, 0.45), transparent 65%),
    linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
}

.library-grid div:nth-child(3) {
  background:
    radial-gradient(80% 60% at 40% 70%, rgba(255, 134, 200, 0.4), transparent 65%),
    linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
}

/* ---------- product showcase ---------- */

.showcase {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.showcase-row:nth-child(even) .showcase-copy {
  order: 2;
}

.showcase-copy h3 {
  margin-top: 16px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.showcase-copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 46ch;
}

.feature-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.feature-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}

.showcase-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(100% 100% at 0% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  padding: clamp(16px, 2.4vw, 26px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

html[data-theme="light"] .showcase-visual {
  background:
    radial-gradient(100% 100% at 0% 0%, var(--accent-soft), transparent 60%),
    #fff;
}

.showcase-visual .mock-note {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.panel {
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 26px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--stroke);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.panel-head .app-dots i {
  width: 7px;
  height: 7px;
}

.panel-head strong {
  color: var(--text-soft);
  font-weight: 550;
}

.panel-head .panel-tag {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.panel-body {
  padding: 16px;
}

.panel-body--discover {
  display: grid;
  gap: 10px;
}

.topic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.topic-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  background: linear-gradient(140deg, #3b2f8f, #123f52);
  position: relative;
  overflow: hidden;
}

.topic-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 30% 25%, rgba(255, 255, 255, 0.35), transparent 65%);
}

.topic-main {
  min-width: 0;
}

.topic-main strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-main span {
  font-size: 10px;
  color: var(--muted);
}

.topic-row .trend {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(53, 208, 127, 0.12);
  color: #35d07f;
  font-size: 9.5px;
  font-weight: 600;
  flex: none;
}

.topic-row .trend svg {
  width: 10px;
  height: 10px;
}

.panel-body--studio {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
}

.studio-rail {
  display: grid;
  gap: 8px;
}

.studio-rail .phone-mini {
  width: 100%;
}

.studio-controls {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--text-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
}

.control-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.control-row .label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.control-row strong {
  font-weight: 550;
  font-size: 11.5px;
}

.scene-strip {
  display: flex;
  gap: 5px;
}

.scene-strip i {
  width: 26px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--stroke);
  background: linear-gradient(150deg, var(--thumb-a), var(--thumb-b));
}

.scene-strip i.is-active {
  border-color: var(--accent);
}

.panel-body--library {
  display: grid;
  gap: 14px;
}

.lib-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.lib-head .chip {
  padding: 4px 9px;
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.lib-item {
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  overflow: hidden;
}

.lib-thumb {
  aspect-ratio: 9 / 13;
  position: relative;
  background:
    radial-gradient(90% 60% at 25% 15%, rgba(143, 125, 255, 0.55), transparent 62%),
    linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
}

.lib-thumb::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 8px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.lib-thumb.is-cyan {
  background:
    radial-gradient(90% 60% at 70% 20%, rgba(79, 216, 255, 0.5), transparent 62%),
    linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
}

.lib-thumb.is-pink {
  background:
    radial-gradient(90% 60% at 45% 70%, rgba(255, 134, 200, 0.45), transparent 62%),
    linear-gradient(160deg, var(--thumb-a), var(--thumb-b));
}

.lib-meta {
  padding: 7px 8px 8px;
}

.lib-meta strong {
  display: block;
  font-size: 10.5px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-meta span {
  font-size: 9px;
  color: var(--muted);
}

/* ---------- download ---------- */

.download {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(90% 140% at 12% 0%, var(--accent-soft), transparent 55%),
    radial-gradient(80% 120% at 92% 100%, rgba(79, 216, 255, 0.12), transparent 60%),
    var(--surface);
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}

html[data-theme="light"] .download {
  background:
    radial-gradient(90% 140% at 12% 0%, var(--accent-soft), transparent 55%),
    radial-gradient(80% 120% at 92% 100%, rgba(79, 216, 255, 0.14), transparent 60%),
    #fff;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.download h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.download-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 52ch;
}

.download-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.download-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 52ch;
  line-height: 1.55;
}

.download-note svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  opacity: 0.7;
}

.spec-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 22px;
}

.spec-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
}

.spec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-list svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: none;
}

.spec-list b {
  margin-left: auto;
  font-weight: 550;
  color: var(--text-soft);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 11px;
  color: var(--text-soft);
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5b544;
  box-shadow: 0 0 8px rgba(245, 181, 68, 0.6);
}

.status-pill.is-live::before {
  background: #35d07f;
  box-shadow: 0 0 8px rgba(53, 208, 127, 0.6);
}

/* ---------- faq ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: 120px;
}

.faq-aside p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  max-width: 34ch;
}

.faq-aside .text-link {
  margin-top: 22px;
}

.faq-list {
  border-top: 1px solid var(--stroke);
}

.faq-item {
  border-bottom: 1px solid var(--stroke);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 4px;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.25s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  margin-left: auto;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}

.faq-icon svg {
  width: 13px;
  height: 13px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--surface-2);
  border-color: var(--stroke-strong);
}

.faq-answer {
  padding: 0 44px 24px 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 62ch;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer[hidden] {
  display: none;
}

/* ---------- closing cta ---------- */

.closing {
  text-align: center;
  padding-block: clamp(64px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 12%;
  height: 380px;
  background: radial-gradient(ellipse at center, var(--glow-1), transparent 68%);
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.closing h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
}

.closing p {
  margin: 20px auto 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.closing .btn-row {
  margin-top: 32px;
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, transparent, var(--surface));
  padding-block: 56px 32px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.footer-col h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--text-soft);
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-col a[aria-disabled="true"] {
  color: var(--muted);
  opacity: 0.6;
  cursor: not-allowed;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.social {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  color: var(--text-soft);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s;
}

.social svg {
  width: 15px;
  height: 15px;
}

.social:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
  color: var(--text);
}

.social[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.social[aria-disabled="true"]:hover {
  transform: none;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- dialog ---------- */

dialog {
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 440px;
  width: calc(100% - 40px);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(4, 5, 9, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog-body {
  padding: 28px;
}

.dialog-body h2 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.dialog-body p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.dialog-body .btn-row {
  margin-top: 24px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

dialog[open] {
  animation: dialog-in 0.35s var(--ease-out);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 13px;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- inner pages ---------- */

.page-hero {
  padding-top: clamp(110px, 13vh, 146px);
  padding-bottom: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto;
  height: 520px;
  background: radial-gradient(ellipse at center, var(--glow-1), transparent 68%);
  filter: blur(50px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-top: 20px;
  max-width: 20ch;
}

.page-hero .lede {
  margin-top: 20px;
  max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
}

.page-hero .meta-row {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.prose {
  padding-block: clamp(32px, 4vw, 52px) clamp(64px, 8vw, 110px);
}

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.prose-nav {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.prose-nav a {
  color: var(--muted);
  padding: 6px 0;
  border-left: 2px solid var(--stroke);
  padding-left: 14px;
  transition: color 0.25s, border-color 0.25s;
}

.prose-nav a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.prose-body {
  max-width: 68ch;
}

.prose-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 44px;
  scroll-margin-top: 110px;
}

.prose-body h2:first-child {
  margin-top: 0;
}

.prose-body h3 {
  font-size: 1.05rem;
  margin-top: 26px;
}

.prose-body p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.prose-body ul {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.prose-body li::marker {
  color: var(--accent);
}

.prose-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--stroke-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s;
}

.prose-body a:hover {
  text-decoration-color: var(--accent);
}

.prose-card {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.prose-card strong {
  color: var(--text);
  font-weight: 550;
}

.updated {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

/* about + contact blocks */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  padding: 26px 24px;
  border-radius: var(--radius-md);
}

.value-card h3 {
  font-size: 1.05rem;
  margin-top: 18px;
}

.value-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.value-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

.contact-card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-md);
}

.contact-card h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.contact-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.email-box {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  flex-wrap: wrap;
}

.email-box code {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.email-box .copy-btn {
  margin-left: auto;
}

.contact-topics {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.contact-topic {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
}

.contact-topic svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
  flex: none;
}

.contact-topic b {
  display: block;
  color: var(--text);
  font-weight: 550;
  margin-bottom: 3px;
}

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

html.motion-off .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .app-body {
    grid-template-columns: 156px minmax(0, 1fr);
  }
  .app-columns {
    grid-template-columns: minmax(0, 1fr) 238px;
  }
  .preview-col .publish-card {
    display: none;
  }
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .feature,
  .feature--wide {
    grid-column: span 2;
  }
  .feature--tall {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .btn {
    display: none;
  }
  .site-header {
    padding: 8px 0;
  }
  .header-inner {
    margin-inline: 16px;
    padding: 8px 8px 8px 14px;
  }
  .hero {
    padding-top: 116px;
  }
  .app {
    transform: none;
  }
  .app-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .app-side {
    display: none;
  }
  .app-columns {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .step {
    min-height: 0;
  }
  .showcase-row,
  .download-grid,
  .faq-layout,
  .prose-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-row:nth-child(even) .showcase-copy {
    order: 0;
  }
  .faq-aside,
  .prose-nav {
    position: static;
  }
  .faq-aside p {
    max-width: 52ch;
  }
  .prose-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .prose-nav a {
    border-left: 0;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12.5px;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: span 2;
  }
  .value-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 18px;
  }
  .hero h1 {
    letter-spacing: -0.04em;
  }
  .hero-meta {
    gap: 6px 14px;
    font-size: 11.5px;
  }
  .btn {
    height: 50px;
    padding-inline: 22px;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
  .app-main {
    padding: 16px 14px 18px;
  }
  .app-search {
    display: none;
  }
  .app-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview-col {
    display: none;
  }
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .story--extra {
    display: none;
  }
  .strip-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    font-size: 11.5px;
    text-align: left;
  }
  .story-thumb {
    height: 92px;
  }
  .app-chrome-tag {
    display: none;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature,
  .feature--wide,
  .feature--tall {
    grid-column: span 1;
    min-height: 0;
  }
  .download-actions .btn {
    width: 100%;
  }
  .download {
    padding: 26px 20px;
  }
  .spec-card {
    padding: 18px;
  }
  .faq-answer {
    padding-right: 8px;
  }
  .footer-top {
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-body--studio {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-rail {
    max-width: 140px;
  }
  .lib-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-card,
  .contact-card {
    padding: 22px 20px;
  }
  .closing .btn-row .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.45rem;
  }
  .badge {
    font-size: 11.5px;
  }
  .brand span {
    font-size: 16px;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-brand {
    grid-column: span 1;
  }
}

/* mobile sheet */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: 96px 20px 32px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
}

.mobile-menu.is-open {
  display: block;
  animation: menu-in 0.35s var(--ease-out);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6px;
  font-size: 1.25rem;
  font-weight: 520;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--stroke);
}

.mobile-menu nav a svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 24px;
}

body.menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-glow {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-glow {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* restored hero interaction */
.hero-stage:hover .app {
  transform: rotateX(2deg);
}

/* ===== hero window: the navigation is the top bar of the app ===== */
.hero {
  padding-top: clamp(84px, 11vh, 128px);
}

.hero-stage {
  perspective: 2400px;
}

.device-window {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--stroke-strong);
  background: var(--glass-strong);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transform: rotateX(5.5deg);
  transform-origin: 50% 0;
  transition: transform 1.2s var(--ease);
}

.hero-stage:hover .device-window {
  transform: rotateX(1.5deg);
}

html.motion-off .device-window {
  transition: none;
}

.window-bar {
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

html[data-theme="light"] .window-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5));
}

.window-bar .header-inner {
  max-width: none;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.window-screen {
  margin: 0;
}

.window-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-stage:hover .app,
.device-window .app {
  transform: none;
}

/* ===== pinned header once the window bar scrolls away ===== */
.site-header--pinned {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-110%);
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
}

.site-header--pinned.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.site-header--pinned .header-inner {
  background: var(--glass);
  border-color: var(--stroke);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}

html.motion-off .site-header--pinned {
  transition: none;
}

/* ===== real screenshots inside the product tour ===== */
.shot-frame {
  margin: 26px 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow-md);
  background: #070a12;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== mobile overlay close button ===== */
.mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

@media (max-width: 900px) {
  .window-bar .header-inner {
    padding: 8px 10px 8px 12px;
  }

  .device-window {
    border-radius: 18px;
  }
}

@media (max-width: 720px) {
  .shot-frame {
    margin-top: 18px;
    border-radius: 10px;
  }
}

/* screenshots fill the product-tour card edge to edge */
.showcase-visual:has(.shot-frame) {
  padding: 0;
  background: #070a12;
}

.showcase-visual:has(.shot-frame) .mock-note {
  top: 12px;
  right: 12px;
}

.shot-frame {
  margin: 0;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.showcase-row {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

@media (max-width: 900px) {
  .showcase-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Light theme legibility — crisper surfaces, deeper small labels
   ========================================================================== */

html[data-theme="light"] .card {
  background:
    linear-gradient(180deg, #ffffff, #fbfbfe 62%),
    #ffffff;
  box-shadow:
    0 1px 2px rgba(15, 18, 30, 0.05),
    0 16px 34px -30px rgba(15, 18, 30, 0.45);
}

html[data-theme="light"] .card:hover {
  border-color: var(--stroke-strong);
  box-shadow:
    0 1px 2px rgba(15, 18, 30, 0.05),
    0 22px 46px -30px rgba(15, 18, 30, 0.4);
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .value-num,
html[data-theme="light"] .card-num {
  color: #4e5668;
}

html[data-theme="light"] .badge,
html[data-theme="light"] .btn-ghost:not(.cs-btn-ghost) {
  background: #ffffff;
}

html[data-theme="light"] .site-footer,
html[data-theme="light"] .footer-bottom {
  background: var(--bg-soft);
}

html[data-theme="light"] .footer-bottom a:hover,
html[data-theme="light"] .footer-col a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Root overflow guard
   Decorative glows, aurora blobs and orbiting rings sit outside their section
   box on purpose. `clip` stops them from creating a sideways scroll on narrow
   screens without turning <html> into a scroll container (which would break
   the fixed header and sticky prose nav). `hidden` is the fallback for
   browsers without `clip` support.
   -------------------------------------------------------------------------- */
html {
  overflow-x: hidden;
  overflow-x: clip;
}
