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

/* ═══════════════════════════════════════════════════════════
   themv.shop — Creative Edition v6
   · Ambient glow follows your cursor
   · Cards tilt & breathe like living objects
   · Typography that interacts with scroll
   · Forms that feel like physical interfaces
   · Colours that shift and pulse
   ═══════════════════════════════════════════════════════════ */

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg:            #0C0A09;
  --surface:       #1C1917;
  --surface-alt:   #292524;
  --surface-raise: #3A3530;
  --border:        rgba(245, 240, 232, 0.06);
  --border-mid:    rgba(245, 240, 232, 0.12);
  --border-strong: rgba(245, 240, 232, 0.20);

  --text:          #F5F0E8;
  --text-muted:    #A8A098;
  --text-faint:    #6B6560;

  --accent:        #D97706;
  --accent-dim:    #B45309;
  --accent-text:   #F59E0B;
  --accent-rgb:    217, 119, 6;
  --accent-glow:   rgba(217, 119, 6, 0.20);
  --accent-pale:   rgba(217, 119, 6, 0.07);

  --gold:          #F59E0B;
  --rose:          #E11D48;
  --rose-glow:     rgba(225, 29, 72, 0.15);
  --teal:          #0D9488;
  --teal-glow:     rgba(13, 148, 136, 0.12);
  --violet:        #8B5CF6;
  --violet-glow:   rgba(139, 92, 246, 0.12);
  --blue:          #0EA5E9;
  --blue-glow:     rgba(14, 165, 233, 0.12);

  --g-accent:      linear-gradient(135deg, #D97706, #E11D48);
  --g-warm:        linear-gradient(135deg, #D97706, #F59E0B);
  --g-cool:        linear-gradient(135deg, #0EA5E9, #8B5CF6);
  --g-card:        linear-gradient(165deg, 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.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");

  --shadow-sm: 0 4px 16px  rgba(0,0,0,0.5);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.55);
  --shadow-lg: 0 28px 80px rgba(0,0,0,0.65);
  --shadow-xl: 0 48px 130px rgba(0,0,0,0.70);

  --glass-bg:      rgba(12, 10, 9, 0.72);
  --glass-border:  rgba(245, 240, 232, 0.08);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-logo:    'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-tech:    'Space Grotesk', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --r-xs: 6px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-2xl: 48px;
  --r-3xl: 64px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.5s;
}

[data-theme="light"] {
  --bg:            #F5F0E8;
  --surface:       #FDFCF9;
  --surface-alt:   #F0ECE5;
  --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.22);
  --text:          #1A1510;
  --text-muted:    #6B5C4E;
  --text-faint:    #A8988A;
  --accent-text:   #B45309;
  --accent-glow:   rgba(217, 119, 6, 0.10);
  --accent-pale:   rgba(217, 119, 6, 0.05);
  --rose:          #BE123C;
  --rose-glow:     rgba(190, 18, 60, 0.08);
  --teal:          #0F766E;
  --teal-glow:     rgba(15, 118, 110, 0.08);
  --violet:        #7C3AED;
  --violet-glow:   rgba(124, 58, 237, 0.08);
  --blue:          #0369A1;
  --blue-glow:     rgba(3, 105, 161, 0.08);
  --glass-bg:      rgba(245, 240, 232, 0.82);
  --glass-border:  rgba(30, 22, 14, 0.09);
  --shadow-sm: 0 4px 16px  rgba(30,22,14,0.06);
  --shadow-md: 0 12px 40px rgba(30,22,14,0.09);
  --shadow-lg: 0 28px 80px rgba(30,22,14,0.11);
  --shadow-xl: 0 48px 130px rgba(30,22,14,0.13);
}

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

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

body {
  background-color: var(--bg);
  background-image:
    var(--g-noise),
    radial-gradient(ellipse 50% 40% at 12% 15%, rgba(217, 119, 6, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 45% 35% at 88% 10%, rgba(225, 29, 72, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 60% 50% at 55% 82%, rgba(245, 158, 11, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 35% 30% at 75% 55%, rgba(139, 92, 246, 0.03) 0%, transparent 100%);
  background-size: 300px 300px, auto, auto, auto, auto;
  background-attachment: fixed;
  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 50% 40% at 12% 15%, rgba(217, 119, 6, 0.035) 0%, transparent 100%),
    radial-gradient(ellipse 45% 35% at 88% 10%, rgba(190, 18, 60, 0.025) 0%, transparent 100%),
    radial-gradient(ellipse 60% 50% at 55% 82%, rgba(245, 158, 11, 0.02) 0%, transparent 100%);
}

/* ─── Cursor Ambience ───────────────────────────── */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.04) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.cursor-glow::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══ NAV — Floating Glass Pillar ══════════════════ */

nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 48px), 1280px);
  height: 58px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  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), border-color var(--dur) var(--ease), top 0.3s var(--ease), width 0.3s var(--ease);
  gap: 8px;
}

