/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0f1e;
  --bg2:       #0d1528;
  --surface:   #111827;
  --surface2:  #1a2235;
  --border:    #1e2d45;
  --border2:   #243450;
  --text:      #e2e8f0;
  --muted:     #8899b4;
  --blue:      #3b82f6;
  --blue-light:#60a5fa;
  --purple:    #8b5cf6;
  --cyan:      #06b6d4;
  --grad:      linear-gradient(135deg, #3b82f6, #8b5cf6);
  --grad2:     linear-gradient(135deg, #60a5fa, #a78bfa);
  --radius:    16px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #f1f5f9;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; margin-bottom: .6rem; }
h4 { font-size: 1.05rem; }

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #60a5fa;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  white-space: nowrap;
}

.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,130,246,.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--blue);
  color: var(--blue-light);
}

.btn-outline {
  background: transparent;
  color: var(--blue-light);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  background: rgba(59,130,246,.08);
  border-color: var(--blue);
  transform: translateY(-1px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all .3s ease;
  background: linear-gradient(180deg, rgba(5,8,20,.92) 0%, rgba(5,8,20,.6) 60%, rgba(5,8,20,0) 100%);
}

.nav.scrolled {
  background: rgba(10,15,30,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #f1f5f9;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--grad);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

.nav-inner .btn { margin-left: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}

.orb-blue {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: -150px; left: -150px;
  animation: float 10s ease-in-out infinite;
}

.orb-purple {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: -100px; right: -100px;
  animation: float 12s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric strong {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #60a5fa;
  font-family: 'Space Grotesk', sans-serif;
}

.metric span {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
}

.metric-sep {
  width: 1px;
  height: 40px;
  background: var(--border2);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}

.card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.card-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #111827 0%, #0f1e38 100%);
  border-color: rgba(59,130,246,.3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.card-featured:hover {
  border-color: rgba(59,130,246,.5);
  box-shadow: 0 20px 60px rgba(59,130,246,.15);
}

.card-glow-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px 2px 0 0;
}

.card-featured-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  grid-column: 1 / -1;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
  margin-bottom: 20px;
}

.card-featured .card-icon { margin-bottom: 0; }

.card-badge {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-light);
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.2);
  padding: 4px 12px;
  border-radius: 999px;
}

.card h3 { margin-bottom: 12px; }

.card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-features {
  list-style: none;
  margin-bottom: 28px;
}

.card-features li {
  padding: 7px 0;
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.card-features li:last-child { border-bottom: none; }

.card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--grad);
  border-radius: 50%;
  flex-shrink: 0;
}

.card-features-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.price-tag {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-tag strong {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #60a5fa;
  font-family: 'Space Grotesk', sans-serif;
}

.price-tag span {
  color: var(--muted);
  font-size: .9rem;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: all .3s;
}

.step:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #60a5fa;
  line-height: 1;
  margin-bottom: 16px;
}

.step h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #f1f5f9;
}

.step p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  margin-top: 48px;
  flex-shrink: 0;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  background: var(--grad) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}

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

.avatar-core {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: #60a5fa;
  position: relative;
  z-index: 1;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.about-tags span {
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

.about-content .section-label { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 20px; }

.about-content p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-content .btn { margin-top: 12px; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta-section {
  overflow: hidden;
  background: var(--bg2);
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .2;
  pointer-events: none;
}

.cta-orb-blue  { width: 500px; height: 500px; background: var(--blue);   top: -100px;    left: -100px; }
.cta-orb-purple{ width: 400px; height: 400px; background: var(--purple); bottom: -100px; right: -100px; }

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.cta-glow-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}

.cta-box .section-label { margin-bottom: 20px; }
.cta-box h2 { margin-bottom: 16px; }

.cta-box p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 10px;
  max-width: 280px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--blue-light); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .btn-sm { display: none; }

  .services-grid { grid-template-columns: 1fr; }

  .card-featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .card-features-2col { grid-template-columns: 1fr; }

  .process-steps {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--blue), var(--purple));
  }

  .step-connector::after {
    right: 50%;
    top: auto;
    bottom: -4px;
    transform: translateX(50%);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-box { padding: 48px 28px; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 64px; }
  .hero-metrics { gap: 16px; }
  .metric strong { font-size: 1.3rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .card { padding: 28px 22px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--grad);
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(96,165,250,.6);
}

/* ============================================================
   TYPED TEXT — JITTER FIX
   ============================================================ */
#typedText {
  display: inline-block;
  min-height: 1.15em;
  vertical-align: bottom;
}

.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--blue-light);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 1px;
  animation: cursorBlink .75s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   CARD SHIMMER
   ============================================================ */
