/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Brand ──────────────────────────────── */
  --blue:         #1a6fd4;
  --blue-dim:     rgba(26,111,212,0.12);
  --blue-glow:    rgba(26,111,212,0.32);

  /* ── Core palette ────────────────────────── */
  --dark:         #0f0d0b;
  --white:        #ffffff;
  --bg-warm:      #fafaf8;
  --bg-light:     #eff4fe;
  --bg-paper:     #f2f0ec;
  --muted:        rgba(15,13,11,0.5);
  --gray-bg:      #f2f0ec;

  /* ── Borders ────────────────────────────── */
  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.16);
  --border-blue:  rgba(26,111,212,0.18);

  /* ── Shadows ────────────────────────────── */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:   0 2px 8px rgba(0,0,0,0.06), 0 10px 28px rgba(0,0,0,0.09);
  --shadow-lg:   0 4px 14px rgba(0,0,0,0.08), 0 20px 56px rgba(0,0,0,0.13);
  --shadow-xl:   0 8px 24px rgba(0,0,0,0.1),  0 40px 100px rgba(0,0,0,0.16);
  --shadow-blue: 0 4px 14px rgba(26,111,212,0.28), 0 14px 40px rgba(26,111,212,0.16);

  /* ── Easing ─────────────────────────────── */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out:    cubic-bezier(0.76, 0, 0.24, 1);

  /* ── Spacing (8px grid) ─────────────────── */
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-warm);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: white; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: white;
  border-radius: 6px;
  z-index: 9999;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.fraunces {
  font-family: 'Fraunces', serif;
  font-style: italic;
}

.blue { color: var(--blue); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.25s var(--ease-out-expo), background 0.25s ease;
}

.nav-links a:hover {
  color: var(--dark);
  background: rgba(0,0,0,0.04);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.mobile-menu a:hover {
  background: var(--bg-light);
  color: var(--dark);
}

.mobile-menu.open { display: flex; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.28s var(--ease-out-expo), box-shadow 0.28s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(0.97); }

.btn-blue {
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-blue:hover { box-shadow: 0 6px 20px rgba(26,111,212,0.45), 0 20px 50px rgba(26,111,212,0.2); }

.nav-cta {
  box-shadow: 0 0 12px rgba(26,111,212,0.55), 0 0 28px rgba(26,111,212,0.3);
  animation: nav-cta-pulse 2.8s ease-in-out infinite;
}
.nav-cta:hover {
  box-shadow: 0 0 18px rgba(26,111,212,0.75), 0 0 40px rgba(26,111,212,0.45);
}

@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(26,111,212,0.55), 0 0 28px rgba(26,111,212,0.3); }
  50%       { box-shadow: 0 0 18px rgba(26,111,212,0.75), 0 0 44px rgba(26,111,212,0.4); }
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--dark); background: rgba(0,0,0,0.03); }

.btn-white {
  background: white;
  color: var(--blue);
  font-weight: 700;
}

.btn-white-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-full { width: 100%; }

/* ═══════════════════════════════════════
   SECTION LABELS & HEADINGS
═══════════════════════════════════════ */
.section-label-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-light);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-label-tag.light {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}

.section-h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 3rem;
  text-wrap: balance;
}

.section-h2.white { color: white; }

/* Pills */
.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.pill-blue { background: var(--bg-light); color: var(--blue); }
.pill-dark { background: #f0f0f0; color: var(--dark); }

/* ═══════════════════════════════════════
   HERO — scroll-driven build animation
═══════════════════════════════════════ */

/* 300vh tall section — scroll spacer */
.hero-scroll {
  position: relative;
  height: 300vh;
  background: var(--bg-warm);
}

/* Sticky panel that stays in view while user scrolls */
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  overflow: hidden;
}

.hero-inner {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(34,197,94,0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.hero-h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatars {
  display: flex;
}

.avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  object-fit: cover;
}

.avatars img:first-child { margin-left: 0; }

.proof-text {
  font-size: 0.82rem;
  color: var(--muted);
}

.proof-text strong { color: var(--dark); }

/* Browser Mockup */
.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.browser-mockup {
  background: white;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.07),
    0 4px 12px rgba(0,0,0,0.08),
    0 20px 60px rgba(0,0,0,0.14),
    0 40px 100px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  animation: float 6s ease-in-out infinite;
}

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

.browser-bar {
  background: #f4f4f5;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #e4e4e7;
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.browser-url {
  background: white;
  border-radius: 6px;
  padding: 0.28rem 0.75rem;
  font-size: 0.7rem;
  color: #888;
  font-family: monospace;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #e4e4e7;
}

.browser-body {
  position: relative;
}

.mock-hero-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.mock-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.3));
}

.mock-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.3rem;
}

.mock-sub {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.mock-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
}

.mock-cta-btn {
  display: inline-flex;
  background: var(--blue);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  margin-top: 0.4rem;
  width: fit-content;
}

