/* ============================================================================
   AIVA TECH LABS — FUTURE FOUNDATION GLOBAL HERITAGE MEGA-PORTAL DESIGN SYSTEM
   + 10 LIVE SELECTABLE LIGHTWEIGHT & FRIENDLY THEMES
   + 8-TAB INTERACTIVE PORTAL ARCHITECTURE
   ============================================================================ */

:root,
html[data-theme="1"] {
  /* Theme 1 (Default): Future Foundation Global Heritage (Slate-Teal + Navy + Emerald + Warm Ivory) */
  --theme-name: "01 · Future Foundation Heritage (Default)";
  --ff-navy: #0d2235;
  --ff-slate: #1f465e;
  --ff-slate-700: #183a4f;
  --ff-slate-500: #2c5f7e;
  --ff-emerald: #0f766e;
  --ff-emerald-700: #0b5a54;
  --ff-emerald-200: #7fe5d6;
  --ff-emerald-050: #e8f5f3;
  --ff-ivory: #f7f9fb;
  --ff-white: #ffffff;
  --ff-ink: #0d2235;
  --ff-text: #33485c;
  --ff-muted: #5a6f82;
  --ff-line: #dde6ed;
  --ff-line-strong: #c3d1dc;
  --ff-accent-warm: #d97706;
  --ff-accent-warm-bg: #fffbeb;
  --ribbon-stop-1: #1f465e;
  --ribbon-stop-2: #0f766e;
  --ribbon-stop-3: #14b8a6;
  --ribbon-core: #f59e0b;
}

html[data-theme="2"] {
  /* Theme 2: Royal Daylight (Stripe / Linear Cobalt & Sapphire on Crisp Snow) */
  --theme-name: "02 · Royal Daylight (Cobalt & Sky)";
  --ff-navy: #0f172a;
  --ff-slate: #1e3a8a;
  --ff-slate-700: #172554;
  --ff-slate-500: #2563eb;
  --ff-emerald: #2563eb;
  --ff-emerald-700: #1d4ed8;
  --ff-emerald-200: #93c5fd;
  --ff-emerald-050: #eff6ff;
  --ff-ivory: #f8fafc;
  --ff-white: #ffffff;
  --ff-ink: #0f172a;
  --ff-text: #334155;
  --ff-muted: #64748b;
  --ff-line: #e2e8f0;
  --ff-line-strong: #cbd5e1;
  --ff-accent-warm: #f59e0b;
  --ff-accent-warm-bg: #fef3c7;
  --ribbon-stop-1: #1e3a8a;
  --ribbon-stop-2: #2563eb;
  --ribbon-stop-3: #38bdf8;
  --ribbon-core: #f59e0b;
}

html[data-theme="3"] {
  /* Theme 3: Friendly Sunrise Coral & Warm Cream (Airbnb / Consumer App Vibe) */
  --theme-name: "03 · Sunrise Coral & Warm Cream";
  --ff-navy: #29150e;
  --ff-slate: #7c2d12;
  --ff-slate-700: #5c200c;
  --ff-slate-500: #9a3412;
  --ff-emerald: #ea580c;
  --ff-emerald-700: #c2410c;
  --ff-emerald-200: #fdba74;
  --ff-emerald-050: #fff7ed;
  --ff-ivory: #fffbf5;
  --ff-white: #ffffff;
  --ff-ink: #1c1917;
  --ff-text: #44403c;
  --ff-muted: #78716c;
  --ff-line: #fed7aa;
  --ff-line-strong: #fdba74;
  --ff-accent-warm: #2563eb;
  --ff-accent-warm-bg: #eff6ff;
  --ribbon-stop-1: #ff5a5f;
  --ribbon-stop-2: #ea580c;
  --ribbon-stop-3: #f59e0b;
  --ribbon-core: #2563eb;
}