nav.scrolled {
  background: rgba(12, 10, 9, 0.92);
  border-color: rgba(245, 240, 232, 0.12);
  box-shadow: var(--shadow-lg);
  top: 14px;
  width: min(calc(100% - 56px), 1240px);
}

[data-theme="light"] nav.scrolled {
  background: rgba(245, 240, 232, 0.95);
  border-color: rgba(30, 22, 14, 0.12);
}

.logo, .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}

.logo .box {
  width: 38px;
  height: 38px;
  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: 0;
  overflow: visible;
  flex-shrink: 1;
}

.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-logo);
  font-size: 21px;
  font-weight: 500;
  font-variation-settings: 'SOFT' 80, 'WONK' 1;
  color: var(--text);
  letter-spacing: -0.6px;
  line-height: 1;
  opacity: 0;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  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;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeUp 0.35s var(--ease) 4.68s forwards;
}

.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-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 {
  display: flex;
  gap: 6px;
  list-style: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,240,232,0.06);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  padding: 6px 16px;
  border-radius: 999px;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-links a::after { display: none; }

.nav-mobile-only { display: none; }

.nav-sep {
  display: none;
  height: 1px;
  background: var(--border-mid);
  margin: 4px 0;
  list-style: none;
}

.nav-btn-mobile {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all 0.25s var(--ease);
  border: none;
  background: transparent;
  color: var(--text-muted);
  white-space: nowrap;
  width: 100%;
}

.nav-btn-mobile:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-btn-mobile-primary {
  background: var(--g-accent);
  color: #0C0A09 !important;
  font-weight: 600;
  justify-content: center;
  border-radius: var(--r);
  padding: 12px 16px;
  margin-top: 4px;
}

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

.nav-btn-mobile-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(217,119,6,0.35);
  background: var(--g-accent);
}

.nav-mh {
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  list-style: none;
}

.nav-mh .theme-toggle { width: 32px; height: 32px; flex-shrink: 0; }

.nav-mh-label {
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

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

.theme-toggle {
  width: 34px; height: 34px;
  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.3s var(--ease);
  flex-shrink: 0;
}

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

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

.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(217,119,6,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-btn:hover::before { opacity: 1; }

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

.nav-btn-primary {
  background: var(--g-accent);
  color: #0C0A09 !important;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(217,119,6,0.25);
}

.nav-btn-primary::before { display: none; }

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

.nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,119,6,0.35);
}

.nav-toggle { display: none; }

/* ═══ HERO — Editorial Drama ═══════════════════════ */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0 72px 80px;
  max-width: 1480px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.spot-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 28px;
  padding: 8px 20px 8px 14px;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.06);
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

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

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217,119,6,0.25), 0 0 14px rgba(217,119,6,0.5); }
  50%       { box-shadow: 0 0 0 7px rgba(217,119,6,0.08), 0 0 6px  rgba(217,119,6,0.2); }
}

.italic-subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.italic-subhead::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--g-warm);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.reveal.visible .italic-subhead::after {
  transform: scaleX(1);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 7.5vw, 100px);
  font-weight: 300;
  line-height: 0.85;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

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

.hero h1 strong::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 0.06em;
  background: var(--g-accent);
  border-radius: 999px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(125deg, #D97706 0%, #E11D48 45%, #F59E0B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 5s ease-in-out infinite;
  position: relative;
  display: inline-block;
}

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

.hero h1 .block { display: block; }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.75;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: all 0.35s 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.35s;
}

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

.btn-primary {
  background: var(--g-accent);
  color: #0C0A09;
  font-weight: 700;
  box-shadow: 0 6px 28px rgba(217,119,6,0.28), 0 1px 0 rgba(255,255,255,0.15) inset;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 42px rgba(217,119,6,0.38);
}

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

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

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

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

.hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.hero-stats > div::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--g-warm);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.hero-stats > div:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

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

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

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

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

