/* ==========================================================================
   BAODAO ALERT (寶島鈴) — OFFICIAL DESIGN SYSTEM & STYLESHEET
   Domain: https://baodaoalert.com
   Zero external CSS dependencies. Pure modern CSS3.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & DESIGN TOKENS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette - Cyber Dark (Default Signature) */
  --bg-space: #070A0F;
  --bg-obsidian: #0B0F17;
  --bg-navy: #151C28;
  --bg-surface: #1E293B;
  
  --card-bg: rgba(21, 28, 40, 0.75);
  --card-bg-solid: #151C28;
  --card-border: rgba(56, 189, 248, 0.16);
  --card-border-hover: rgba(0, 229, 163, 0.45);
  --card-border-subtle: rgba(255, 255, 255, 0.08);

  /* Brand Accents */
  --emerald-primary: #00E5A3;
  --emerald-hover: #10B981;
  --emerald-dark: #059669;
  --emerald-glow: rgba(0, 229, 163, 0.28);
  --emerald-subtle: rgba(0, 229, 163, 0.12);

  --cyan-accent: #00F0FF;
  --cyan-glow: rgba(0, 240, 255, 0.3);
  --cyan-subtle: rgba(0, 240, 255, 0.1);

  --sky-blue: #38BDF8;
  --gold-accent: #F59E0B;
  --gold-light: #FDE047;
  --gold-subtle: rgba(245, 158, 11, 0.15);

  --crimson-alert: #FF3B30;
  --crimson-subtle: rgba(255, 59, 48, 0.15);

  /* Typography */
  --text-white: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-emerald: 0 0 25px rgba(0, 229, 163, 0.35);
  --shadow-cyan: 0 0 25px rgba(0, 240, 255, 0.3);

  /* Layout */
  --max-width: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-space: #F1F5F9;
  --bg-obsidian: #F8FAFC;
  --bg-navy: #FFFFFF;
  --bg-surface: #E2E8F0;

  --card-bg: rgba(255, 255, 255, 0.92);
  --card-bg-solid: #FFFFFF;
  --card-border: rgba(148, 163, 184, 0.3);
  --card-border-hover: rgba(2, 132, 199, 0.5);
  --card-border-subtle: rgba(148, 163, 184, 0.18);

  --emerald-primary: #059669;
  --emerald-hover: #047857;
  --emerald-dark: #065F46;
  --emerald-glow: rgba(5, 150, 105, 0.22);
  --emerald-subtle: rgba(5, 150, 105, 0.1);

  --cyan-accent: #0284C7;
  --cyan-glow: rgba(2, 132, 199, 0.25);
  --cyan-subtle: rgba(2, 132, 199, 0.1);

  --sky-blue: #0369A1;
  --gold-accent: #D97706;
  --gold-light: #B45309;
  --gold-subtle: #FEF3C7;

  --crimson-alert: #DC2626;
  --crimson-subtle: rgba(220, 38, 38, 0.12);

  --text-white: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-emerald: 0 4px 20px rgba(5, 150, 105, 0.2);
}

/* --------------------------------------------------------------------------
   2. BASE STYLES & TYPOGRAPHY
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-space);
  color: var(--text-white);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Atmospheric Radiant Background Glows */
.bg-glow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow-1 {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 229, 163, 0.12) 0%, rgba(0, 240, 255, 0.05) 45%, transparent 70%);
  filter: blur(80px);
}

.bg-glow-2 {
  position: absolute;
  top: 35%;
  right: -200px;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(56, 189, 248, 0.03) 50%, transparent 70%);
  filter: blur(100px);
}

.bg-glow-3 {
  position: absolute;
  top: 68%;
  left: -200px;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, rgba(0, 229, 163, 0.04) 50%, transparent 70%);
  filter: blur(100px);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

a {
  color: var(--emerald-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cyan-accent);
}

.mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   3. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border-subtle);
  z-index: 1000;
  transition: all var(--transition-fast);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.88);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  font-weight: 800;
  text-decoration: none;
}

.brand-icon-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--emerald-glow));
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title-zh {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--emerald-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-title-zh {
  background: linear-gradient(135deg, #0F172A 30%, var(--emerald-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle-en {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Pill Switcher */
.lang-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-navy);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--emerald-primary);
  color: #070A0F;
  box-shadow: 0 0 10px var(--emerald-glow);
}

