/* ==========================================================================
   IDENTITY CRAFTERS — MODERN LUXURY OBSIDIAN DESIGN SYSTEM v4.0
   Engineered for Speed, High Conversion, and WCAG AAA Accessibility
   ========================================================================== */

/* Self-hosted variable fonts (latin). No third-party requests. */
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/space-grotesk-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/figtree-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  /* Brand Core Palette */
  --n-bg: #050914;
  --n-surface: #0A1224;
  --n-card: rgba(14, 24, 46, 0.72);
  --n-card-hover: rgba(20, 34, 64, 0.85);
  --n-border: rgba(255, 255, 255, 0.09);
  --n-border-hover: rgba(245, 158, 11, 0.35);

  /* Accents */
  --g: #F59E0B;
  --g-hover: #FBBF24;
  --g-light: #FEF3C7;
  --cy: #06B6D4;
  --cy-light: #67E8F9;
  --emerald: #10B981;
  --rose: #F43F5E;

  /* Typography Colors */
  --text-main: #FFFFFF;
  --text-muted: #CBD5E1;
  --text-sub: #94A3B8;
  --text-dark: #0A1224;

  /* Sizing & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1200px;

  /* Fonts */
  --ff-heading: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', 'Nirmala UI', 'Noto Sans Tamil', 'Tamil Sangam MN', sans-serif;
  --ff-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', 'Nirmala UI', 'Noto Sans Tamil', 'Tamil Sangam MN', sans-serif;
  --ff-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --hd-h: 76px;

  /* Shadows */
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-hover: 0 20px 48px -10px rgba(0, 0, 0, 0.75), 0 0 24px -4px rgba(245, 158, 11, 0.2);
  --shadow-gold: 0 8px 24px -4px rgba(245, 158, 11, 0.45);
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hd-h, 76px) + 14px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--n-bg);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--n-bg);
  overflow-x: clip;
  min-height: 100vh;
  padding-bottom: 72px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  color: var(--text-main);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p, .lead, .sub {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

.lead {
  font-size: 1.18rem;
  color: #E2E8F0;
  line-height: 1.6;
}

.sub {
  font-size: 1.05rem;
  color: var(--text-muted);
}

a {
  color: var(--g-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease;
}

a:hover {
  color: #FFFFFF;
}

button, .btn, a, input, select, textarea, .sc-tab, .town-chip {
  touch-action: manipulation;
}

/* Skip to Content for Keyboard Accessibility (WCAG 2.2 AAA) */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  background: linear-gradient(135deg, var(--g), var(--g-hover));
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  z-index: 99999;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--cy);
  outline-offset: 3px;
}

/* Top Progress Line */
.topline {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--g), var(--cy));
  z-index: 1000;
  transition: width 0.08s linear;
}

/* ==========================================================================
   LAYOUT CONTAINERS & SECTION SPACING
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.narrow {
  max-width: 780px;
}

.sec {
  padding-block: clamp(48px, 7vw, 92px);
  position: relative;
}

.sec.alt {
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.6) 0%, rgba(6, 11, 24, 0.8) 100%);
  border-top: 1px solid var(--n-border);
  border-bottom: 1px solid var(--n-border);
}

.sec.dark {
  background: #040710;
  border-top: 1px solid var(--n-border);
  border-bottom: 1px solid var(--n-border);
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--g-hover);
  margin-bottom: 10px;
}

.two {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.two > * {
  min-width: 0;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-block: 24px 16px;
}

.grid > * {
  min-width: 0;
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn.gold {
  background: linear-gradient(135deg, var(--g) 0%, #FFB703 100%);
  color: #040814 !important;
  box-shadow: var(--shadow-gold);
}

.btn.gold:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #FFC72C 100%);
  box-shadow: 0 12px 30px -4px rgba(245, 158, 11, 0.6);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.22);
}

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

.btn.navy {
  background: #0E1A33;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn.navy:hover {
  background: #15264B;
  border-color: var(--g-hover);
}

/* Global Focus-Visible Outline */
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, button:focus-visible, .sc-tab:focus-visible, .town-chip:focus-visible {
  outline: 3px solid var(--cy) !important;
  outline-offset: 3px !important;
}

/* Live Beacon Indicator */
.live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34D399;
}