.hero-visual {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-3xl);
  background:
    linear-gradient(150deg, 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: 24px;
  overflow: visible;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.1s ease-out;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(217,119,6,0.10) 0%,
    rgba(225, 29,72,0.06) 35%,
    transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: orbFloat 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-visual::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(14,165,233,0.07) 0%,
    rgba(139,92,246,0.04) 45%,
    transparent 70%);
  bottom: -40px; right: -40px;
  animation: orbFloat 12s ease-in-out 2s infinite reverse;
  pointer-events: none;
  z-index: 0;
}

@keyframes orbFloat {
  0%,100% { transform: translate(-50%,-50%) scale(1)   rotate(0deg); }
  33%      { transform: translate(-46%,-54%) scale(1.10) rotate(72deg); }
  66%      { transform: translate(-54%,-46%) scale(0.93) rotate(144deg); }
}

.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-lg);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
}

.hero-visual-grid > div:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(217,119,6,0.35);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.hero-visual-grid div:nth-child(1) {
  grid-row: 1 / 3;
  background:
    linear-gradient(155deg, #201C18 0%, #12100E 70%),
    radial-gradient(ellipse at 10% 0%, rgba(217,119,6,0.12) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  padding: 24px;
  justify-content: space-between;
}

.hero-visual-grid div:nth-child(2) {
  background: linear-gradient(150deg, #1A1714, #12100E);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-visual-grid div:nth-child(3) {
  background: linear-gradient(150deg, #1A1714, #12100E);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

/* ═══ SECTION FRAMEWORK ═══════════════════════════════ */
section {
  padding: 110px 64px;
  max-width: 1320px;
  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: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 80px; height: 2px;
  background: var(--g-warm);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.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: 15px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 500px;
  line-height: 1.72;
  position: relative;
}

.view-all {
  font-family: var(--font-tech);
  font-size: 11px; font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: gap 0.3s var(--ease), color 0.25s;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
}

.view-all::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.view-all:hover { gap: 14px; color: var(--rose); }
.view-all:hover::after { width: 100%; }

/* ═══ CREATIVE THEME CARDS — 3D Tilt ════════════════ */

.themes-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 4px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  cursor: grab;
  perspective: 1200px;
}

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

.new-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  perspective: 1200px;
}

.theme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.6s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.6s var(--ease);
  flex-shrink: 0;
  width: 340px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, var(--shadow-md);
  animation: cardUp 0.65s var(--ease-bounce) both;
  transform-style: preserve-3d;
  position: relative;
}

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

.theme-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(var(--gradient-angle, 0deg), rgba(217,119,6,0.3), rgba(225,29,72,0.3), transparent 40%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  z-index: -1;
  animation: rotateBorder 4s linear infinite;
}

.theme-card:hover::before {
  opacity: 1;
}

@keyframes rotateBorder {
  to { --gradient-angle: 360deg; }
}

.theme-card:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-2deg);
  border-color: rgba(217,119,6,0.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 32px 72px rgba(217,119,6,0.18),
    0 12px 32px rgba(0,0,0,0.4);
}

[data-theme="light"] .theme-card:hover {
  transform: translateY(-10px) rotateX(3deg) rotateY(-1deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.85) inset,
    0 26px 56px rgba(217,119,6,0.14),
    0 6px 16px rgba(30,22,14,0.08);
}

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

.card-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(140deg,
    rgba(255,255,255,0.08) 0%,
    transparent 40%,
    rgba(217,119,6,0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12,10,9,0.7) 100%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

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

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

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

.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;
}

.card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.07em;
  color: rgba(255,255,255,0.15);
  background:
    radial-gradient(ellipse at 35% 45%, rgba(217,119,6,0.26) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 75%, rgba(225,29,72,0.18) 0%, transparent 60%),
    var(--surface-alt);
  position: relative;
  overflow: hidden;
}

.card-thumb-placeholder::before {
  content: '';
  position: absolute;
  top: -35%; left: -35%;
  width: 170%; height: 170%;
  background:
    linear-gradient(140deg,
      rgba(217,119,6,0.08)  0%,
      rgba(225,29,72,0.08) 35%,
      rgba(14,165,233,0.05) 65%,
      transparent 100%);
  transform: rotate(-12deg);
}

.badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 5;
  backdrop-filter: blur(8px);
}

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

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

.badge-free {
  background: rgba(13,148,136,0.18);
  border: 1px solid rgba(13,148,136,0.40);
  color: var(--teal);
}