[data-theme="light"] .lang-btn.active {
  color: #FFFFFF;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-navy);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & INTERACTIVE BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-hover) 100%);
  color: #070A0F;
  box-shadow: 0 4px 20px var(--emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 229, 163, 0.45);
  color: #070A0F;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shine 4s infinite ease-in-out;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  20%, 100% { transform: translateX(100%); }
}

.btn-secondary {
  background: rgba(21, 28, 40, 0.85);
  color: var(--text-white);
  border-color: var(--card-border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Live Radar Pulse Indicator */
.radar-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-subtle);
  border: 1px solid rgba(0, 229, 163, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-primary);
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-primary);
  animation: pulseRadar 2s infinite ease-in-out;
}

@keyframes pulseRadar {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 70px 0 60px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--cyan-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.app-store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.store-badge:hover {
  border-color: var(--emerald-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-badge-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-badge-sub {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: #CBD5E1;
  letter-spacing: 0.05em;
}

.store-badge-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* Trust Metric Badges */
.trust-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border-subtle);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trust-icon {
  font-size: 1.25rem;
  color: var(--emerald-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
}

.trust-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. HERO VISUAL & INTERACTIVE DEVICE SHOWCASE
   -------------------------------------------------------------------------- */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame-outer {
  position: relative;
  width: 320px;
  height: 650px;
  background: #000000;
  border-radius: 46px;
  border: 4px solid #334155;
  box-shadow: 
    0 0 0 4px #0F172A,
    0 30px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(0, 229, 163, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.device-frame-outer:hover {
  box-shadow: 
    0 0 0 4px #0F172A,
    0 35px 80px -10px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(0, 240, 255, 0.35);
}

.device-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.15);
}

.device-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 40px;
  display: block;
}

/* Floating High-Contrast Stat Pill */
.hero-floating-pill {
  position: absolute;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--emerald-primary);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--shadow-emerald);
  z-index: 20;
  animation: floatMotion 6s infinite ease-in-out;
}

.hero-floating-pill.pill-left {
  top: 18%;
  left: -40px;
}

.hero-floating-pill.pill-right {
  bottom: 15%;
  right: -35px;
  border-color: var(--cyan-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--shadow-cyan);
  animation-delay: -3s;
}

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

.pill-icon {
  font-size: 1.5rem;
}

.pill-text {
  display: flex;
  flex-direction: column;
}

.pill-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--emerald-primary);
}

.pill-right .pill-val {
  color: var(--cyan-accent);
}

.pill-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. SECTION HEADINGS & COMMON COMPONENTS
   -------------------------------------------------------------------------- */
.section {
  padding: 85px 0;
  position: relative;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan-subtle);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan-accent);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Glassmorphic Card Container */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

/* --------------------------------------------------------------------------
   8. 9-OFFICE JURISDICTION DIRECTORY
   -------------------------------------------------------------------------- */
.directory-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--bg-navy);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--emerald-primary);
  color: var(--text-white);
}

.filter-chip.active {
  background: var(--emerald-primary);
  border-color: var(--emerald-primary);
  color: #070A0F;
  font-weight: 800;
}

[data-theme="light"] .filter-chip.active {
  color: #FFFFFF;
}

.search-jurisdiction-box {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  background: var(--bg-navy);
  border: 1px solid var(--card-border);
  color: var(--text-white);
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Office Cards Grid */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.office-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.office-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.office-code-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.15);
  color: var(--sky-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.office-status-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-primary);
}

.office-name-zh {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.office-name-en {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.office-jurisdiction-box {
  background: var(--bg-obsidian);
  border: 1px solid var(--card-border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.jurisdiction-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sky-blue);
  margin-bottom: 3px;
}

.jurisdiction-states {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

.office-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.service-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-navy);
  border: 1px solid var(--card-border-subtle);
  color: var(--text-muted);
}

.office-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--card-border-subtle);
}

