/* ═══════════════════════════════════════════════════════════════
   BEETSBERRY — style.css  v2
   Professional dark/light theme with purple-sky accent
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── Design Tokens (Dark — default) ────────────────────────────── */
:root {
  --bg:          #0c1220;
  --bg-alt:      #101828;
  --bg-card:     #131e30;
  --bg-card-h:   #192540;
  --bg-input:    #0f1929;

  --text:        #e8edf5;
  --text-2:      #8fa3be;
  --text-3:      #4d6380;
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(124,58,237,0.45);

  --accent:      #7c3aed;
  --accent-2:    #0ea5e9;
  --grad:        linear-gradient(135deg,#7c3aed 0%,#0ea5e9 100%);
  --grad-r:      linear-gradient(135deg,#0ea5e9 0%,#7c3aed 100%);

  --radius-s:    6px;
  --radius-m:    12px;
  --radius-l:    18px;
  --radius-xl:   24px;

  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --shadow-l:    0 12px 48px rgba(0,0,0,0.5);
  --font:        'Inter', system-ui, sans-serif;
  --ease:        0.22s ease;
}

/* ── Light Theme ────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #f4f6fb;
  --bg-alt:      #eaeef6;
  --bg-card:     #ffffff;
  --bg-card-h:   #f7f9ff;
  --bg-input:    #f0f3fa;

  --text:        #0e1728;
  --text-2:      #4a5e7a;
  --text-3:      #8fa3be;
  --border:      rgba(0,0,0,0.08);
  --border-h:    rgba(124,58,237,0.35);

  --shadow:      0 2px 16px rgba(14,23,40,0.08);
  --shadow-l:    0 8px 40px rgba(14,23,40,0.14);
}

/* ── Global ─────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Typography ─────────────────────────────────────────────────── */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.22);
  padding: 4px 13px;
  border-radius: 100px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 12px 0 14px;
}
.section-header p { color: var(--text-2); font-size: 1rem; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: var(--ease);
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 3px 14px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--border-h);
  background: rgba(124,58,237,0.06);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 14px 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(12,18,32,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(244,246,251,0.9);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex: 1;
}
.logo-hex { display: block; flex-shrink: 0; }
.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-s);
  transition: var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
[data-theme="light"] .nav-links a:hover { background: rgba(0,0,0,0.04); }
.nav-links .nav-cta {
  color: #fff !important;
  background: var(--grad) !important;
  padding: 7px 16px;
}
.nav-links .nav-cta:hover { opacity: 0.88; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.theme-toggle:hover { border-color: var(--border-h); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
/* dark mode → show moon, hide sun */
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
/* light mode → show sun, hide moon */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}
.hero-gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.blob-1 { width: 500px; height: 500px; background: var(--accent); top: -80px; left: -80px; }
.blob-2 { width: 400px; height: 400px; background: var(--accent-2); bottom: -60px; right: -60px; }

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.72;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-suffix { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.stat p { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* Hero Visual */
.hero-visual { position: relative; height: 340px; }
.hv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.hv-main {
  position: absolute;
  top: 0; left: 0; right: 0;
  box-shadow: var(--shadow-l), 0 0 60px rgba(124,58,237,0.12);
}
.hv-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.hv-wm-dots { display: flex; gap: 5px; }
.hv-wm-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.hv-card-title { font-size: 0.78rem; font-weight: 600; color: var(--text-2); margin-left: auto; }
.hv-card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.hv-progress-item {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  align-items: center;
  gap: 10px;
}
.hv-progress-item > span:first-child { font-size: 0.78rem; color: var(--text-2); }
.hv-progress-item > span:last-child  { font-size: 0.75rem; color: var(--text-3); text-align: right; }
.hv-bar { height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; }
.hv-fill { height: 100%; background: var(--grad); border-radius: 100px; }
.hv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.hv-avatars { display: flex; align-items: center; gap: 0; }
.hv-av {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  border: 2px solid var(--bg-card);
  margin-left: -6px;
}
.hv-av:first-child { margin-left: 0; }
.hv-avatars > span { font-size: 0.73rem; color: var(--text-3); margin-left: 8px; }
.hv-sprint-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(14,165,233,0.12);
  color: var(--accent-2);
  border: 1px solid rgba(14,165,233,0.2);
  padding: 3px 9px;
  border-radius: 100px;
}

/* Floating cards */
.hv-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  animation: hfloat 4s ease-in-out infinite;
}
.hv-float strong { display: block; font-size: 0.8rem; font-weight: 600; }
.hv-float span   { color: var(--text-3); }
.hf1 { bottom: 40px; right: -24px; animation-delay: 0s; color: #22c55e; }
.hf2 { bottom: -12px; left: 16px; animation-delay: 1.8s; color: #f59e0b; }

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

/* ── Trusted Industries (Ticker) ─────────────────────────────────── */
.trusted-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}
.trusted-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 20px;
}

.ticker-outer {
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 55s linear infinite;
  width: max-content;
  will-change: transform;
}

/* Pause the whole track when hovering it */
.ticker-track:hover { animation-play-state: paused; }

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

.ticker-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 36px;
  filter: grayscale(1) brightness(0.55);
  opacity: 0.7;
  transition: filter 0.4s ease, opacity 0.4s ease, color 0.4s ease;
  cursor: default;
  white-space: nowrap;
}