/* Selection box */
.selection-box {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  pointer-events: none;
}

.handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border: 2px solid var(--blue);
  border-radius: 2px;
}
.handle.tl { top: -4px; left: -4px; }
.handle.tr { top: -4px; right: -4px; }
.handle.bl { bottom: -4px; left: -4px; }
.handle.br { bottom: -4px; right: -4px; cursor: se-resize; }

.section-label {
  position: absolute;
  top: -22px;
  left: 0;
  background: var(--blue);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px 4px 0 0;
  letter-spacing: 0.04em;
}

.mock-bottom {
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

.mock-nav-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-logo-pill {
  width: 50px;
  height: 8px;
  background: var(--dark);
  border-radius: 4px;
}

.mock-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-link {
  width: 28px;
  height: 6px;
  background: #ccc;
  border-radius: 3px;
}

.mock-btn-pill {
  width: 44px;
  height: 14px;
  background: var(--blue);
  border-radius: 7px;
}

/* Floating panel */
.float-panel {
  position: absolute;
  top: 20px;
  right: -5px;
  background: white;
  border-radius: 10px;
  padding: 0.65rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  min-width: 130px;
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite 1s;
}

.float-panel-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.4rem;
}

.float-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: #555;
  padding: 0.3rem 0.4rem;
  border-radius: 5px;
  cursor: default;
}

.float-item.active {
  background: var(--bg-light);
  color: var(--blue);
  font-weight: 600;
}

.float-icon {
  font-size: 0.75rem;
}

.mock-tooltip {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  white-space: nowrap;
}

.mock-tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--dark);
}

/* ═══════════════════════════════════════
   MARQUEE
═══════════════════════════════════════ */
.marquee-band {
  background: var(--blue);
  padding: 1rem 0;
  overflow: hidden;
}

.marquee-track {
  overflow: hidden;
}