.office-meta-tz {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Quick Interactive Jurisdiction Tool */
.jurisdiction-tool-box {
  margin-top: 35px;
  background: linear-gradient(135deg, rgba(14, 42, 71, 0.6) 0%, rgba(11, 19, 38, 0.9) 100%);
  border: 1px solid var(--cyan-accent);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tool-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-icon {
  font-size: 2.2rem;
  color: var(--cyan-accent);
}

.tool-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.tool-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.state-select {
  background: var(--bg-navy);
  border: 1px solid var(--card-border);
  color: var(--text-white);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  min-width: 220px;
}

/* --------------------------------------------------------------------------
   9. CORE ARCHITECTURAL PILLARS & FEATURE SHOWCASE
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--emerald-subtle);
  border: 1px solid rgba(0, 229, 163, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--emerald-primary);
}

.pillar-card:nth-child(2) .pillar-icon-wrap {
  background: var(--cyan-subtle);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--cyan-accent);
}

.pillar-card:nth-child(3) .pillar-icon-wrap {
  background: var(--gold-subtle);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--gold-accent);
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.pillar-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature Deep-Dive Sections (Alternating) */
.feature-showcase-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
  margin-top: 65px;
}

.feature-showcase-row.reverse {
  grid-template-columns: 1.05fr 1fr;
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-num-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--emerald-primary);
  letter-spacing: 0.1em;
}

.feature-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.feature-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bullet-check {
  color: var(--emerald-primary);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-screenshot-card {
  background: var(--bg-navy);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
}

.feature-screenshot-card:hover {
  border-color: var(--emerald-primary);
  transform: scale(1.02);
}

.feature-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* --------------------------------------------------------------------------
   10. INTERACTIVE PRODUCT SCREENSHOT CAROUSEL / EXPLORER
   -------------------------------------------------------------------------- */
.carousel-explorer-section {
  padding: 70px 0;
  background: rgba(11, 15, 23, 0.65);
  border-top: 1px solid var(--card-border-subtle);
  border-bottom: 1px solid var(--card-border-subtle);
}

.carousel-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 35px;
}

.carousel-tab-btn {
  background: var(--bg-navy);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-tab-btn:hover {
  color: var(--text-white);
  border-color: var(--cyan-accent);
}

.carousel-tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.carousel-display-stage {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 45px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.stage-device {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 640px;
  background: #000000;
  border-radius: 46px;
  border: 4px solid #334155;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9), 0 0 30px var(--cyan-glow);
  overflow: hidden;
  margin: 0 auto;
}

.stage-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 40px;
  transition: opacity var(--transition-fast);
}

.stage-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stage-step-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--cyan-accent);
  letter-spacing: 0.08em;
}

.stage-title {
  font-size: 2rem;
  font-weight: 800;
}

.stage-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.stage-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.stage-spec-item {
  background: var(--bg-navy);
  border: 1px solid var(--card-border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.spec-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sky-blue);
  margin-bottom: 2px;
}

.spec-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-white);
}

/* --------------------------------------------------------------------------
   11. PRICING SECTION (NON-RENEWING PASSES)
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 26px;
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(21, 28, 40, 0.95) 0%, rgba(14, 42, 71, 0.9) 100%);
  border-color: var(--emerald-primary);
  box-shadow: 0 0 35px var(--emerald-glow), var(--shadow-lg);
  transform: scale(1.04);
  z-index: 5;
}

.pricing-card.featured:hover {
  transform: scale(1.06) translateY(-4px);
}

.popular-ribbon {
  position: absolute;
  top: 14px;
  right: 18px;
  background: var(--emerald-primary);
  color: #070A0F;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-tier-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-target-audience {
  font-size: 0.86rem;
  color: var(--text-muted);
  min-height: 40px;
  margin-bottom: 20px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
}

.price-amount {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-white);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.non-renewing-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

[data-theme="light"] .non-renewing-tag {
  color: #B45309;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-check {
  color: var(--emerald-primary);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-feature-item.muted {
  color: var(--text-faint);
}

.plan-feature-item.muted .plan-check {
  color: var(--text-faint);
}

/* Side-by-Side Flow Comparison Box */
.pricing-flow-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

@media (max-width: 768px) {
  .pricing-flow-comparison {
    grid-template-columns: 1fr;
  }
}

.flow-col {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition-fast);
}

