/* =========================================================
   NovaUI — Responsive Smart UI Demo
   Replace the brand, colors and content freely.
========================================================= */

:root {
  --primary: #6d5efc;
  --primary-rgb: 109, 94, 252;
  --primary-dark: #5546e7;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --text: #181a20;
  --muted: #6e7280;
  --border: rgba(24, 26, 32, 0.08);
  --header-bg: rgba(247, 248, 252, 0.78);
  --shadow: 0 24px 70px rgba(31, 36, 55, 0.12);
  --shadow-soft: 0 12px 30px rgba(31, 36, 55, 0.08);
  --success: #20a66a;
  --danger: #e14f5e;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

html[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #151821;
  --surface-2: #1b1f2a;
  --text: #f4f6fb;
  --muted: #9da4b4;
  --border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(15, 17, 23, 0.78);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

::selection {
  background: rgba(var(--primary-rgb), .2);
  color: var(--text);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

.page-glow {
  position: fixed;
  pointer-events: none;
  z-index: -5;
  border-radius: 50%;
  filter: blur(20px);
  opacity: .28;
}

.page-glow-one {
  width: 420px;
  height: 420px;
  top: 120px;
  right: -160px;
  background: rgba(var(--primary-rgb), .3);
}

.page-glow-two {
  width: 360px;
  height: 360px;
  left: -180px;
  top: 720px;
  background: rgba(66, 210, 190, .18);
}

/* ================= Header ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: -.04em;
}

.brand > span > span {
  color: var(--primary);
}

.brand-logo {
  width: 34px;
  height: 34px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.desktop-nav a {
  font-size: .93rem;
  font-weight: 700;
  color: var(--muted);
  transition: color .2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.menu-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.05rem;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 11px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  margin: 4px 0;
  transition: .25s ease;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* ================= Buttons ================= */

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), .24);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px rgba(var(--primary-rgb), .32);
}

.btn-soft {
  background: rgba(var(--primary-rgb), .1);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), .13);
}

.btn-dark {
  background: var(--text);
  color: var(--surface);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-success {
  background: rgba(32, 166, 106, .12);
  color: var(--success);
}

.btn-danger {
  background: rgba(225, 79, 94, .12);
  color: var(--danger);
}

.btn-white {
  background: #fff;
  color: #171820;
}

.btn-glass {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.btn-large {
  padding: 15px 22px;
  border-radius: 16px;
}

.full-btn {
  width: 100%;
}

/* ================= Hero ================= */

.hero {
  padding-top: 85px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 70px;
  min-height: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .45);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(var(--primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

.hero h1 {
  font-size: clamp(3.4rem, 6vw, 6.6rem);
  line-height: .95;
  letter-spacing: -.075em;
  max-width: 730px;
  margin-bottom: 28px;
}

.gradient-text {
  background: linear-gradient(110deg, var(--primary), #32b8db 55%, #ff6f91);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--surface-2);
  font-size: .68rem;
  font-weight: 900;
  margin-left: -9px;
}

.avatar-stack span:first-child { margin-left: 0; }

.stars {
  color: #f6b73c;
  letter-spacing: 2px;
  font-size: .8rem;
}

.hero-trust small {
  color: var(--muted);
}

.hero-card-wrap {
  position: relative;
  perspective: 1200px;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 28px;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform .4s ease;
}

.dashboard-card:hover {
  transform: rotateY(0) rotateX(0) translateY(-4px);
}

.mock-topbar {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .68rem;
}

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

.mock-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dadde7;
}

.tiny-round {
  justify-self: end;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), .14);
}

.mock-body {
  display: grid;
  grid-template-columns: 58px 1fr;
  min-height: 450px;
}

.mock-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
}

.mock-sidebar span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-2);
}

.mock-sidebar span.active {
  background: var(--primary);
}

.sidebar-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #49c4d8);
  margin-bottom: 12px;
}

.mock-content {
  padding: 22px;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-row small,
.mini-stat small,
.chart-head small,
.progress-card small {
  color: var(--muted);
  display: block;
  font-size: .68rem;
}

.welcome-row h3 {
  font-size: 1.1rem;
  letter-spacing: -.03em;
}

.mock-profile {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), .12);
  color: var(--primary);
  font-weight: 900;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.mini-stat {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 14px;
}

.mini-stat strong {
  display: block;
  margin: 5px 0 2px;
}