.card {
  isolation: isolate;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.05) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.card:hover::after { transform: translateX(100%); }

/* ============================================================
   ANIMATED GRADIENT BORDER ON FEATURED CARD
   ============================================================ */
.card-glow-line {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #f43f5e, #3b82f6);
  background-size: 400%;
  animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
  0%   { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* ============================================================
   BUTTON PULSE (CTA section only)
   ============================================================ */
.cta-box .btn-primary {
  animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(59,130,246,.35); }
  50%       { box-shadow: 0 4px 40px rgba(59,130,246,.65), 0 0 60px rgba(59,130,246,.2); }
}

/* ============================================================
   FLOATING ORBS — ENHANCED
   ============================================================ */
.orb-blue  { transition: transform 1s ease; }
.orb-purple{ transition: transform 1s ease; }

/* ============================================================
   COUNTER NUMBERS
   ============================================================ */
.stat-num { transition: all .3s ease; }

/* ============================================================
   STEP NUMBER GLOW
   ============================================================ */
.step:hover .step-num {
  filter: drop-shadow(0 0 8px var(--blue));
}

/* ============================================================
   BRANCH CARD ARROW BOUNCE
   ============================================================ */
.branch-card:hover .branch-link::after {
  animation: arrowBounce .5s ease infinite alternate;
}

@keyframes arrowBounce {
  from { transform: translateX(0); }
  to   { transform: translateX(4px); }
}

/* ============================================================
   HERO CONTENT ENTRANCE
   ============================================================ */
.hero-content {
  animation: heroIn .9s cubic-bezier(.22,1,.36,1) both;
}

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

.hero-badge { animation: heroIn .7s .1s cubic-bezier(.22,1,.36,1) both; }
.hero h1    { animation: heroIn .8s .15s cubic-bezier(.22,1,.36,1) both; }
.hero-lead  { animation: heroIn .8s .25s cubic-bezier(.22,1,.36,1) both; }
.hero-cta   { animation: heroIn .8s .35s cubic-bezier(.22,1,.36,1) both; }
.hero-metrics{ animation: heroIn .8s .45s cubic-bezier(.22,1,.36,1) both; }

/* ============================================================
   LOGO MARK HOVER SPIN
   ============================================================ */
.nav-logo:hover .logo-mark {
  transform: rotate(360deg);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}

.logo-mark { transition: transform .5s ease; }

/* ============================================================
   GLOW EFFECT ON METRIC NUMBERS
   ============================================================ */
.metric strong {
  text-shadow: 0 0 20px rgba(96,165,250,.3);
}

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */
.particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}

.nav, .hero, .section, footer {
  position: relative;
  z-index: 1;
}

/* ============================================================
   THEME SWITCHER
   ============================================================ */
.theme-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.theme-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--blue-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  transition: all .3s ease;
}

.theme-toggle:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 24px rgba(59,130,246,.35);
  transform: rotate(40deg);
}

.theme-toggle.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: rotate(180deg);
  box-shadow: 0 4px 24px rgba(59,130,246,.5);
}

.theme-palette {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 16px 18px 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
  min-width: 210px;
}

.theme-palette.open { display: block; }

.theme-palette-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.theme-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
}

.swatch:hover { transform: scale(1.18); }

.swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 0 12px rgba(255,255,255,.15);
}

/* ============================================================
   BRANCHES SECTION
   ============================================================ */
.branches-section { background: var(--bg); }

.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.branch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.branch-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s ease;
}

.branch-card:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.branch-card:hover::after { opacity: .04; }

.branch-icon {
  width: 54px;
  height: 54px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  transition: all .3s;
  position: relative;
  z-index: 1;
}

.branch-card:hover .branch-icon {
  background: rgba(59,130,246,.2);
  border-color: var(--blue-light);
}

.branch-card h3 {
  font-size: 1.05rem;
  color: #f1f5f9;
  margin: 0;
  position: relative;
  z-index: 1;
}

.branch-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.62;
  flex: 1;
  position: relative;
  z-index: 1;
}

.branch-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
  position: relative;
  z-index: 1;
}

.branch-card:hover .branch-link { gap: 10px; }

/* ============================================================
   FEATURE GRID (Landing pages)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s;
}

.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.18);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.feature-card h4 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* ============================================================
   STATS ROW (Landing pages)
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #60a5fa;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label { font-size: .875rem; color: var(--muted); }

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color .2s;
}

.back-link:hover { color: var(--blue-light); }

/* ============================================================
   RESPONSIVE - NEW COMPONENTS
   ============================================================ */
@media (max-width: 900px) {
  .branches-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .branches-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .theme-switcher { bottom: 16px; right: 16px; }
}