.badge-featured {
  background: rgba(217,119,6,0.15);
  border: 1px solid rgba(217,119,6,0.35);
  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); }

.card-overlay {
  position: absolute; inset: 0;
  background: rgba(12,10,9,0.78);
  backdrop-filter: blur(12px) saturate(1.3);
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-bounce);
  z-index: 6;
}

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

.overlay-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.overlay-primary {
  background: var(--g-accent);
  color: #0C0A09;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(217,119,6,0.35);
}

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

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

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

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

.card-body {
  padding: 20px 22px 22px;
  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-mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 400;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 16px;
  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: 14px;
}

.card-price {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 500;
  color: var(--accent-text);
}

.card-price.free {
  font-size: 9px;
  background: rgba(13,148,136,0.12);
  border: 1px solid rgba(13,148,136,0.25);
  color: var(--teal);
  padding: 3px 10px;
  border-radius: 999px;
}

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

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

.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: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

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

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

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

/* ═══ CATEGORY — Floating Geometric Pills ════════════ */

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

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

.cat-pill::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(32px);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.cat-pill::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--g-warm);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.cat-pill[href*="Fashion"]::before       { background: var(--rose);   }
.cat-pill[href*="Food"]::before          { background: var(--teal);   }
.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(--gold);   }
.cat-pill[href*="Non-Profit"]::before    { background: var(--teal);   }

.cat-pill:hover {
  border-color: var(--border-mid);
  color: var(--text);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.06) inset;
}

.cat-pill:hover::before {
  opacity: 0.6;
  transform: scale(1.8);
}

.cat-pill:hover::after {
  transform: scaleX(1);
}

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

/* ═══ STEPS — Timeline ════════════════════════════════ */

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

.step {
  padding: 36px 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface);
  transition: all 0.45s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.step::after {
  content: '';
  position: absolute;
  top: 30px; right: 30px;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border);
  opacity: 0.3;
  pointer-events: none;
}

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

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

.step-num {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 500;
  color: var(--border-strong);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
  transition: color 0.4s var(--ease);
}

.step:hover .step-num {
  color: var(--accent-text);
}

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

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

.step-tags {
  margin-top: 22px;
  display: flex; gap: 8px; flex-wrap: wrap;
}

.step-tag {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(217,119,6,0.08);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217,119,6,0.2);
}

/* ═══ FEATURES — Morphing Icons ═══════════════════════ */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 30px;
  transition: all 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,0.08) 0%, transparent 70%);
  transition: all 0.6s var(--ease);
}

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

.feature-card:hover::before {
  transform: scale(3);
  opacity: 0.7;
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  background: var(--g-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: #0C0A09;
  box-shadow: 0 6px 20px rgba(217,119,6,0.25);
  transition: all 0.4s var(--ease);
}

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

.feature-card:hover .feature-icon {
  border-radius: var(--r-xl);
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 10px 32px rgba(217,119,6,0.35);
}

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

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

/* ═══ CTA — Bold Statement ════════════════════════════ */

.cta-section {
  text-align: center;
  padding: 140px 64px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%,
      rgba(217,119,6,0.06) 0%,
      rgba(225,29,72,0.03) 40%,
      transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(217,119,6,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  animation: ctaPulse 6s ease-in-out infinite;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  border: 1px solid rgba(217,119,6,0.09);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  animation: ctaPulse 6s ease-in-out 2s infinite reverse;
}

@keyframes ctaPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
  50%     { transform: translate(-50%,-50%) scale(1.05); opacity: 1; }
}

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

.cta-section .italic-subhead { margin-bottom: 14px; }

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

.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 5s ease-in-out infinite;
}

.cta-section > .container > p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.72;
}

/* ═══ FOOTER ════════════════════════════════════════════ */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 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 { border-top-color: var(--border-mid); }

.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo .wordmark { opacity: 1 !important; animation: none !important; font-size: 18px; font-variation-settings: 'SOFT' 80, 'WONK' 1; }
.footer-logo .tagline { opacity: 1 !important; animation: none !important; }

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

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

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--g-warm);
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}

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

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