html[data-theme="4"] {
  /* Theme 4: Emerald Mint Growth */
  --theme-name: "04 · Emerald Mint Growth";
  --ff-navy: #06281e;
  --ff-slate: #114232;
  --ff-slate-700: #0b2e22;
  --ff-slate-500: #1e6b52;
  --ff-emerald: #059669;
  --ff-emerald-700: #047857;
  --ff-emerald-200: #6ee7b7;
  --ff-emerald-050: #ecfdf5;
  --ff-ivory: #f3fbf7;
  --ff-white: #ffffff;
  --ff-ink: #06281e;
  --ff-text: #1e3a2f;
  --ff-muted: #4b6b5e;
  --ff-line: #d1fae5;
  --ff-line-strong: #a7f3d0;
  --ff-accent-warm: #ea580c;
  --ff-accent-warm-bg: #fff7ed;
  --ribbon-stop-1: #059669;
  --ribbon-stop-2: #10b981;
  --ribbon-stop-3: #0284c7;
  --ribbon-core: #f97316;
}

html[data-theme="5"] {
  /* Theme 5: Academic Ivory, Oxford Navy & Burnished Gold (Summit Global / Executive) */
  --theme-name: "05 · Academic Ivory & Burnished Gold";
  --ff-navy: #172133;
  --ff-slate: #24344d;
  --ff-slate-700: #1b283b;
  --ff-slate-500: #364c70;
  --ff-emerald: #b45309;
  --ff-emerald-700: #92400e;
  --ff-emerald-200: #fcd34d;
  --ff-emerald-050: #fffbeb;
  --ff-ivory: #fbf9f4;
  --ff-white: #ffffff;
  --ff-ink: #172133;
  --ff-text: #334155;
  --ff-muted: #64748b;
  --ff-line: #e6e0d2;
  --ff-line-strong: #d4cbb8;
  --ff-accent-warm: #0f766e;
  --ff-accent-warm-bg: #f0fdfa;
  --ribbon-stop-1: #172133;
  --ribbon-stop-2: #b45309;
  --ribbon-stop-3: #d97706;
  --ribbon-core: #0d9488;
}

html[data-theme="6"] {
  /* Theme 6: Nordic Fjord & Cerulean Sky (Ultra-Light Airy Cloud Studio) */
  --theme-name: "06 · Nordic Fjord & Cerulean Sky";
  --ff-navy: #0c1f2c;
  --ff-slate: #164e63;
  --ff-slate-700: #113c4d;
  --ff-slate-500: #0e7490;
  --ff-emerald: #0284c7;
  --ff-emerald-700: #0369a1;
  --ff-emerald-200: #7dd3fc;
  --ff-emerald-050: #f0f9ff;
  --ff-ivory: #f4f9fd;
  --ff-white: #ffffff;
  --ff-ink: #0c1f2c;
  --ff-text: #2c4456;
  --ff-muted: #567084;
  --ff-line: #d6e6f2;
  --ff-line-strong: #b9d3e6;
  --ff-accent-warm: #0d9488;
  --ff-accent-warm-bg: #f0fdfa;
  --ribbon-stop-1: #0284c7;
  --ribbon-stop-2: #06b6d4;
  --ribbon-stop-3: #3b82f6;
  --ribbon-core: #f59e0b;
}

html[data-theme="7"] {
  /* Theme 7: Lavender Aurora & Electric Indigo (AI Agents & Modern Tech Vibe) */
  --theme-name: "07 · Lavender Aurora & Indigo";
  --ff-navy: #1a1033;
  --ff-slate: #311b61;
  --ff-slate-700: #24134a;
  --ff-slate-500: #4c2a94;
  --ff-emerald: #6d28d9;
  --ff-emerald-700: #5b21b6;
  --ff-emerald-200: #c4b5fd;
  --ff-emerald-050: #f5f3ff;
  --ff-ivory: #f9f8fc;
  --ff-white: #ffffff;
  --ff-ink: #1a1033;
  --ff-text: #3b3054;
  --ff-muted: #695d82;
  --ff-line: #e4dff0;
  --ff-line-strong: #cfc6e6;
  --ff-accent-warm: #db2777;
  --ff-accent-warm-bg: #fdf2f8;
  --ribbon-stop-1: #4f46e5;
  --ribbon-stop-2: #7c3aed;
  --ribbon-stop-3: #ec4899;
  --ribbon-core: #10b981;
}