.live-beacon .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.live-beacon .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #34D399;
  animation: beaconPulse 2s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes beaconPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.btn.gold .live-beacon {
  color: #040814 !important;
  font-weight: 800 !important;
  background: rgba(0, 0, 0, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.btn.gold .live-beacon .dot {
  background: #040814 !important;
}

.btn.gold .live-beacon .dot::after {
  border-color: rgba(4, 8, 20, 0.45) !important;
}

/* ==========================================================================
   HERO SECTION — DUAL COLUMN ARCHITECTURE
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(900px 480px at 10% 110%, rgba(245, 158, 11, 0.22), transparent 60%),
    linear-gradient(175deg, #050914 0%, #0A1329 50%, #060B18 100%);
  color: #FFFFFF;
  padding-block: clamp(48px, 6vw, 84px) clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--n-border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 15%, transparent 75%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  grid-template-areas:
    "bc bc"
    "copy art";
  gap: 20px clamp(28px, 4vw, 56px);
  align-items: center;
}

/* Breadcrumb Navigation on Inner Pages */
.bcpills, .bc {
  grid-area: bc !important;
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
  font-size: 0.86rem !important;
  width: 100% !important;
}

.hero-copy {
  grid-area: copy !important;
}

.hero-art {
  grid-area: art !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bcpills a, .bc a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--radius-full) !important;
  padding: 5px 14px !important;
  color: #E2E8F0 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.bcpills a:hover, .bc a:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  color: var(--g-hover) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

/* Decorative Hero Orbit SVG (Used on inner pages) */
.hero-orbit {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin-inline: auto;
  overflow: visible;
  filter: drop-shadow(0 0 24px rgba(6, 182, 212, 0.22));
}

.hero-orbit .ring {
  fill: none !important;
  stroke: rgba(255, 255, 255, 0.14) !important;
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: orbitSpin 35s linear infinite;
  transform-origin: 200px 200px;
}

.hero-orbit .ring.r1 {
  stroke: rgba(6, 182, 212, 0.35) !important;
  animation-duration: 45s;
}

.hero-orbit .ring.r2 {
  stroke: rgba(245, 158, 11, 0.32) !important;
  animation-duration: 28s;
  animation-direction: reverse;
}

.hero-orbit .ring.r3 {
  stroke: rgba(255, 255, 255, 0.18) !important;
  animation-duration: 18s;
}

.hero-orbit .dot {
  fill: var(--g-hover) !important;
}

.hero-orbit .dot.d1 { fill: var(--cy-light) !important; }
.hero-orbit .dot.d2 { fill: var(--g-hover) !important; }
.hero-orbit .dot.d3 { fill: #10B981 !important; }

.hero-orbit .spark {
  fill: none !important;
  stroke: var(--g-hover) !important;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}

.text-gold {
  background: linear-gradient(135deg, var(--g-hover), #FF9E00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-cyan {
  background: linear-gradient(135deg, var(--cy-light), var(--cy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.12rem;
  color: #D1D5DB;
  max-width: 54ch;
  margin-bottom: 24px;
}

/* Trust Strip Under Hero */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.trust-pill,
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(14, 26, 50, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: #E2E8F0;
}

.trust-pill svg,
.trust-item svg {
  color: var(--emerald);
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

/* Hero Showcase Component (Right Column) */
.hero-art {
  width: 100%;
}

.hero-showcase {
  background: rgba(11, 20, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* MacOS / Browser Header Bar */
.sc-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(6, 12, 26, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-window-dots {
  display: flex;
  gap: 6px;
}

.sc-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.sc-window-dots span:nth-child(1) { background: #EF4444; }
.sc-window-dots span:nth-child(2) { background: #F59E0B; }
.sc-window-dots span:nth-child(3) { background: #10B981; }

.sc-window-title {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

/* Interactive Tabs */
.sc-tabs {
  display: flex;
  background: rgba(8, 15, 32, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}

.sc-tabs::-webkit-scrollbar {
  display: none;
}

.sc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-sub);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex: 1;
  justify-content: center;
}

.sc-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.sc-tab.active {
  color: var(--g-hover);
  border-bottom-color: var(--g-hover);
  background: rgba(245, 158, 11, 0.08);
}

.sc-body {
  padding: 22px;
}

.sc-panel {
  display: none;
}

.sc-panel.active {
  display: block;
}

.sc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sc-badge-tag {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cy-light);
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.sc-verified {
  font-size: 0.75rem;
  color: #34D399;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Card Mockup Elements (High-Contrast & Perfectly Spaced) */
.mockup-gbp {
  background: rgba(6, 12, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.mockup-gbp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.mockup-gbp-title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
}

.mockup-gbp-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FBBF24;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 4px;
}

.mockup-gbp-stars span {
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 500;
}

.mockup-gbp-meta {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 14px;
}

.mockup-gbp-btns {
  display: flex;
  gap: 10px;
}

.mockup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  flex: 1;
}

.mockup-btn.blue {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #3B82F6;
}

/* Metrics Row */
.sc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(6, 12, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.sc-metric-val {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--g-hover);
}

.sc-metric-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-sub);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Brand Grid Mockup */
.mockup-brand {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.brand-tile {
  background: rgba(6, 12, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-tile svg {
  margin-bottom: 6px;
}

.brand-tile b {
  font-size: 0.92rem;
  color: #FFFFFF;
}

.brand-tile span {
  font-size: 0.75rem;
  color: var(--text-sub);
}

/* Hero Marquee Ticker */
.mq {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: 18px;
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mq div {
  display: inline-block;
  animation: marqueeRoll 45s linear infinite;
}

.mq span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  color: #9FB6D1;
  font-size: 0.88rem;
  font-weight: 600;
}

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

/* ==========================================================================
   STAT STRIP
   ========================================================================== */

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

.stats > div {
  padding: 20px 12px;
  border-right: 1px solid var(--n-border);
}

.stats > div:last-child {
  border-right: none;
}

.stats b {
  display: block;
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--g-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span {
  font-size: 0.88rem;
  color: var(--text-sub);
  font-weight: 600;
}

/* ==========================================================================
   CARDS & GRIDS (ELITE GLASSMORPHISM)
   ========================================================================== */

.card {
  position: relative;
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 26px;
  background: var(--n-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, var(--g), var(--cy));
  opacity: 0.85;
}

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

.card h3 {
  margin-bottom: 0.4em;
  font-size: 1.15rem;
  color: #FFFFFF;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.card a {
  color: inherit;
  text-decoration: none;
}

.card h3 > a:hover {
  color: var(--g-hover);
}

.cic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 16px;
  color: var(--g-hover);
}

.cic svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ==========================================================================
   COMPARISON TABLE (IDENTITY CRAFTERS VS AGENCIES)
   ========================================================================== */

.comp-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--n-border);
  box-shadow: var(--shadow-card);
  margin-block: 28px;
  background: var(--n-card);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.comp-table th, .comp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--n-border);
}

.comp-table th {
  background: rgba(6, 12, 26, 0.95);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: #E2E8F0;
  letter-spacing: -0.01em;
}

.comp-table th.highlight, .comp-table td.highlight {
  background: rgba(245, 158, 11, 0.08);
  border-inline: 1px solid rgba(245, 158, 11, 0.25);
}

.comp-table th.highlight {
  color: var(--g-hover);
  font-size: 1.02rem;
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.check-yes {
  color: #34D399;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-no {
  color: #F87171;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   BENTO GRID (GROWTH STAGES)
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-block: 28px 20px;
}

.bcell {
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none !important;
  color: var(--text-muted);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.bcell:hover {
  transform: translateY(-4px);
  border-color: var(--n-border-hover);
  box-shadow: var(--shadow-hover);
}

.bcell h3 {
  color: #FFFFFF;
  margin-bottom: 0.4em;
}

.bcell.b-lg {
  grid-column: span 2;
}

/* ==========================================================================
   INTERACTIVE SCOPE & QUOTE BUILDER
   ========================================================================== */

.calc-box {
  background: rgba(10, 18, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
}

.calc-town {
  max-width: 440px;
  padding: 12px 18px;
  border: 2px solid var(--n-border);
  border-radius: var(--radius-sm);
  background: rgba(6, 12, 26, 0.8);
  color: #FFFFFF;
  font-family: var(--ff-body);
  font-size: 1rem;
  width: 100%;
  margin-bottom: 8px;
  transition: border-color 0.15s ease;
}

.calc-town:focus {
  outline: none;
  border-color: var(--g-hover);
}

.town-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.town-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.town-chip:hover, .town-chip.active {
  background: var(--g);
  color: var(--text-dark);
  border-color: var(--g);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.calc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(6, 12, 26, 0.7);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.calc-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.calc-item.active {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--g-hover);
}

.calc-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--g);
  cursor: pointer;
}

.calc-item-text b {
  display: block;
  font-size: 0.96rem;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.calc-item-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.calc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--n-border);
  padding-top: 20px;
  flex-wrap: wrap;
}

.calc-summary-info h4 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #FFFFFF;
}

.calc-summary-info p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.calc-count {
  font-weight: 700;
  color: var(--g-hover);
}

.calc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calc-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cy-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

/* ==========================================================================
   ROADMAP / ACCORDION / DELIVERABLES / FAQ
   ========================================================================== */

.roadmap {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 24px;
}

.rm-step {
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}

.rm-num {
  font-family: var(--ff-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--g-hover);
  margin-bottom: 8px;
  display: block;
}

.rm-step h4 {
  margin-bottom: 6px;
  color: #FFFFFF;
}

.rm-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Details & Summary (FAQ) */
details {
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

details[open] {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(14, 26, 52, 0.85);
}

summary {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--g-hover);
  font-weight: 700;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-filter-inp {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--n-border);
  border-radius: var(--radius-full);
  background: rgba(6, 12, 26, 0.8);
  color: #FFFFFF;
  font-family: var(--ff-body);
  font-size: 1rem;
  margin-bottom: 20px;
}

.faq-filter-inp:focus {
  outline: none;
  border-color: var(--g-hover);
}

/* Form Styles */
form.wa {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
}

form.wa label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #E2E8F0;
}

form.wa input, form.wa select, form.wa textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--n-border);
  background: rgba(6, 12, 26, 0.8);
  color: #FFFFFF;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

form.wa input:focus, form.wa select:focus, form.wa textarea:focus {
  outline: none;
  border-color: var(--g-hover);
}

form.wa input.err, form.wa select.err, form.wa textarea.err {
  border-color: var(--rose) !important;
}

/* Tick List */
.tick {
  list-style: none;
  margin-block: 16px;
}

.tick li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
}

.tick li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.95rem;
}

/* Copy Pill */
.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--g-hover);
}

.copy-pill svg {
  width: 16px;
  height: 16px;
}

/* Map Iframe */
iframe {
  width: 100%;
  height: 320px;
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  display: block;
}

/* ==========================================================================
   SERVICES DIRECTORY, FILTER CHIPS & SEARCH (services.html)
   ========================================================================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chips a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CBD5E1 !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chips a:hover,
.chips a.active,
.chips a[aria-current="page"] {
  background: var(--g) !important;
  color: var(--text-dark) !important;
  border-color: var(--g) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.sr {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.sr input,
#q {
  display: block;
  width: 100%;
  max-width: 580px;
  margin-top: 8px;
  padding: 13px 20px;
  border: 2px solid var(--n-border);
  border-radius: var(--radius-full);
  background: rgba(6, 12, 26, 0.85);
  color: #FFFFFF;
  font-family: var(--ff-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sr input:focus,
#q:focus {
  outline: none;
  border-color: var(--g-hover);
  background: rgba(10, 18, 38, 0.95);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.sr input::placeholder,
#q::placeholder {
  color: #64748B;
}

#cnt {
  font-size: 0.88rem;
  color: var(--text-sub);
  font-weight: 600;
  margin-bottom: 24px;
}

.sv {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin: 0 0 48px;
  padding: 0;
}

.sv li {
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sv li:hover {
  transform: translateY(-4px);
  border-color: var(--n-border-hover);
  box-shadow: var(--shadow-hover);
  background: rgba(14, 25, 48, 0.9);
}

.sv li a {
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.sv li b {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.sv li:hover b {
  color: var(--g-hover);
}

.sv li span {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CARDS GRID & GLASS PANELS
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: 24px;
}

.glass {
  background: rgba(10, 18, 38, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 36px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.glass h3 {
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 14px;
}

/* ==========================================================================
   DELIVERABLES GRID & ICONS
   ========================================================================== */

.deliv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-block: 28px;
}

.deliv-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.deliv-item:hover {
  border-color: var(--n-border-hover);
  transform: translateY(-2px);
}

.deliv-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deliv-icon svg {
  width: 20px;
  height: 20px;
}

.deliv-item h4 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: #FFFFFF;
  font-family: var(--ff-heading);
}

.deliv-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   GUARANTEES GRID
   ========================================================================== */

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.guarantee-card {
  padding: 24px;
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--g);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guarantee-card:hover {
  transform: translateY(-3px);
  border-color: var(--n-border-hover);
  border-top-color: var(--g-hover);
}

.guarantee-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.guarantee-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   INTERACTIVE TOOLS, QUIZZES & PROCESS STEPS
   ========================================================================== */

.ck {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #E2E8F0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ck:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}

.opts button {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.opts button:hover,
.opts button.active {
  background: var(--g);
  color: var(--text-dark);
  border-color: var(--g);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.steps {
  list-style: none;
  counter-reset: steps-counter;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps > li {
  counter-increment: steps-counter;
  position: relative;
  padding-left: 48px;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.steps > li::before {
  content: counter(steps-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--g-hover);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps > li strong {
  color: #FFFFFF;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  margin-bottom: 12px;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mt {
  margin-top: 24px;
}

.calc-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.faq-filter-wrap {
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
}

.roadmap-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--g-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.step-content h4 {
  margin: 0 0 6px;
  color: #FFFFFF;
}

.step-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

blockquote.pull {
  border-left: 3px solid var(--g-hover);
  padding-left: 20px;
  margin: 28px 0;
  font-style: italic;
  color: #E2E8F0;
  font-size: 1.1rem;
}

blockquote.pull cite {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-sub);
  font-weight: 700;
}

/* Band / CTA Banner */
.band {
  background: linear-gradient(135deg, #0A1630 0%, #102652 100%);
  border-block: 1px solid rgba(245, 158, 11, 0.25);
  padding-block: clamp(40px, 5vw, 64px);
  text-align: center;
}

.band h2 {
  color: #FFFFFF;
  margin-bottom: 10px;
}

.band p {
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 24px;
  color: #CBD5E1;
}

/* ==========================================================================
   FOOTER (LUXURY OBSIDIAN FINISH)
   ========================================================================== */

.ft {
  background: #03060C;
  border-top: 1px solid var(--n-border);
  padding-block: clamp(48px, 6vw, 80px) 36px;
  color: var(--text-sub);
  font-size: 0.92rem;
}

.fg {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: 40px;
}

.fg > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fg b {
  color: #FFFFFF;
  font-family: var(--ff-heading);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.fg a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.7;
}

.fg a:hover {
  color: var(--g-hover);
}

.fl {
  border-radius: 12px;
  margin-bottom: 12px;
}

.dev {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #64748B;
}

.dev a {
  color: #94A3B8;
  text-decoration: none;
}

.dev a:hover {
  color: var(--g-hover);
}

/* ==========================================================================
   FLOATING ELEMENTS (WHATSAPP, TOAST, BACK-TO-TOP, STICKY BAR)
   ========================================================================== */

.fw {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  text-decoration: none !important;
  z-index: 95;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fw:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.6);
}

/* Floating Back to Top Button */
.btt {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 26, 50, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

.btt:hover {
  background: var(--g);
  color: var(--text-dark);
  border-color: var(--g);
}

.btt svg {
  width: 20px;
  height: 20px;
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(8, 16, 32, 0.96);
  border: 1px solid var(--g-hover);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--emerald);
}

/* Mobile Sticky Bottom Bar (Dock) */
.sb {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 14, 28, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 92;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.sb a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sb a.g {
  background: linear-gradient(135deg, var(--g), #FFB703);
  color: var(--text-dark) !important;
  border-color: transparent;
}

/* ==========================================================================
   v5 · HEADER, NAVIGATION, DROPDOWNS, MOBILE DRAWER
   Grid-based so the bar can never overflow; backdrop blur lives on a
   pseudo-element so position:fixed children stay viewport-relative.
   ========================================================================== */

.hd {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 12px;
  view-transition-name: site-header;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(2, 5, 12, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.bar {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 7px 8px 7px 16px;
  border-radius: var(--radius-full);
  isolation: isolate;
}

.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(8, 14, 28, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.7);
}

/* Brand */
.lg {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}

.lg img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--g-hover);
  font-weight: 600;
  white-space: nowrap;
}

/* Desktop navigation */
nav#nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nv > li {
  position: relative;
  display: flex;
  align-items: center;
}

.nv a,
.ddb {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nv > li > a,
.dd-row > a {
  padding: 9px 11px;
}

.nv > li > a:hover,
.dd-row > a:hover,
.nv a[aria-current="page"] {
  color: var(--g-hover);
}

.dd-row {
  display: inline-flex;
  align-items: center;
}

.ddb {
  background: none;
  border: 0;
  padding: 8px 6px 8px 2px;
  min-width: 28px;
  min-height: 36px;
  cursor: pointer;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ddb svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.ddb:hover,
.dd.open .ddb {
  color: var(--g-hover);
}

.dd.open .ddb svg {
  transform: rotate(180deg);
}

/* Dropdown panel */
.dm {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 340px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: rgba(10, 18, 36, 0.985);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 5;
}

.dd.end > .dm {
  left: auto;
  right: 0;
}

.dm::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.dd.open > .dm {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
  .dd:hover > .dm {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
  .dd:hover .ddb svg {
    transform: rotate(180deg);
  }
}

.dm-in {
  display: block;
}

.dm-h {
  display: block;
  padding: 6px 12px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.dm a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 12px;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  text-decoration: none;
  white-space: normal;
  transition: background 0.15s ease;
}

.dm a:hover,
.dm a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dm-t {
  font-weight: 700;
  font-size: 0.9rem;
}

.dm-d {
  grid-column: 1;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.35;
}

.dm .badge {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dm a.dm-all {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--g-hover);
  font-weight: 700;
  font-size: 0.86rem;
}

.dm-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 6px;
}

.dd.wide > .dm {
  min-width: 520px;
}

/* Header actions */
.hd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hd-actions .btn {
  padding: 9px 16px;
  font-size: 0.86rem;
  min-height: 42px;
  white-space: nowrap;
}

.ib {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  padding: 0;
}

.ib:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ib svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hint-kbd {
  display: none;
}

/* Hamburger */
.mb {
  display: none;
}

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

@media (max-width: 1279.98px) {
  .hd-actions .btn.ghost {
    display: none;
  }
}

@media (min-width: 1100px) and (max-width: 1239.98px) {
  .brand-sub {
    display: none;
  }
  .nv > li > a,
  .dd-row > a {
    padding-inline: 9px;
  }
}

/* -------- Tablet + phone: drawer navigation -------- */
@media (max-width: 1099.98px) {
  :root {
    --hd-h: 72px;
  }

  .bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mb {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    grid-column: 3;
  }

  .mb-bars {
    display: grid;
    gap: 5px;
    width: 20px;
  }

  .mb-bar {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }

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

  .hd-actions {
    grid-column: 2;
  }

  .hd-actions .btn.gold {
    display: none;
  }

  .bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  nav#nav {
    position: fixed;
    left: 10px;
    right: 10px;
    top: calc(var(--hd-h) + 2px);
    max-height: calc(100vh - var(--hd-h) - 14px);
    max-height: calc(100dvh - var(--hd-h) - 14px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: block;
    padding: 10px;
    border-radius: 22px;
    background: rgba(8, 14, 28, 0.99);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  nav#nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  body.nav-open .scrim {
    opacity: 1;
    visibility: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nv {
    display: block;
  }

  .nv > li {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nv > li:last-child {
    border-bottom: 0;
  }

  .nv > li > a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 14px;
    font-size: 1.02rem;
  }

  .dd-row {
    display: flex;
  }

  .dd-row > a {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 14px;
    font-size: 1.02rem;
  }

  .ddb {
    width: 52px;
    min-height: 50px;
    padding: 0;
  }

  .ddb svg {
    width: 18px;
    height: 18px;
  }

  .dm,
  .dd.end > .dm,
  .dd.wide > .dm {
    position: static;
    min-width: 0;
    padding: 0;
    display: grid;
    grid-template-rows: 0fr;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: hidden;
    transition: grid-template-rows 0.26s ease, visibility 0s linear 0.26s;
  }

  .dm::before {
    display: none;
  }

  .dd.open > .dm {
    grid-template-rows: 1fr;
    visibility: visible;
    transition-delay: 0s;
  }

  .dm-in {
    overflow: hidden;
    min-height: 0;
    padding: 0 6px;
  }

  .dd.open > .dm .dm-in {
    padding-bottom: 8px;
  }

  .dm-cols {
    grid-template-columns: 1fr;
  }

  .dm a {
    min-height: 48px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.035);
    margin-bottom: 4px;
  }

  .dm-h {
    padding-top: 2px;
  }

  .nav-mobile-actions {
    display: grid;
    gap: 10px;
    padding: 14px 4px 4px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-mobile-actions .btn {
    width: 100%;
    min-height: 50px;
  }
}

@media (min-width: 861px) and (max-width: 1099.98px) {
  .hd-actions .btn.gold {
    display: inline-flex;
  }
}

@media (max-width: 420px) {
  .brand-sub {
    display: none;
  }
  .brand-title {
    font-size: 1rem;
  }
  .hd {
    padding: 8px;
  }
  .bar {
    padding-left: 12px;
  }
}

@media (min-width: 1100px) {
  .hint-kbd {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-sub);
  }
  .ib.srch {
    width: auto;
    border-radius: var(--radius-full);
    padding: 0 12px;
    gap: 2px;
    display: inline-flex;
    align-items: center;
  }
}

/* ==========================================================================
   v5 · HOMEPAGE HERO · DISTRICT SIGNAL MAP · NEW COMPONENTS
   ========================================================================== */

:focus-visible {
  outline: 3px solid var(--cy-light);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

main {
  display: block;
}

/* Cross-page transitions (progressive enhancement) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.16s;
}

/* Scroll progress: pure CSS where supported, JS fallback otherwise */
@supports (animation-timeline: scroll()) {
  .topline {
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    transition: none;
    animation: lineGrow linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes lineGrow {
    to {
      transform: scaleX(1);
    }
  }
}

/* Below-the-fold rendering budget. `auto` remembers the real height. */
main > section ~ section {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.ft {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

/* ---------- HOME HERO ---------- */
.hx {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(28px, 5vw, 72px) clamp(40px, 6vw, 84px);
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(6, 182, 212, 0.16), transparent 62%),
    radial-gradient(760px 420px at 4% 100%, rgba(245, 158, 11, 0.16), transparent 62%),
    linear-gradient(178deg, #050914 0%, #09122a 58%, #060b18 100%);
  border-bottom: 1px solid var(--n-border);
}

.hx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 35%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 35%, #000 10%, transparent 72%);
}

.hx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hx-copy {
  min-width: 0;
}

.hx-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 22px;
}

.hx h1 {
  font-size: clamp(2.15rem, 1.35rem + 3.7vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15ch;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}

.hx-ta {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.18rem);
  color: var(--g-hover);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.5;
}

.hx-sub {
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.16rem);
  color: #d1d9e6;
  max-width: 54ch;
  margin-bottom: 26px;
}

.hx-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hx-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.hx-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hx-proof svg {
  width: 16px;
  height: 16px;
  stroke: var(--emerald);
  fill: none;
  stroke-width: 2.6;
  flex: 0 0 auto;
}

/* Orchestrated page-load: one deliberate sequence, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hx-copy > * {
    animation: hxRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hx-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hx-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hx-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hx-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hx-copy > :nth-child(6) { animation-delay: 0.3s; }
  @keyframes hxRise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
  .dmap .nd {
    animation: ndIn 0.6s ease both;
    animation-delay: calc(0.25s + var(--i, 0) * 0.07s);
  }
  @keyframes ndIn {
    from {
      opacity: 0;
    }
  }
  .dmap .pk {
    animation: pk 5s linear infinite;
  }
  .dmap .hq .ring {
    animation: hqPulse 2.8s ease-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  @keyframes pk {
    to {
      stroke-dashoffset: -150;
    }
  }
  @keyframes hqPulse {
    from {
      transform: scale(0.6);
      opacity: 0.9;
    }
    to {
      transform: scale(2.4);
      opacity: 0;
    }
  }
}

/* District signal map */
.hx-map {
  position: relative;
  min-width: 0;
  border-radius: 28px;
  padding: 14px 14px 12px;
  background: linear-gradient(160deg, rgba(14, 24, 46, 0.78), rgba(8, 14, 30, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.85);
}

.dmap {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.dmap .lnk {
  fill: none;
  stroke: rgba(103, 232, 249, 0.3);
  stroke-width: 1.2;
}

.dmap .pk {
  fill: none;
  stroke: var(--g-hover);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 8 142;
  stroke-dashoffset: 0;
}

.dmap .river {
  fill: none;
  stroke: rgba(56, 189, 248, 0.2);
  stroke-width: 7;
  stroke-linecap: round;
}

.dmap .nd {
  cursor: pointer;
}

.dmap .nd circle.dot {
  fill: #0b1730;
  stroke: var(--cy-light);
  stroke-width: 1.8;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.dmap .nd.big circle.dot {
  stroke-width: 2.4;
}

.dmap .nd:hover circle.dot,
.dmap .nd:focus-visible circle.dot {
  fill: var(--g);
  stroke: #fff;
}

.dmap .nd:focus-visible {
  outline: none;
}

.dmap .nd:focus-visible circle.halo {
  stroke: var(--cy-light);
}

.dmap circle.halo {
  fill: none;
  stroke: transparent;
  stroke-width: 2;
}

.dmap text {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 12.5px;
  fill: #e2e8f0;
  paint-order: stroke;
  stroke: #070e20;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

.dmap .hq circle.core {
  fill: var(--g);
  stroke: #fff;
  stroke-width: 2;
}

.dmap .hq .ring {
  fill: none;
  stroke: var(--g-hover);
  stroke-width: 1.6;
  opacity: 0.5;
}

.hx-map-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 10px 6px 2px;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.hx-map-cap a {
  color: var(--g-hover);
  font-weight: 700;
}

/* ---------- Section helpers ---------- */
.sh {
  max-width: 62ch;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.sh h2 {
  margin-bottom: 0.4em;
}

.sh p {
  color: var(--text-muted);
  font-size: 1.04rem;
}

.sh.c {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--g-hover);
  margin-bottom: 8px;
}

/* Area directory */
.areas {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.acard {
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--n-card);
}

.acard h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.acard > p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.pl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pl a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pl a:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--g-hover);
}

/* Guide cards */
.gcards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.gcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--n-border);
  background: var(--n-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gcard:hover {
  border-color: var(--n-border-hover);
  transform: translateY(-3px);
}

.gcard b {
  font-family: var(--ff-heading);
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.3;
}

.gcard span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.gcard small {
  margin-top: auto;
  color: var(--g-hover);
  font-weight: 700;
  font-size: 0.82rem;
}

/* Spotlight on pointer devices */
@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .gcard:hover,
  .acard:hover,
  .bcell:hover,
  .deliv-item:hover {
    background-image: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 158, 11, 0.1), transparent 65%);
  }
}

/* Prose helpers for long-form articles */
.prose {
  max-width: 72ch;
  line-height: 1.8;
}

.prose h2 {
  margin-top: 1.8em;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.45em;
}

.toc {
  border: 1px solid var(--n-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background: var(--n-card);
  margin-bottom: 28px;
}

.toc b {
  display: block;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--ff-heading);
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.toc a {
  color: var(--text-muted);
}

.callout {
  border-left: 4px solid var(--g);
  background: rgba(245, 158, 11, 0.08);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.4em 0;
  color: #e2e8f0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.table-wrap,
.comp-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.comp-table {
  min-width: 560px;
}

/* ---------- Command palette / search ---------- */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: start center;
  padding: 10vh 12px 12px;
  background: rgba(2, 5, 12, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cmdk-box {
  width: min(660px, 100%);
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  background: #0a1224;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.cmdk-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cmdk-in svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-sub);
  fill: none;
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.cmdk input,
#sq {
  width: 100%;
  min-height: 58px;
  padding: 16px 4px;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  outline: 0;
}

.cmdk-esc {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 34px;
}

.sres,
.cmdk-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sres li,
.cmdk-list li {
  margin: 0;
}

.sres a,
.cmdk-list a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #e2e8f0;
}

.sres b,
.cmdk-list b {
  display: block;
  color: #fff;
  font-size: 0.98rem;
}

.sres span,
.cmdk-list span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.sres a:hover,
.cmdk-list li[aria-selected="true"] a {
  background: rgba(245, 158, 11, 0.14);
}

.cmdk-empty {
  padding: 22px 18px;
  color: var(--text-sub);
}

.cmdk-foot {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  color: var(--text-sub);
}

.sbox {
  background: var(--n-card);
  border: 1px solid var(--n-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ---------- Forms ---------- */
form.wa input,
form.wa select,
form.wa textarea {
  min-height: 48px;
}

form.wa .fe {
  color: #fda4af;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 2px 0 0;
}

/* ---------- Footer (v5) ---------- */
.fg {
  grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr));
}

.fg a {
  display: block;
  padding: 2px 0;
}

.fl {
  width: 168px;
  height: auto;
  background: #fff;
  padding: 6px;
  border-radius: 14px;
}

.fg p {
  margin: 0 0 8px;
}

/* ---------- Floating UI offsets ---------- */
.fw {
  bottom: max(20px, env(safe-area-inset-bottom));
}

.btt {
  bottom: max(20px, env(safe-area-inset-bottom));
}

/* ==========================================================================
   v5 · RESPONSIVE
   ========================================================================== */
@media (max-width: 1160px) {
  .fg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fg > div:first-child {
    grid-column: 1 / -1;
  }
  .fl {
    width: 140px;
  }
}

@media (max-width: 980px) {
  .hx-grid {
    grid-template-columns: 1fr;
  }
  .hx h1 {
    max-width: 18ch;
  }
  .hx-map {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "bc" "copy" "art";
    gap: 22px;
  }
  .hero-art {
    max-width: 220px;
    margin: 0 auto;
  }
  .hero-orbit {
    max-width: 200px;
  }
  .bcpills,
  .bc {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bcell.b-lg {
    grid-column: span 1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .sb {
    display: flex;
  }
  .fw {
    display: none;
  }
  .btt {
    bottom: calc(86px + env(safe-area-inset-bottom));
    left: 14px;
  }
  .toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .sb a {
    min-height: 48px;
  }
  .fg > div a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .fg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hx-cta .btn {
    flex: 1 1 100%;
    min-height: 52px;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    min-height: 50px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.3rem);
  }
  .fg {
    gap: 22px 16px;
  }
  .fg > div:first-child {
    grid-column: 1 / -1;
  }
  .stats {
    gap: 10px;
  }
  .stats > div {
    padding: 14px 8px;
  }
  .sv {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .chips {
    gap: 8px;
    margin-bottom: 18px;
  }
  .chips a {
    padding: 8px 14px;
    font-size: 0.86rem;
  }
  .cmdk {
    padding-top: 6vh;
  }
}

@media (max-width: 380px) {
  .fg {
    grid-template-columns: 1fr;
  }
  .hx h1 {
    font-size: 2rem;
  }
}

/* ---------- Accessibility modes ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  @view-transition {
    navigation: none;
  }
  .mq div {
    animation: none !important;
  }
  .live-beacon .dot::after {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .bar::before,
  .dm,
  nav#nav {
    border: 1px solid CanvasText;
  }
  .btn,
  .ib,
  .mb {
    border: 1px solid ButtonText;
  }
}

@media print {
  .hd,
  .sb,
  .fw,
  .btt,
  .toast,
  .topline,
  .scrim,
  .cmdk,
  .skip-link,
  form.wa,
  iframe {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  main a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
  .hero,
  .hx,
  .sec,
  .ft {
    background: #fff !important;
    color: #000 !important;
  }
  h1,
  h2,
  h3,
  p,
  li {
    color: #000 !important;
  }
}

/* v5 supplements */
.nv > li.only-m{display:none}
@media (max-width:1099.98px){.nv > li.only-m{display:block}}
.fg2{margin-bottom:22px}.soc{display:flex;flex-wrap:wrap;gap:6px 22px}
.soc a{color:var(--text-sub);text-decoration:none;font-weight:600;min-height:32px;display:inline-flex;align-items:center}.soc a:hover{color:var(--g-hover)}
.hero-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.95fr)}
.hero-grid>*,.hero-copy,.wrap.two>*{min-width:0}
@media (max-width:860px){.hero-grid{grid-template-columns:minmax(0,1fr)}}
.hero h1,.hx h1{overflow-wrap:anywhere}
.hero .sub,.hero-sub,.hero p{overflow-wrap:break-word}
.btn{max-width:100%;white-space:normal;text-align:center}
@media (max-width:860px){.hero .hero-art{display:none}}
.dev{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 18px;text-align:center}
.dev p{margin:0}
.sx{display:inline-flex;align-items:center;background:#fff;border-radius:12px;padding:7px 14px;transition:transform .2s ease,box-shadow .2s ease}
.sx:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.45)}
.sx img{height:30px;width:auto;display:block}
.bento{grid-template-columns:repeat(3,minmax(0,1fr))}
.bcell.b-lg{grid-column:auto}
@media (max-width:1000px){.bento{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.bento{grid-template-columns:minmax(0,1fr)}}
.grid.g4{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr))}
.dev{border-top:0;position:relative;padding-top:26px}
.dev::before{content:"";position:absolute;top:0;left:clamp(16px,4vw,32px);right:clamp(16px,4vw,32px);height:1px;background:rgba(255,255,255,.08)}
/* Motion layer: progressive, transform/opacity only, never blocks content */
.btn.gold{position:relative;overflow:hidden;isolation:isolate}
.btn.gold::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.38) 50%,transparent 70%);transform:translateX(-130%);transition:transform .65s ease}
.btn.gold:hover::after{transform:translateX(130%)}
.btn:active{transform:scale(.98)}
.nv > li > a,.dd-row > a{position:relative}
.nv > li > a::after,.dd-row > a::after{content:"";position:absolute;left:11px;right:11px;bottom:4px;height:2px;border-radius:2px;background:var(--g-hover);transform:scaleX(0);transform-origin:left;transition:transform .22s ease}
.nv > li > a:hover::after,.dd-row > a:hover::after,.nv a[aria-current="page"]::after{transform:scaleX(1)}
@media (max-width:1099.98px){.nv > li > a::after,.dd-row > a::after{display:none}}
.dmap .nd text{transition:fill .15s ease}
.dmap .nd:hover text,.dmap .nd:focus-visible text{fill:#fbbf24}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main > section:not(.hero):not(.hx) :is(.card,.gcard,.acard,.bcell,.deliv-item,.guarantee-card,.comp-wrapper,.sh,.calc-box,.rm-step,.step-num){
      animation: revealUp linear backwards;
      animation-timeline: view();
      animation-range: entry 4% entry 38%;
    }
    @keyframes revealUp{from{opacity:0;transform:translateY(20px)}}
  }
}

@media (max-width:640px){.dev{flex-direction:column;gap:12px}.sx img{height:28px}}
@media (max-width:380px) and (min-width:341px){.fg{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:340px){.fg{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.dmap text{font-size:15px;stroke-width:4px}.dmap .hq text{font-size:14px}}
@media (max-width:860px){.ft{padding-bottom:calc(128px + env(safe-area-inset-bottom))}}
@media print{*{animation:none!important;opacity:1!important;transform:none!important}}