/* JS appends a clone for loop logic — content already doubled in HTML, so hide the clone */
.marquee-inner[aria-hidden="true"] {
  display: none;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-inner span {
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  padding: 0 1.2rem;
  letter-spacing: 0.02em;
}

.dot-sep {
  color: rgba(255,255,255,0.45) !important;
  padding: 0 !important;
  font-size: 1.1rem !important;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
.services {
  padding: 6rem 0;
  background: var(--bg-warm);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.service-card {
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.service-big {
  background: var(--bg-light);
  border: 1.5px solid var(--border-blue);
  box-shadow: var(--shadow-sm);
  grid-row: 1 / 2;
}

.service-big:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #bbb;
  margin-bottom: 1rem;
}

.service-icon {
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.service-features li {
  font-size: 0.83rem;
  color: #444;
  font-weight: 500;
}

.services-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-small {
  background: white;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.service-small:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-bundle {
  background: var(--dark);
  flex: 0 0 auto;
}

.bundle-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.service-bundle h3 {
  color: white;
  font-size: 1.3rem;
}

.service-bundle .service-num { color: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════════
   TEMPLATE GALLERY
═══════════════════════════════════════ */
.gallery {
  background: #080808;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.gallery-header {
  margin-bottom: 3.5rem;
}

.gallery-header .section-h2 { margin-bottom: 0.75rem; }

.gallery-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  max-width: 420px;
}

.gallery-row-wrap {
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.gallery-row {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.5rem 0;
}

.row-left {
  animation: scroll-left 50s linear infinite;
}

.row-right {
  animation: scroll-right 50s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.gallery-row:hover {
  animation-play-state: paused;
}

.gcard {
  position: relative;
  width: 260px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.gcard:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 24px 60px rgba(0,0,0,0.35);
}

.gcard-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gcard-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  color: white;
}

.gcard-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.7);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Card content variants */
.gc-bold {
  justify-content: flex-end;
}

.gc-eyebrow {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.gc-headline {
  font-family: 'DM Sans', sans-serif;
  color: white;
  line-height: 1.15;
  margin: 0;
}

.gc-phone {
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 0.4rem;
}

.gc-editorial {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.gc-vert-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  opacity: 0.4;
  text-transform: uppercase;
  transform: rotate(180deg);
  flex-shrink: 0;
}

.gc-editorial-main {
  display: flex;
  flex-direction: column;
}

.gc-divider {
  width: 30px;
  height: 1.5px;
  background: rgba(255,255,255,0.4);
  margin: 0.4rem 0;
}

.gc-tagline {
  margin: 0;
}

.gc-luxury {
  justify-content: center;
  align-items: center;
}

.gc-luxury-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.gc-gold-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,210,100,0.8), transparent);
}

.gc-brutalist {
  justify-content: center;
  padding: 1rem 1.2rem;
}

.gc-bottom {
  justify-content: flex-end;
}

.gc-center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.gc-leaf {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.gc-stars {
  font-size: 0.6rem;
  color: #fbbf24;
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
}

.gc-cta-strip {
  margin-top: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.03em;
}

.gc-accent-bar {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.gc-left-heavy {
  justify-content: center;
}

.gc-arch {
  justify-content: flex-end;
  align-items: flex-end;
}

.gc-arch-box {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem;
  border-radius: 6px;
  max-width: 200px;
}

.gc-neon {
  justify-content: center;
  align-items: flex-start;
  padding-top: 1.5rem;
}

.gc-neon-line {
  width: 40px;
  height: 2px;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  margin-top: 0.5rem;
}

.gc-vintage {
  justify-content: center;
  align-items: center;
}

.gc-vintage-badge {
  text-align: center;
}

.gc-vb-outer {
  border: 2px solid rgba(255,220,150,0.7);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gc-vb-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: rgba(255,220,150,0.9);
}

.gc-tech {
  justify-content: flex-end;
}

.gc-tech-grid {
  display: flex;
  gap: 0.6rem;
}

.gc-tech-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.gc-ts-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fbbf24;
}

.gc-ts-label {
  font-size: 0.5rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gc-bottom-centered {
  justify-content: flex-end;
  align-items: center;
  text-align: center;
}

/* ═══════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.how {
  padding: 6rem 0;
  background: var(--white);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 4rem;
  font-weight: 900;
  color: #f0f0f0;
  line-height: 1;
  letter-spacing: -0.05em;
}

.how-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.how-step p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

/* ═══════════════════════════════════════
   PRICING
═══════════════════════════════════════ */
.pricing {
  padding: 6rem 0;
  background: var(--gray-bg);
}

.pricing .section-h2 { margin-bottom: 3.5rem; }

.pricing-cards {
  display: flex;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.price-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card-featured {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
  transform: scale(1.02);
}

.price-card-featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,111,212,0.4), 0 24px 64px rgba(26,111,212,0.22);
}

.price-popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}

.price-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.75rem;
}

.price-card-featured .price-label { color: rgba(255,255,255,0.6); }

.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.price-card-featured .price-amount { color: white; }

.price-period {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.price-card-featured .price-period { color: rgba(255,255,255,0.6); }

.price-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex: 1;
}

.price-features li {
  font-size: 0.84rem;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.price-card-featured .price-features li { color: rgba(255,255,255,0.85); }

.check {
  color: var(--blue);
  font-weight: 800;
  flex-shrink: 0;
}

.check-white { color: rgba(255,255,255,0.9); }

.pricing-banner {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-light);
  border: 1.5px solid var(--border-blue);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.banner-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.banner-fire { font-size: 1.25rem; }

.banner-left strong {
  display: block;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.banner-left p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.banner-dots {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.bdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(26,111,212,0.15);
  border: 1.5px solid rgba(26,111,212,0.2);
}

.bdot.filled {
  background: var(--blue);
  border-color: var(--blue);
}

/* ═══════════════════════════════════════
   CTA BAND
═══════════════════════════════════════ */
.cta-band {
  background: var(--dark);
  padding: 6rem 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.cta-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════
   GRADIENT CTA
═══════════════════════════════════════ */
.gradient-cta {
  position: relative;
  overflow: hidden;
  padding: 9rem 2rem 10rem;
  background: #f0eef8;
  text-align: center;
}

/* Soft colour blobs */
.gradient-cta-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gcta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.75;
}
.gcta-blob-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #b5c8f8, transparent 70%);
  top: -140px; left: -100px;
  animation: blob-drift 10s ease-in-out infinite alternate;
}
.gcta-blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #d4b8f5, transparent 70%);
  top: -80px; right: -80px;
  animation: blob-drift 13s ease-in-out infinite alternate-reverse;
}
.gcta-blob-3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #b8e8d0, transparent 70%);
  bottom: -120px; left: 20%;
  animation: blob-drift 11s ease-in-out infinite alternate;
}
.gcta-blob-4 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #f5c6e8, transparent 70%);
  bottom: -60px; right: 15%;
  animation: blob-drift 9s ease-in-out infinite alternate-reverse;
}

@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

.gradient-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.gcta-h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.gcta-h2 .fraunces {
  font-style: italic;
}

