@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0,1&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════
   themv.shop — Premium Homepage CSS  v3
   Brand orange #FF8C00 · Obsidian dark · Cream light
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg:            #080706;
  --surface:       #0F0D0C;
  --surface-alt:   #141210;
  --surface-raise: #1A1714;
  --border:        rgba(255, 244, 230, 0.07);
  --border-mid:    rgba(255, 244, 230, 0.12);
  --border-strong: rgba(255, 244, 230, 0.20);

  /* Text */
  --text:          #F6F1E8;
  --text-muted:    #A89880;
  --text-faint:    #665A4E;

  /* Brand */
  --accent:        #FF8C00;
  --accent-dim:    #C86B00;
  --accent-text:   #FF8C00;
  --accent-rgb:    255, 140, 0;
  --accent-glow:   rgba(255, 140, 0, 0.18);
  --accent-pale:   rgba(255, 140, 0, 0.06);

  /* Palette */
  --rose:          #FF5C8A;
  --rose-glow:     rgba(255, 92, 138, 0.14);
  --blue:          #58C7FF;
  --blue-glow:     rgba(88, 199, 255, 0.12);
  --mint:          #55E0B7;
  --mint-glow:     rgba(85, 224, 183, 0.12);
  --violet:        #A982FF;
  --violet-glow:   rgba(169, 130, 255, 0.12);

  /* Gradients */
  --g-accent: linear-gradient(135deg, #FF8C00 0%, #FF5C8A 100%);
  --g-card:   linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --g-noise:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");

  /* Shadows */
  --shadow-sm: 0 2px 8px  rgba(0,0,0,0.4);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-xl: 0 40px 100px rgba(0,0,0,0.65);

  /* Glass */
  --glass-bg:  rgba(8, 7, 6, 0.72);
  --glass-border: rgba(255, 244, 230, 0.09);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-tech:    'Space Grotesk', sans-serif;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-2xl:44px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --dur: 0.4s;

  /* Legacy aliases for backwards compat with old pages */
  --bg: #080706;
  --surface: #0F0D0C;
  --surface2: #141210;
  --border: rgba(255, 244, 230, 0.07);
  --text: #F6F1E8;
  --text-2: #A89880;
  --text-3: #665A4E;
  --accent-pale: rgba(255, 140, 0, 0.06);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --card-bg: #0F0D0C;
}

/* ─── Light Theme ─────────────────────────────────────── */
[data-theme="light"] {
  --bg:            #F4F1E8;
  --surface:       #FDFBF6;
  --surface-alt:   #F0EDE4;
  --surface-raise: #FFFFFF;
  --border:        rgba(30, 22, 14, 0.08);
  --border-mid:    rgba(30, 22, 14, 0.13);
  --border-strong: rgba(30, 22, 14, 0.20);
  --text:          #1A1410;
  --text-muted:    #6A5C4E;
  --text-faint:    #9C8F82;
  --accent-text:   #A85500;
  --accent-glow:   rgba(255, 140, 0, 0.10);
  --accent-pale:   rgba(255, 140, 0, 0.05);
  --rose:          #C92060;
  --rose-glow:     rgba(201, 32, 96, 0.08);
  --blue:          #1A7EBF;
  --blue-glow:     rgba(26, 126, 191, 0.08);
  --mint:          #0F8055;
  --mint-glow:     rgba(15, 128, 85, 0.08);
  --violet:        #6B38D0;
  --violet-glow:   rgba(107, 56, 208, 0.08);
  --glass-bg:      rgba(244, 241, 232, 0.80);
  --glass-border:  rgba(30, 22, 14, 0.10);
  --shadow-sm: 0 2px 8px  rgba(30,22,14,0.05);
  --shadow-md: 0 8px 28px rgba(30,22,14,0.08);
  --shadow-lg: 0 20px 60px rgba(30,22,14,0.10);
  --shadow-xl: 0 40px 100px rgba(30,22,14,0.12);

  /* Legacy light aliases */
  --text-2: #6A5C4E;
  --text-3: #9C8F82;
  --surface2: #F0EDE4;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-lg: 0 20px 60px rgba(30,22,14,0.10);
  --card-bg: #FFFFFF;
  --accent-pale: rgba(255, 140, 0, 0.05);
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Body & Ambient Background ──────────────────────── */
body {
  background-color: var(--bg);
  background-image:
    /* Noise grain */
    var(--g-noise),
    /* Ambient colour pools */
    radial-gradient(ellipse 60% 50% at 8%  18%, rgba(255, 92,138,0.07)  0%, transparent 100%),
    radial-gradient(ellipse 55% 45% at 90% 12%, rgba( 88,199,255,0.06)  0%, transparent 100%),
    radial-gradient(ellipse 70% 55% at 50% 80%, rgba(255,140,  0,0.04)  0%, transparent 100%),
    radial-gradient(ellipse 40% 35% at 78% 58%, rgba(169,130,255,0.04)  0%, transparent 100%);
  background-size: 300px 300px, auto, auto, auto, auto;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  min-height: 100vh;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 60% 50% at 8%  18%, rgba(201, 32, 96,0.035) 0%, transparent 100%),
    radial-gradient(ellipse 55% 45% at 90% 12%, rgba( 26,126,191,0.03)  0%, transparent 100%),
    radial-gradient(ellipse 70% 55% at 50% 80%, rgba(255,140,  0,0.025) 0%, transparent 100%);
}