.mini-stat em {
  font-size: .64rem;
  font-style: normal;
  color: var(--success);
}

.chart-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-top: 14px;
  padding: 18px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.chart-head strong {
  display: block;
  font-size: .82rem;
}

.fake-chart {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.fake-chart i {
  flex: 1;
  min-width: 5px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(to top, rgba(var(--primary-rgb), .25), var(--primary));
  animation: bars 1.2s ease both;
}

@keyframes bars {
  from { height: 4%; opacity: .1; }
}

.mock-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.progress-card,
.mock-action {
  min-height: 82px;
  border-radius: 16px;
}

.progress-card {
  background: var(--surface-2);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
}

.progress-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--primary) 0 76%, var(--border) 76% 100%);
  position: relative;
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--surface-2);
  border-radius: 50%;
}

.progress-ring span {
  position: relative;
  z-index: 1;
  font-size: .65rem;
  font-weight: 900;
}

.progress-card strong {
  font-size: .76rem;
  display: block;
}

.mock-action {
  border: 0;
  background: linear-gradient(135deg, var(--primary), #2bbbc0);
  color: #fff;
  font-weight: 900;
}

.floating-badge {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: 14px;
  padding: 10px 13px;
  font-size: .76rem;
  font-weight: 900;
  animation: float 4s ease-in-out infinite;
}

.badge-one { left: -28px; top: 70px; }
.badge-two { right: -18px; bottom: 72px; animation-delay: -1.7s; }

@keyframes float {
  50% { transform: translateY(-9px); }
}

.brand-strip {
  margin-top: 75px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .18em;
}

/* ================= Stats ================= */

.stats-section {
  padding-bottom: 30px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.stat-icon {
  display: block;
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.stat-card strong {
  font-size: 2.15rem;
  letter-spacing: -.06em;
}

.stat-card b {
  color: var(--primary);
  font-size: 1.25rem;
}

.stat-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

/* ================= Sections ================= */

.section-heading {
  max-width: 700px;
  margin-bottom: 46px;
}

.section-heading h2,
.showcase-copy h2,
.faq-copy h2 {
  font-size: clamp(2.4rem, 4.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.section-heading p,
.showcase-copy > p,
.faq-copy > p {
  color: var(--muted);
  margin-top: 18px;
  font-size: 1.02rem;
}

/* ================= Feature cards ================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.feature-card {
  grid-column: span 4;
  min-height: 290px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.feature-card.large-card {
  grid-column: span 8;
}

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

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 24px;
}

.feature-icon.purple { color:#7566ff; background:rgba(117,102,255,.12); }
.feature-icon.cyan { color:#1da5ba; background:rgba(29,165,186,.12); }
.feature-icon.orange { color:#e27c26; background:rgba(226,124,38,.12); }
.feature-icon.green { color:#20a66a; background:rgba(32,166,106,.12); }
.feature-icon.pink { color:#e5488f; background:rgba(229,72,143,.12); }

.feature-card h3 {
  font-size: 1.4rem;
  letter-spacing: -.04em;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  max-width: 560px;
}

.text-btn {
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 900;
  margin-top: 22px;
  cursor: pointer;
}

.theme-demo {
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: flex;
  gap: 12px;
}

.theme-window {
  width: 110px;
  height: 86px;
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.theme-window span {
  display: block;
  height: 7px;
  border-radius: 6px;
  margin-bottom: 7px;
}

.light-demo {
  background: #fff;
}
.light-demo span { background:#e8eaf2; }
.light-demo span:first-child { width: 60%; background: var(--primary); }

.dark-demo {
  background: #151821;
}
.dark-demo span { background:#2c3140; }
.dark-demo span:first-child { width: 60%; background: var(--primary); }

.mini-phone {
  width: 112px;
  height: 150px;
  border: 5px solid var(--text);
  border-radius: 26px;
  position: absolute;
  right: 26px;
  bottom: -24px;
  background: var(--surface-2);
  padding: 22px 14px 14px;
}

.phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 7px;
  border-radius: 7px;
  background: var(--text);
}

.phone-line {
  height: 7px;
  border-radius: 7px;
  background: var(--border);
  margin-bottom: 9px;
}
.phone-line.wide {
  width: 75%;
  background: rgba(var(--primary-rgb), .5);
}

.phone-button {
  height: 24px;
  margin-top: 18px;
  border-radius: 8px;
  background: var(--primary);
}

.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.mini-actions button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: .76rem;
}



/* =========================================================
   OV UI - Interactive Image Playground
   Add-on stylesheet. Safe to use beside css/style.css
========================================================= */

.ov-image-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), .08), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(41, 190, 203, .07), transparent 25%);
}

.ov-image-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.ov-image-heading > div:first-child {
  max-width: 760px;
}

.ov-image-heading h2 {
  font-size: clamp(2.45rem, 4.7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.ov-image-heading p {
  color: var(--muted);
  margin-top: 16px;
  max-width: 700px;
}

.ov-image-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.ov-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ov-image-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.ov-image-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--primary-rgb), .18);
}