.gcta-sub {
  font-size: 1rem;
  color: rgba(0,0,0,0.5);
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.gcta-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.gcta-btn-primary {
  background: #0a0a0a;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gcta-btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
}

.gcta-btn-ghost {
  background: rgba(255,255,255,0.6);
  color: #0a0a0a;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
  transition: transform 0.2s, background 0.2s;
}
.gcta-btn-ghost:hover {
  background: rgba(255,255,255,0.85);
  transform: scale(1.04);
}

.gcta-note {
  font-size: 0.78rem;
  color: rgba(0,0,0,0.35);
}

/* ═══════════════════════════════════════
   OUR WORK PAGE
═══════════════════════════════════════ */
.work-hero {
  padding-top: 6rem;
}

.work-filter-bar {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 68px;
  z-index: 100;
}

.work-filters {
  display: flex;
  gap: 0.35rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.work-filter {
  background: none;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}

.work-filter:hover {
  background: var(--bg-light);
  color: var(--dark);
}

.work-filter.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.work-section {
  padding: 4rem 0 6rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 3rem;
}

/* ─── Work card ─── */
.work-card {
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

.work-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* ─── Preview area (browser chrome + iframe) ─── */
.work-preview {
  position: relative;
  background: #1a1a1e;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.work-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: #232329;
}

.work-browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.work-browser-url {
  flex: 1;
  background: #2e2e38;
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  color: #999;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── State badge (BEFORE / AFTER) ─── */
.work-state-badge {
  position: absolute;
  top: 44px;
  left: 14px;
  z-index: 20;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  pointer-events: none;
}

.work-state-before {
  background: #ef4444;
  color: #fff;
}

.work-state-after {
  background: #16a34a;
  color: #fff;
}

/* ─── Iframe wrapper ─── */
.work-iframe-wrap {
  position: relative;
  height: 440px;
  overflow: hidden;
}

.work-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none; /* prevent accidental navigation while browsing page */
}

/* ─── Transform overlay ─── */
.work-transform-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s;
  z-index: 10;
}

.work-transform-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 28px rgba(26,111,212,0.55), 0 0 60px rgba(26,111,212,0.25);
  transition: transform 0.18s, box-shadow 0.18s;
  letter-spacing: -0.01em;
}

.work-transform-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 36px rgba(26,111,212,0.7), 0 0 80px rgba(26,111,212,0.35);
}

.transform-bolt {
  font-size: 1.2rem;
}

/* ─── Flash layer ─── */
.work-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}

/* ─── Card info panel ─── */
.work-card-info {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.work-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.work-card-trade {
  font-size: 0.82rem;
  color: var(--muted);
}

.work-live-btn {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
}

.work-improvements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.work-improvements li {
  font-size: 0.88rem;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.work-check {
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
}

.work-revert-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  transition: color 0.15s;
}

.work-revert-btn:hover {
  color: var(--dark);
}

.work-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-iframe-wrap {
    height: 320px;
  }
  .work-card-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  .work-live-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  padding: 2rem 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.83rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: #aaa;
}

/* ═══════════════════════════════════════
   SPOTLIGHT CARD EFFECT
   Port of GlowCard (spotlight-card.tsx)
   Tracks cursor position per-card via --sx/--sy
   CSS custom props. Border glow uses mask-composite.
═══════════════════════════════════════ */
[data-spotlight] {
  --sx: -9999px;
  --sy: -9999px;
  --spotlight-hue: 220;
  position: relative;
  overflow: hidden;
}

/* Inner spotlight — radial glow that follows cursor inside the card */
[data-spotlight]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px 300px at var(--sx) var(--sy),
    hsla(var(--spotlight-hue), 85%, 68%, 0.15),
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
}

/* Glowing border strip — uses mask-composite to isolate just the border edge */
[data-spotlight]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    180px 180px at var(--sx) var(--sy),
    hsla(var(--spotlight-hue), 90%, 72%, 0.9),
    transparent 80%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* Lift all direct children above both glow layers */
[data-spotlight] > * {
  position: relative;
  z-index: 1;
}

/* Bundle card is dark — amber glow reads better */
.service-bundle[data-spotlight] {
  --spotlight-hue: 38;
}

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── data-reveal system ─────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].visible { opacity: 1; transform: none !important; }

[data-reveal-group] [data-reveal]:nth-child(1) { transition-delay: 0s; }
[data-reveal-group] [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-group] [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-group] [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-group] [data-reveal]:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-group] [data-reveal]:nth-child(6) { transition-delay: 0.40s; }

/* ── Reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .browser-mockup,
  .float-panel { animation: none !important; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 2.5rem;
  }
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-right {
    order: 1;
  }
  .browser-mockup {
    max-width: 100%;
  }
  /* On mobile: show all build layers simultaneously (final assembled state) */
  .build-pill { display: none; }
  .build-el {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-right {
    gap: 1rem;
  }

  .how-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-cards {
    flex-direction: column;
    max-width: 380px;
  }

  .pricing-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-h2 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2.5rem;
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .step-num {
    font-size: 3rem;
  }
}

/* ═══════════════════════════════════════
   ACTIVE NAV STATE (multi-page)
═══════════════════════════════════════ */
.nav-link.active-page {
  color: var(--dark) !important;
  background: rgba(0,0,0,0.05) !important;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════════ */
.page-hero {
  padding: 8rem 0 5rem;
  background: var(--bg-warm);
}

.page-hero-dark {
  background: #080808;
}

.page-hero-h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 1.25rem;
}

.page-hero-h1.dark { color: var(--dark); }

.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2rem;
}

.page-hero-sub.dark { color: var(--muted); }

/* ═══════════════════════════════════════
   GALLERY PAGE (no top padding since page-hero handles it)
═══════════════════════════════════════ */
.gallery-page {
  padding-top: 3rem;
}

