/* ═══════════════════════════════════════════════════════════════
   ChatMed  ·  Pro Design System  ·  v3.0
   Enterprise AI Health Platform — Dark-first, fully responsive
   3D animations, aurora backgrounds, glassmorphism, scroll-reveal
═══════════════════════════════════════════════════════════════ */

/* ─────────── DESIGN TOKENS ─────────── */
:root {
  --blue: #3b82f6;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --rose: #f43f5e;

  --grad-brand: linear-gradient(135deg, #3b82f6, #6366f1 50%, #8b5cf6);
  --grad-cyan: linear-gradient(135deg, #06b6d4, #3b82f6);
  --grad-health: linear-gradient(135deg, #10b981, #06b6d4 55%, #3b82f6);
  --grad-warm: linear-gradient(135deg, #f59e0b, #f43f5e);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 100px;

  --shadow-card: 0 1px 1px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-float: 0 24px 80px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.22);

  --section-py: 110px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─────────── DARK THEME (default) ─────────── */
[data-theme="dark"],
html:not([data-theme]) {
  --bg: #040c1a;
  --bg2: #060f1f;
  --surface: rgba(10, 18, 36, 0.88);
  --surface2: rgba(15, 26, 50, 0.72);
  --border: rgba(51, 65, 85, 0.55);
  --border-h: rgba(99, 102, 241, 0.45);
  --text: #e2e8f0;
  --subtle: #94a3b8;
  --muted: #64748b;
  --nav-bg: rgba(4, 12, 26, 0.92);
  --input-bg: rgba(10, 18, 36, 0.75);
  --code-bg: #050d1a;
}

/* ─────────── LIGHT THEME ─────────── */
[data-theme="light"] {
  --bg: #f0f4ff;
  --bg2: #e8edf8;
  --surface: rgba(255, 255, 255, 0.95);
  --surface2: rgba(248, 250, 252, 0.9);
  --border: rgba(148, 163, 184, 0.35);
  --border-h: rgba(59, 130, 246, 0.35);
  --text: #1e293b;
  --subtle: #475569;
  --muted: #64748b;
  --nav-bg: rgba(240, 244, 255, 0.92);
  --input-bg: rgba(248, 250, 252, 0.9);
  --code-bg: #1e293b;
}

/* ─────────── RESET ─────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.3s,
    color 0.3s;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Syne", sans-serif;
  line-height: 1.15;
}
a {
  text-decoration: none;
  color: var(--blue);
}
img,
video {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ─────────── NOISE TEXTURE ─────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: 0.3;
}
[data-theme="light"] body::before {
  opacity: 0.04;
}

/* ─────────── AURORA CANVAS ─────────── */
#aurora-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}
[data-theme="light"] #aurora-canvas {
  opacity: 0.18;
}

/* ─────────── SCROLLBAR ─────────── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* ─────────── CONTAINER ─────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* ─────────── GRADIENT TEXT ─────────── */
.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-cyan {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-health {
  background: var(--grad-health);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────── NAVIGATION ─────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 20px;
}
.header-pill {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  padding: 0 22px;
  height: 58px;
  justify-content: space-between;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}
.header-pill.scrolled {
  border-color: var(--border-h);
  box-shadow:
    0 8px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(99, 102, 241, 0.1);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.45);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s;
  flex-shrink: 0;
}
.brand:hover .brand-icon {
  transform: rotate(-10deg) scale(1.12);
  box-shadow: 0 0 36px rgba(99, 102, 241, 0.65);
}
.brand-name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
[data-theme="light"] .brand-name {
  color: #1e293b;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--subtle);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border);
  color: var(--subtle);
}
.btn-ghost:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--border-h);
  color: var(--text);
  transform: translateY(-1px);
}
[data-theme="light"] .btn-ghost {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  color: #475569;
}
[data-theme="light"] .btn-ghost:hover {
  background: #e2e8f0;
  color: #1e293b;
}

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

.btn-cyan {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}
.btn-cyan:hover {
  box-shadow: 0 6px 32px rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 16px;
  border-radius: 16px;
}
.btn-xl {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: 18px;
}

/* ─────────── MOBILE MENU ─────────── */
#mob-btn {
  display: none;
  background: none;
  border: none;
  color: var(--subtle);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
}
#mob-btn:hover {
  background: rgba(99, 102, 241, 0.1);
}
#mob-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 12px;
  right: 12px;
  background: rgba(4, 12, 26, 0.98);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  backdrop-filter: blur(30px);
  z-index: 500;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] #mob-menu {
  background: rgba(255, 255, 255, 0.98);
}
#mob-menu.open {
  display: block;
  animation: menuSlide 0.25s var(--ease-out);
}
@keyframes menuSlide {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#mob-menu a,
#mob-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--subtle);
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.2s;
  width: 100%;
  background: none;
  border: none;
}
#mob-menu a:hover,
#mob-menu button:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text);
}
#mob-menu a i,
#mob-menu button i {
  font-size: 15px;
  width: 20px;
  color: var(--muted);
}
.mob-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 10px;
}