.flow-col:hover {
  border-color: var(--card-border-hover);
}

.flow-col.flow-paid {
  border-color: rgba(0, 229, 163, 0.4);
  background: linear-gradient(145deg, rgba(0, 229, 163, 0.05) 0%, rgba(10, 22, 40, 0.7) 100%);
}

.flow-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.flow-badge-free {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.flow-badge-paid {
  background: var(--emerald-subtle);
  color: var(--emerald-primary);
  border: 1px solid rgba(0, 229, 163, 0.35);
}

.flow-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.flow-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pricing-guarantee-note {
  text-align: center;
  margin-top: 35px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.office-doc-tip {
  font-size: 0.76rem;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  line-height: 1.4;
}

[data-theme="light"] .office-doc-tip {
  color: #B45309;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

/* --------------------------------------------------------------------------
   12. INTERACTIVE FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--card-border-hover);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.08rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-chevron {
  font-size: 1rem;
  color: var(--emerald-primary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px 24px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item.open .faq-answer {
  max-height: 1000px;
  transition: max-height 0.35s ease-in-out;
}

.faq-item.open .faq-answer-inner {
  border-top-color: var(--card-border-subtle);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   13. GOVERNMENT NON-AFFILIATION BANNER & FOOTER
   -------------------------------------------------------------------------- */
.disclaimer-banner-box {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 60px;
}

.disclaimer-icon {
  font-size: 1.5rem;
  color: var(--gold-accent);
  flex-shrink: 0;
}

.disclaimer-text-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}

[data-theme="light"] .disclaimer-text-title {
  color: #B45309;
}

.disclaimer-text-body {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Main Site Footer */
.site-footer {
  background: var(--bg-space);
  border-top: 1px solid var(--card-border-subtle);
  padding: 60px 0 35px 0;
  position: relative;
  z-index: 10;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 45px;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--emerald-primary);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid var(--card-border-subtle);
  font-size: 0.82rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   14. DOWNLOAD MODAL & COMPLIANCE BADGES
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.download-modal-card {
  background: var(--bg-navy);
  border: 1px solid var(--emerald-primary);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-emerald);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  text-align: center;
}

.modal-backdrop.open .download-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-white);
}

/* --------------------------------------------------------------------------
   15. LEGAL / PRIVACY / TERMS DOCUMENT PAGES
   -------------------------------------------------------------------------- */
.legal-page-header {
  padding: 60px 0 35px 0;
  border-bottom: 1px solid var(--card-border-subtle);
  margin-bottom: 45px;
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

.legal-breadcrumbs a:hover {
  color: var(--emerald-primary);
}

.legal-content-wrap {
  max-width: 900px;
  margin: 0 auto 80px auto;
}

.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-section-block {
  margin-bottom: 35px;
}

.legal-section-block h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--text-white);
  border-bottom: 1px solid var(--card-border-subtle);
  padding-bottom: 8px;
}

.legal-section-block h3 {
  font-size: 1.15rem;
  margin: 20px 0 10px 0;
  color: var(--sky-blue);
}

.legal-section-block p, .legal-section-block ul {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-section-block ul {
  padding-left: 24px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.legal-table th, .legal-table td {
  padding: 12px 16px;
  border: 1px solid var(--card-border-subtle);
  text-align: left;
}

.legal-table th {
  background: var(--bg-obsidian);
  color: var(--sky-blue);
  font-weight: 700;
}

.legal-table td {
  background: var(--bg-navy);
  color: var(--text-secondary);
}

.contact-pill-box {
  background: var(--bg-obsidian);
  border: 1px solid var(--emerald-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-floating-pill.pill-left {
    left: 0;
  }

  .hero-floating-pill.pill-right {
    right: 0;
  }

  .office-grid, .pillars-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .carousel-display-stage {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stage-details {
    align-items: center;
  }

  .stage-specs-grid {
    text-align: left;
    width: 100%;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-space);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .trust-badges-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .office-grid, .pillars-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .feature-showcase-row, .feature-showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .jurisdiction-tool-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .tool-left {
    flex-direction: column;
  }

  .state-select {
    width: 100%;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }

  .legal-card {
    padding: 24px 16px;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }
}