/* Subtle vertical rule from left edge — studio feel */
body::before {
  content: '';
  position: fixed;
  top: 0; bottom: 0;
  left: 80px;
  width: 1px;
  background: var(--border);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 48px), 1260px);
  height: 58px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* ─── Logo ────────────────────────────────────────────── */
.logo, .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo .box {
  width: 42px;
  height: 42px;
  background-color: transparent;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: none;
  animation:
    boxPop      0.3s cubic-bezier(0.34,1.56,0.64,1) 0.1s  both,
    logoBgShift 4.5s ease-in-out                    0.1s  both;
}

.logo .right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-width: 148px;
  height: 42px;
  overflow: visible;
}

.logo .divider {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: var(--border-mid);
  opacity: 0;
  animation: fadeIn 0.25s ease 0.35s forwards;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.6px;
  line-height: 1;
  opacity: 0;
  position: relative;
  z-index: 2;
  animation: slideIn 0.4s var(--ease) 4.25s forwards;
}

.wordmark .accent { color: var(--accent-text); }

.tagline {
  font-family: var(--font-tech);
  font-size: 8px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.35s var(--ease) 4.68s forwards;
}

/* Animated phase labels (Design / Build / Launch) */
.frame-label {
  font-family: var(--font-tech);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-faint);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  opacity: 0;
  z-index: 3;
}

.lbl-design { animation: labelIn 0.25s var(--ease) 0.4s  forwards, labelOut 0.2s var(--ease-in) 1.05s forwards; }
.lbl-build  { animation: labelIn 0.25s var(--ease) 1.3s  forwards, labelOut 0.2s var(--ease-in) 1.95s forwards; }
.lbl-launch { animation: labelIn 0.25s var(--ease) 2.2s  forwards, labelOut 0.2s var(--ease-in) 2.85s forwards; }

/* Icon layers in the animated box */
.icon-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
}

.icon-layer.brush  { animation: iconIn 0.25s var(--ease) 0.4s forwards, iconOut 0.2s var(--ease-in) 1.05s forwards; }
.icon-layer.code   { animation: iconIn 0.25s var(--ease) 1.3s forwards, iconOut 0.2s var(--ease-in) 1.95s forwards; }
.icon-layer.globe  { animation: iconIn 0.25s var(--ease) 2.2s forwards, iconOut 0.2s var(--ease-in) 2.85s forwards; }
.icon-layer.grid   { animation: iconIn 0.25s var(--ease) 3.1s forwards, markBounce 0.8s cubic-bezier(0.36,0.07,0.19,0.97) 3.4s forwards; }



/* Nav Links */
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Nav CTA cluster */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

#nav-username {
  font-family: var(--font-tech);
  font-size: 11.5px;
  color: var(--text-muted);
  display: none;
  align-items: center;
  gap: 4px;
}

#nav-username span { color: var(--accent-text); font-weight: 600; }

.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
  transform: rotate(15deg);
}

.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 15px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s var(--ease);
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
}

.nav-btn-primary {
  background: var(--g-accent);
  color: #0A0806 !important;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255,140,0,0.22);
}

[data-theme="light"] .nav-btn-primary { color: #fff !important; }

.nav-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255,140,0,0.3);
}

.nav-toggle { display: none; }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  padding: 0 64px 80px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  padding-bottom: 60px;
}

/* Live badge */
.spot-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-tech);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 7px 16px 7px 11px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.2);
}

.spot-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,140,0,0.2), 0 0 10px rgba(255,140,0,0.5);
  animation: livePulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,140,0,0.25), 0 0 10px rgba(255,140,0,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(255,140,0,0.08), 0 0 4px  rgba(255,140,0,0.2); }
}

/* Display type — editorial, large */
.italic-subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: var(--accent-text);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.88;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero h1 strong { font-weight: 600; }

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  /* Gradient text with animated shimmer */
  background: linear-gradient(110deg, #FF8C00 0%, #FF5C8A 45%, #FF8C00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 4s ease-in-out infinite;
}

@keyframes gradientShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero h1 .block { display: block; margin-top: 6px; }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.72;
}

.hero-sub strong { color: var(--text); font-weight: 500; }

/* CTA Buttons */
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: all 0.3s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
}

.btn:hover::after { background: rgba(255,255,255,0.06); }

.btn-primary {
  background: var(--g-accent);
  color: #08060A;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(255,140,0,0.24), 0 1px 0 rgba(255,255,255,0.15) inset;
}