@media (max-width: 768px) {
  .nav,
  .nav-actions .btn-ghost {
    display: none !important;
  }
  #mob-btn {
    display: block !important;
  }
  .lang-switcher,
  #nav-getstarted {
    display: none !important;
  }
}

/* ─────────── SECTION LAYOUT ─────────── */
.section {
  padding: var(--section-py) 0;
  position: relative;
}
.section-sm {
  padding: 64px 0;
}
.section-lg {
  padding: 140px 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.section-kicker::before,
.section-kicker::after {
  content: "";
  height: 1.5px;
  width: 28px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.section-kicker::after {
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.text-center .section-kicker::before {
  display: none;
}

.section-title {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 18px;
}
[data-theme="light"] .section-title {
  color: #0f172a;
}

.section-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--subtle);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}
.text-center {
  text-align: center;
}
.text-center .section-title {
  margin-left: auto;
  margin-right: auto;
}

/* ─────────── 3D GLASS CARDS ─────────── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    border-color 0.35s,
    box-shadow 0.35s,
    transform 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  border-color: var(--border-h);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.3),
    var(--shadow-glow);
  transform: translateY(-4px);
}

/* ─────────── 3D TILT CARDS ─────────── */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0) rotateY(0);
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.6s;
  will-change: transform;
}

/* ─────────── FLOATING ORBS ─────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.4;
}
.orb-1 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.7), transparent 70%);
}
.orb-2 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6), transparent 70%);
}
.orb-3 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
}
.orb-4 {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.6), transparent 70%);
}
.orb-5 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5), transparent 70%);
}

/* ─────────── KEYFRAMES ─────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-14px) rotate(2deg);
  }
  66% {
    transform: translateY(-7px) rotate(-1.5deg);
  }
}
@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-22px) scale(1.02);
  }
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.65);
  }
}
@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
@keyframes shimmer {
  from {
    background-position: -200% center;
  }
  to {
    background-position: 200% center;
  }
}
@keyframes spin3d {
  from {
    transform: rotateY(0deg) rotateX(10deg);
  }
  to {
    transform: rotateY(360deg) rotateX(10deg);
  }
}
@keyframes morphBlob {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}
@keyframes gradShift {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(30deg);
  }
}
@keyframes borderGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.7);
  }
}
@keyframes scanLine {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(400%);
  }
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes rotateSlowReverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

/* ─────────── SCROLL REVEAL ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal.visible,
.reveal-scale.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: 0.1s !important;
}
.delay-2 {
  transition-delay: 0.2s !important;
}
.delay-3 {
  transition-delay: 0.3s !important;
}
.delay-4 {
  transition-delay: 0.4s !important;
}
.delay-5 {
  transition-delay: 0.5s !important;
}
.delay-6 {
  transition-delay: 0.6s !important;
}
.delay-7 {
  transition-delay: 0.7s !important;
}
.delay-8 {
  transition-delay: 0.8s !important;
}

/* ─────────── HERO BADGE ─────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 30px;
  cursor: default;
  transition: all 0.3s;
}
.hero-badge:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.18);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 12px #818cf8;
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
.badge-tag {
  background: rgba(99, 102, 241, 0.2);
  border-radius: var(--r-pill);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #818cf8;
}

/* ─────────── BADGE PILLS ─────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}
.badge-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-violet {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-red {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ─────────── CODE WINDOW ─────────── */
.code-window {
  background: var(--code-bg);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.code-win-header {
  background: rgba(10, 18, 36, 0.9);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.win-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.win-dot:nth-child(1) {
  background: #ff5f57;
}
.win-dot:nth-child(2) {
  background: #febc2e;
}
.win-dot:nth-child(3) {
  background: #28c840;
}
.win-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.code-body {
  padding: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #e2e8f0;
  overflow-x: auto;
}
.code-kw {
  color: #818cf8;
}
.code-str {
  color: #6ee7b7;
}
.code-fn {
  color: #7dd3fc;
}
.code-num {
  color: #fb923c;
}
.code-cmt {
  color: var(--muted);
  font-style: italic;
}
.code-key {
  color: #c4b5fd;
}

/* ─────────── STATS NUMBERS ─────────── */
.stat-num {
  font-family: "Syne", sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

/* ─────────── FORM ELEMENTS ─────────── */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-input {
  width: 100%;
  padding: 13px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.form-input::placeholder {
  color: var(--muted);
}
.form-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-input:hover:not(:focus) {
  border-color: rgba(99, 102, 241, 0.3);
}
textarea.form-input {
  resize: vertical;
  min-height: 130px;
}
select.form-input {
  cursor: pointer;
}

/* ─────────── CTA SECTION ─────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.06),
    rgba(6, 182, 212, 0.05)
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  text-align: center;
  padding: 90px 0;
}
.cta-title {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 18px;
}
[data-theme="light"] .cta-title {
  color: #0f172a;
}
.cta-desc {
  font-size: 18px;
  color: var(--subtle);
  margin-bottom: 38px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────── FOOTER ─────────── */
footer.pro-footer {
  background: rgba(4, 8, 20, 0.97);
  border-top: 1px solid var(--border);
  padding: 88px 0 44px;
  position: relative;
  z-index: 2;
}
[data-theme="light"] footer.pro-footer {
  background: rgba(241, 245, 249, 0.98);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 70px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 18px;
}
.footer-brand-name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
[data-theme="light"] .footer-brand-name {
  color: #1e293b;
}
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 260px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.25s;
}
[data-theme="light"] .footer-social a {
  background: rgba(0, 0, 0, 0.04);
}
.footer-social a:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-h);
  color: var(--text);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: "Syne", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 13px;
}
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}
.footer-copy a {
  color: var(--cyan);
}
.footer-bottom-links {
  display: flex;
  gap: 26px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover {
  color: var(--text);
}
.api-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: livePulse 1.8s ease-in-out infinite;
}