html[data-theme="8"] {
  /* Theme 8: Botanical Sage & Terracotta Clay (Human-Centered Boutique Studio) */
  --theme-name: "08 · Botanical Sage & Terracotta";
  --ff-navy: #1b2620;
  --ff-slate: #2d4739;
  --ff-slate-700: #21362b;
  --ff-slate-500: #3f6350;
  --ff-emerald: #c2410c;
  --ff-emerald-700: #9a3412;
  --ff-emerald-200: #fdba74;
  --ff-emerald-050: #fff7ed;
  --ff-ivory: #f7f6f2;
  --ff-white: #ffffff;
  --ff-ink: #1b2620;
  --ff-text: #38453d;
  --ff-muted: #617067;
  --ff-line: #e0ddd3;
  --ff-line-strong: #c9c4b5;
  --ff-accent-warm: #2d4739;
  --ff-accent-warm-bg: #eef5f0;
  --ribbon-stop-1: #2d4739;
  --ribbon-stop-2: #0f766e;
  --ribbon-stop-3: #c2410c;
  --ribbon-core: #f59e0b;
}

html[data-theme="9"] {
  /* Theme 9: Rate-Card Tri-Color (Teal #1A9C88 + Royal #2F55D4 + Orange #F57C00) */
  --theme-name: "09 · Rate-Card Tri-Color (Teal + Blue + Orange)";
  --ff-navy: #0f1e36;
  --ff-slate: #2f55d4;
  --ff-slate-700: #2342ab;
  --ff-slate-500: #3b66eb;
  --ff-emerald: #1a9c88;
  --ff-emerald-700: #137a6a;
  --ff-emerald-200: #88ebdb;
  --ff-emerald-050: #eefbf9;
  --ff-ivory: #f7fafc;
  --ff-white: #ffffff;
  --ff-ink: #0f1e36;
  --ff-text: #334155;
  --ff-muted: #64748b;
  --ff-line: #e2e8f0;
  --ff-line-strong: #cbd5e1;
  --ff-accent-warm: #f57c00;
  --ff-accent-warm-bg: #fff7ed;
  --ribbon-stop-1: #1a9c88;
  --ribbon-stop-2: #2f55d4;
  --ribbon-stop-3: #f57c00;
  --ribbon-core: #f59e0b;
}

html[data-theme="10"] {
  /* Theme 10: Swiss Daylight Pearl & Frosted Slate (Apple / Minimalist Architectural) */
  --theme-name: "10 · Swiss Daylight Pearl & Slate";
  --ff-navy: #18181b;
  --ff-slate: #27272a;
  --ff-slate-700: #18181b;
  --ff-slate-500: #3f3f46;
  --ff-emerald: #0f766e;
  --ff-emerald-700: #115e59;
  --ff-emerald-200: #99f6e4;
  --ff-emerald-050: #f0fdfa;
  --ff-ivory: #fafafa;
  --ff-white: #ffffff;
  --ff-ink: #09090b;
  --ff-text: #27272a;
  --ff-muted: #52525b;
  --ff-line: #e4e4e7;
  --ff-line-strong: #d4d4d8;
  --ff-accent-warm: #2563eb;
  --ff-accent-warm-bg: #eff6ff;
  --ribbon-stop-1: #27272a;
  --ribbon-stop-2: #0f766e;
  --ribbon-stop-3: #2563eb;
  --ribbon-core: #f59e0b;
}