.ov-image-card-featured {
  border-color: rgba(var(--primary-rgb), .28);
}

.ov-image-stage {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(var(--primary-rgb), .10), rgba(56, 183, 212, .06)),
    var(--surface-2);
  isolation: isolate;
}

.ov-image-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(7, 10, 18, .34));
  z-index: 1;
  pointer-events: none;
}

.ov-play-img {
  width: 100%;
  height: 330px;
  display: block;
  object-fit: cover;
  transition:
    transform .45s cubic-bezier(.2,.75,.25,1),
    filter .35s ease,
    opacity .3s ease;
  transform-origin: center;
}

.ov-image-stage:hover .ov-play-img {
  transform: scale(1.025);
}

.ov-zoom-stage {
  cursor: zoom-in;
}

.ov-image-number {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  min-width: 42px;
  height: 42px;
  padding-inline: 10px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: rgba(10, 12, 18, .48);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.ov-fullscreen-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: rgba(10, 12, 18, .48);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-weight: 900;
  font-size: 1rem;
  transition: transform .2s ease, background .2s ease;
}

.ov-fullscreen-btn:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(var(--primary-rgb), .82);
}

.ov-image-info {
  padding: 24px;
}

.ov-mini-label {
  color: var(--primary);
  font-size: .67rem;
  font-weight: 950;
  letter-spacing: .16em;
}

.ov-image-info h3 {
  margin: 7px 0 8px;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.ov-image-info p {
  color: var(--muted);
  min-height: 48px;
  font-size: .9rem;
}

.ov-image-controls,
.ov-transform-buttons,
.ov-filter-buttons,
.ov-mix-controls {
  margin-top: 20px;
}

.ov-image-controls {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 10px;
}

.ov-image-controls button,
.ov-transform-buttons button {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  font-size: 1.15rem;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.ov-image-controls button:hover,
.ov-transform-buttons button:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), .3);
  color: var(--primary);
}

.ov-value {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(var(--primary-rgb), .08);
  color: var(--primary);
  font-weight: 900;
  font-size: .84rem;
}

.ov-filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ov-filter-buttons button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 850;
  transition: .2s ease;
}

.ov-filter-buttons button:hover,
.ov-filter-buttons button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

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

.ov-transform-buttons button {
  font-size: 1.2rem;
}

.ov-mix-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ov-mix-controls .btn {
  flex: 1 1 145px;
}

.ov-play-state {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10, 12, 18, .48);
  color: #fff;
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .72rem;
  font-weight: 850;
}

.ov-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62e3a1;
  box-shadow: 0 0 0 4px rgba(98, 227, 161, .12);
}

.ov-play-state.playing .ov-live-dot {
  animation: ovLivePulse 1.3s infinite;
}

@keyframes ovLivePulse {
  50% {
    box-shadow: 0 0 0 8px rgba(98, 227, 161, 0);
  }
}

.ov-four-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  place-content: center;
  text-align: center;
  padding: 45px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 35%, rgba(var(--primary-rgb), .17), transparent 28%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 16px,
      rgba(var(--primary-rgb), .03) 16px,
      rgba(var(--primary-rgb), .03) 32px
    ),
    var(--surface-2);
}

.ov-four-placeholder strong {
  display: block;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -.07em;
  color: var(--primary);
}

.ov-four-placeholder span {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 900;
}

.ov-four-placeholder small {
  display: block;
  max-width: 320px;
  margin: 8px auto 0;
  color: var(--muted);
}

.ov-mix-stage.ov-four-missing .ov-four-placeholder {
  display: grid;
}

