/* =====================================================================
   FILE: assets/css/style.css
   PURPOSE: Comprehensive Stylesheet for TasaiTech Website
   BRAND: Tasai Technologies LLC (Glen Allen, Virginia)
   ===================================================================== */

/* -------------------------------------------------------------
   1. RESET & BASE VARIABLES
   ------------------------------------------------------------- */
:root {
  --primary: #241D7C;
  --primary-hover: #1B1562;
  --primary-light: #342CA3;
  --secondary: #2563EB;
  --secondary-hover: #1D4ED8;
  --secondary-light: #3B82F6;
  --accent: #0284C7;
  --accent-soft: #EEF2FF;
  --accent-cyan: #06B6D4;
  --ink: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --surface: #FFFFFF;
  --bg: #F8FAFC;
  --log-bg: #0B1120;
  --log-fg: #E2E8F0;
  --log-dim: #64748B;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.16);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

ul, ol {
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------------
   2. PRELOADER
   ------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader-spinner {
  position: relative;
  width: 64px;
  height: 64px;
}

.spinner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(36, 29, 124, 0.12);
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  animation: spin 0.85s linear infinite;
}

.spinner-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.4rem;
  animation: pulseCore 1.5s ease-in-out infinite;
}

.preloader-brand .brand-text {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: block;
}

.preloader-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseCore {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* -------------------------------------------------------------
   3. LAYOUT & UTILITY CLASSES
   ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
  box-sizing: border-box;
}

.band {
  padding-block: clamp(48px, 7vw, 96px);
  position: relative;
  width: 100%;
  overflow: hidden;
}

.band.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.band.dark {
  background: var(--primary);
  color: #FFFFFF;
}

.band.dark h1, .band.dark h2, .band.dark h3 {
  color: #FFFFFF;
}

.band.dark p {
  color: rgba(255, 255, 255, 0.8);
}

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.lede {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   4. TOP BAR & HEADER NAVIGATION
   ------------------------------------------------------------- */
.top-bar {
  background: #0E1626;
  color: #94A3B8;
  font-size: 0.82rem;
  padding-block: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar a {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  color: #FFFFFF;
}

.top-bar i {
  color: var(--secondary-light);
}

.top-bar .divider {
  opacity: 0.3;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: clamp(52px, 5.5vw, 68px);
  max-height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.02);
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-link .nav-icon {
  font-size: 0.88rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--accent-soft);
}

.nav-link:hover .nav-icon {
  transform: translateY(-1px);
  opacity: 1;
}

.nav-link.active {
  color: var(--primary);
  background: var(--accent-soft);
  font-weight: 700;
}

.nav-link.active .nav-icon {
  color: var(--secondary);
  opacity: 1;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  font-size: 0.9rem;
  padding: 9px 18px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition);
}

.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle[aria-expanded="true"] .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .bar-2 {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  transition: max-height 0.35s ease-in-out;
}

.mobile-drawer.open {
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-drawer-inner {
  padding: 20px clamp(16px, 4vw, 24px) 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
}

.mobile-nav-link i {
  color: var(--secondary);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--accent-soft);
  color: var(--primary);
  border-left-color: var(--primary);
}

.mobile-contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.mobile-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.mobile-contact-item i {
  color: var(--secondary);
  margin-top: 3px;
}

/* -------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(36, 29, 124, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 29, 124, 0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------
   6. HERO SECTION & AGENT LOG TERMINAL
   ------------------------------------------------------------- */
.hero-section {
  padding-block: clamp(48px, 7vw, 104px);
  position: relative;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(36, 29, 124, 0.06) 0%, transparent 50%),
              var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: 100%;
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}

.hero-visual {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--primary);
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.hero-tag .tag-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust-badges i {
  color: var(--secondary);
}

/* Agent Log Terminal */
.log-card {
  background: var(--log-bg);
  color: var(--log-fg);
  font-family: var(--mono);
  font-size: 0.84rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--log-dim);
}

.log-controls {
  display: flex;
  gap: 7px;
}