:root {
  --ff-whatsapp: #15803d;
  --ff-whatsapp-700: #116932;
  --ff-radius-sm: 10px;
  --ff-radius: 14px;
  --ff-radius-lg: 20px;
  --ff-radius-pill: 999px;
  --ff-shadow-sm: 0 1px 2px rgba(13, 34, 53, 0.04), 0 3px 8px rgba(13, 34, 53, 0.05);
  --ff-shadow-md: 0 2px 4px rgba(13, 34, 53, 0.04), 0 10px 24px rgba(13, 34, 53, 0.08);
  --ff-shadow-lg: 0 4px 8px rgba(13, 34, 53, 0.04), 0 20px 44px rgba(13, 34, 53, 0.13);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--ff-ivory);
  color: var(--ff-text);
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="hi"] {
  line-height: 1.72;
}

body {
  background-color: var(--ff-ivory);
  color: var(--ff-text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.22s ease, color 0.22s ease;
}

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

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============================================================================
   1. FUTURE FOUNDATION STYLE TOPBAR (`--ff-navy`)
   ============================================================================ */
.ff-topbar {
  background: var(--ff-navy);
  color: #d3dfe9;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ff-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ff-topbar a {
  color: #ffffff;
  font-weight: 600;
}

.ff-topbar a:hover {
  color: var(--ff-emerald-200);
}

/* ============================================================================
   2. LIVE 10-THEME SELECTOR DOCK (Sticky Bar for Instant Theme Comparison)
   ============================================================================ */
.theme-selector-bar {
  background: var(--ff-white);
  border-bottom: 1px solid var(--ff-line);
  padding: 8px 0;
  box-shadow: var(--ff-shadow-sm);
}

.theme-selector-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.theme-bar-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ff-ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
  border-right: 1px solid var(--ff-line);
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ff-ivory);
  border: 1.5px solid var(--ff-line);
  color: var(--ff-ink);
  padding: 5px 11px;
  border-radius: var(--ff-radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.theme-chip:hover {
  border-color: var(--ff-emerald);
  transform: translateY(-1px);
}

.theme-chip.active {
  background: var(--ff-slate);
  color: #ffffff;
  border-color: var(--ff-slate);
  box-shadow: 0 2px 8px rgba(13, 34, 53, 0.18);
}

.swatch-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* ============================================================================
   3. FUTURE FOUNDATION STYLE STICKY WHITE HEADER + MEGA-PORTAL TABS
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ff-line);
  box-shadow: var(--ff-shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-ribbon-cycle {
  position: relative;
  width: 96px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid var(--ff-line-strong);
  box-shadow: var(--ff-shadow-sm);
  flex-shrink: 0;
}

.brand-ribbon-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.brand-ribbon-frame.active {
  opacity: 1;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ff-emerald);
  object-fit: cover;
  box-shadow: var(--ff-shadow-sm);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ff-ink);
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ff-emerald);
  text-transform: uppercase;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Segmented Pill Switchers */
.segmented-pill {
  display: inline-flex;
  background: var(--ff-ivory);
  border: 1px solid var(--ff-line-strong);
  border-radius: var(--ff-radius-pill);
  padding: 3px;
  gap: 2px;
}

.segmented-pill button {
  background: transparent;
  border: none;
  color: var(--ff-text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--ff-radius-pill);
  cursor: pointer;
  transition: all 0.16s ease;
}

.segmented-pill button.active {
  background: var(--ff-slate);
  color: #ffffff;
  box-shadow: var(--ff-shadow-sm);
}

/* Buttons matching Future Foundation Global */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ff-emerald);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: var(--ff-radius-pill);
  border: 1px solid var(--ff-emerald-700);
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: var(--ff-shadow-sm);
}

.btn-primary:hover {
  background: var(--ff-emerald-700);
  transform: translateY(-1px);
  box-shadow: var(--ff-shadow-md);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ff-whatsapp);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: var(--ff-radius-pill);
  border: 1px solid var(--ff-whatsapp-700);
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: var(--ff-shadow-sm);
}