.ov-mix-stage.ov-four-missing .ov-mix-img {
  opacity: 0;
}

.ov-mix-stage.ov-slideshow-active .ov-four-placeholder {
  display: none;
}

.ov-mix-stage.ov-slideshow-active .ov-mix-img {
  opacity: 1;
}

.ov-image-tip {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(var(--primary-rgb), .07);
  border: 1px solid rgba(var(--primary-rgb), .12);
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.ov-image-tip > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
}

.ov-image-tip strong {
  display: block;
  font-size: .87rem;
}

.ov-image-tip p {
  margin-top: 2px;
  color: var(--muted);
  font-size: .82rem;
}

/* Lightbox */
.ov-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 30px 90px;
  background: rgba(5, 7, 12, .88);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.ov-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.ov-lightbox-content {
  width: min(1100px, 88vw);
  max-height: 86vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.ov-lightbox-content img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.ov-lightbox-caption {
  color: #fff;
  text-align: center;
}

.ov-lightbox-caption span,
.ov-lightbox-caption strong {
  display: block;
}

.ov-lightbox-caption span {
  color: rgba(255,255,255,.58);
  font-size: .72rem;
}

.ov-lightbox-caption strong {
  margin-top: 3px;
  font-size: .95rem;
}

.ov-lightbox-close,
.ov-lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.ov-lightbox-close:hover,
.ov-lightbox-nav:hover {
  background: rgba(var(--primary-rgb), .78);
}

.ov-lightbox-close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 1.6rem;
}

.ov-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 70px;
  border-radius: 17px;
  font-size: 2rem;
}

.ov-lightbox-prev {
  left: 22px;
}

.ov-lightbox-next {
  right: 22px;
}

@media (max-width: 900px) {
  .ov-image-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ov-image-grid {
    grid-template-columns: 1fr;
  }

  .ov-image-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  }

  .ov-image-stage,
  .ov-play-img {
    height: 100%;
    min-height: 310px;
  }

  .ov-image-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .ov-image-heading-actions,
  .ov-image-heading-actions .btn {
    width: 100%;
  }

  .ov-image-card {
    display: block;
  }

  .ov-image-stage,
  .ov-play-img {
    height: 300px;
    min-height: 300px;
  }

  .ov-image-info p {
    min-height: auto;
  }

  .ov-lightbox {
    padding: 74px 14px 18px;
  }

  .ov-lightbox-content {
    width: 100%;
  }

  .ov-lightbox-content img {
    height: 68vh;
    border-radius: 16px;
  }

  .ov-lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    transform: none;
  }

  .ov-lightbox-prev {
    left: 14px;
  }

  .ov-lightbox-next {
    right: 14px;
  }

  .ov-lightbox-close {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 430px) {
  .ov-image-stage,
  .ov-play-img {
    height: 250px;
    min-height: 250px;
  }

  .ov-image-info {
    padding: 20px 17px;
  }

  .ov-filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .ov-filter-buttons button {
    width: 100%;
  }

  .ov-four-placeholder {
    padding: 28px;
  }
}

.motion-lines {
  margin-top: 28px;
  display: grid;
  gap: 9px;
}

.motion-lines i {
  height: 9px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), .08));
  animation: motionline 2.4s infinite ease-in-out;
  transform-origin: left;
}

.motion-lines i:nth-child(2) { width: 78%; animation-delay: -.4s; }
.motion-lines i:nth-child(3) { width: 62%; animation-delay: -.8s; }
.motion-lines i:nth-child(4) { width: 84%; animation-delay: -1.2s; }

@keyframes motionline {
  50% { transform: scaleX(.72); opacity: .6; }
}

kbd {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 7px;
  padding: 2px 7px;
  font-size: .7rem;
  font-weight: 800;
  box-shadow: inset 0 -1px rgba(0,0,0,.06);
}

/* ================= Playground ================= */

.playground-section {
  background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), .04), transparent);
}

.playground-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
}

.playground-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  position: sticky;
  top: 105px;
}

.play-tab {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.play-tab.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .1);
  border-color: rgba(var(--primary-rgb), .12);
}

.playground-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  min-height: 430px;
  padding: 38px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabIn .35s ease both;
}

@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
}