[data-theme="light"] .btn-primary { color: #fff; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255,140,0,0.32), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.btn-outline {
  background: rgba(255,255,255,0.025);
  border-color: var(--border-strong);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-pale);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

/* Stat chips */
.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats > div {
  flex: 1;
  min-width: 90px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(10px);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.hero-stats > div::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.hero-stats > div:hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.hero-stats > div:hover::before { opacity: 1; }

.stat-num {
  font-family: var(--font-tech);
  font-size: 22px; font-weight: 600;
  color: var(--text);
  line-height: 1; letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-tech);
  font-size: 8.5px;
  color: var(--text-faint);
  margin-top: 5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Hero Visual Mockup ──────────────────────────────── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-visual {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.005) 100%),
    var(--surface);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 20px;
  overflow: visible;
}

/* Ambient glow orbs behind the mockup */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,140, 0,0.10) 0%,
    rgba(255, 92,138,0.06) 35%,
    transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: orbFloat 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-visual::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba( 88,199,255,0.08) 0%,
    rgba(169,130,255,0.05) 45%,
    transparent 70%);
  bottom: -30px; right: -30px;
  animation: orbFloat 11s ease-in-out 2s infinite reverse;
  pointer-events: none;
  z-index: 0;
}

.hero-visual-glow { display: none; } /* replaced by ::before/::after above */

@keyframes orbFloat {
  0%,100% { transform: translate(-50%,-50%) scale(1)   rotate(0deg); }
  33%      { transform: translate(-46%,-54%) scale(1.08) rotate(60deg); }
  66%      { transform: translate(-54%,-46%) scale(0.95) rotate(120deg); }
}

/* Bento mockup grid */
.hero-visual-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  width: 100%; height: 100%;
}

.hero-visual-grid > div {
  border-radius: var(--r);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-visual-grid > div:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255,140,0,0.3);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