/* Only the hovered item colourises */
.ticker-item:hover {
  filter: none;
  opacity: 1;
  color: var(--item-color);
}

.ticker-item svg  { flex-shrink: 0; }
.ticker-item span { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em; }

/* ── Services Grid ───────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--card-accent, var(--accent));
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  opacity: 0;
  transition: opacity var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
  border-color: var(--card-accent, var(--accent));
}
.service-card:hover::before { opacity: 1; }

.card-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--card-accent, var(--accent));
  transition: var(--ease);
}
.card-icon-wrap svg { width: 22px; height: 22px; }
.service-card:hover .card-icon-wrap {
  background: rgba(124,58,237,0.14);
  border-color: rgba(124,58,237,0.25);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-card > p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Highlight rows inside each card */
.card-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  flex: 1;
}
.card-hl {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 8px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}
.card-hl strong {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.card-hl span {
  color: var(--text-2);
}

/* Tech tags at the bottom of each card */
.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-tech span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-s);
  transition: color var(--ease), border-color var(--ease);
}
.service-card:hover .card-tech span {
  border-color: rgba(124,58,237,0.18);
  color: var(--text-2);
}

.services-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.35s; }

/* ── Process card + button (kept) ───────────────────────────────── */
.card-plus-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
  z-index: 2;
}
.card-plus-btn:hover,
.process-card:hover .card-plus-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

/* ── Process Grid ────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 28px 24px 24px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.process-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.process-num {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  line-height: 1;
}
.process-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-right: 32px;
}
.process-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }

/* ── Testimonials Carousel ───────────────────────────────────────── */
.carousel-wrapper { position: relative; }

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-l);
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.tcard {
  flex: 0 0 calc((100% - 48px) / 3);
  margin-right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tcard-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 14px; }
.tcard-quote {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin-bottom: 20px;
}
.tcard-author { display: flex; align-items: center; gap: 12px; }
.tcard-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.tcard-author strong { display: block; font-size: 0.9rem; font-weight: 600; }
.tcard-author span   { font-size: 0.78rem; color: var(--text-3); }

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.carousel-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.carousel-btn:hover { border-color: var(--border-h); color: var(--accent); background: var(--bg-card-h); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.carousel-dots { display: flex; gap: 6px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: var(--ease);
}
.carousel-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(124,58,237,0.35); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: color var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-ico {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}
.faq-item.open .faq-ico { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a.open { max-height: 300px; }
.faq-a p {
  padding: 0 22px 18px;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.72;
}

/* ── Contact ──────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 12px 0 14px;
}
.contact-info > p { color: var(--text-2); font-size: 0.93rem; line-height: 1.7; margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-s);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.ci-content { display: flex; flex-direction: column; gap: 2px; }
.ci-label { font-size: 0.73rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.ci-content > span, .ci-content > a { font-size: 0.9rem; color: var(--text-2); text-decoration: none; }

/* Email reveal */
.email-locked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.email-blur {
  font-size: 0.9rem;
  color: var(--text-2);
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.reveal-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--accent);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 100px;
  padding: 4px 11px;
  cursor: pointer;
  transition: var(--ease);
}
.reveal-email-btn:hover { background: rgba(124,58,237,0.18); }
.email-revealed {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238fa3be' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select option { background: var(--bg-card); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-note { text-align: center; font-size: 0.76rem; color: var(--text-3); }

/* ── Detail Drawer ───────────────────────────────────────────────── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
}
.drawer.open { visibility: visible; }

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer.open .drawer-overlay { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(520px, 92vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-close {
  position: sticky;
  top: 0;
  display: flex;
  align-self: flex-end;
  margin: 16px 16px 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  transition: var(--ease);
}
.drawer-close:hover { border-color: var(--border-h); color: var(--accent); }

.drawer-content { padding: 8px 32px 40px; }

/* Drawer inner layout (rendered by JS) */
.dr-tag   { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); padding: 3px 11px; border-radius: 100px; margin-bottom: 12px; }
.dr-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.dr-overview { font-size: 0.92rem; color: var(--text-2); line-height: 1.72; margin-bottom: 28px; }
.dr-section  { margin-bottom: 24px; }
.dr-section h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 12px; }
.dr-highlights { display: flex; flex-direction: column; gap: 10px; }
.dr-highlight  { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px 14px; }
.dr-highlight strong { font-size: 0.88rem; font-weight: 600; display: block; margin-bottom: 3px; }
.dr-highlight p { font-size: 0.82rem; color: var(--text-2); line-height: 1.55; }
.dr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-tag-item { font-size: 0.78rem; font-weight: 500; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-2); padding: 4px 10px; border-radius: var(--radius-s); }
.dr-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.dr-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.87rem; color: var(--text-2); line-height: 1.5; }
.dr-list li::before { content: '✓'; color: var(--accent); font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }
.dr-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dr-meta-item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 10px 14px; }
.dr-meta-item span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); display: block; margin-bottom: 3px; }
.dr-meta-item strong { font-size: 0.9rem; font-weight: 700; }