.mini-label {
  color: var(--primary);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.panel-copy h3,
.counter-demo h3,
.color-demo h3,
.generator-demo h3 {
  font-size: 2rem;
  letter-spacing: -.05em;
  margin: 8px 0 7px;
}

.panel-copy p,
.color-demo p,
.generator-demo p {
  color: var(--muted);
}

.button-lab {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.live-status > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(32,166,106,.1);
}

.live-status small {
  color: var(--muted);
  display: block;
  font-size: .7rem;
}

.live-status strong {
  font-size: .86rem;
}

.counter-demo {
  text-align: center;
  padding-top: 35px;
}

.big-counter {
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.08em;
  color: var(--primary);
  margin: 28px 0;
}

.counter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.counter-btn {
  width: 62px;
  height: 52px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  font-size: 1.25rem;
}

.counter-btn.reset {
  width: auto;
  padding: 0 18px;
  font-size: .82rem;
}

.color-demo {
  max-width: 650px;
}

.color-options {
  display: flex;
  gap: 12px;
  margin: 28px 0;
}

.color-dot {
  --dot: #6d5efc;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--dot);
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.color-dot:hover,
.color-dot.active {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--dot);
}

.color-preview {
  margin-top: 24px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.color-preview span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
}

.color-preview strong {
  font-size: 1.05rem;
}

.generator-demo {
  max-width: 660px;
  padding: 24px 0;
}

#ideaText {
  min-height: 70px;
  font-size: 1.12rem;
  margin: 18px 0 24px;
}

/* ================= Device showcase ================= */

.split-showcase {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 80px;
}

.check-list {
  margin-top: 28px;
  display: grid;
  gap: 13px;
}

.check-list div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
}

.check-list span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), .1);
  color: var(--primary);
  font-size: .72rem;
}

.device-showcase {
  min-height: 470px;
  position: relative;
  display: grid;
  place-items: center;
}

.laptop {
  width: 88%;
}

.laptop-screen {
  aspect-ratio: 16/10;
  background: var(--surface);
  border: 8px solid #262a34;
  border-radius: 20px 20px 7px 7px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.laptop-base {
  width: 110%;
  height: 14px;
  margin-left: -5%;
  border-radius: 3px 3px 20px 20px;
  background: linear-gradient(#d7d9df, #9296a1);
}

.screen-nav {
  height: 11%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}

.screen-nav span {
  width: 6px;
  height: 6px;
  background: #ccd0db;
  border-radius: 50%;
}

.screen-layout {
  height: 89%;
  display: grid;
  grid-template-columns: 18% 82%;
}

.screen-side {
  border-right: 1px solid var(--border);
  background: var(--surface-2);
}

.screen-main {
  padding: 20px;
}

.screen-hero {
  height: 44%;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .18), rgba(50,184,219,.16));
}

.screen-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.screen-cards i {
  height: 62px;
  border-radius: 10px;
  background: var(--surface-2);
}

.phone {
  position: absolute;
  right: 1%;
  bottom: 6%;
  width: 150px;
  height: 298px;
  border-radius: 30px;
  background: #1b1f27;
  padding: 8px;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.phone-speaker {
  position: absolute;
  width: 48px;
  height: 5px;
  background: #454a55;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  z-index: 2;
}

.phone-ui {
  width: 100%;
  height: 100%;
  border-radius: 23px;
  background: var(--surface);
  padding: 30px 12px 12px;
}

.phone-top {
  width: 56%;
  height: 8px;
  background: var(--primary);
  border-radius: 7px;
}

.phone-title {
  width: 75%;
  height: 15px;
  background: var(--text);
  opacity: .85;
  border-radius: 6px;
  margin: 18px 0;
}

.phone-card-ui {
  height: 88px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .16), rgba(50,184,219,.13));
  margin-bottom: 10px;
}

.phone-card-ui.small {
  height: 54px;
  background: var(--surface-2);
}

.phone-cta {
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  margin-top: 12px;
}

/* ================= Pricing ================= */

.pricing-section {
  background: rgba(var(--primary-rgb), .025);
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -8px 0 34px;
}

.billing-label {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
}

.billing-label.active {
  color: var(--text);
}

.billing-label em {
  color: var(--success);
  font-style: normal;
  font-size: .7rem;
  margin-left: 4px;
}

.switch {
  width: 54px;
  height: 30px;
  border-radius: 30px;
  border: 0;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
  padding: 4px;
  cursor: pointer;
  transition: background .25s ease;
}