/* Panel 1 — Typography canvas (full left column) */
.hero-visual-grid div:nth-child(1) {
  grid-row: 1 / 3;
  background:
    linear-gradient(155deg, #1C1916 0%, #100F0D 70%),
    /* Warm amber bleed top-left */
    radial-gradient(ellipse at 10% 0%, rgba(255,140,0,0.12) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  padding: 22px;
  justify-content: space-between;
}

/* Panel 2 — Colour swatch */
.hero-visual-grid div:nth-child(2) {
  background: linear-gradient(150deg, #181614, #111010);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Panel 3 — Layer list */
.hero-visual-grid div:nth-child(3) {
  background: linear-gradient(150deg, #181614, #111010);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Floating creator badge — now .viz-badge inside the grid */

@keyframes badgeFloat {
  0%,100% { transform: rotate(4deg)  translateY(0);    }
  50%      { transform: rotate(4deg)  translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════
   SECTION FRAMEWORK
   ═══════════════════════════════════════════════════════ */
section {
  padding: 96px 64px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container { width: 100%; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-title strong { font-weight: 600; }

.section-title em {
  font-style: italic;
  font-weight: 400;
  background: var(--g-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 480px;
  line-height: 1.7;
}

.view-all {
  font-family: var(--font-tech);
  font-size: 10.5px; font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: gap 0.25s var(--ease), color 0.2s;
  white-space: nowrap;
}

.view-all:hover { gap: 12px; color: var(--rose); }

/* ═══════════════════════════════════════════════════════
   THEME CARDS — Premium Edition
   ═══════════════════════════════════════════════════════ */

/* Horizontal scroll row */
.themes-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 2px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  cursor: grab;
}

.themes-scroll:active { cursor: grabbing; }

/* Grid layout for "New" section */
.new-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Card Base ─────────────────────────────────────────── */
.theme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition:
    transform     0.45s var(--ease),
    border-color  0.45s var(--ease),
    box-shadow    0.45s var(--ease);
  flex-shrink: 0;
  width: 320px;
  box-shadow: var(--shadow-sm);
  position: relative;
  /* card glimmer top edge */
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, var(--shadow-md);
  animation: cardUp 0.55s var(--ease) both;
}

[data-theme="light"] .theme-card {
  background: var(--surface-raise);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, var(--shadow-sm);
}

/* Hover lift + orange glow */
.theme-card:hover {
  transform: translateY(-10px) rotate(-0.4deg);
  border-color: rgba(255,140,0,0.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 28px 60px rgba(255,140,0,0.18),
    0 8px 20px rgba(0,0,0,0.35);
}

[data-theme="light"] .theme-card:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 22px 48px rgba(255,140,0,0.14),
    0 4px 12px rgba(30,22,14,0.06);
}

/* ── Thumbnail ─────────────────────────────────────────── */
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface-alt);
}

/* Shine overlay */
.card-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.08) 0%,
    transparent 35%,
    rgba(255,140,0,0.04) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Bottom fade for text legibility */
.card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,7,6,0.65) 100%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.theme-card:hover .card-thumb::after { opacity: 0.7; }

.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  display: block;
}

.theme-card:hover .card-thumb img { transform: scale(1.07); }

.card-thumb-preview {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.card-thumb-preview iframe {
  width: 1280px; height: 800px; border: none; pointer-events: none;
  transform: scale(0.22); transform-origin: top left;
  display: block;
}

/* Placeholder when no image — gorgeous gradient */
.card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.15);
  /* Each placeholder gets a unique ambient gradient via inline override */
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,140,0,0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(255,92,138,0.16) 0%, transparent 60%),
    var(--surface-alt);
  position: relative;
  overflow: hidden;
}

.card-thumb-placeholder::before {
  content: '';
  position: absolute;
  top: -30%; left: -30%;
  width: 160%; height: 160%;
  background:
    linear-gradient(135deg,
      rgba(255,140,0,0.06)  0%,
      rgba(255,92,138,0.06) 30%,
      rgba(88,199,255,0.04) 60%,
      transparent 100%);
  transform: rotate(-10deg);
}

/* Badges */
.badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  font-family: var(--font-tech);
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.badge-new {
  background: var(--g-accent);
  color: #080706;
}

[data-theme="light"] .badge-new { color: #fff; }

.badge-free {
  background: rgba(85,224,183,0.15);
  border: 1px solid rgba(85,224,183,0.35);
  color: var(--mint);
}

.badge-featured {
  background: rgba(255,140,0,0.12);
  border: 1px solid rgba(255,140,0,0.30);
  color: var(--accent-text);
}

.theme-card[data-type]::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--border));
  z-index: 2;
}
.theme-card[data-type="store"] { --card-accent: #0D9488; }
.theme-card[data-type="site"]  { --card-accent: #6366F1; }

.badge-type {
  position: absolute; top: 12px; right: 12px; left: auto;
  padding: 3px 10px; border-radius: var(--r-sm);
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(8px); z-index: 3;
}
.badge-type-store { background: rgba(13,148,136,0.15); color: #2DD4BF; border: 1px solid rgba(13,148,136,0.25); }
.badge-type-site  { background: rgba(99,102,241,0.15); color: #818CF8; border: 1px solid rgba(99,102,241,0.25); }
[data-theme="light"] .badge-type-store { background: rgba(13,148,136,0.1); color: #0D9488; border-color: rgba(13,148,136,0.2); }
[data-theme="light"] .badge-type-site  { background: rgba(99,102,241,0.1); color: #6366F1; border-color: rgba(99,102,241,0.2); }

/* Hover overlay with CTAs */
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(8,7,6,0.72);
  backdrop-filter: blur(8px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 6;
}

.theme-card:hover .card-overlay { opacity: 1; transform: translateY(0); }

.overlay-btn {
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}

.overlay-primary {
  background: var(--g-accent);
  color: #080706;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255,140,0,0.3);
}

[data-theme="light"] .overlay-primary { color: #fff; }

.overlay-primary:hover { filter: brightness(1.1); transform: scale(1.03); }

.overlay-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.overlay-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); }

/* ── Card Body ─────────────────────────────────────────── */
.card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transition: background 0.45s var(--ease);
}

[data-theme="light"] .card-body { background: var(--surface-raise); }

.card-cat {
  font-family: var(--font-tech);
  font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.card-price {
  font-family: var(--font-tech);
  font-size: 13px; font-weight: 600;
  color: var(--accent-text);
}

.card-price.free {
  font-size: 8.5px;
  background: rgba(85,224,183,0.10);
  border: 1px solid rgba(85,224,183,0.22);
  color: var(--mint);
  padding: 3px 8px;
  border-radius: var(--r-xs);
}

.card-rating {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-tech);
  font-size: 11px;
  color: var(--text-muted);
}

.card-rating .star { color: var(--accent); }

/* ── Skeletons ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--surface) 25%, var(--surface-raise) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmerSlide 1.6s infinite linear;
}

@keyframes shimmerSlide {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.skeleton-card {
  flex-shrink: 0; width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.skeleton-thumb { aspect-ratio: 16/11; }

.skeleton-body {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}

.skeleton-line { height: 10px; border-radius: 5px; }

/* ═══════════════════════════════════════════════════════
   CATEGORY PILLS (Bento)
   ═══════════════════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cat-pill {
  min-height: 104px;
  display: flex; align-items: flex-end;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Glowing orb top-right, colour per category */
.cat-pill::before {
  content: '';
  position: absolute;
  top: -24px; right: -24px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(28px);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* Category-specific orb colours */
.cat-pill[href*="Fashion"]::before       { background: var(--rose);   }
.cat-pill[href*="Food"]::before          { background: var(--mint);   }
.cat-pill[href*="Business"]::before      { background: var(--blue);   }
.cat-pill[href*="Health"]::before        { background: var(--violet); }
.cat-pill[href*="Portfolio"]::before     { background: var(--accent); }
.cat-pill[href*="Blog"]::before          { background: var(--rose);   }
.cat-pill[href*="Electronics"]::before   { background: var(--blue);   }
.cat-pill[href*="Commerce"]::before      { background: var(--accent); }
.cat-pill[href*="Non-Profit"]::before    { background: var(--mint);   }

.cat-pill:hover {
  border-color: var(--border-mid);
  color: var(--text);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.06) inset;
}

.cat-pill:hover::before {
  opacity: 0.55;
  transform: scale(1.6);
}

.cat-pill .cat-name {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 400;
  letter-spacing: -0.02em;
  position: relative; z-index: 2;
}

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS (Steps)
   ═══════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step {
  padding: 34px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Accent left rule on hover */
.step::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0;
  background: var(--g-accent);
  border-radius: 0 2px 2px 0;
  transition: height 0.4s var(--ease);
}

.step:hover {
  border-color: var(--border-mid);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step:hover::before { height: 100%; }

.step-num {
  font-family: var(--font-tech);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.7;
}

.step-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-tags {
  margin-top: 20px;
  display: flex; gap: 7px; flex-wrap: wrap;
}

.step-tag {
  font-family: var(--font-tech);
  font-size: 8px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255,255,255,0.02);
  padding: 4px 10px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════ */
.features-section {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%,
      rgba(255,140,0,0.03) 0%, transparent 70%),
    var(--bg);
  /* Override section padding for full width look */
  max-width: 100%;
  padding-left: 0; padding-right: 0;
}

.features-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,0,0.08) 0%, transparent 70%);
  transition: all 0.5s var(--ease);
}

.feature-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  transform: scale(2.5);
  opacity: 0.8;
}

