:root {
  --bg: #090d16;
  --bg-alt: #0d1320;
  --surface: #121929;
  --surface-hover: #182136;
  --surface-elevated: #172033;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #6366f1;
  --emerald: #10b981;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(9, 13, 22, 0.82);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --surface-elevated: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #4f46e5;
  --emerald: #059669;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --header-bg: rgba(248, 250, 252, 0.86);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark light;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

button {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.16);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

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

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  font-size: 14.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 16px;
}

.mobile-drawer[hidden] {
  display: none !important;
}

@media (min-width: 769px) {
  .mobile-drawer {
    display: none !important;
  }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-nav-links a {
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: clamp(44px, 6vw, 84px) 0 clamp(54px, 7vw, 90px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.25;
}

.hero-glow-left {
  top: -160px;
  left: -120px;
  background: #3b82f6;
}

.hero-glow-right {
  bottom: -180px;
  right: -120px;
  background: #6366f1;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.1vw, 52px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(120deg, #60a5fa 0%, #818cf8 55%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .gradient-text {
  background: linear-gradient(120deg, #2563eb 0%, #4f46e5 65%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  color: var(--text-secondary);
  max-width: 58ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.metric-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

.metric-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Mockup Card */
.hero-visual {
  position: relative;
}

.app-window {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

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

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

.window-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.window-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.14);
  padding: 2px 8px;
  border-radius: 99px;
}

/* Zoomable Screenshot Frames */
.zoomable-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--bg-alt);
  cursor: zoom-in;
  text-align: left;
  overflow: hidden;
  font: inherit;
  color: inherit;
}

.zoomable-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.28s ease, filter 0.2s ease;
}

.zoomable-frame:hover img {
  transform: scale(1.018);
}

.zoom-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(9, 13, 22, 0.82);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.zoomable-frame:hover .zoom-pill {
  background: rgba(37, 99, 235, 0.94);
  transform: translateY(-1px);
}

.hero-shot-btn {
  max-height: 460px;
}

.hero-screenshot-img {
  object-fit: cover;
  object-position: top center;
  max-height: 460px;
}

.floating-phone-card {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.fp-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.floating-phone-card strong {
  display: block;
  font-size: 13px;
}

.floating-phone-card span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: clamp(54px, 7vw, 88px) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Why Built From Scratch Grid */
.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.pillar-icon.blue { background: rgba(59, 130, 246, 0.14); color: #60a5fa; }
.pillar-icon.indigo { background: rgba(99, 102, 241, 0.14); color: #818cf8; }
.pillar-icon.emerald { background: rgba(16, 185, 129, 0.14); color: #34d399; }

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 750;
}

.pillar-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Interactive Feature Showcase (Real Screenshots + Human Copy) */
.showcase-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.showcase-pill {
  padding: 10px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.showcase-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.showcase-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.showcase-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.showcase-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
}

.showcase-panel[hidden] {
  display: none;
}

.panel-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.14);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.panel-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.24;
}

.panel-copy > p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

.check-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid var(--emerald);
}

.check-list strong {
  color: var(--text);
}

.panel-shot {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  background: var(--bg-alt);
}

.panel-shot img {
  max-height: 440px;
  object-fit: cover;
  object-position: top center;
}

/* Full Feature Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-tile {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tile-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.tile-badge.blue { background: rgba(59, 130, 246, 0.16); color: #60a5fa; }
.tile-badge.indigo { background: rgba(99, 102, 241, 0.16); color: #818cf8; }
.tile-badge.emerald { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.tile-badge.amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.tile-badge.rose { background: rgba(244, 63, 94, 0.16); color: #fb7185; }
.tile-badge.cyan { background: rgba(6, 182, 212, 0.16); color: #22d3ee; }

.tile-head h3 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.25;
}

.feature-tile > p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.tile-list {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.tile-list strong {
  color: var(--text);
}

/* Admin Section */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.admin-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.admin-copy > p {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

.admin-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-point {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.admin-point strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.admin-point span {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Lightbox Zoom Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-shell {
  width: min(1160px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px 18px 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lightbox-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.lightbox-meta strong {
  font-size: 16px;
}

.lightbox-meta span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lb-btn:hover {
  border-color: var(--primary);
}

.lb-btn[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.lb-close {
  width: 36px;
  padding: 0;
  justify-content: center;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 240px;
  max-height: 74vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #070b14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 73vh;
  width: auto;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
  cursor: zoom-in;
}

.lightbox-stage.zoomed {
  display: block;
  padding: 12px;
}

.lightbox-stage.zoomed img {
  max-width: none;
  max-height: none;
  width: 150%;
  cursor: zoom-out;
}

.lightbox-caption {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* FAQ */
.faq-container {
  max-width: 860px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* CTA Banner */
.cta-section {
  padding-top: 12px;
}

.cta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.cta-banner-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 30px);
}

.cta-banner-copy p {
  margin: 0;
  color: var(--text-secondary);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand strong {
  display: block;
  font-size: 15px;
}

.footer-brand span {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--text);
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* Mobile Download Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(540px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: modalIn 0.18s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.16);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.modal-title-wrap h3 {
  margin: 0 0 2px;
  font-size: 18px;
}

.modal-title-wrap p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.modal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mp-item {
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.mp-item strong {
  display: block;
  font-size: 12.5px;
}

.mp-item span {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.download-placeholder-notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  font-size: 13px;
}

.download-placeholder-notice strong {
  display: block;
  margin-bottom: 2px;
}

.download-placeholder-notice span {
  color: var(--text-secondary);
}

.store-placeholders-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-placeholder-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.store-placeholder-card:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}

.store-stub-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-stub-left strong {
  display: block;
  font-size: 14px;
}

.store-stub-left span {
  font-size: 12px;
  color: var(--text-secondary);
}

.store-stub-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.store-stub-icon.blue { background: #2563eb; }
.store-stub-icon.emerald { background: #059669; }
.store-stub-icon.indigo { background: #4f46e5; }

.stub-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
}

.stub-feedback {
  margin: 0;
  min-height: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .showcase-panel,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .scratch-grid,
  .catalog-grid,
  .mobile-preview-strip {
    grid-template-columns: 1fr;
  }

  .lightbox-stage.zoomed img {
    width: 210%;
  }

  .metric-sep {
    display: none;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .modal-foot {
    flex-direction: column-reverse;
  }

  .modal-foot .btn {
    width: 100%;
    height: 44px;
  }
}