/* ═══════════════════════════════════════
   STYLE PICKER (templates page)
═══════════════════════════════════════ */
.style-picker {
  padding: 5rem 0 6rem;
  background: var(--bg-warm);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.style-tile {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: default;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

.style-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.style-swatch {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.style-info {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.style-info strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}

.style-info span {
  font-size: 0.75rem;
  color: var(--muted);
}

.style-cta {
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-light);
  border-radius: 16px;
  border: 1.5px solid rgba(26,111,212,0.15);
}

.style-cta p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════
   PRICING PAGE
═══════════════════════════════════════ */
.pricing-page {
  padding-top: 2rem;
  background: var(--gray-bg);
}

.pricing-cards-full {
  max-width: 1000px;
  grid-template-columns: repeat(3, 1fr) !important;
}

.price-card-bundle {
  background: var(--dark);
  border-color: var(--dark);
}

.bundle-old-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bundle-old-price span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: line-through;
}

.bundle-save-tag {
  background: rgba(249,115,22,0.2);
  color: #f97316 !important;
  font-size: 0.7rem !important;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-decoration: none !important;
}

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq-section {
  padding: 5rem 0 6rem;
  background: var(--bg-warm);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.faq-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.faq-item p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════ */
.contact-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-left {
  background: var(--dark);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-left::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,111,212,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.contact-left-inner {
  max-width: 420px;
  padding: 8rem 0 4rem;
}

.contact-h1 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.contact-promises {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.promise-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.promise-item strong {
  display: block;
  font-size: 0.88rem;
  color: white;
  margin-bottom: 0.15rem;
}

.promise-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.contact-social-proof {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contact-right {
  background: var(--gray-bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  overflow-y: auto;
}

.contact-form-wrap {
  width: 100%;
  max-width: 480px;
}

/* Plan pre-selection bar */
.form-plan-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-light);
  border: 1.5px solid rgba(26,111,212,0.2);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--blue);
}

.form-plan-icon {
  font-size: 0.85rem;
}

.form-plan-change {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}
.form-plan-change:hover { color: var(--blue); }

/* Form steps */
.form-step {
  display: none;
}
.form-step.active { display: block; }

.form-step-header {
  margin-bottom: 2rem;
}

.step-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-light);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.form-step-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-step-sub {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Form groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.45rem;
}

.req { color: var(--blue); }

.form-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.76rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"] {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.12);
}

.form-group input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-group input::placeholder { color: #bbb; }

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #888;
  pointer-events: none;
}

.select-wrap select {
  width: 100%;
  padding: 0.72rem 2rem 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: white;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select-wrap select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.12);
}

.textarea-wrap textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  background: white;
  resize: vertical;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.textarea-wrap textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.12);
}

.textarea-wrap textarea::placeholder { color: #bbb; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Service select grid */
.service-select-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-option {
  cursor: pointer;
}

.service-option input[type="checkbox"] {
  display: none;
}

.service-opt-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
  transition: border-color 0.2s, background 0.2s;
}

.service-option input:checked + .service-opt-card {
  border-color: var(--blue);
  background: var(--bg-light);
}

.service-option-bundle input:checked + .service-opt-card {
  border-color: #f97316;
  background: #fff7ed;
}

.soc-icon { font-size: 1.25rem; flex-shrink: 0; }

.soc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.soc-info strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}

.soc-info span {
  font-size: 0.75rem;
  color: var(--muted);
}

.soc-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
}

.service-option input:checked + .service-opt-card .soc-check {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.service-option-bundle input:checked + .service-opt-card .soc-check {
  background: #f97316;
  border-color: #f97316;
  color: white;
}

/* Checkbox label */
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400 !important;
}

/* Form nav buttons */
.form-btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Progress indicator */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 2rem;
}

.fp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.fp-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: #999;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.fp-step.active .fp-dot {
  background: var(--blue);
  color: white;
}

.fp-step.done .fp-dot {
  background: #22c55e;
  color: white;
}

.fp-step span {
  font-size: 0.65rem;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.fp-step.active span { color: var(--blue); }

.fp-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin: 0 0.5rem;
  margin-bottom: 1.2rem;
  min-width: 40px;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.form-success p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto 2rem;
}

.success-next {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.success-next p {
  font-size: 0.78rem;
  color: #bbb;
  margin: 0;
}

/* ═══════════════════════════════════════
   RESPONSIVE — new pages
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .pricing-cards-full {
    grid-template-columns: 1fr 1fr !important;
  }
  .price-card-bundle {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .style-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
  .contact-left {
    padding: 7rem 1.5rem 3rem;
  }
  .contact-left-inner {
    max-width: 100%;
    padding: 0;
  }
  .contact-right {
    padding: 3rem 1.5rem 4rem;
  }
  .page-hero {
    padding: 7rem 1.5rem 4rem;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .pricing-cards-full {
    grid-template-columns: 1fr !important;
    max-width: 420px;
  }
  .price-card-bundle {
    grid-column: auto;
    max-width: 100%;
  }
  .style-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════
   TEMPLATES PAGE — HEADER
═══════════════════════════════════════ */
.tpl-header {
  padding: 8rem 0 3.5rem;
  background: white;
  border-bottom: 1px solid var(--border);
}

.tpl-h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-bottom: 1rem;
}

