:root {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --surface-alt: #f1ece3;
  --ink: #141619;
  --ink-soft: #2c3038;
  --ink-muted: #5a606c;
  --border: #e4ddd1;
  --border-strong: #cfc5b4;
  --accent: #d1461f;
  --accent-hover: #b13614;
  --accent-soft: #fdf0eb;
  --teal: #0d6e68;
  --teal-soft: #e8f5f4;
  --gold: #c98a1e;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --radius: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 6px rgba(20, 22, 25, 0.04), 0 8px 20px rgba(20, 22, 25, 0.04);
  --shadow-md: 0 12px 32px rgba(20, 22, 25, 0.09), 0 3px 8px rgba(20, 22, 25, 0.05);
  --shadow-lg: 0 24px 60px rgba(20, 22, 25, 0.16), 0 6px 18px rgba(20, 22, 25, 0.08);
  --font-display: 'Chakra Petch', sans-serif;
  --font-serif: 'Chakra Petch', sans-serif;
  --font-brand: 'Chakra Petch', sans-serif;
  --font-sans: 'Chakra Petch', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(1200px 620px at 85% -5%, rgba(209, 70, 31, 0.07), transparent 60%),
              radial-gradient(900px 520px at 10% 10%, rgba(13, 110, 104, 0.06), transparent 55%),
              var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: min(1240px, 100% - 2rem);
  margin-inline: auto;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 245, 239, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--ink) 0%, #2d3138 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(20, 22, 25, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.52rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(20, 22, 25, 0.06);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 9px;
  padding: 0.48rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.78rem 1.35rem;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(209, 70, 31, 0.24);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(209, 70, 31, 0.32);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 22, 25, 0.16);
}
.btn-dark:hover { background: #2a2e36; }

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

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 110, 104, 0.22);
}
.btn-teal:hover { background: #095651; }

.btn-sm { padding: 0.56rem 1rem; font-size: 0.86rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ==================== PAGES ==================== */
.page-section {
  display: none;
  padding: 2rem 0 4.5rem;
}
.page-section.active { display: block; }

/* ==================== HERO ==================== */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.95rem, 3.6vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: var(--ink);
}

.hero-sub {
  margin: 0 0 1.85rem;
  font-size: 1.07rem;
  color: var(--ink-muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.hero-stat span {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Hero Visual 3D Stage */
.hero-visual-stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-visual-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroKenBurns 14s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.09) translate(-1.2%, -1%); }
}

.hero-visual-overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: rgba(20, 22, 25, 0.82);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual-overlay strong {
  display: block;
  font-size: 0.9rem;
}

.hero-visual-overlay small {
  font-size: 0.76rem;
  color: #d0d5dd;
}

.hero-price-chip {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  padding: 0.42rem 0.78rem;
  border-radius: 9px;
  white-space: nowrap;
}

/* Marquee Ticker */
.marquee-wrap {
  margin-top: 2.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding: 0.72rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marqueeScroll 30s linear infinite;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.marquee-track span::before {
  content: '◆ ';
  color: var(--accent);
  margin-right: 0.4rem;
}

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

/* ==================== SECTION HEADS & FILTERS ==================== */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin: 3.25rem 0 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  max-width: 62ch;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-bottom: 1.75rem;
  align-items: center;
}

.filter-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-muted);
  padding: 0.46rem 0.92rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(20, 22, 25, 0.16);
}

.search-input {
  margin-left: auto;
  padding: 0.52rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 240px;
}