/* ─────────── 3D DECORATIVE SHAPES ─────────── */
.shape-3d {
  position: absolute;
  pointer-events: none;
  transform-style: preserve-3d;
}
.hex-3d {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(139, 92, 246, 0.1)
  );
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: float 6s ease-in-out infinite;
}
.ring-3d {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.3);
  animation: rotateSlow 12s linear infinite;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}
.cross-3d {
  position: relative;
  width: 40px;
  height: 40px;
  animation: float 8s ease-in-out infinite 2s;
  opacity: 0.4;
}
.cross-3d::before,
.cross-3d::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  border-radius: 2px;
}
.cross-3d::before {
  width: 100%;
  height: 3px;
  top: 50%;
  transform: translateY(-50%);
}
.cross-3d::after {
  width: 3px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.dna-strand {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--blue),
    var(--violet),
    var(--cyan)
  );
  animation: float 7s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* ─────────── GRID LINES DECORATION ─────────── */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

/* ─────────── SCAN LINE ─────────── */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.5),
    transparent
  );
  animation: scanLine 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* ─────────── GLOW BORDER CARD ─────────── */
.glow-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.glow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    #3b82f6 0deg,
    #6366f1 72deg,
    #8b5cf6 144deg,
    #06b6d4 216deg,
    #3b82f6 360deg
  );
  border-radius: inherit;
  z-index: -1;
  animation: rotateSlow 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
}
.glow-card:hover::before {
  opacity: 0.6;
}
.glow-card-inner {
  background: var(--surface);
  border-radius: calc(var(--r-lg) - 1px);
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* ─────────── TYPING CURSOR ─────────── */
.typing-cursor::after {
  content: "|";
  animation: pulseDot 0.7s ease-in-out infinite;
  margin-left: 2px;
  color: var(--cyan);
}

/* ─────────── PULSE RING ─────────── */
.pulse-ring {
  position: relative;
}
.pulse-ring::before,
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: pulseRing 2.4s ease-out infinite;
}
.pulse-ring::after {
  animation-delay: 1.2s;
}

/* ─────────── TICKER ─────────── */
.ticker-section {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 32s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.ticker-item i {
  font-size: 13px;
  color: var(--cyan);
}

/* ─────────── LANGUAGE SWITCHER ─────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: var(--r-pill);
  padding: 3px 4px;
}
[data-theme="light"] .lang-switcher {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
}
.lang-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  transition: all 0.2s;
  font-family: "DM Sans", sans-serif;
}
.lang-btn.active,
.lang-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

/* ─────────── THEME TOGGLE BUTTON ─────────── */
.theme-btn {
  background: none;
  border: 1px solid rgba(45, 55, 75, 0.55);
  color: var(--subtle);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-btn:hover {
  border-color: var(--border-h);
  color: var(--text);
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  :root {
    --section-py: 72px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  :root {
    --section-py: 54px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .hero-badge {
    font-size: 12px;
    padding: 6px 14px 6px 9px;
  }
}

/* ── Global simple-footer mobile fix (used on features/security/contact pages) ── */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-inner > div {
    justify-content: center !important;
  }
}

/* ── Tightest screens (≤375px) ── */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }
  .btn-lg {
    padding: 12px 22px;
    font-size: 14px;
  }
  .section-title {
    font-size: clamp(22px, 7vw, 36px);
  }
}

/* ══════════════════════════════════════════════
   GLOBAL MOBILE — applies to ALL pages
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-py: 68px;
  }
  .header-pill {
    padding: 0 16px;
  }
  .btn-lg {
    padding: 13px 26px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-py: 48px;
  }
  .container {
    padding: 0 16px;
  }
  .section-title {
    letter-spacing: -0.5px;
  }
  .btn-lg {
    padding: 12px 22px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  :root {
    --section-py: 40px;
  }
}
