/* SnapItID — MoveNova-inspired dark theme */

:root {
  --bg: #0a0a0f;
  --bg-2: #0d0d15;
  --surface: #12121a;
  --surface-2: #161622;
  --surface-3: #1a1a2e;
  --fg: #f0f0f5;
  --muted: #8888a0;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --brand: #00f5a0;
  --brand-strong: #00ffac;
  --brand-2: #00d4ff;
  --brand-soft: rgba(0, 245, 160, 0.12);
  --brand-glow: rgba(0, 245, 160, 0.25);
  --brand-glow-soft: rgba(0, 245, 160, 0.05);
  --secondary-glow: rgba(0, 212, 255, 0.18);
  --danger: #ef4444;
  --warn: #fbbf24;
  --ok: var(--brand);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px var(--brand-glow), 0 0 80px rgba(0, 245, 160, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- ambient brand glows ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-mesh .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}
.glow-a {
  width: 620px; height: 620px;
  top: -10%; left: -10%;
  background: var(--brand);
  opacity: 0.07;
}
.glow-b {
  width: 520px; height: 520px;
  top: 30%; right: -15%;
  background: var(--brand-2);
  opacity: 0.06;
}
.glow-c {
  width: 700px; height: 700px;
  bottom: -25%; left: 25%;
  background: var(--brand);
  opacity: 0.04;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0a0f;
  box-shadow: 0 6px 24px rgba(0, 245, 160, 0.25);
}
.brand-name { font-size: 1.05rem; }
.brand-dot {
  color: var(--brand);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--fg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle-line {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links .nav-cta {
  color: var(--brand);
  border: 1px solid var(--brand-soft);
  background: var(--brand-soft);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-links .nav-cta:hover {
  background: rgba(0, 245, 160, 0.18);
  border-color: var(--brand);
  color: var(--brand-strong);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 28px 8px 12px;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7' fill='none'><path d='M1 1.25L5 5.25L9 1.25' stroke='%238888a0' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.lang-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

@media (max-width: 900px) {
  .nav-inner {
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    width: min(340px, calc(100vw - 48px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(13, 13, 21, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a,
  .nav-links .nav-cta,
  .nav-links .lang-select {
    width: 100%;
  }

  .nav-links a,
  .nav-links .nav-cta {
    border-radius: 12px;
    padding: 10px 12px;
  }

  .nav-links .nav-cta {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .nav-links {
    right: 16px;
    width: calc(100vw - 32px);
  }

  .lang-select {
    font-size: 0.82rem;
    padding: 7px 26px 7px 10px;
  }
}

main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- shared ---------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}
.muted { color: var(--muted); }
.muted-tag { color: var(--muted); font-weight: 400; font-size: 0.85em; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 4px 0 12px;
}
.section-head .muted {
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn.small { padding: 10px 16px; font-size: 0.88rem; }
.btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #07111a;
  box-shadow: 0 8px 30px rgba(0, 245, 160, 0.25);
}
.btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0, 245, 160, 0.35);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--brand-soft);
  color: var(--brand);
}
.btn.outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand-soft);
}
.btn.outline:hover:not(:disabled) {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(0, 245, 160, 0.2);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 8px; height: 8px;
}
.pulse-dot span:first-child {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.75;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse-dot span:last-child {
  position: relative;
  display: inline-flex;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 38px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-stats > div {
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--brand);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-stats span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- card section / studio ---------- */
.card-section {
  padding: 24px 0 80px;
}
.studio-card {
  background: linear-gradient(160deg, rgba(18, 18, 26, 0.85), rgba(13, 13, 21, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow);
}
@media (max-width: 720px) { .studio-card { padding: 24px 18px; } }

.studio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.studio-header h2 {
  font-size: 1.7rem;
  margin-top: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--surface-3);
  color: var(--muted);
  border: 1px solid var(--line);
}
.pill.ok {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: rgba(0, 245, 160, 0.25);
}
.pill.err {
  background: rgba(239, 68, 68, 0.1);
  color: #ff8585;
  border-color: rgba(239, 68, 68, 0.25);
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.step:hover { border-color: var(--line-strong); }
.step-marker {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 245, 160, 0.2);
}
.step-body { min-width: 0; }
.step-body h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; padding: 20px 18px; }
  .step-marker { width: 40px; height: 40px; }
}

/* ---------- fields ---------- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
select, input[type="text"] {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%238888a0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ---------- rules panel ---------- */
.rules-panel {
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.rules-panel strong { color: var(--fg); font-weight: 600; }
.rules-panel .rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 18px;
  margin-top: 6px;
}
.rules-panel .rules-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.rules-panel .rules-grid span:first-child {
  color: var(--muted);
}
.rules-panel .rules-grid span:last-child {
  color: var(--fg);
  font-weight: 500;
}

/* ---------- source tabs ---------- */
.source-tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--surface-3);
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  gap: 4px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { color: var(--fg); }
.tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #07111a;
  font-weight: 600;
}
.pane { display: none; }
.pane.active { display: block; }

/* ---------- dropzone ---------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 38px 24px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  outline: none;
}
.dropzone.dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 4px rgba(0, 245, 160, 0.08);
}
.dz-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 4px;
}
.dropzone strong { font-size: 1rem; color: var(--fg); font-weight: 600; }
.dropzone span { font-size: 0.86rem; color: var(--muted); }

/* ---------- camera ---------- */
.camera-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  margin-bottom: 14px;
}
#videoPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-hint {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.18);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.camera-hint strong { color: var(--brand-2); font-weight: 600; }
.camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- preview grid ---------- */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
@media (max-width: 640px) { .preview-grid { grid-template-columns: 1fr; } }

.preview-block { display: flex; flex-direction: column; gap: 8px; }
.preview-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}
.preview-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preview-frame img,
.preview-frame canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: none;
}
.preview-frame.has-content img,
.preview-frame.has-content canvas {
  display: block;
}
.preview-frame.has-content .placeholder { display: none; }
.placeholder {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.output-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  font-family: "Geist Mono", ui-monospace, monospace;
  word-break: break-word;
}