.tpl-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
}

/* ═══════════════════════════════════════
   TEMPLATES PAGE — CATEGORY TABS
═══════════════════════════════════════ */
.tpl-section {
  padding: 0 0 6rem;
  background: var(--gray-bg);
}

.tpl-cats {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 2rem 0 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 68px;
  background: var(--gray-bg);
  z-index: 100;
  padding-bottom: 1px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 0;
}

.tpl-cats::-webkit-scrollbar { display: none; }

.tpl-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  position: relative;
  bottom: -1.5px;
}

.tpl-cat:hover {
  color: var(--dark);
  border-color: #ccc;
}

.tpl-cat.active {
  background: white;
  color: var(--dark);
  border-color: var(--dark);
  border-bottom-color: white;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.cat-icon { font-size: 0.85rem; }

.cat-count {
  background: var(--border);
  color: #888;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.42rem;
  border-radius: 100px;
  line-height: 1.4;
}

.tpl-cat.active .cat-count {
  background: var(--bg-light);
  color: var(--blue);
}

/* ═══════════════════════════════════════
   TEMPLATES PAGE — ACTIVE LABEL
═══════════════════════════════════════ */
.tpl-active-label {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tpl-active-label h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.tpl-active-label p {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════
   TEMPLATES PAGE — GRID
═══════════════════════════════════════ */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card hide/show animation */
.tpl-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), opacity 0.3s ease;
}

.tpl-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.tpl-card.hidden {
  display: none;
}

.tpl-card.fade-in {
  animation: tpl-fade-in 0.35s ease forwards;
}

@keyframes tpl-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tpl-card-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #111;
}

.tpl-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tpl-card:hover .tpl-card-thumb img {
  transform: scale(1.04);
}

.tpl-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tpl-card-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  color: white;
  justify-content: flex-end;
}

.tpl-eyebrow {
  display: inline-block;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  width: fit-content;
}

.tpl-headline {
  font-family: 'DM Sans', sans-serif;
  color: white;
  line-height: 1.15;
  margin: 0;
}

/* Hover overlay with preview button */
.tpl-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.tpl-card:hover .tpl-hover-overlay {
  opacity: 1;
}

.tpl-preview-btn {
  transform: translateY(6px);
  transition: transform 0.25s;
  font-size: 0.88rem;
  padding: 0.6rem 1.4rem;
}

.tpl-card:hover .tpl-preview-btn {
  transform: translateY(0);
}

/* Card bottom info */
.tpl-card-info {
  padding: 1rem 1.1rem 1.1rem;
}

.tpl-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.tpl-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}

.tpl-style-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue);
  background: var(--bg-light);
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tpl-card-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Empty state */
.tpl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Bottom CTA band */
.tpl-cta-band {
  background: var(--dark);
  padding: 4rem 0;
}

.tpl-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.tpl-cta-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 0.4rem;
}

.tpl-cta-inner p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════
   TEMPLATE PREVIEW MODAL
═══════════════════════════════════════ */
.tpl-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.tpl-modal.open {
  pointer-events: all;
  opacity: 1;
}

.tpl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.tpl-modal-panel {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.tpl-modal.open .tpl-modal-panel {
  transform: translateY(0) scale(1);
}

.tpl-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0,0,0,0.07);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: background 0.2s;
}

.tpl-modal-close:hover { background: rgba(0,0,0,0.14); }

.tpl-modal-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.tpl-modal-prev,
.tpl-modal-next {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: border-color 0.2s, background 0.2s;
}

.tpl-modal-prev:hover,
.tpl-modal-next:hover {
  border-color: var(--dark);
  background: var(--gray-bg);
}

.tpl-modal-counter {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.tpl-modal-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  overflow: hidden;
  flex: 1;
}

/* Preview wrapper fills its grid cell */
.tpl-modal-preview {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Browser chrome in modal */
.tpl-modal-browser {
  background: #f4f4f5;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tpl-modal-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #e4e4e7;
  flex-shrink: 0;
}

.tpl-modal-screen {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.tpl-modal-screen iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

.tpl-modal-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpl-modal-screen-overlay {
  position: absolute;
  inset: 0;
}

.tpl-modal-screen-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  color: white;
}

/* Right info panel */
.tpl-modal-info {
  padding: 1.75rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
}

.tpl-modal-cat-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-light);
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  width: fit-content;
}

.tpl-modal-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin: 0;
}

.tpl-modal-style {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.tpl-modal-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.1rem;
}

.tpl-modal-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.tpl-feat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #333;
  font-weight: 500;
}

