:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --navy: #1e2a3a;
  --navy-light: #2d3f56;
  --navy-deep: #141c28;
  --text: #1a2332;
  --muted: #64748b;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #ffedd5;
  --blue: #3b82f6;
  --green: #16a34a;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

.site-main { min-height: calc(100vh - 280px); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(30, 42, 58, 0.04);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.btn-white { background: #fff; color: var(--accent-dark); }
.btn-white:hover { background: #fef3c7; }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }
.btn-nav { padding: 9px 18px; font-size: 0.88rem; }

.btn-arrow::after {
  content: "→";
  transition: transform 0.15s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.site-logo-name .accent,
.site-logo-name strong { color: var(--accent); }

.site-logo-tag {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--navy); }

.site-nav a.active { font-weight: 600; }

.site-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ── Hero (home) ── */
.hero-home {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 72px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-home h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-home h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 520px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.hero-trust-item {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-trust-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
}

.hero-visual-wrap {
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: 10% -5% -10% -5%;
  background: radial-gradient(ellipse, rgba(249,115,22,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-visual-wrap {
  position: relative;
  min-height: 380px;
}

/* ── Home live preview (packer + 3D embed) ── */
.home-live-preview {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.home-live-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.home-live-preview-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}

.home-live-preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-live-preview-ref {
  font-size: 0.95rem;
  color: var(--navy);
}

.home-live-preview-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.home-live-preview-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  flex-shrink: 0;
}

.home-live-preview-expand:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.home-live-preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1px;
  background: var(--border);
}

.home-live-preview-panel {
  background: #0f172a;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-live-preview-panel-label {
  margin: 0;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #1e293b;
}

.home-live-preview-frame {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
  background: #0f172a;
}

.home-live-preview-frame-app {
  background: var(--bg);
}

.home-live-preview-foot {
  display: flex;
  justify-content: center;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.home-live-preview-error {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #b91c1c;
  text-align: center;
}

.hero-lifestyle-photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-mockup-float {
  position: absolute;
  right: -12px;
  bottom: -24px;
  width: min(92%, 420px);
  transform: scale(0.88);
  transform-origin: bottom right;
  pointer-events: none;
}

.hero-mockup-float .product-mockup {
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.lifestyle-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.lifestyle-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.lifestyle-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.lifestyle-card-wide img {
  height: 100%;
  min-height: 280px;
}

.lifestyle-card figcaption {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-page {
  max-width: 760px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-body h2 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  color: var(--navy);
}

.legal-body p,
.legal-body li {
  color: var(--text);
  line-height: 1.65;
}

.code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}

.contact-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.contact-status-ok {
  background: #ecfdf5;
  color: #166534;
}

.contact-status-err {
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 960px) {
  .lifestyle-grid {
    grid-template-columns: 1fr;
  }

  .home-live-preview-grid {
    grid-template-columns: 1fr;
  }

  .home-live-preview-frame {
    height: 300px;
  }

  .hero-mockup-float {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 16px;
    pointer-events: auto;
  }
}

.hero-visual-wrap .product-mockup {
  position: relative;
  z-index: 1;
}

/* ── Stats strip ── */
.stats-strip {
  background: var(--navy);
  padding: 28px 32px;
}

.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 800;
}

.stat-item span {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* ── Section shells ── */
.section {
  padding: 72px 32px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-dark {
  background: var(--navy);
  color: #c8d4e4;
}

.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: #94a3b8; }

/* ── Module cards ── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.module-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(249,115,22,0.25);
}

.module-card.featured {
  border-color: rgba(249,115,22,0.35);
  background: linear-gradient(160deg, #fff 0%, #fffbf7 100%);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.module-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.module-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.55;
}

.module-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.module-link::after {
  content: "→";
  transition: transform 0.15s;
}

.module-card:hover .module-link::after { transform: translateX(3px); }

/* ── Feature cards (dark) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--navy);
}

.step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 64px 32px;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: #fff;
}

.cta-band p {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 32px 48px;
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.page-hero-text h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-hero-text p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-hero-visual {
  display: flex;
  justify-content: center;
}

/* ── Split feature rows ── */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.split-feature:last-child { margin-bottom: 0; }

.split-feature.reverse { direction: rtl; }
.split-feature.reverse > * { direction: ltr; }

.split-feature h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: var(--navy);
}

.split-feature p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.check-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.visual-card.dark {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.06);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-grid-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
}

.price-annual {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.price-save {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.price-features-muted li {
  color: var(--muted);
}

.price-features-muted li::before {
  content: "—";
  color: var(--muted);
}

.pricing-billing-note {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.price-card.highlight {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.price-card.highlight::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-tier {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--navy);
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.price-amount small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.price-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.price-features li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.price-card .btn { width: 100%; }

/* ── Contact form ── */
.contact-section {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/* ── Product mockup ── */
.product-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-dot:first-child { background: #f87171; }
.mockup-dot:nth-child(2) { background: #fbbf24; }
.mockup-dot:nth-child(3) { background: #4ade80; }

.mockup-url {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.mockup-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 320px;
}

.mockup-sidebar {
  background: var(--navy);
  padding: 14px 10px;
}

.mockup-brand-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: #94a3b8;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mockup-brand-mini strong { color: var(--accent); }

.mockup-nav-item {
  font-size: 0.72rem;
  color: #94a3b8;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.mockup-nav-item.active {
  background: rgba(249,115,22,0.18);
  color: #fff;
}

.mockup-content {
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mockup-pill {
  font-size: 0.68rem;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
}

.mockup-pill.accent {
  background: var(--accent-soft);
  border-color: rgba(249,115,22,0.3);
  color: var(--accent-dark);
  font-weight: 600;
}

.mockup-stage {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  flex: 1;
}

.mockup-viewer {
  background: #1a2332;
  border-radius: 8px;
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.mockup-3d-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 400px;
}

.mockup-bin {
  width: 120px;
  height: 90px;
  position: relative;
  transform: rotateX(55deg) rotateZ(-35deg);
  transform-style: preserve-3d;
}

.mockup-bin::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(59,130,246,0.15);
  border: 2px solid rgba(59,130,246,0.5);
  border-radius: 4px;
}

.mockup-item {
  position: absolute;
  border-radius: 2px;
}

.mockup-item.i1 { width: 40px; height: 28px; background: #3b82f6; left: 8px; top: 20px; }
.mockup-item.i2 { width: 32px; height: 24px; background: var(--accent); left: 52px; top: 24px; }
.mockup-item.i3 { width: 36px; height: 20px; background: #22c55e; left: 12px; top: 52px; }
.mockup-item.i4 { width: 28px; height: 28px; background: #a855f7; left: 56px; top: 50px; }

.mockup-viewer-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}

.mockup-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.68rem;
}

.mockup-panel-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 0.72rem;
}

.mockup-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.mockup-step span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mockup-step.active {
  color: var(--navy);
  font-weight: 600;
}

.mockup-step.active span {
  background: var(--accent);
  color: #fff;
}

.mockup-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
  text-align: center;
}

.mockup-stat-row small {
  display: block;
  font-size: 0.58rem;
  color: var(--muted);
}

.mockup-stat-row strong {
  font-size: 0.78rem;
  color: var(--navy);
}

/* ── Warehouse station preview ── */
.station-preview {
  background: #0f1419;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #e2e8f0;
  border: 1px solid #1e293b;
}

.station-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1e293b;
}

.station-preview-order {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.station-preview-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}

.station-preview-meta {
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: right;
}

.station-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.station-product-tile {
  background: #1e293b;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.station-product-tile .qty {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.station-product-tile .name {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ── Logo showcase ── */
.logo-showcase {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-showcase img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.logo-showcase h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: var(--navy);
}

.logo-showcase p {
  margin: 0;
  color: var(--muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-deep);
  color: #94a3b8;
  padding: 56px 32px 0;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo .site-logo-name { color: #fff; }

.footer-blurb {
  margin: 16px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #94a3b8;
  padding: 5px 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom-links a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-home,
  .page-hero-inner { grid-template-columns: 1fr; }

  .hero-visual-wrap { order: -1; }
  .page-hero-visual { order: -1; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-grid-two { max-width: 400px; }
  .split-feature { grid-template-columns: 1fr; gap: 32px; }
  .split-feature.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 12px 20px; }

  .site-nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .btn-nav {
    margin-top: 12px;
    text-align: center;
  }

  .hero-home,
  .section,
  .page-hero,
  .cta-band { padding-left: 20px; padding-right: 20px; }

  .hero-home { padding-top: 40px; }
  .hero-actions { justify-content: center; }
  .hero-home { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }

  .stats-inner,
  .steps { grid-template-columns: 1fr; }

  .mockup-body { grid-template-columns: 100px 1fr; }
  .mockup-stage { grid-template-columns: 1fr; }
  .mockup-panel { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .station-product-grid { grid-template-columns: 1fr 1fr; }

  .auth-grid { grid-template-columns: 1fr; }
  .portal-header { flex-direction: column; align-items: flex-start; }
}

/* ── Auth / login ── */
.auth-page {
  padding: 48px 32px 80px;
  min-height: calc(100vh - 200px);
}

.auth-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.auth-logo {
  border-radius: 14px;
  margin-bottom: 20px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--navy);
}

.auth-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.auth-form .form-row { margin-bottom: 16px; }

.auth-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-foot a { color: var(--accent-dark); font-weight: 600; }

/* ── Demo account card ── */
.demo-account-card {
  background: var(--navy);
  color: #c8d4e4;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.06);
}

.demo-account-badge {
  display: inline-block;
  background: rgba(249,115,22,0.2);
  color: #fb923c;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.demo-account-card h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.15rem;
}

.demo-account-company {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.copy-field {
  margin-bottom: 16px;
}

.copy-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.copy-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #64748b;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 10px;
}

.copy-row-block {
  align-items: flex-start;
}

.copy-row code,
.copy-row pre {
  flex: 1;
  margin: 0;
  font-size: 0.78rem;
  color: #e2e8f0;
  word-break: break-all;
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
  background: transparent;
}

.btn-copy {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(249,115,22,0.2);
  color: #fb923c;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-copy:hover { background: rgba(249,115,22,0.35); }

/* ── Customer portal ── */
.portal-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 32px 100px;
}

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.portal-header h1 {
  margin: 8px 0 6px;
  font-size: 1.8rem;
  color: var(--navy);
}

.portal-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portal-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.portal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.portal-panel h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--navy);
}

.panel-desc {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.panel-desc code {
  font-size: 0.82rem;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.panel-note {
  margin: 16px 0 0;
  font-size: 0.85rem;
}

.panel-note a { color: var(--accent-dark); font-weight: 600; }

.portal-links h2 {
  margin: 0 0 20px;
  font-size: 1.2rem;
  color: var(--navy);
}

.portal-panel .copy-row {
  background: #f8fafc;
  border-color: var(--border);
}

.portal-panel .copy-row code,
.portal-panel .copy-row pre {
  color: var(--text);
}

.portal-panel .btn-copy {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ── Live preview page (visual-first, minimal copy) ── */
.demo-showcase-page {
  padding: 0 0 24px;
}

.demo-showcase-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.demo-showcase-toolbar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.demo-showcase-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-showcase-ref {
  font-size: 1.05rem;
  color: var(--navy);
}

.demo-showcase-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.demo-showcase-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-showcase-error {
  max-width: 1400px;
  margin: 12px auto 0;
  padding: 12px 24px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.demo-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.demo-showcase-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: min(78vh, 920px);
}

.demo-showcase-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.demo-showcase-panel-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.demo-showcase-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
}

.demo-showcase-expand:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.demo-showcase-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #0f172a;
}

.demo-showcase-frame-app {
  background: var(--bg);
}

.demo-complete-inline {
  max-width: 1400px;
  margin: 12px auto 0;
  padding: 10px 24px;
  text-align: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.demo-complete-inline p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--navy);
}

@media (max-width: 960px) {
  .demo-showcase-grid {
    grid-template-columns: 1fr;
  }

  .demo-showcase-panel {
    min-height: 420px;
  }
}

/* ── Demo launcher page (legacy) ── */
.demo-page-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 32px 40px;
}

.demo-page-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
}

.demo-page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.demo-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.demo-step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.demo-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-step-body {
  flex: 1;
  min-width: 0;
}

.demo-step-body h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--navy);
}

.demo-step-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.demo-step-tag {
  display: inline-block;
  font-size: 0.68rem;
  background: #f1f5f9;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.demo-complete {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 40px;
  padding: 32px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
}

.demo-complete h2 {
  margin: 0 0 8px;
  color: var(--navy);
}

.demo-showcase-hero {
  max-width: 820px;
}

.demo-showcase-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.demo-showcase-section {
  padding-top: 0;
  padding-bottom: 48px;
}

.demo-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-showcase-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.demo-showcase-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.demo-showcase-panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--navy);
}

.demo-showcase-panel-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 36ch;
}

.demo-showcase-frame-wrap {
  position: relative;
  background: #0f172a;
  aspect-ratio: 4 / 3;
  min-height: 360px;
}

.demo-showcase-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-showcase-frame-app {
  background: var(--bg);
}

@media (max-width: 960px) {
  .demo-showcase-grid {
    grid-template-columns: 1fr;
  }

  .demo-showcase-frame-wrap {
    min-height: 320px;
  }
}

.site-main:has(.demo-tour-bar) {
  padding-bottom: 72px;
}

body:has(.demo-tour-bar) .site-footer {
  margin-bottom: 64px;
}

/* ── Freight cost comparison ── */
.freight-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.freight-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 880px;
  margin: 0 auto;
}

.freight-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--muted);
}

.freight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.freight-card-bad {
  border-color: #fecaca;
  background: #fffbfb;
}

.freight-card-good {
  border-color: rgba(249,115,22,0.35);
  background: linear-gradient(160deg, #fff 0%, #fffbf7 100%);
  box-shadow: var(--shadow);
}

.freight-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.freight-card-good .freight-card-label { color: var(--accent-dark); }

.freight-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.freight-card ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.freight-price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.freight-price span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.freight-price strong {
  display: block;
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
}

.freight-card-bad .freight-price strong { color: #991b1b; }
.freight-card-good .freight-price strong { color: var(--accent-dark); }

.freight-price small {
  font-size: 0.78rem;
  color: var(--muted);
}

.freight-note {
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.freight-box-visual {
  position: relative;
  height: 100px;
  margin: 8px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.freight-box-outer {
  border: 2px solid var(--border);
  border-radius: 6px;
  background: rgba(148,163,184,0.08);
}

.freight-box-visual.oversize .freight-box-outer {
  width: 120px;
  height: 90px;
  border-color: #fca5a5;
}

.freight-box-visual.rightsize .freight-box-outer {
  width: 88px;
  height: 72px;
  border-color: rgba(249,115,22,0.5);
  background: rgba(249,115,22,0.06);
}

.freight-box-items {
  position: absolute;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.freight-box-items::before,
.freight-box-items::after {
  content: "";
  display: block;
  border-radius: 2px;
  background: var(--blue);
}

.freight-box-items.sparse::before { width: 28px; height: 20px; }
.freight-box-items.sparse::after { width: 22px; height: 16px; background: var(--accent); }

.freight-box-items.tight::before { width: 24px; height: 18px; }
.freight-box-items.tight::after { width: 20px; height: 14px; background: var(--accent); }

@media (max-width: 768px) {
  .freight-compare {
    grid-template-columns: 1fr;
  }
  .freight-vs { padding: 4px 0; }
}