/* ---------- controls ---------- */
.controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (max-width: 700px) { .controls { grid-template-columns: 1fr; } }
.control { display: flex; flex-direction: column; gap: 8px; }
.control label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--surface-3);
  border-radius: 4px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px var(--brand-glow);
  border: 2px solid #0a0a0f;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--brand);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #0a0a0f;
  box-shadow: 0 0 12px var(--brand-glow);
}
input[type="color"] {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  padding: 4px;
}
input[type="color"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ---------- action row ---------- */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 12px;
}

@media (max-width: 560px) {
  .action-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.status-line {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 1.5em;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  color: var(--muted);
}
.status-line:empty { display: none; }
.status-line.ok {
  background: var(--brand-soft);
  border-color: rgba(0, 245, 160, 0.22);
  color: var(--brand);
}
.status-line.err {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ff9999;
}

.enhance-hint {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.5;
  background: rgba(0, 245, 160, 0.06);
  border: 1px solid rgba(0, 245, 160, 0.22);
  color: var(--brand);
}
.enhance-hint:empty { display: none; }

/* ---------- how it works ---------- */
.how-section, .features-section, .examples-section {
  padding: 100px 0;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.how-card:hover {
  border-color: rgba(0, 245, 160, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}
.how-num {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(0, 245, 160, 0.08);
  letter-spacing: -0.04em;
  pointer-events: none;
}
.how-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #07111a;
  margin-bottom: 18px;
}
.how-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.how-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- features ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}
.feat-card:hover {
  border-color: rgba(0, 245, 160, 0.2);
  background: rgba(255, 255, 255, 0.035);
}
.feat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
}
.feat-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feat-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(13, 13, 21, 0.85);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner .brand { font-size: 0.95rem; }
.footer-inner .brand-mark { width: 32px; height: 32px; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s ease-out forwards;
}
.reveal:nth-of-type(2) { animation-delay: 0.1s; }
.reveal:nth-of-type(3) { animation-delay: 0.2s; }
.reveal:nth-of-type(4) { animation-delay: 0.3s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .pulse-dot span:first-child { animation: none; }
}

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 160, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 245, 160, 0.45); }

/* ---------- examples (before / after) ---------- */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 900px) { .examples-grid { grid-template-columns: 1fr; } }
.example-card {
  position: relative;
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
}
.example-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #fff;
  object-fit: cover;
  aspect-ratio: 35 / 45;
}
.example-card figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.example-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  z-index: 1;
}
.example-tag.tag-after {
  background: var(--brand);
  color: #04221a;
}
.examples-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