.tpl-feat-icon {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.75rem;
}

.tpl-modal-cta {
  margin-top: auto;
}

.tpl-modal-note {
  font-size: 0.72rem;
  color: #bbb;
  text-align: center;
  margin-top: 0.1rem;
}

/* ═══════════════════════════════════════
   RESPONSIVE — templates
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .tpl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tpl-modal-body {
    grid-template-columns: 1fr;
  }
  .tpl-modal-info {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 260px;
  }
  .tpl-modal-screen { min-height: 260px; }
}

@media (max-width: 768px) {
  .tpl-grid {
    grid-template-columns: 1fr;
  }
  .tpl-cats {
    padding-top: 1.25rem;
    top: 60px;
  }
  .tpl-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .tpl-modal {
    padding: 0;
    align-items: flex-end;
  }
  .tpl-modal-panel {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
  }
  .tpl-modal-screen { min-height: 200px; }
}


/* ═══════════════════════════════════════
   BUILD ANIMATION — pill label
═══════════════════════════════════════ */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.build-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(29, 107, 243, 0.07);
  border: 1.5px solid rgba(29, 107, 243, 0.2);
  border-radius: 100px;
  padding: 5px 14px 5px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1d6bf3;
  margin-bottom: 12px;
  /* starts invisible, JS adds .active */
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s var(--ease-out-expo),
    transform 0.4s var(--ease-out-expo),
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.build-pill.active {
  opacity: 1;
  transform: translateY(0);
}

.build-pill.done {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.25);
  color: #16a34a;
}

.build-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1d6bf3;
  flex-shrink: 0;
  animation: build-dot-pulse 1.4s ease-in-out infinite;
  transition: background 0.3s ease;
}

.build-pill.done .build-pill-dot {
  background: #22c55e;
  animation: none;
}

@keyframes build-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.65); opacity: 0.4; }
}

.build-pill-text {
  transition: opacity 0.15s ease;
}

/* ═══════════════════════════════════════
   BUILD ANIMATION — browser mockup
═══════════════════════════════════════ */

/* Override the float animation — browser is sticky, not floating */
#buildBrowser {
  animation: none;
  width: 100%;
  max-width: 520px;
}

/* Fixed-height browser body — blank canvas that layers fill */
#buildBody {
  position: relative;
  height: 322px;
  background: #f8f8f6;
  overflow: hidden;
}

/* Each build layer: positioned absolutely, starts hidden */
.build-el {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--ease-out-expo),
    transform 0.65s var(--ease-out-expo);
  will-change: opacity, transform;
}

/* Nav slides down from above */
.build-from-top {
  transform: translateY(-18px);
}

/* Footer slides up from below */
.build-from-bottom {
  transform: translateY(18px);
}

/* Revealed state */
.build-el.visible {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Layer positions (nav=38px, hero=155px, cards=93px, footer=36px = 322px total) */
#be-nav    { top: 0; }
#be-hero   { top: 38px; }
#be-cards  { top: 193px; }
#be-footer { bottom: 0; }

/* ─── Mini website: Navbar ─── */
.bm-nav {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.bm-logo {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f0d0b;
  white-space: nowrap;
  margin-right: auto;
}

.bm-nav-links {
  display: flex;
  gap: 12px;
}

.bm-nav-links span {
  font-size: 0.58rem;
  color: #999;
  font-weight: 500;
}

.bm-cta {
  background: #1d6bf3;
  color: white;
  font-size: 0.56rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ─── Mini website: Hero section ─── */
.bm-hero {
  position: relative;
  height: 155px;
  overflow: hidden;
}

.bm-hero-img {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.74) 45%, rgba(0,0,0,0.36)),
    url('https://images.unsplash.com/photo-1585771724684-38269d6639fd?w=520&h=180&fit=crop&auto=format')
    center / cover;
}

.bm-hero-content {
  position: relative;
  z-index: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  justify-content: center;
}

.bm-eyebrow {
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  font-weight: 700;
}

.bm-headline {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bm-sub {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.62);
  font-weight: 400;
}

.bm-btns {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}

.bm-btn-primary {
  background: #1d6bf3;
  color: white;
  font-size: 0.56rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 100px;
}

.bm-btn-ghost {
  background: transparent;
  color: white;
  font-size: 0.56rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.32);
}