.btn-whatsapp:hover {
  background: var(--ff-whatsapp-700);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ff-white);
  color: var(--ff-slate);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: var(--ff-radius-pill);
  border: 1.5px solid var(--ff-line-strong);
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-secondary:hover {
  border-color: var(--ff-emerald);
  color: var(--ff-emerald);
  background: var(--ff-emerald-050);
}

/* ============================================================================
   4. PORTAL WORKSPACE TAB RAIL (8 Interactive Tabs + Show All Mode)
   ============================================================================ */
.portal-tabs-bar {
  background: var(--ff-ivory);
  border-top: 1px solid var(--ff-line);
  padding: 8px 0;
}

.portal-tabs-list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.portal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--ff-radius-pill);
  border: 1px solid var(--ff-line-strong);
  background: var(--ff-white);
  color: var(--ff-ink);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.portal-tab-btn:hover {
  border-color: var(--ff-emerald);
  background: var(--ff-emerald-050);
}

.portal-tab-btn.active {
  background: var(--ff-navy);
  color: #ffffff;
  border-color: var(--ff-navy);
  box-shadow: var(--ff-shadow-sm);
}

/* Tab Panel Visibility */
.portal-tab-section {
  display: block;
}

body.tab-filtered .portal-tab-section {
  display: none;
}

body.tab-filtered .portal-tab-section.active-tab-panel {
  display: block;
  animation: fadeInTab 0.22s ease;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   5. FUTURE FOUNDATION GLOBAL SPLIT HERO (`--ff-navy` -> `--ff-slate` Gradient + Crisp White Card)
   ============================================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--ff-navy) 0%, var(--ff-slate) 62%, var(--ff-emerald-700) 100%);
  color: #ffffff;
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--ff-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 18px;
}

.hero-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--ff-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.hero-chip.teal {
  background: rgba(127, 229, 214, 0.18);
  border-color: var(--ff-emerald-200);
  color: var(--ff-emerald-200);
}

.hero-title {
  font-size: clamp(30px, 4.1vw, 48px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16.5px;
  color: #d3dfe9;
  max-width: 620px;
  margin-bottom: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ff-radius);
  padding: 13px 14px;
}

.metric-val {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.metric-lbl {
  font-size: 11.5px;
  color: #d3dfe9;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-ctas .btn-white {
  background: #ffffff;
  color: var(--ff-navy);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--ff-radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--ff-shadow-md);
}

.hero-ctas .btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--ff-radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

/* Right Column in Hero: Crisp White Card (Future Foundation Global Style) */
.hero-stage-card {
  background: var(--ff-white);
  color: var(--ff-text);
  border: 1px solid var(--ff-line);
  border-radius: var(--ff-radius-lg);
  padding: 24px;
  box-shadow: var(--ff-shadow-lg);
}

.logo-hero-frame {
  width: 100%;
  border-radius: var(--ff-radius);
  background: #ffffff;
  border: 1px solid var(--ff-line);
  padding: 12px;
  margin-bottom: 14px;
  text-align: center;
}

.logo-cycle-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 840;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--ff-line);
  box-shadow: inset 0 0 0 1px rgba(13, 34, 53, 0.04);
}

.logo-cycle-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.logo-cycle-img.active {
  opacity: 1;
}

.logo-cycle-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: rgba(13, 34, 53, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logo-cycle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.logo-cycle-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.logo-color-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--ff-line-strong);
  background: var(--ff-ivory);
  color: var(--ff-ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.logo-color-pill.active {
  background: var(--ff-navy);
  color: #ffffff;
  border-color: var(--ff-navy);
  box-shadow: var(--ff-shadow-sm);
}

.brand-mini-ribbon {
  width: 68px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
}

.device-preview-box {
  background: var(--ff-emerald-050);
  border: 1px solid var(--ff-line-strong);
  border-radius: var(--ff-radius);
  padding: 14px;
}

.device-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ff-ink);
  border-bottom: 1px solid var(--ff-line-strong);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.window-dots {
  display: flex;
  gap: 5px;
}
.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ff-emerald);
}