.switch span {
  width: 22px;
  height: 22px;
  display: block;
  background: var(--primary);
  border-radius: 50%;
  transition: transform .25s ease;
}

.switch.yearly {
  background: rgba(var(--primary-rgb), .13);
}

.switch.yearly span {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.price-card.featured {
  border-color: rgba(var(--primary-rgb), .45);
  box-shadow: 0 20px 55px rgba(var(--primary-rgb), .14);
  transform: translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: .68rem;
  padding: 7px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-head > span {
  font-size: 1.25rem;
  font-weight: 900;
}

.price-head p {
  color: var(--muted);
  font-size: .86rem;
  margin-top: 4px;
}

.price {
  display: flex;
  align-items: flex-end;
  margin: 28px 0 22px;
}

.price small {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 4px 13px 0;
}

.price strong {
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: -.07em;
}

.price span {
  color: var(--muted);
  margin: 0 0 8px 6px;
  font-size: .8rem;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 28px;
}

/* ================= FAQ ================= */

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.faq-copy .btn {
  margin-top: 26px;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 17px;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  font-weight: 850;
}

.accordion-btn span {
  color: var(--primary);
  font-size: 1.25rem;
  transition: transform .25s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}

.accordion-content p {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: .92rem;
}

.accordion-item.active .accordion-content {
  max-height: 180px;
}

.accordion-item.active .accordion-btn span {
  transform: rotate(45deg);
}

/* ================= CTA ================= */

.cta-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 34px;
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.19), transparent 30%),
    linear-gradient(135deg, var(--primary), #3a52d8 55%, #1a9bb8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.cta-card > *:not(.cta-grid-pattern) {
  position: relative;
  z-index: 1;
}

.mini-label.light {
  color: rgba(255,255,255,.75);
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin: 8px 0 12px;
  max-width: 650px;
}

.cta-card p {
  color: rgba(255,255,255,.76);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ================= Footer ================= */

.site-footer {
  padding: 35px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid > div > p {
  color: var(--muted);
  max-width: 440px;
  font-size: .9rem;
}

.footer-links {
  display: flex;
  gap: 70px;
}

.footer-links > div {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-links strong {
  font-size: .82rem;
  margin-bottom: 4px;
}

.footer-links a,
.link-button {
  color: var(--muted);
  font-size: .84rem;
}

.link-button {
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* ================= Modal ================= */

.modal-backdrop,
.command-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 8, 15, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.modal-backdrop.open,
.command-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: min(100%, 480px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 32px;
  position: relative;
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 1.4rem;
}

.modal-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), .12);
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.modal-card h3 {
  font-size: 1.7rem;
  letter-spacing: -.04em;
  margin-top: 5px;
}

.modal-card > p {
  color: var(--muted);
  margin-top: 8px;
}

.modal-card form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.modal-card label {
  display: grid;
  gap: 7px;
  font-size: .8rem;
  font-weight: 800;
}

.modal-card input,
.modal-card select {
  width: 100%;
  height: 48px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.modal-card input:focus,
.modal-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .1);
}

/* ================= Command menu ================= */

.command-backdrop {
  place-items: start center;
  padding-top: min(18vh, 150px);
}

.command-card {
  width: min(100%, 580px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(-12px) scale(.98);
  transition: transform .22s ease;
}

.command-backdrop.open .command-card {
  transform: translateY(0) scale(1);
}

.command-search {
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.command-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  min-width: 0;
}

.command-list {
  padding: 9px;
}

.command-list button {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 13px;
  padding: 12px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.command-list button:hover {
  background: var(--surface-2);
}

.command-list button > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), .1);
  color: var(--primary);
}

.command-list strong,
.command-list small {
  display: block;
}

.command-list strong {
  font-size: .84rem;
}

.command-list small {
  color: var(--muted);
  font-size: .7rem;
  margin-top: 1px;
}

/* ================= Toast ================= */

.toast-stack {
  position: fixed;
  z-index: 500;
  right: 18px;
  top: 92px;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 250px;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 15px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  font-weight: 800;
  animation: toastIn .3s ease both;
}

.toast::before {
  content: "✓";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), .1);
  color: var(--primary);
}

.toast.out {
  animation: toastOut .3s ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}

.pulse-now {
  animation: clickPulse .55s ease;
}

@keyframes clickPulse {
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(var(--primary-rgb), .08);
  }
}