.feature-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--g-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: #080706;
  box-shadow: 0 4px 14px rgba(255,140,0,0.2);
}

[data-theme="light"] .feature-icon { color: #fff; }

.feature-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════ */
.cta-section {
  text-align: center;
  padding: 130px 64px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%,
      rgba(255,140,0,0.06) 0%,
      rgba(255,92,138,0.03) 40%,
      transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

/* Decorative large rings */
.cta-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(255,140,0,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  border: 1px solid rgba(255,140,0,0.09);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.cta-section .container {
  position: relative; z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

.cta-section h2 em {
  font-style: italic;
  font-weight: 400;
  background: var(--g-accent);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShimmer 4s ease-in-out infinite;
}

.cta-section p {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 38px;
  line-height: 1.72;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 64px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  position: relative; z-index: 1;
}

[data-theme="light"] footer {
  background: var(--surface);
  border-top-color: var(--border-mid);
}

.footer-logo {
  display: flex; align-items: center;
}

/* Reuse wordmark/tagline in footer but slightly smaller */
.footer-logo .wordmark {
  opacity: 1 !important;
  animation: none !important;
  font-size: 18px;
}

.footer-logo .tagline {
  opacity: 1 !important;
  animation: none !important;
}

.footer-links {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.footer-copy {
  font-family: var(--font-tech);
  font-size: 11px;
  color: var(--text-faint);
  text-align: right;
}

/* ═══════════════════════════════════════════════════════
   FOOTER MARK LOGO (mini icon)
   ═══════════════════════════════════════════════════════ */
.mark {
  background: #FF8C00;
  border-radius: 8px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.mark--xs  { width: 30px; height: 30px; border-radius: 6px;  padding: 4px; }
.mark--sm  { width: 40px; height: 40px; border-radius: 8px;  padding: 5px; }
.mark--md  { width: 52px; height: 52px; border-radius: 10px; padding: 6px; }

.mark__header { display: flex; gap: 2px; align-items: center; }
.mark__logo-stub { flex-shrink:0; width:9px; height:3px; background:rgba(255,255,255,0.95); border-radius:1px; }
.mark__nav       { flex:1; height:3px; background:rgba(255,255,255,0.3); border-radius:1px; }
.mark__grid      { flex:1; display:grid; grid-template-columns:1fr 1fr; gap:2px; margin-top:2px; }
.mark__cell             { border-radius:1px; }
.mark__cell--bright     { background:rgba(255,255,255,0.92); }
.mark__cell--dim        { background:rgba(255,255,255,0.45); }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.stagger-children.visible > * { opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(1)  { transition-delay: 0.04s; }
.stagger-children.visible > *:nth-child(2)  { transition-delay: 0.09s; }
.stagger-children.visible > *:nth-child(3)  { transition-delay: 0.14s; }
.stagger-children.visible > *:nth-child(4)  { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(5)  { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(6)  { transition-delay: 0.29s; }
.stagger-children.visible > *:nth-child(7)  { transition-delay: 0.34s; }
.stagger-children.visible > *:nth-child(8)  { transition-delay: 0.39s; }
.stagger-children.visible > *:nth-child(n+9){ transition-delay: 0.44s; }

/* ═══════════════════════════════════════════════════════
   MODAL (Login)
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  background: rgba(8,7,6,0.88) !important;
  backdrop-filter: blur(14px);
}

.modal-box {
  background: var(--surface-alt) !important;
  border: 1px solid var(--border-mid) !important;
  box-shadow: var(--shadow-xl) !important;
  color: var(--text) !important;
}

.modal-box input {
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid var(--border-mid) !important;
  color: var(--text) !important;
  border-radius: var(--r-sm) !important;
  transition: all 0.3s var(--ease) !important;
}

.modal-box input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.12) !important;
  outline: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);   }
}

/* ═══════════════════════════════════════════════════════
   KEYFRAMES (Logo Animations)
   ═══════════════════════════════════════════════════════ */
@keyframes boxPop {
  0%   { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1);   }
}

@keyframes iconIn {
  0%   { opacity: 0; transform: scale(0.5) translateY(8px);  }
  100% { opacity: 1; transform: scale(1)   translateY(0);    }
}

@keyframes iconOut {
  0%   { opacity: 1; transform: scale(1)   translateY(0);    }
  100% { opacity: 0; transform: scale(0.5) translateY(-8px); }
}

@keyframes markBounce {
  0%   { transform: scale(1,   1)   translateY(0);   }
  12%  { transform: scale(1.14,0.86) translateY(5px); }
  26%  { transform: scale(0.9, 1.1)  translateY(-10px);}
  40%  { transform: scale(1.07,0.93) translateY(3px); }
  55%  { transform: scale(0.97,1.03) translateY(-5px);}
  70%  { transform: scale(1.02,0.98) translateY(1px); }
  85%  { transform: scale(0.99,1.01) translateY(-1px);}
  100% { transform: scale(1,   1)   translateY(0);   }
}

@keyframes labelIn {
  0%   { opacity: 0; transform: translateY(-50%) translateX(10px); }
  100% { opacity: 1; transform: translateY(-50%) translateX(0);    }
}

@keyframes labelOut {
  0%   { opacity: 1; transform: translateY(-50%) translateX(0);    }
  100% { opacity: 0; transform: translateY(-50%) translateX(-10px);}
}

@keyframes slideIn {
  0%   { opacity: 0; transform: translateX(18px); }
  100% { opacity: 1; transform: translateX(0);    }
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0);   }
}

@keyframes fadeIn { to { opacity: 1; } }

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

/* ── Logo box colour animation ──
   Stays on orange → shifts to phase colour when icon shows → returns to orange
   Percentages calculated from 4.5s total:
     0.40s=8.9%  1.05s=23.3%  1.30s=28.9%  1.95s=43.3%
     2.20s=48.9% 2.85s=63.3%  3.10s=68.9%
*/
@keyframes logoBgShift {
  0%    { background-color: #FF8C00; }
  8%    { background-color: #FF8C00; }
  9%    { background-color: #A982FF; }  /* Design → violet */
  23%   { background-color: #A982FF; }
  28%   { background-color: #58C7FF; }  /* Build  → blue   */
  29%   { background-color: #58C7FF; }
  43%   { background-color: #58C7FF; }
  48%   { background-color: #55E0B7; }  /* Launch → mint   */
  49%   { background-color: #55E0B7; }
  63%   { background-color: #55E0B7; }
  68%   { background-color: transparent; }  /* settle → transparent */
  100%  { background-color: transparent; }
}

@keyframes gradientShimmer {
  0%,100% { background-position: 0%   50%; }
  50%      { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════════════════════
   POLISH — Scroll State, Active Nav, Micro-animations
   ═══════════════════════════════════════════════════════ */

/* Nav scroll state — extra glass + shadow when past hero */
nav.scrolled {
  background: rgba(8,7,6,0.88);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  border-color: rgba(255,244,230,0.12);
}
[data-theme="light"] nav.scrolled {
  background: rgba(244,241,232,0.92);
  box-shadow: 0 8px 32px rgba(30,22,14,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
  border-color: rgba(30,22,14,0.13);
}

/* Active nav link */
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  width: 100%;
}

/* Hero visual panel inner content — richer bento cells */
.hero-visual-grid div {
  position: relative;
  overflow: hidden;
}
/* Floating micro-pulse on all panels */
.hero-visual-grid > div {
  animation: panelFloat 6s ease-in-out infinite;
}
.hero-visual-grid > div:nth-child(2) { animation-delay: 0.8s; }
.hero-visual-grid > div:nth-child(3) { animation-delay: 1.6s; }

@keyframes panelFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* Panel label shared style */
.viz-panel-label {
  font-family: var(--font-tech);
  font-size: 8.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Typography sample inside panel 1 */
.viz-type-sample {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 300;
  line-height: 0.7;
  background: linear-gradient(135deg, #FF8C00, #FF5C8A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  margin-bottom: auto;
}
.viz-type-label {
  font-family: var(--font-tech);
  font-size: 8px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Palette swatches inside panel 2 */
.viz-palette-row {
  display: flex;
  gap: 6px;
  margin-top: auto;
  flex: 1;
  align-items: flex-end;
}
.viz-swatch {
  flex: 1;
  height: 18px;
  border-radius: 3px;
}
.viz-swatch:nth-child(1) { background: #FF8C00; }
.viz-swatch:nth-child(2) { background: #FF5C8A; }
.viz-swatch:nth-child(3) { background: #58C7FF; }
.viz-swatch:nth-child(4) { background: #A982FF; }
.viz-swatch:nth-child(5) { background: #55E0B7; }

/* Layer items inside panel 3 */
.viz-layers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.viz-layer {
  height: 8px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
}
.viz-layer:nth-child(1) { width: 85%; }
.viz-layer:nth-child(2) { width: 65%; }
.viz-layer:nth-child(3) { width: 50%; }
.viz-layer:nth-child(4) { width: 70%; }

/* Creator badge — keep existing, just ensure z-index */
.hero-visual-grid .viz-badge {
  position: absolute;
  top: -18px; right: 14px;
  width: auto; height: auto;
  padding: 6px 16px;
  background: #F5F0E8;
  color: #0A0806;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 8px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  border: 1.5px solid rgba(255,140,0,0.4);
  box-shadow: 0 6px 20px rgba(255,140,0,0.2);
  pointer-events: none; z-index: 10;
  animation: badgeFloat 5s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="light"] .hero-visual-grid .viz-badge {
  background: #0A0806;
  color: #F5F0E8;
}

/* Footer link hover — accent underline */
.footer-links a {
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.footer-links a:hover::after { width: 100%; }

/* Smooth nav transition on theme toggle */
nav { transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }

/* Scroll hint arrow at bottom of hero — fades out when scrolled */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: hintBounce 2.4s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint span {
  font-family: var(--font-tech);
  font-size: 7.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-hint svg { color: var(--text-faint); }

@keyframes hintBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 1100px) {
  .scroll-hint { display: none; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  nav { width: calc(100% - 32px); top: 14px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 100px 32px 60px;
    text-align: center;
  }

  .hero-left  { align-items: center; padding-top: 0; padding-bottom: 0; }
  .hero-right { padding-top: 0; padding-bottom: 0; }
  .hero-sub   { margin-left: auto; margin-right: auto; }
  .hero-ctas  { justify-content: center; }
  .hero-stats { justify-content: center; }

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

  section { padding: 72px 32px; }
  .features-section .container { padding: 0 32px; }
  .cta-section { padding: 100px 32px; }
  footer  { grid-template-columns: 1fr; text-align: center; gap: 24px; padding: 40px 32px; }
  .footer-logo  { justify-content: center; }
  .footer-copy  { text-align: center; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 76px; left: 12px; right: 12px;
    background: var(--surface-alt);
    flex-direction: column;
    padding: 20px; gap: 14px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border-mid);
    box-shadow: var(--shadow-lg);
    z-index: 800;
  }

  .nav-links.open { display: flex; }

  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }

  .nav-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--text); border-radius: 1px;
    transition: all 0.25s var(--ease);
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .steps-grid    { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .theme-card    { width: 100%; }
  #btn-login-designer { display: none; }
}

@media (max-width: 480px) {
  nav { left: 8px; right: 8px; width: calc(100% - 16px); }
  .hero { padding: 90px 16px 40px; }
  .hero h1 { font-size: 40px; }
  .hero-ctas .btn { width: 100%; }
  section { padding: 60px 16px; }
  .new-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-pill { min-height: 80px; padding: 14px 16px; }
  .cta-section { padding: 80px 16px; }
  footer { padding: 36px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   MARKETPLACE / THEMES LISTING
   ═══════════════════════════════════════════════════════════ */

/* Simple nav logo (image + text) used on listing pages */
.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}

.nav-logo .logo-text .accent {
  color: var(--accent-text);
}

/* ── Marketplace Hero (single-column) ──────────────────── */
.marketplace-hero,
.hero.themes-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 40px 56px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(110deg, #FF8C00 0%, #FF5C8A 45%, #FF8C00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 4s ease-in-out infinite;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 36px;
}

/* Search */
.search-wrap {
  max-width: 560px;
  width: 100%;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}

.search-wrap input::placeholder { color: var(--text-faint); }

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

/* ── Marketplace Layout ────────────────────────────────── */
.marketplace {
  display: flex;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px 80px;
  gap: 40px;
}

/* Sidebar */
.marketplace .sidebar {
  width: 240px;
  flex-shrink: 0;
  padding-top: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.filter-section {
  margin-bottom: 28px;
}

.filter-title {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}

.filter-option:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.filter-option.active {
  color: var(--text);
  font-weight: 500;
  background: rgba(255,255,255,0.05);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-mid);
  flex-shrink: 0;
}

.filter-option.active .dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-tech);
}

/* Price radios */
.price-radios {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.price-radio:hover { color: var(--text); }

.price-radio input[type="radio"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

/* Content */
.content {
  flex: 1;
  min-width: 0;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.toolbar-left {
  font-size: 13.5px;
  color: var(--text-muted);
}

.toolbar-left strong { color: var(--text); }

.sort-select {
  padding: 8px 32px 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-muted);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .2s;
}

.sort-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ── Theme Grid (listing) ──────────────────────────────── */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Override card width for grid context */
.themes-grid .theme-card {
  width: 100%;
}

/* Card description */
.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card meta (rating + usage) */
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-usage {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-tech);
}

/* Overlay button variants */
.overlay-preview {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

.overlay-preview:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
}

.overlay-apply,
.overlay-details {
  background: var(--g-accent);
  color: #080706;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255,140,0,0.3);
}

[data-theme="light"] .overlay-apply,
[data-theme="light"] .overlay-details { color: #fff; }

.overlay-apply:hover,
.overlay-details:hover { filter: brightness(1.1); transform: scale(1.03); }

/* ── Hero badge (pill above heading) ────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-tech);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}

/* ── Empty state icon ──────────────────────────────────── */
.empty-icon {
  margin-bottom: 16px;
  opacity: 0.3;
  color: var(--text-faint);
}

/* ── Filter dot (smaller dot for filters) ──────────────── */
.filter-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-mid);
  flex-shrink: 0;
}

.filter-option.active .filter-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ── Page body (featured page layout) ──────────────────── */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* ── Category pills (featured page) ────────────────────── */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

/* Reset homepage bento cat-pill for use as simple pill links */
.page-body .cat-pill {
  min-height: auto;
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease);
  box-shadow: none;
}

.page-body .cat-pill::before,
.page-body .cat-pill::after { display: none; }

.page-body .cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
  transform: none;
  box-shadow: none;
}

.page-body .cat-pill.active {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-mid);
  color: var(--text);
}

/* ── Pagination ────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  border: 1px solid var(--border);
  background: transparent;
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
}

.page-btn.active {
  background: var(--g-accent);
  color: #08060A;
  border-color: transparent;
  font-weight: 600;
}

[data-theme="light"] .page-btn.active { color: #fff; }

.page-btn.ellipsis {
  border: none;
  width: auto;
  padding: 0 4px;
  color: var(--text-faint);
  cursor: default;
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 400;
}

.empty-state p {
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto;
}

/* ── Marketplace Responsive ────────────────────────────── */
@media (max-width: 1100px) {
  .themes-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
  .marketplace { gap: 28px; }
  .marketplace .sidebar { width: 210px; }
}

@media (max-width: 960px) {
  .marketplace .sidebar { width: 190px; }
  .themes-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .marketplace { padding: 0 28px 64px; gap: 20px; }
}

@media (max-width: 860px) {
  .marketplace .sidebar { display: none; }
  .content { width: 100%; }
  .themes-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
  .hero.themes-hero { padding: 100px 20px 40px; }
  .marketplace { padding: 0 20px 60px; flex-direction: column; }
  .marketplace .sidebar {
    display: flex;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 0 0 12px;
  }
  .filter-section { min-width: 140px; margin-bottom: 0; }
  .price-radios { flex-direction: row; gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════ */

/* Hero lead */
.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.72;
  margin-top: 4px;
}

/* Stats section */
.stats-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  background: var(--g-card), var(--surface);
  backdrop-filter: blur(14px);
}

.stats-inner > div {
  text-align: center;
  padding: 12px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.stat-val em {
  font-style: italic;
  background: var(--g-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Override page .stat-label for about page */
.stats-inner .stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0;
}

/* About section (two-col) */
.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.section-label {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.section-heading em {
  font-style: italic;
  background: var(--g-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-body p + p {
  margin-top: 16px;
}

/* Card block */
.card-block {
  background: var(--g-card), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255,255,255,0.06) inset;
}

/* How it works section */
.how-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.how-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0;
  background: var(--g-accent);
  border-radius: 0 2px 2px 0;
  transition: height 0.4s var(--ease);
}

.how-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.how-card:hover::before { height: 100%; }

.how-num {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.7;
}

.how-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.how-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Designer CTA */
.designer-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.designer-cta-card {
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(255,140,0,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(255,92,138,0.04) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.designer-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 14px;
}

.designer-cta-card h2 em {
  font-style: italic;
  background: var(--g-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.designer-cta-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.72;
}

.cta-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.3s var(--ease);
  background: var(--g-accent);
  color: #08060A;
  box-shadow: 0 6px 24px rgba(255,140,0,0.24);
}

[data-theme="light"] .btn-light { color: #fff; }

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255,140,0,0.32);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-muted);
}

.btn-ghost-light:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-pale);
  transform: translateY(-2px);
}

/* About page responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
}

@media (max-width: 768px) {
  .about-section { padding: 0 20px 80px; }
  .how-section { padding: 0 20px 80px; }
  .designer-cta { padding: 0 20px 80px; }
  .designer-cta-card { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .stats-section { padding: 0 16px 60px; }
  .stats-inner { padding: 24px 16px; }
}