/* ============================================================================
   6. WARM IVORY & CRISP WHITE SECTIONS + PRESET CARDS
   ============================================================================ */
.section-block {
  padding: 60px 0;
  border-bottom: 1px solid var(--ff-line);
  background: var(--ff-ivory);
}

.section-block.alt-white {
  background: var(--ff-white);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ff-emerald);
  background: var(--ff-emerald-050);
  border: 1px solid var(--ff-line-strong);
  padding: 4px 12px;
  border-radius: var(--ff-radius-pill);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--ff-ink);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--ff-text);
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.preset-btn {
  background: var(--ff-white);
  border: 1.5px solid var(--ff-line);
  border-radius: var(--ff-radius);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  color: var(--ff-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--ff-shadow-sm);
}

.preset-btn:hover, .preset-btn.active {
  border-color: var(--ff-emerald);
  background: var(--ff-emerald-050);
  transform: translateY(-2px);
  box-shadow: var(--ff-shadow-md);
}

.preset-icon { font-size: 26px; }
.preset-title { font-size: 14.5px; font-weight: 800; color: var(--ff-ink); }
.preset-desc { font-size: 12.5px; color: var(--ff-text); line-height: 1.45; }

/* ============================================================================
   7. RATE CARD TILES & RESPONSIVE COMPARISON TABLE (`.ff-table`)
   ============================================================================ */
.category-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.category-tabs .segmented-pill button {
  font-size: 13.5px;
  padding: 9px 20px;
}

.rate-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.rate-card {
  background: var(--ff-white);
  border: 1.5px solid var(--ff-line);
  border-radius: var(--ff-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--ff-shadow-sm);
}

.rate-card.popular {
  border: 2px solid var(--ff-emerald);
  box-shadow: var(--ff-shadow-lg);
  transform: translateY(-4px);
}

.rate-card-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--ff-line);
  background: linear-gradient(180deg, var(--ff-emerald-050) 0%, var(--ff-white) 100%);
}

.tier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--ff-radius-pill);
  margin-bottom: 8px;
}

.tier-name {
  font-size: 21px;
  font-weight: 800;
  color: var(--ff-ink);
}

.tier-sub {
  font-size: 13px;
  color: var(--ff-text);
  margin-top: 4px;
}

.tier-price-row {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tier-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--ff-ink);
}

.tier-strike {
  font-size: 15px;
  color: var(--ff-muted);
  text-decoration: line-through;
}

.rate-card-body {
  padding: 20px 24px;
  flex: 1;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ff-text);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

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

.rate-card-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--ff-line);
  background: var(--ff-ivory);
}

.rate-card-footer button {
  width: 100%;
}

/* Future Foundation Style Responsive Comparison Table */
.ff-table-wrap {
  background: var(--ff-white);
  border: 1px solid var(--ff-line-strong);
  border-radius: var(--ff-radius-lg);
  overflow-x: auto;
  box-shadow: var(--ff-shadow-sm);
  margin-top: 32px;
}

.ff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.ff-table thead th {
  background: var(--ff-navy);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 16px;
  white-space: nowrap;
}

.ff-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--ff-line);
  color: var(--ff-text);
}

.ff-table tbody tr:nth-child(even) {
  background: var(--ff-ivory);
}

.ff-table tbody tr:hover {
  background: var(--ff-emerald-050);
}

/* ============================================================================
   8. INTERACTIVE SPEC STUDIO & LIVE RECEIPT CONFIGURATOR
   ============================================================================ */
.studio-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.studio-controls-panel {
  background: var(--ff-white);
  border: 1.5px solid var(--ff-line);
  border-radius: var(--ff-radius-lg);
  padding: 26px;
  box-shadow: var(--ff-shadow-sm);
}

.control-group {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ff-line);
}