/* ==================== 19 READYMADE PRODUCTS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.25s ease;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* Rich Interactive Video/Animation Preview Stage */
.anim-stage {
  position: relative;
  height: 204px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* Curated studio color themes per product */
.theme-photo { background: #181a1f; }
.theme-terracotta { background: linear-gradient(135deg, #2a1812 0%, #5c2616 55%, #b54524 100%); }
.theme-emerald { background: linear-gradient(135deg, #0b2421 0%, #114742 55%, #1d756d 100%); }
.theme-slate { background: linear-gradient(135deg, #141820 0%, #242c3b 55%, #374357 100%); }
.theme-amber { background: linear-gradient(135deg, #251b0e 0%, #5c3e14 55%, #b87c24 100%); }
.theme-ivory { background: linear-gradient(135deg, #efe8dc 0%, #e4d8c4 60%, #d9c8ae 100%); }
.theme-forest { background: linear-gradient(135deg, #132219 0%, #1e422e 55%, #2e6b4a 100%); }
.theme-copper { background: linear-gradient(135deg, #1f1715 0%, #4b2c20 55%, #8f5032 100%); }

.anim-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  filter: brightness(0.92) contrast(1.04);
}

.product-card:hover .anim-bg-img {
  transform: scale(1.12);
  filter: brightness(1.02) contrast(1.08);
}

.anim-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.25) 0%, rgba(16, 18, 22, 0.05) 45%, rgba(16, 18, 22, 0.65) 100%);
  pointer-events: none;
}

.anim-stage-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.26rem 0.62rem;
  border-radius: 7px;
  background: rgba(20, 22, 25, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.anim-play-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: background 0.2s ease, color 0.2s ease;
}

.product-card:hover .anim-play-pill {
  background: var(--accent);
  color: #fff;
}

.anim-play-pill .state-idle { display: inline; }
.anim-play-pill .state-live { display: none; }
.product-card:hover .anim-play-pill .state-idle { display: none; }
.product-card:hover .anim-play-pill .state-live { display: inline; }

/* Animated video preview scrubber bar along bottom of preview stage */
.preview-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.preview-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff9966, #d1461f);
}

.product-card:hover .preview-progress-fill {
  animation: videoScrub 4.5s linear infinite;
}

@keyframes videoScrub {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ==================== BESPOKE KINETIC SCENE MOCKUPS ==================== */
.scene {
  position: relative;
  z-index: 2;
  width: 88%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Photo overlay kinetic chip */
.photo-overlay-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 22, 25, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  transform: translateY(4px);
  transition: transform 0.35s ease;
}

.product-card:hover .photo-overlay-hud {
  transform: translateY(-2px);
}

.hud-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--accent);
  color: #fff;
  padding: 0.16rem 0.45rem;
  border-radius: 6px;
}

/* Mockup Cards */
.ui-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ui-card-dark {
  background: rgba(18, 22, 28, 0.92);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Specific hover-triggered motion scenes */
.product-card:hover .k-lift { transform: translateY(-6px) scale(1.03); }
.product-card:hover .k-tilt-l { transform: rotate(-4deg) translate(-6px, -4px); }
.product-card:hover .k-tilt-r { transform: rotate(5deg) translate(8px, -6px); }

/* Poll bars */
.poll-bar-bg {
  height: 10px;
  border-radius: 999px;
  background: #ece7dd;
  overflow: hidden;
  margin-top: 5px;
}
.poll-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  width: 34%;
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.poll-bar-fill.teal { background: var(--teal); width: 22%; }
.product-card:hover .poll-bar-fill { width: 82%; }
.product-card:hover .poll-bar-fill.teal { width: 64%; }

/* WhatsApp chat bubbles */
.wa-bubble {
  padding: 0.4rem 0.62rem;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 6px;
  max-width: 84%;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.wa-in { background: #ffffff; color: #141619; }
.wa-out {
  background: #dcf8c6;
  color: #103b22;
  margin-left: auto;
  transform: translateY(6px);
  opacity: 0.85;
}
.product-card:hover .wa-out {
  transform: translateY(0);
  opacity: 1;
}

/* Audio Equalizer */
.eq-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 68px;
}
.eq-bar {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9d6e, #d1461f);
  height: var(--h, 28px);
  transition: height 0.3s ease;
}
.eq-bar:nth-child(even) { background: linear-gradient(180deg, #5eead4, #0d6e68); }
.product-card:hover .eq-bar {
  animation: eqBounce 0.75s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
@keyframes eqBounce {
  0% { height: 14px; }
  100% { height: 64px; }
}

/* 3D Book flip */
.book-3d {
  width: 96px;
  height: 122px;
  position: relative;
  perspective: 700px;
}
.book-cover {
  position: absolute;
  inset: 0;
  border-radius: 4px 12px 12px 4px;
  background: linear-gradient(145deg, #d1461f, #8c270d);
  color: #fff;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: left center;
  box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.38);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}
.book-pages {
  position: absolute;
  inset: 4px 2px 4px 6px;
  border-radius: 2px 10px 10px 2px;
  background: #faf6ee;
  border: 1px solid #d7cbb8;
  padding: 0.55rem;
  font-size: 0.64rem;
  color: #3a3f47;
  font-weight: 700;
}
.product-card:hover .book-cover {
  transform: rotateY(-38deg);
}

/* Workflow nodes pulse */
.wf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  width: 100%;
}
.wf-node {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  min-width: 68px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, background 0.35s ease;
}
.wf-node.active-node { background: var(--accent); color: #fff; }
.wf-wire {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.wf-wire::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: #ffb380;
}
.product-card:hover .wf-wire::after {
  animation: packetFlow 1.1s linear infinite;
}
.product-card:hover .wf-node.active-node {
  transform: scale(1.08);
}
@keyframes packetFlow {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* Spreadsheet bars */
.chart-cols {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 54px;
  margin-top: 8px;
}
.chart-col {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: #d9e7e5;
  height: var(--h, 24px);
  transition: height 0.65s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}
.chart-col.hi { background: var(--teal); }
.product-card:hover .chart-col { height: var(--hh, 48px); }
.product-card:hover .chart-col.hi { background: var(--accent); }

/* ATS Scanner line */
.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  opacity: 0;
}
.product-card:hover .scan-beam {
  opacity: 1;
  animation: scanSweep 1.5s ease-in-out infinite alternate;
}
@keyframes scanSweep {
  from { top: 12px; }
  to { top: 102px; }
}

/* Rings */
.ring-svg circle.ring-progress {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .ring-svg circle.ring-progress {
  stroke-dashoffset: 18 !important;
}

/* Fanned cards (Canva / Printables / Business Plan) */
.fan-stack {
  position: relative;
  width: 170px;
  height: 112px;
}
.fan-sheet {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #dfd7ca;
  padding: 0.6rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink);
}
.fan-sheet.s1 { transform: rotate(-6deg) translate(-14px, 4px); background: #fdf1ec; }
.fan-sheet.s2 { transform: rotate(5deg) translate(16px, 6px); background: #eaf5f4; }
.fan-sheet.s3 { transform: rotate(0deg); z-index: 2; }
.product-card:hover .fan-sheet.s1 { transform: rotate(-14deg) translate(-34px, -2px); }
.product-card:hover .fan-sheet.s2 { transform: rotate(13deg) translate(36px, -2px); }
.product-card:hover .fan-sheet.s3 { transform: translateY(-6px) scale(1.04); }

/* Typing cursor */
.typing-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #7ee7d8;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #ff9d6e;
  width: 66%;
  transition: width 1.1s steps(24, end);
}
.product-card:hover .typing-line { width: 100%; }

/* Stars twinkle for Kids Story */
.star-dot {
  position: absolute;
  color: #ffd166;
  font-size: 1rem;
  transition: transform 0.4s ease;
}
.product-card:hover .star-dot {
  animation: twinkle 0.9s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { transform: scale(0.85) rotate(-8deg); opacity: 0.65; }
  to { transform: scale(1.25) rotate(12deg); opacity: 1; }
}

/* ==================== PRODUCT CARD BODY ==================== */
.product-body {
  padding: 1.2rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.product-desc {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.product-price small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 2px;
}

/* ==================== DUAL SIDE-BY-SIDE STUDIO ROW ==================== */
.dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
}

.panel-dark {
  background: linear-gradient(160deg, #16191e 0%, #1f242c 100%);
  color: #f8fafc;
  border: 1px solid #2e3440;
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-md);
}

.panel-dark .panel-sub { color: #b8c0cc; }
.panel-dark .field label { color: #e6eaf0; }
.panel-dark .field input,
.panel-dark .field select,
.panel-dark .field textarea {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.panel-dark .field option { background: #1c2026; color: #fff; }
.panel-dark .field input::placeholder,
.panel-dark .field textarea::placeholder { color: #8c95a3; }
.panel-dark .field input:focus,
.panel-dark .field select:focus,
.panel-dark .field textarea:focus {
  border-color: #ff7e52;
  background: rgba(255, 255, 255, 0.11);
}

.panel-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.panel-dark .panel-eyebrow { color: #ff8e66; }

.panel h3, .panel-dark h3 {
  margin: 0 0 0.45rem;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}

.panel-sub {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.service-chip {
  padding: 0.38rem 0.74rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.service-chip:hover, .service-chip.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Freelancer Full Page Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover, .service-card.selected {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card h4 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.service-card p { margin: 0 0 0.8rem; font-size: 0.85rem; color: var(--ink-muted); }
.service-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
}
.service-card-meta .price { color: var(--accent); font-family: var(--font-mono); }

/* ==================== FORMS ==================== */
.form-grid { display: grid; gap: 0.9rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.32rem;
  color: var(--ink);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.88rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.form-status {
  margin-top: 0.85rem;
  padding: 0.78rem 0.98rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--teal-soft); color: var(--teal); border: 1px solid #b6dedb; }
.form-status.err { background: var(--danger-soft); color: var(--danger); border: 1px solid #f7c5c2; }

/* ==================== TRUST STRIP ==================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 3rem;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.trust-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.trust-item strong { display: block; font-size: 0.98rem; margin-bottom: 0.3rem; }
.trust-item span { font-size: 0.85rem; color: var(--ink-muted); }

/* ==================== CHECKOUT MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 22, 0.62);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 1rem;
}
.modal-backdrop.open { display: grid; }

.modal-card {
  width: min(500px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.7rem;
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-close {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 1.15rem;
  cursor: pointer;
}

.checkout-summary {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-summary .amount {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
}

.test-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

/* ==================== CHATBOT WIDGET ==================== */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-fab:hover { background: var(--accent); transform: translateY(-2px); }

.chat-drawer {
  position: fixed;
  right: 22px;
  bottom: 84px;
  width: min(395px, calc(100vw - 24px));
  height: min(565px, calc(100vh - 115px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 65;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-drawer.open { display: flex; }

.chat-head {
  background: var(--ink);
  color: #fff;
  padding: 0.95rem 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.chat-head-title strong { display: block; font-size: 0.96rem; }
.chat-head-title small { font-size: 0.74rem; color: #c8cdd6; }

.chat-langs { display: flex; gap: 0.25rem; }

.chat-lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.24rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.chat-lang-btn.active { background: var(--accent); border-color: var(--accent); }

.chat-messages {
  flex: 1;
  padding: 0.95rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg);
}

.chat-bubble {
  max-width: 88%;
  padding: 0.72rem 0.92rem;
  border-radius: 13px;
  font-size: 0.87rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.58rem 0.8rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-chip {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}
.chat-chip:hover { border-color: var(--accent); color: var(--accent); }

.chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.72rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 0.58rem 0.82rem;
  font-family: inherit;
  font-size: 0.89rem;
}

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.88rem;
}

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

/* ==================== SCROLL REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== ULTIMATE DISPLAY TYPOGRAPHY & KINETIC TEXT ANIMATIONS ==================== */
.brand-name {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}

.hero h1,
.section-head h2,
.panel h3,
.panel-dark h3,
.product-title,
.service-card h4 {
  font-family: var(--font-display);
}

.hero h1 {
  font-size: clamp(2.15rem, 3.9vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: -0.01em;
  color: var(--accent);
}

/* Staggered word-by-word masked reveal for Hero Headline */
.hero-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-right: 0.22em;
}

.hero-word-inner {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  animation: heroWordRise 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--wd, 0ms);
}

@keyframes heroWordRise {
  0% {
    transform: translateY(115%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

/* Live Kinetic Rotating Tagline under Hero Headline */
.kinetic-rotator {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 700;
  color: var(--ink-soft);
}

.rotator-prefix {
  color: var(--ink-muted);
  font-weight: 600;
}

.rotator-word {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.015em;
  border-right: 2.5px solid var(--accent);
  padding-right: 0.35rem;
  animation: cursorBlink 0.9s step-end infinite;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.rotator-word.swap-out {
  opacity: 0;
  transform: translateY(-10px);
}

.rotator-word.swap-in {
  opacity: 0;
  transform: translateY(12px);
}

@keyframes cursorBlink {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: transparent; }
}

/* Animated Section Heading Underline Sweep */
.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.32rem;
}

.section-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3.5px;
  width: 0%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-head.heading-live h2::after {
  width: 72px;
}

/* Product Card Typography Micro-Motion on Hover */
.product-title {
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  transition: color 0.22s ease, transform 0.25s ease;
}

.product-card:hover .product-title {
  color: var(--accent);
  transform: translateX(3px);
}

.product-price {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease;
  transform-origin: left center;
}

.product-card:hover .product-price {
  transform: scale(1.06);
  color: var(--ink);
}

.buy-now-btn {
  transition: transform 0.2s ease, letter-spacing 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover .buy-now-btn {
  letter-spacing: 0.015em;
}

/* Accessibility: Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-word-inner {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .rotator-word, .marquee-track, .hero-visual-img {
    animation: none !important;
  }
}

/* Payment Method Selector (UPI & Card) */
.pay-method-box {
  margin-top: 0.75rem;
}
.pay-method-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pay-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.pay-method-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.pay-method-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pay-method-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
}
.pay-method-btn.card-opt .pay-method-badge {
  background: var(--accent-soft);
  color: var(--accent);
}
.pay-method-btn strong {
  font-size: 1.02rem;
}
.pay-method-btn small {
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.35;
}
.pay-method-btn.qr-opt {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pay-method-btn.qr-opt .pay-method-badge {
  background: var(--ink);
  color: #fff;
}
.upi-qr-panel {
  margin-top: 0.9rem;
  padding: 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  text-align: center;
}
.upi-qr-frame {
  display: inline-block;
  background: #fff;
  padding: 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 0.6rem auto;
}
.upi-qr-frame svg {
  width: 210px;
  height: 210px;
}
.upi-utr-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.upi-utr-row input {
  flex: 1;
  padding: 0.62rem 0.8rem;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.pay-back-btn {
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* ==================== CUSTOM PRODUCT AI THINK & WORKING FEE STUDIO ==================== */
.custom-studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}
.custom-live-sidebar {
  position: sticky;
  top: 86px;
}
.custom-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}
.custom-btn-row .btn {
  flex: 1 1 200px;
}
.addon-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.addon-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft, #f8fafc);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.addon-chip:hover {
  border-color: var(--accent);
}
.addon-chip span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}
.custom-analysis-card,
.custom-pay-card {
  margin-top: 0.9rem;
  padding: 1.05rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.5;
}
.custom-analysis-card.dark-mode,
.custom-pay-card.dark-mode {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
}
.custom-analysis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.custom-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent);
}
.dark-mode .custom-pill {
  background: rgba(255, 126, 82, 0.22);
  color: #ff9c78;
}
.thinking-list,
.deliverable-list {
  margin: 0.4rem 0 0.85rem;
  padding-left: 1.1rem;
}
.thinking-list li,
.deliverable-list li {
  margin-bottom: 0.3rem;
}
.fee-breakdown-box {
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-top: 0.6rem;
}
.dark-mode .fee-breakdown-box {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.14);
}
.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.26rem 0;
  font-size: 0.84rem;
}
.fee-row.total {
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  font-weight: 800;
  font-size: 0.94rem;
}
.fee-row.due-now {
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}
.dark-mode .fee-row.due-now {
  color: #ff9c78;
}
.custom-qr-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0.75rem 0;
}
.custom-qr-wrap img {
  width: 152px;
  height: 152px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.custom-utr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}
.custom-utr-row input {
  flex: 1 1 180px;
  padding: 0.58rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.dark-mode .custom-utr-row input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .hero-grid, .dual-row, .custom-studio-grid { grid-template-columns: 1fr; }
  .custom-live-sidebar { position: static; }
  .addon-checks { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .form-row-2, .test-actions { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .search-input { width: 100%; margin-left: 0; }
}