.log-controls .ctrl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ctrl-dot.red { background: #EF4444; }
.ctrl-dot.yellow { background: #F59E0B; }
.ctrl-dot.green { background: #10B981; }

.log-title {
  font-size: 0.78rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.log-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10B981;
  font-size: 0.75rem;
}

.log-body {
  padding: clamp(14px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.log-line {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  white-space: nowrap;
  line-height: 1.5;
  font-size: 0.82rem;
}

.log-line .t {
  color: var(--log-dim);
}

.log-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 6px;
}

.log-badge.tool { background: rgba(37, 99, 235, 0.25); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.3); }
.log-badge.gate { background: rgba(245, 158, 11, 0.25); color: #FCD34D; border: 1px solid rgba(245, 158, 11, 0.3); }
.log-badge.done { background: rgba(16, 185, 129, 0.25); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.3); }

.log-foot {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -------------------------------------------------------------
   7. STATS & MARKET FIGURES
   ------------------------------------------------------------- */
.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.figure-box {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  transition: var(--transition);
}

.figure-box:hover {
  background: var(--accent-soft);
}

.figure-box:last-child {
  border-right: none;
}

.fig {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.fig-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 24px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.chart-card svg {
  min-width: 480px;
  width: 100%;
  height: auto;
  display: block;
}

.chart-card svg text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.chart-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--secondary);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin: 12px auto 0;
  width: fit-content;
}

.philosophy-card {
  border-left: 6px solid var(--primary);
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

/* -------------------------------------------------------------
   8. CARD GRIDS & FEATURES
   ------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
}

.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-lg);
}

.band.alt .card {
  background: var(--bg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.08);
}

.card h3 {
  font-size: 1.25rem;
}

.card p, .card ul {
  color: var(--muted);
}

.card ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card .more-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
}

.card .more-link i {
  transition: transform 0.2s ease;
}

.card:hover .more-link i {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   9. PROCESS STEPS
   ------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step-counter;
}

.step-card {
  counter-increment: step-counter;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

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

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.step-card h3 {
  font-size: 1.2rem;
}

/* -------------------------------------------------------------
   10. COMPARISON TABLE
   ------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #F1F5F9;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 700;
}

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

td.us-highlight {
  background: rgba(37, 99, 235, 0.04);
  font-weight: 600;
  color: var(--primary);
  border-left: 2px solid var(--secondary);
}

/* -------------------------------------------------------------
   11. CHIPS & PILLS
   ------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.chip i {
  color: var(--secondary);
}

.chip:hover {
  border-color: var(--primary);
  background: var(--accent-soft);
}

/* -------------------------------------------------------------
   12. FAQ ACCORDION
   ------------------------------------------------------------- */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background: var(--surface);
  transition: var(--transition);
}

details[open] {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.25s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
  color: var(--secondary);
}

details p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* -------------------------------------------------------------
   13. FORMS & NUMBER CAPTCHA
   ------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Captcha Challenge Box */
.captcha-container {
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.captcha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.captcha-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.captcha-badge {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  background: #FFFFFF;
  border: 2px dashed rgba(36, 29, 124, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  letter-spacing: 0.08em;
  user-select: none;
}

.btn-captcha-refresh {
  background: #FFFFFF;
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--secondary);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-family: var(--body);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-captcha-refresh:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.field-error {
  display: none;
  color: #EF4444;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 4px;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Alert Boxes */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert i {
  font-size: 1.25rem;
  margin-top: 2px;
}

/* Contact Sidebar Cards */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-kv-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.contact-kv-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-kv-item .label {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-kv-item .value {
  font-weight: 600;
  color: var(--ink);
}

/* -------------------------------------------------------------
   14. FOOTER & CREDITS
   ------------------------------------------------------------- */
.site-footer {
  background: #0B1120;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #171256 100%);
  padding-block: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.footer-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-cta-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.footer-cta-content h2 {
  color: #FFFFFF;
}

.footer-cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.footer-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-main {
  padding-block: clamp(52px, 7vw, 84px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 48px);
}

.footer-logo {
  height: clamp(50px, 5vw, 66px);
  max-height: 66px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}

.footer-desc {
  color: #94A3B8;
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cert-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--secondary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--display);
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-heading i {
  color: var(--secondary-light);
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: #94A3B8;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links li a i {
  font-size: 0.7rem;
  color: var(--secondary-light);
  transition: transform 0.2s ease;
}

.footer-links li a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.contact-item .contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-text strong {
  color: #F1F5F9;
}

.contact-text a {
  color: #CBD5E1;
}

.contact-text a:hover {
  color: #FFFFFF;
}

.region-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--secondary-light);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 22px;
  background: #080D1A;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: #64748B;
}

.footer-bottom strong {
  color: #94A3B8;
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-weight: 500;
}

.developer-credit i {
  color: var(--secondary-light);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal a {
  color: #64748B;
}

.footer-legal a:hover {
  color: #CBD5E1;
}

/* -------------------------------------------------------------
   15. BACK TO TOP BUTTON
   ------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(36, 29, 124, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

/* -------------------------------------------------------------
   16. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .top-bar {
    display: none; /* Conserve vertical space on mobile */
  }
  .nav-desktop, .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-drawer {
    display: block;
  }
}

@media (max-width: 768px) {
  .figures {
    grid-template-columns: 1fr;
  }
  .figure-box {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 22px 18px;
  }
  .figure-box:last-child {
    border-bottom: none;
  }
  .fig {
    font-size: 2.3rem;
  }
  .chart-scroll-hint {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .actions .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
  .hero-trust-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 16px;
    font-size: 0.84rem;
  }
  .log-line {
    font-size: 0.74rem;
    grid-template-columns: 56px 1fr;
    gap: 8px;
  }
  .log-head {
    padding: 10px 14px;
  }
  .log-foot {
    font-size: 0.72rem;
    padding: 10px 14px;
    line-height: 1.4;
  }
  .g2, .g3, .g4 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-cta-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .footer-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .footer-cta-actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .captcha-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 44px;
    max-height: 44px;
  }
  .header-wrap {
    padding-block: 8px;
  }
  .band {
    padding-block: 44px;
  }
  .section-head {
    margin-bottom: 32px;
  }
  h1 {
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }
  h2 {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }
  .lede {
    font-size: 1.02rem;
  }
  .hero-tag {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
  .eyebrow-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .card {
    padding: 20px 16px;
  }
  .philosophy-card {
    padding: 20px 16px;
    border-left-width: 4px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}