.control-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.control-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ff-emerald);
  margin-bottom: 12px;
  display: block;
}

.tier-radio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tier-radio-btn {
  background: var(--ff-ivory);
  border: 1.5px solid var(--ff-line-strong);
  border-radius: var(--ff-radius-sm);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--ff-ink);
  transition: all 0.16s ease;
}

.tier-radio-btn.active {
  background: var(--ff-emerald-050);
  border-color: var(--ff-emerald);
  box-shadow: 0 0 0 1px var(--ff-emerald);
}

.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--ff-ivory);
  border: 1px solid var(--ff-line);
  border-radius: var(--ff-radius-sm);
  margin-bottom: 9px;
}

.addon-info {
  display: flex;
  flex-direction: column;
}

.addon-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ff-ink);
}

.addon-price-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ff-emerald);
}

.stepper-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ff-white);
  border: 1px solid var(--ff-line-strong);
  border-radius: 8px;
  padding: 3px 6px;
}

.stepper-box button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: var(--ff-emerald-050);
  color: var(--ff-emerald);
  font-weight: 800;
  cursor: pointer;
}

.stepper-box span {
  min-width: 24px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ff-ink);
}

.toggle-check {
  width: 20px;
  height: 20px;
  accent-color: var(--ff-emerald);
  cursor: pointer;
}

.smart-nudge {
  background: var(--ff-accent-warm-bg);
  border: 1.5px solid var(--ff-accent-warm);
  border-radius: var(--ff-radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ff-ink);
}

.smart-nudge.visible {
  display: flex;
}

.receipt-card {
  background: var(--ff-white);
  border: 2px solid var(--ff-slate);
  border-radius: var(--ff-radius-lg);
  padding: 24px;
  position: sticky;
  top: 130px;
  box-shadow: var(--ff-shadow-lg);
}

.receipt-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1.5px dashed var(--ff-line-strong);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.receipt-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--ff-text);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ff-line);
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt-total-box {
  background: var(--ff-emerald-050);
  border: 1.5px solid var(--ff-emerald);
  border-radius: var(--ff-radius);
  padding: 15px;
  margin-bottom: 14px;
}

.receipt-grand-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.receipt-grand-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--ff-ink);
}

.milestone-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ff-line-strong);
  font-size: 12px;
}

.client-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.client-inputs input {
  width: 100%;
  background: var(--ff-ivory);
  border: 1.5px solid var(--ff-line-strong);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ff-ink);
  font-size: 13px;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ============================================================================
   9. BENTO CARDS & 10-THEME GALLERY STUDIO
   ============================================================================ */
.bento-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--ff-white);
  border: 1.5px solid var(--ff-line);
  border-radius: var(--ff-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--ff-shadow-sm);
}

.bento-card:hover {
  border-color: var(--ff-emerald);
  box-shadow: var(--ff-shadow-md);
}

.themes-10-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.theme-gallery-card {
  background: var(--ff-white);
  border: 1.5px solid var(--ff-line);
  border-radius: var(--ff-radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: var(--ff-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-gallery-card:hover, .theme-gallery-card.active {
  border-color: var(--ff-emerald);
  box-shadow: var(--ff-shadow-md);
  transform: translateY(-2px);
}

.ig-studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

.ig-bio-box {
  background: var(--ff-ivory);
  border: 1.5px solid var(--ff-line-strong);
  border-radius: var(--ff-radius);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  white-space: pre-line;
  color: var(--ff-ink);
  margin: 12px 0;
}

.site-footer {
  padding: 44px 0 36px;
  background: var(--ff-navy);
  color: #d3dfe9;
  font-size: 13px;
}

.aiva-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--ff-navy);
  color: #ffffff;
  border: 1px solid var(--ff-emerald-200);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--ff-shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.22s ease;
}

.aiva-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .rate-cards-grid,
  .studio-layout,
  .bento-3-grid,
  .ig-studio-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .receipt-card {
    position: static;
  }
}