.mark {
  background: #D97706;
  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__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(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  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; }

/* ═══ LOGIN MODAL — Glass Artifact ══════════════════════ */

.modal-overlay {
  background: rgba(12,10,9,0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

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

.modal-box input {
  background: rgba(255,255,255,0.03) !important;
  border: 1.5px solid var(--border-mid) !important;
  color: var(--text) !important;
  border-radius: var(--r-sm) !important;
  padding: 15px 18px !important;
  font-size: 14px !important;
  font-family: var(--font-body) !important;
  outline: none !important;
  width: 100% !important;
  transition: all 0.35s var(--ease) !important;
  letter-spacing: 0.01em;
}

.modal-box input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(217,119,6,0.12) !important;
  background: rgba(255,255,255,0.06) !important;
}

.modal-box input::placeholder {
  color: var(--text-faint) !important;
  opacity: 0.5 !important;
}

.modal-box label {
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--text-muted) !important;
  margin-bottom: 8px !important;
  display: block !important;
}

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

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

/* ═══ KEYFRAMES ══════════════════════════════════════════ */

@keyframes boxPop {
  0%   { opacity: 0; transform: scale(0.4) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1)   rotate(0deg);  }
}

@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(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}

@keyframes logoBgShift {
  0%    { background-color: #D97706; }
  8%    { background-color: #D97706; }
  9%    { background-color: #8B5CF6; }
  23%   { background-color: #8B5CF6; }
  28%   { background-color: #0EA5E9; }
  29%   { background-color: #0EA5E9; }
  43%   { background-color: #0EA5E9; }
  48%   { background-color: #0D9488; }
  49%   { background-color: #0D9488; }
  63%   { background-color: #0D9488; }
  68%   { background-color: transparent; }
  100%  { background-color: transparent; }
}

/* ═══ POLISH ═════════════════════════════════════════════ */

.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }

.hero-visual-grid div {
  position: relative;
  overflow: hidden;
}

.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); }
}

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

.viz-type-sample {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 300;
  line-height: 0.7;
  background: linear-gradient(135deg, #D97706, #E11D48);
  -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;
}

.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: #D97706; }
.viz-swatch:nth-child(2) { background: #E11D48; }
.viz-swatch:nth-child(3) { background: #0EA5E9; }
.viz-swatch:nth-child(4) { background: #8B5CF6; }
.viz-swatch:nth-child(5) { background: #0D9488; }

.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%; }

.hero-visual-grid .viz-badge {
  position: absolute;
  top: -18px; right: 14px;
  width: auto; height: auto;
  padding: 7px 18px;
  background: #F5F0E8;
  color: #0C0A09;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  border: 1.5px solid rgba(217,119,6,0.4);
  box-shadow: 0 6px 24px rgba(217,119,6,0.25);
  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: #0C0A09;
  color: #F5F0E8;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  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-mono);
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.scroll-hint svg { color: var(--text-faint); width: 16px; height: 16px; }

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

/* ═══ RESPONSIVE ══════════════════════════════════════════ */

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

  nav {
    width: calc(100% - 32px);
    top: 14px;
    padding: 0 14px;
    height: 54px;
    border-radius: 999px;
  }

  nav.scrolled {
    top: 10px;
    width: calc(100% - 40px);
  }

  .nav-links,
  .nav-cta .nav-btn:not(.nav-btn-primary):not(#btn-logout) {
    display: none;
  }

  .nav-cta { gap: 4px; }

  .logo .box { width: 34px; height: 34px; }
  .logo, .nav-logo { gap: 8px; }
  .wordmark { font-size: 18px; }
  .tagline { display: none; }

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

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

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

  .nav-links.open {
    display: flex;
    position: fixed;
    top: 78px; left: 16px; right: 16px;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-radius: var(--r-xl);
    border: 1px solid var(--border-mid);
    background: rgba(12,10,9,0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: var(--shadow-xl);
    z-index: 800;
    list-style: none;
  }

  [data-theme="light"] .nav-links.open {
    background: rgba(245, 240, 232, 0.97);
    border-color: rgba(30, 22, 14, 0.12);
    box-shadow: 0 20px 60px rgba(30, 22, 14, 0.12);
  }

  [data-theme="light"] .nav-links.open a:hover { background: rgba(30, 22, 14, 0.05); }
  [data-theme="light"] .nav-btn-mobile:hover { background: rgba(30, 22, 14, 0.05); }

  .nav-links.open a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s var(--ease);
  }

  .nav-links.open a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
  }

  .nav-links.open .nav-mobile-only { display: flex; }
  .nav-links.open .nav-sep { display: block; }
  .nav-links.open .nav-btn-mobile { display: inline-flex; }
  .nav-links.open .nav-btn-mobile-primary { display: flex; }
  .nav-links.open .nav-mh { order: -10; }
  .nav-links.open .nav-sep { order: -5; }

  .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; border-left: none; padding-left: 0; }
  .hero-ctas  { justify-content: center; }
  .hero-stats { justify-content: center; }
  .new-grid   { grid-template-columns: repeat(2, 1fr); }
  .cat-grid   { grid-template-columns: repeat(3, 1fr); }
  section     { padding: 72px 32px; }
  .cta-section { padding: 90px 32px; }
  footer { grid-template-columns: 1fr; text-align: center; gap: 24px; padding: 36px 32px; }
  .footer-logo { justify-content: center; }
  .footer-copy { text-align: center; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  .hero-stats > div { min-width: 80px; }
  .steps-grid { gap: 18px; }
  .features-grid { gap: 16px; }
}

@media (max-width: 768px) {
  nav {
    width: calc(100% - 24px);
    top: 10px;
    height: 50px;
    padding: 0 10px;
    border-radius: 999px;
    gap: 4px;
  }

  nav.scrolled { top: 8px; }

  .logo .box { width: 30px; height: 30px; border-radius: 8px; }
  .logo, .nav-logo { gap: 6px; }
  .wordmark { font-size: 16px; }

  .nav-cta { display: none; }

  .nav-links.open { top: 72px; left: 12px; right: 12px; padding: 24px; max-height: calc(100dvh - 90px); overflow-y: auto; }

  .hero { padding: 90px 24px 48px; }
  .hero h1 { font-size: clamp(44px, 10vw, 60px); }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats > div { min-width: 70px; padding: 12px 14px; }
  .stat-num { font-size: 18px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-pill { min-height: 90px; padding: 16px 18px; }
  .cat-pill .cat-name { font-size: 17px; }
  .new-grid { grid-template-columns: 1fr; gap: 18px; }
  .theme-card { width: 100%; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  section { padding: 60px 24px; }
  .cta-section { padding: 72px 24px; }
  .cta-section h2 { font-size: clamp(32px, 8vw, 48px); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 420px; }
  .hero-visual-grid { gap: 10px; }
  .hero-visual-grid > div { border-radius: var(--r); }
  #btn-login-designer { display: none; }

  footer {
    padding: 32px 24px;
    gap: 20px;
  }
  .footer-links { gap: 20px; }
  .footer-links a { font-size: 12px; }
}

@media (max-width: 480px) {
  nav { width: calc(100% - 8px); padding: 0 8px; height: 46px; gap: 4px; }
  nav.scrolled { width: calc(100% - 12px); }
  .logo .box { width: 28px; height: 28px; border-radius: 7px; }
  .logo, .nav-logo { gap: 5px; }
  .wordmark { font-size: 14px; }
  .nav-toggle span { width: 18px; }
  .nav-links.open { top: 64px; left: 8px; right: 8px; padding: 20px; }
  .nav-links.open a { padding: 10px 14px; font-size: 13px; }
  .nav-mh { gap: 8px; }
  .nav-btn-mobile { padding: 8px 14px; font-size: 12px; }
  .nav-btn-mobile-primary { padding: 10px 14px; }
  .nav-sep { margin: 2px 0; }
  .hero { padding: 80px 16px 40px; }
  .hero h1 { font-size: 38px; letter-spacing: -0.04em; }
  .hero h1 strong::after { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-sub { font-size: 14px; margin-bottom: 32px; }
  .hero-stats { flex-direction: column; gap: 8px; }
  .hero-stats > div { min-width: unset; }
  section { padding: 48px 16px; }
  .new-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-pill { min-height: 76px; padding: 14px 16px; }
  .cat-pill .cat-name { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .step { padding: 28px 22px; }
  .step-num { font-size: 32px; }
  .step-title { font-size: 20px; }
  .cta-section { padding: 60px 16px; }
  .cta-section h2 { font-size: 30px; }
  footer { padding: 28px 16px; gap: 16px; }
  .footer-links { gap: 16px; flex-direction: column; align-items: center; }
  .theme-card { width: 100%; }
  .card-name { font-size: 20px; }
  .hero-visual { max-width: 100%; border-radius: var(--r-2xl); padding: 16px; }
  .hero-visual-grid { gap: 8px; }
  .hero-visual-grid div:nth-child(1) { padding: 16px; }
  .viz-type-sample { font-size: 40px; }
}