/* ── Captcha Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.captcha-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: min(380px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-l);
}
.modal-overlay.open .captcha-box { transform: scale(1) translateY(0); }

.captcha-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.captcha-box h3 { font-size: 1.15rem; font-weight: 800; }
.captcha-box > p { font-size: 0.85rem; color: var(--text-2); }
.captcha-challenge {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 14px 32px;
  width: 100%;
  letter-spacing: 0.02em;
}
.captcha-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.captcha-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.captcha-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 18px;
}
.captcha-dismiss {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text-3);
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--ease);
}
.captcha-dismiss:hover { color: var(--text-2); }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer-brand { max-width: 220px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p  { font-size: 0.84rem; color: var(--text-3); }
.footer-cols { display: flex; gap: 48px; }
.footer-col  { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 2px;
}
.footer-col a { font-size: 0.875rem; color: var(--text-3); text-decoration: none; transition: color var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-base {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
}
.footer-base p { font-size: 0.78rem; color: var(--text-3); }

/* ── Scroll Reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.process-grid .reveal:nth-child(2)  { transition-delay: 0.08s; }
.process-grid .reveal:nth-child(3)  { transition-delay: 0.16s; }
.process-grid .reveal:nth-child(4)  { transition-delay: 0.24s; }
.faq-list .reveal:nth-child(2)      { transition-delay: 0.06s; }
.faq-list .reveal:nth-child(3)      { transition-delay: 0.12s; }
.faq-list .reveal:nth-child(4)      { transition-delay: 0.18s; }
.faq-list .reveal:nth-child(5)      { transition-delay: 0.24s; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-layout   { grid-template-columns: 1fr; }
  .hero-visual   { display: none; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Use viewport units so backdrop-filter on .navbar.scrolled
       cannot shrink the overlay to the navbar's own height */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12,18,32,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Must be above .navbar (z-index: 900) */
    z-index: 960;
  }
  [data-theme="light"] .nav-links.open { background: rgba(244,246,251,0.97); }
  .nav-links.open { display: flex; gap: 4px; }

  /* Each list item fills the width so the link is easy to tap */
  .nav-links li { width: 100%; text-align: center; }

  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: var(--radius-s);
    color: var(--text);
  }
  .nav-links a:hover { background: rgba(124,58,237,0.08); color: var(--accent); }

  /* Reset the gradient CTA to plain text in the mobile overlay */
  .nav-links .nav-cta {
    background: none !important;
    color: var(--accent) !important;
    box-shadow: none !important;
    font-weight: 700;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 22px;
  }

  /* nav-actions (theme toggle + hamburger) must sit above the overlay */
  .nav-actions {
    position: relative;
    z-index: 970;
  }
  .hamburger { display: flex; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row     { grid-template-columns: 1fr; }
  .hero-stats   { gap: 20px; }
  .stat-sep     { display: none; }
  .tcard        { flex: 0 0 calc(100% - 24px); }
}

@media (max-width: 640px) {
  .section        { padding: 64px 0; }
  .process-grid   { grid-template-columns: 1fr; }
  .hero-cta       { flex-direction: column; }
  .hero-cta .btn  { width: 100%; justify-content: center; }
  .contact-form   { padding: 24px; }
  .footer-cols    { gap: 28px; }
  .services-grid { grid-template-columns: 1fr; }
}