/* ================= Reveal animation ================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* ================= Responsive ================= */

@media (max-width: 1024px) {
  .hero-grid,
  .split-showcase,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 55px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-card-wrap {
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }

  .feature-card,
  .feature-card.large-card,
  .feature-card.wide-card {
    grid-column: span 6;
  }

  .split-showcase {
    gap: 40px;
  }

  .device-showcase {
    max-width: 740px;
    width: 100%;
    margin-inline: auto;
  }

  .faq-grid {
    gap: 36px;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 85px 0;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-menu {
    display: grid;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    gap: 5px;
    transition: max-height .35s ease, opacity .25s ease, padding .35s ease;
  }

  .mobile-menu.open {
    max-height: 360px;
    opacity: 1;
    padding: 10px 20px 22px;
    border-top: 1px solid var(--border);
  }

  .mobile-menu a {
    padding: 11px 6px;
    font-weight: 800;
    color: var(--muted);
  }

  .hero {
    padding-top: 55px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 5.4rem);
  }

  .dashboard-card {
    transform: none;
  }

  .floating-badge {
    display: none;
  }

  .brand-strip {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .brand-strip::-webkit-scrollbar {
    display: none;
  }

  .brand-strip span {
    flex: 0 0 auto;
  }

  .stat-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card.featured {
    transform: none;
  }

  .pricing-grid .price-card:last-child {
    grid-column: 1 / -1;
  }

  .playground-layout {
    grid-template-columns: 1fr;
  }

  .playground-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .playground-nav::-webkit-scrollbar {
    display: none;
  }

  .play-tab {
    width: auto;
    flex: 0 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand-logo {
    width: 31px;
    height: 31px;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    letter-spacing: -.06em;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    align-items: flex-start;
    flex-direction: column;
  }

  .mock-body {
    grid-template-columns: 42px 1fr;
    min-height: 375px;
  }

  .mock-sidebar {
    gap: 15px;
  }

  .mock-sidebar span {
    width: 17px;
    height: 17px;
  }

  .mock-content {
    padding: 15px;
  }

  .mini-stats {
    gap: 7px;
  }

  .mini-stat {
    padding: 10px;
  }

  .mini-stat strong {
    font-size: .8rem;
  }

  .chart-card {
    padding: 13px;
  }

  .fake-chart {
    height: 100px;
  }

  .mock-bottom-row {
    grid-template-columns: 1fr;
  }

  .mock-action {
    min-height: 48px;
  }

  .brand-strip {
    margin-top: 48px;
  }

  .stat-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid .price-card:last-child {
    grid-column: auto;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card.large-card,
  .feature-card.wide-card {
    grid-column: auto;
    min-height: auto;
  }

  .theme-demo,
  .mini-phone {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 24px;
  }

  .theme-demo {
    justify-content: flex-start;
  }

  .playground-panel {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .panel-copy h3,
  .counter-demo h3,
  .color-demo h3,
  .generator-demo h3 {
    font-size: 1.65rem;
  }

  .button-lab .btn {
    flex: 1 1 44%;
  }

  .color-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .device-showcase {
    min-height: 330px;
  }

  .laptop {
    width: 100%;
  }

  .phone {
    width: 105px;
    height: 215px;
    right: -3px;
  }

  .phone-ui {
    padding: 24px 8px 8px;
  }

  .phone-card-ui {
    height: 58px;
  }

  .phone-card-ui.small {
    height: 38px;
  }

  .screen-main {
    padding: 10px;
  }

  .screen-cards i {
    height: 40px;
  }

  .cta-card {
    padding: 30px 23px;
    border-radius: 26px;
  }

  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }

  .footer-links {
    gap: 45px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .toast-stack {
    left: 14px;
    right: 14px;
    top: 82px;
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .modal-card {
    padding: 28px 20px 22px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.85rem;
  }

  .theme-window {
    width: 96px;
  }

  .button-lab {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button-lab .btn {
    width: 100%;
    padding-inline: 10px;
  }

  .color-dot {
    width: 39px;
    height: 39px;
  }
}

@media (min-width: 1500px) {
  :root {
    --container: 1320px;
  }

  .hero-grid {
    min-height: 720px;
  }

  .dashboard-card {
    max-width: 650px;
    margin-left: auto;
  }

  .hero h1 {
    font-size: 6.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