/* ─── Mini website: Feature cards ─── */
.bm-cards {
  height: 91px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: #f8f8f6;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.bm-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  /* stagger-in when parent becomes visible */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

#be-cards.visible .bm-card:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
#be-cards.visible .bm-card:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.18s; }
#be-cards.visible .bm-card:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.28s; }

.bm-card-icon  { font-size: 13px; }
.bm-card-title { font-size: 0.58rem; font-weight: 700; color: #111; }
.bm-card-sub   { font-size: 0.5rem; color: #888; }

/* ─── Mini website: Footer ─── */
.bm-footer {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #0f0d0b;
}

.bm-footer-logo {
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
}

.bm-footer-links {
  display: flex;
  gap: 5px;
}

.bm-footer-links span {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.38);
}


/* ═══════════════════════════════════════
   CONTAINER SCROLL — laptop frame
   (port of 21st.dev ContainerScroll)
═══════════════════════════════════════ */

/* Reset hero-right — center the laptop card */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ─── Laptop / tablet frame ─── */
.laptop-card {
  width: 100%;
  max-width: 520px;
  background: #222222;
  border: 4px solid #6C6C6C;
  border-radius: 28px;
  padding: 0;           /* chrome + screen handle their own padding */
  overflow: hidden;
  /* Layered cinematic shadow — matches 21st.dev component */
  box-shadow:
    0 9px 20px  rgba(0,0,0,0.30),
    0 37px 37px rgba(0,0,0,0.26),
    0 84px 50px rgba(0,0,0,0.15),
    0 149px 60px rgba(0,0,0,0.04),
    0 233px 65px rgba(0,0,0,0.01);
  /* Initial tilt: 20 deg → 0 deg driven by JS scroll progress */
  transform: perspective(1000px) rotateX(20deg) scale(1.05);
  transform-origin: center center;
  will-change: transform;
  animation: none !important;   /* override legacy float keyframe */
}

/* Browser chrome row inside the frame */
.laptop-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #2e2e2e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.laptop-chrome .browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.laptop-chrome .browser-url {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.42);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.64rem;
  font-family: monospace;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Screen area (white canvas) ─── */
.laptop-screen {
  background: #f8f8f6;
  overflow: hidden;
  /* height is content-driven: nav(38) + hero(155) + cards(91) + footer(36) = 320px */
}

/* ─── Reset bm-card: always visible (no scroll stagger here) ─── */
.laptop-screen .bm-card {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ─── Override bm-cards height: natural flow, not fixed ─── */
.laptop-screen .bm-cards {
  height: auto;
  min-height: 88px;
}

/* ─── Mobile: flat card, no 3D ─── */
@media (max-width: 768px) {
  .laptop-card {
    transform: none !important;
    max-width: 100%;
    border-radius: 20px;
  }
}


/* ═══════════════════════════════════════
   CONTAINER SCROLL — extended (500vh, two-phase)
═══════════════════════════════════════ */

/* Extend scroll room for longer animation */
.hero-scroll { height: 500vh; }

/* Laptop screen: fixed-height viewport, inner content scrolls via JS */
.laptop-screen {
  height: 310px;
  overflow: hidden;
  position: relative;
}

#laptopContent {
  will-change: transform;
  /* No CSS transition — JS drives this frame-by-frame with scroll */
}

/* ─── Services section ─── */
.bm-services {
  padding: 14px 14px 10px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.bm-section-hd {
  margin-bottom: 10px;
}

.bm-section-tag {
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1d6bf3;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.bm-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}

.bm-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.bm-service-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  color: #444;
  font-weight: 500;
  background: #f8f8f6;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 6px 8px;
}

.bm-service-item span { font-size: 11px; }

/* ─── Testimonials section ─── */
.bm-reviews {
  padding: 14px 14px 10px;
  background: #f8f8f6;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.bm-reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.bm-review {
  background: white;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  padding: 8px 9px;
}

.bm-stars {
  font-size: 0.55rem;
  color: #f59e0b;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.bm-review-text {
  font-size: 0.54rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 4px;
}

.bm-review-author {
  font-size: 0.5rem;
  color: #999;
  font-weight: 600;
}

/* ─── CTA Banner ─── */
.bm-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  background: #1d6bf3;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.bm-cta-banner-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.bm-cta-banner-sub {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.bm-cta-banner-btn {
  background: white;
  color: #1d6bf3;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════
   MOBILE — hero scroll animation
   This block is last so it wins the cascade
═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Enough scroll room for both animation phases */
  .hero-scroll { height: 380vh !important; }

  /* Sticky panel — no overflow:hidden (clips 3D perspective) */
  .hero-sticky {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    min-height: unset !important;
    padding: 4.5rem 1.25rem 0.5rem;
    overflow: visible;
    align-items: flex-start;
  }

  /* Compact hero text so laptop sits in the visible half of the screen */
  .badge-pulse   { display: none; }          /* saves ~60px */
  .social-proof  { display: none; }          /* saves ~40px */
  .hero-h1       { font-size: 1.9rem !important; line-height: 1.1; margin-bottom: 0.6rem; }
  .hero-sub      { font-size: 0.88rem; line-height: 1.55; margin-bottom: 1rem; }
  .hero-btns     { margin-bottom: 0; gap: 0.5rem; }

  /* Tighter gap between text and laptop */
  .hero-inner { gap: 0.9rem; }

  /* Laptop fills full width */
  .laptop-card {
    max-width: 100% !important;
    border-radius: 18px;
  }

  /* Screen tall enough to show content scrolling but short enough to be visible */
  .laptop-screen { height: 185px; }
}
