/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
textarea {
  font-family: inherit;
}

/* ============ DESIGN TOKENS ============ */
:root {
  --bg: #06061a;
  --bg-rgb: 6, 6, 26;
  --bg-2: #0a0a24;
  --surface: #10102a;
  --surface-rgb: 16, 16, 42;
  --surface-2: #161636;
  --surface-2-rgb: 22, 22, 54;
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #f0f0fa;
  --text-heading: #fff;
  --muted: #8b8ba8;
  --muted-2: #5d5d7a;
  --surface-hover: rgba(255, 255, 255, 0.04);
  --surface-hover-hi: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(16, 16, 42, 0.6);
  --surface-glass-hi: rgba(16, 16, 42, 0.85);
  --surface-card: rgba(16, 16, 42, 0.4);
  --surface-dark: rgba(0, 0, 0, 0.25);
  --surface-deeper: rgba(0, 0, 0, 0.3);
  --surface-code: #08081c;
  --hero-overlay: rgba(0, 0, 0, 0.55);
  --code-text: #c4b5fd;
  --code-bg: rgba(168, 85, 247, 0.1);
  --code-border: rgba(168, 85, 247, 0.2);
  --inline-code-bg: rgba(168, 85, 247, 0.1);
  --primary: #a855f7;
  --primary-2: #7c3aed;
  --accent: #06b6d4;
  --neon: #00e0ff;
  --pink: #ec4899;
  --gradient-1: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #a855f7 0%, #00e0ff 100%);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1240px;
}

/* Light theme */
html[data-theme="light"] {
  --bg: #f5f5fa;
  --bg-rgb: 245, 245, 250;
  --bg-2: #ededf5;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-2: #f0f0f5;
  --surface-2-rgb: 240, 240, 245;
  --border: rgba(0, 0, 0, 0.08);
  --border-hi: rgba(0, 0, 0, 0.14);
  --text: #2a2a3e;
  --text-heading: #1a1a2e;
  --muted: #6b6b82;
  --muted-2: #9090a4;
  --surface-hover: rgba(0, 0, 0, 0.04);
  --surface-hover-hi: rgba(0, 0, 0, 0.08);
  --surface-glass: rgba(255, 255, 255, 0.75);
  --surface-glass-hi: rgba(255, 255, 255, 0.9);
  --surface-card: rgba(255, 255, 255, 0.6);
  --surface-dark: rgba(0, 0, 0, 0.04);
  --surface-deeper: rgba(0, 0, 0, 0.06);
  --surface-code: #f8f8fe;
  --hero-overlay: rgba(0, 0, 0, 0.55);
  --code-text: #6d28d9;
  --code-bg: rgba(168, 85, 247, 0.08);
  --code-border: rgba(168, 85, 247, 0.15);
  --inline-code-bg: rgba(168, 85, 247, 0.06);
}

/* ============ UTILITIES ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(168, 85, 247, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(168, 85, 247, 0.8);
}
.btn-secondary {
  background: var(--surface-hover);
  color: var(--text-heading);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--surface-hover-hi);
  border-color: var(--border-hi);
}
.btn-ghost {
  color: var(--text);
  padding: 10px 18px;
  font-weight: 500;
}
.btn-ghost:hover {
  color: var(--neon);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.section {
  padding: 120px 0;
  position: relative;
}
.section-alt {
  background: var(--surface-glass);
}
html[data-theme="light"] .section-alt {
  background: transparent;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--code-text);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-heading);
}
h1 {
  font-size: clamp(36px, 5vw, 60px);
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 18px;
}
h3 {
  font-size: 22px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: var(--surface-glass-hi);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-heading);
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient-1);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}
.logo-mark svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.nav {
  display: flex;
  gap: 6px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}
.nav a:hover {
  color: var(--text-heading);
  background: var(--surface-hover);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text-heading);
  border-color: var(--border-hi);
  background: var(--surface-hover-hi);
}
.icon-sun,
.icon-moon {
  display: none;
}
html[data-theme="dark"] .icon-moon,
html:not([data-theme]) .icon-moon {
  display: block;
}
html[data-theme="light"] .icon-sun {
  display: block;
}
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Blog detail pages: always light nav text (header over hero image) */
.blog-page .header .nav a {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.blog-page .header .nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.blog-page .header .logo {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.blog-page .header .theme-toggle {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}
.blog-page .header .theme-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}
.blog-page .header .header-actions .btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.blog-page .header .header-actions .btn-ghost:hover {
  color: #fff;
}
/* Restore normal on scroll */
.blog-page .header.scrolled .nav a {
  color: var(--muted);
  text-shadow: none;
}
.blog-page .header.scrolled .nav a:hover {
  color: var(--text-heading);
  background: var(--surface-hover);
}
.blog-page .header.scrolled .logo {
  color: var(--text-heading);
  text-shadow: none;
}
.blog-page .header.scrolled .theme-toggle {
  color: var(--muted);
  text-shadow: none;
  border-color: var(--border);
}
.blog-page .header.scrolled .theme-toggle:hover {
  color: var(--text-heading);
  border-color: var(--border-hi);
  background: var(--surface-hover-hi);
}
.blog-page .header.scrolled .header-actions .btn-ghost {
  color: var(--text);
  text-shadow: none;
}
.blog-page .header.scrolled .header-actions .btn-ghost:hover {
  color: var(--neon);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 16px;
  right: 16px;
  background: var(--surface-glass-hi);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--muted);
}
.mobile-menu a:hover {
  color: var(--text-heading);
  background: var(--surface-hover);
}

/* ============ FOOTER ============ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface-glass);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 24px;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--text-heading);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .links {
  display: flex;
  gap: 24px;
}
.footer-bottom .links a:hover {
  color: var(--text-heading);
}
.footer-bottom a {
  color: var(--primary);
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: var(--neon);
}

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.1);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-20px);
  }
}
@keyframes rotate-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-1);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -4px rgba(168, 85, 247, 0.5);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  font-size: 20px;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -4px rgba(168, 85, 247, 0.7);
}

/* ============ COOKIE BANNER ============ */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(16, 16, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hi);
  padding: 20px;
  border-radius: var(--radius);
  color: var(--text);
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#cookie-banner .cb-title {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
}
#cookie-banner .cb-title strong {
  color: #fff;
  font-weight: 700;
}
#cookie-banner .cb-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}
#cookie-banner .cb-link {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
#cookie-banner .cb-link:hover {
  color: #fff;
}
#cookie-banner .cb-btn {
  margin-top: 14px;
  width: 100%;
  color: #fff !important;
}

/* Light theme */
html[data-theme="light"] #cookie-banner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] #cookie-banner .cb-title,
html[data-theme="light"] #cookie-banner .cb-title strong {
  color: #1a1a2e;
}
html[data-theme="light"] #cookie-banner .cb-text {
  color: #4a4a5e;
}
html[data-theme="light"] #cookie-banner .cb-link {
  color: var(--primary-2);
}
html[data-theme="light"] #cookie-banner .cb-link:hover {
  color: var(--primary);
}
html[data-theme="light"] #cookie-banner .cb-btn {
  color: #fff !important;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(168, 85, 247, 0.25),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 20%,
      rgba(6, 182, 212, 0.18),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 20% 30%,
      rgba(236, 72, 153, 0.15),
      transparent 60%
    );
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 30%,
    transparent 80%
  );
}
html[data-theme="light"] .hero::after {
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-inner > div:first-child {
  position: relative;
  z-index: 2;
}
.hero-visual {
  z-index: 1;
  pointer-events: none;
}
.hero-visual .brain-orb,
.hero-visual .brain-core,
.hero-visual .orbit,
.hero-visual .orbit-item,
.hero-visual .chat-panel,
.hero-visual .hero-logos {
  pointer-events: none;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-tagline strong {
  color: var(--text-heading);
  font-weight: 600;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
}
.hero-stat .lbl {
  font-size: 13px;
  color: var(--muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 560px;
}
.brain-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #a855f7,
    #06b6d4 60%,
    transparent 70%
  );
  filter: blur(40px);
  opacity: 0.7;
  animation: pulse 4s ease-in-out infinite;
}
.brain-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #f0abfc,
    #a855f7 50%,
    #4c1d95
  );
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.3),
    inset -20px -20px 60px rgba(76, 29, 149, 0.8),
    0 0 80px rgba(168, 85, 247, 0.6);
  animation: float 6s ease-in-out infinite;
}
.brain-core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 35% 35%,
    transparent 0,
    transparent 8px,
    rgba(255, 255, 255, 0.06) 8px,
    rgba(255, 255, 255, 0.06) 10px
  );
}
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: rotate-orbit 20s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.orbit-1 {
  width: 380px;
  height: 380px;
}
.orbit-2 {
  width: 480px;
  height: 480px;
  animation-duration: 30s;
  animation-direction: reverse;
}
.orbit-3 {
  width: 580px;
  height: 580px;
  animation-duration: 40s;
}
.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px;
  border-radius: 14px;
  background: rgba(16, 16, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-hi);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 22px;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.orbit-item::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: var(--gradient-1);
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
}
html[data-theme="light"] .orbit-item {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
html[data-theme="light"] .orbit-item::before {
  opacity: 0;
}
html[data-theme="light"] .orbit {
  border-color: rgba(0,0,0,0.15);
}
.orbit-1 .orbit-item {
  transform: rotate(0deg) translateX(190px) rotate(0deg);
}
.orbit-2 .orbit-item {
  transform: rotate(120deg) translateX(240px) rotate(-120deg);
}
.orbit-3 .orbit-item {
  transform: rotate(240deg) translateX(290px) rotate(-240deg);
}

.chat-panel {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 340px;
  background: rgba(16, 16, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-1);
  display: grid;
  place-items: center;
  color: #fff;
}
.chat-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.chat-msg {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border-top-left-radius: 2px;
}
.chat-msg b {
  color: var(--text-heading);
}
.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted-2);
}
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--neon);
  animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
  border-radius: 1px;
}
html[data-theme="light"] .chat-panel {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  color: var(--text);
}
html[data-theme="light"] .chat-msg {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
html[data-theme="light"] .chat-input {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}

.hero-logos {
  position: absolute;
  bottom: -10px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(16, 16, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--muted);
}
html[data-theme="light"] .hero-logos {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  color: var(--muted);
}
html[data-theme="light"] .hero-logos .row {
  color: var(--text-heading);
}
.hero-logos .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.hero-logos .row {
  display: flex;
  gap: 14px;
  color: var(--text-heading);
  font-weight: 600;
}

/* ============ LOGOS STRIP ============ */
.logos-strip {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-card);
}
.logos-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.logos-strip .lbl {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.logos-strip .items {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logos-strip .item img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.logos-strip .item:hover img {
  opacity: 1;
}
html[data-theme="light"] .logos-strip .item img {
  filter: none;
  opacity: 0.6;
}
html[data-theme="light"] .logos-strip .item:hover img {
  opacity: 0.9;
}
.logos-strip .item {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted-2);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logos-strip .item:hover {
  color: var(--text-heading);
}

/* ============ FEATURES GRID ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  position: relative;
  padding: 32px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(168, 85, 247, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.feature:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}
.feature:hover::before {
  opacity: 1;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(6,182,212,0.2));
  border: 1px solid rgba(168,85,247,0.25);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #c4b5fd;
}
html[data-theme="light"] .feature-icon {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(6,182,212,0.15));
  border-color: rgba(168,85,247,0.2);
  color: var(--primary);
}
.feature h3 {
  margin-bottom: 10px;
  font-size: 19px;
}
.feature p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (hover: hover) {
  .feature:hover {
    --mx: var(--mouse-x);
    --my: var(--mouse-y);
  }
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
}
.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.step-num {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--border-hi);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-heading);
  position: relative;
  z-index: 1;
}
.step-num::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient-1);
  opacity: 0.2;
  filter: blur(12px);
  z-index: -1;
}
html[data-theme="light"] .step-num {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
html[data-theme="light"] .step-num::before {
  opacity: 0.35;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
}

/* ============ CASE LIST ============ */
.case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}
.case-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.case-list li::before {
  content: "✓";
  color: var(--neon);
  font-weight: 800;
  flex-shrink: 0;
}

/* ============ API / CODE WINDOW ============ */
.api-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.code-window {
  background: var(--surface-code);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.code-window-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.code-window-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-window-head .dot.r {
  background: #ff5f57;
}
.code-window-head .dot.y {
  background: #febc2e;
}
.code-window-head .dot.g {
  background: #28c840;
}
.code-window-head .tabs {
  display: flex;
  gap: 4px;
  margin-left: 20px;
}
.code-window-head .tab {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 6px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
}
.code-window-head .tab.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.code-window-body {
  padding: 24px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 13.5px;
  line-height: 1.8;
  color: #c4b5fd;
  overflow-x: auto;
}
html[data-theme="light"] .code-window-body {
  color: #4a1d8f;
}
html[data-theme="light"] .code-window-body span[style*="color:#c4b5fd"] {
  color: #4a1d8f !important;
}
html[data-theme="light"] .code-window-body span[style*="color:#5d5d7a"] {
  color: #6b6b82 !important;
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price {
  padding: 36px 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
}
.price:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
}
.price.featured {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.12), rgba(16, 16, 42, 0.6));
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 60px -10px rgba(168, 85, 247, 0.4);
}
html[data-theme="light"] .price.featured {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.02));
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 40px -10px rgba(168, 85, 247, 0.25);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gradient-1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-name {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 8px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.price-amount .num {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
}
.price-amount .cur {
  font-size: 20px;
  color: var(--muted);
  font-weight: 600;
}
.price-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
  min-height: 40px;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex-grow: 1;
}
.price-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  align-items: flex-start;
}
.price-features li svg {
  flex-shrink: 0;
  color: var(--neon);
  margin-top: 2px;
}
.price .btn {
  width: 100%;
}

/* ============ STATS ============ */
.stats {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.1),
    rgba(6, 182, 212, 0.05)
  );
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-lbl {
  font-size: 13px;
  color: var(--muted);
}

/* ============ TESTIMONIALS ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi {
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.testi::after {
  content: "\201C";
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 80px;
  line-height: 1;
  color: var(--muted-2);
  opacity: 0.2;
  font-family: Georgia, serif;
  pointer-events: none;
}
html[data-theme="dark"] .testi::after,
html:not([data-theme]) .testi::after {
  color: rgba(255,255,255,0.12);
  opacity: 1;
}
.testi:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}
.testi-quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.testi-name {
  font-weight: 600;
  font-size: 14px;
}
.testi-role {
  font-size: 13px;
  color: var(--muted);
}
.testi-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  color: #fbbf24;
}

/* ============ FAQ ============ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: var(--border-hi);
}
.faq-q {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}
.faq-q .ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-q .ico {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ============ CTA FINAL ============ */
.cta-final {
  position: relative;
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
}
.cta-box {
  position: relative;
  padding: 64px 40px;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(16,16,42,0.95) 0%, rgba(10,10,36,0.95) 100%);
  border: 1px solid rgba(168,85,247,0.25);
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 25% 50%, rgba(168,85,247,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 50%, rgba(6,182,212,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(236,72,153,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 100%);
  pointer-events: none;
}
.cta-box > * {
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  color: #fff;
}
.cta-final p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-final .hero-cta {
  justify-content: center;
}
/* Light theme */
html[data-theme="light"] .cta-box {
  background: linear-gradient(160deg, #ffffff 0%, #f8f7ff 100%);
  border-color: rgba(168,85,247,0.2);
  box-shadow: 0 20px 60px -10px rgba(168,85,247,0.15), 0 2px 8px rgba(0,0,0,0.04);
}
html[data-theme="light"] .cta-box::before {
  background: 
    radial-gradient(ellipse at 25% 50%, rgba(168,85,247,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 50%, rgba(6,182,212,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(236,72,153,0.08) 0%, transparent 50%);
}
html[data-theme="light"] .cta-box::after {
  background-image: 
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
}
html[data-theme="light"] .cta-final h2 {
  color: var(--text-heading);
}
html[data-theme="light"] .cta-final p {
  color: var(--muted);
}

/* ============ AUTH PAGES ============ */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  position: relative;
}
.auth-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      ellipse 50% 50% at 50% 50%,
      rgba(168, 85, 247, 0.15),
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 40% at 20% 30%,
      rgba(6, 182, 212, 0.1),
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 40% at 80% 70%,
      rgba(236, 72, 153, 0.08),
      transparent 60%
    );
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.auth-card .logo {
  margin-bottom: 40px;
  justify-content: center;
}
.auth-card h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}
.auth-card .subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.form-group input::placeholder {
  color: var(--muted-2);
}
.auth-card .btn-primary {
  width: 100%;
  justify-content: center;
  margin-bottom: 24px;
  padding: 16px;
}
.social-login {
  text-align: center;
  margin-bottom: 24px;
}
.social-login p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.social-btn:hover {
  background: var(--surface-hover-hi);
  border-color: var(--border-hi);
}
.auth-links {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}
.auth-links a {
  color: var(--neon);
  font-weight: 500;
  transition: color 0.2s;
}
.auth-links a:hover {
  color: var(--primary);
}
.auth-links .forget {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
}
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}

/* ============ ERROR 404 ============ */
.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  position: relative;
}
.error-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      ellipse 50% 50% at 50% 50%,
      rgba(168, 85, 247, 0.12),
      transparent 60%
    ),
    radial-gradient(
      ellipse 30% 30% at 20% 30%,
      rgba(6, 182, 212, 0.08),
      transparent 60%
    ),
    radial-gradient(
      ellipse 30% 30% at 80% 70%,
      rgba(236, 72, 153, 0.06),
      transparent 60%
    );
}
.error-code {
  font-size: clamp(100px, 18vw, 180px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--neon), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0.9;
}
.error-section h1 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 12px;
}
.error-section p {
  color: var(--muted);
  font-size: 16px;
  max-width: 460px;
  margin: 0 auto 32px;
}
.error-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-links a {
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.error-links .btn-primary {
  background: var(--gradient-1);
  color: #fff;
}
.error-links .btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.error-links .btn-outline:hover {
  border-color: var(--border-hi);
  background: var(--surface-hover);
}

/* ============ BLOG LIST ============ */
.blog-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      ellipse 60% 40% at 50% 0%,
      rgba(168, 85, 247, 0.2),
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 30% at 20% 50%,
      rgba(6, 182, 212, 0.1),
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 30% at 80% 50%,
      rgba(236, 72, 153, 0.08),
      transparent 60%
    );
}
.blog-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 12px;
}
.blog-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto;
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-tag {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.filter-tag:hover {
  color: var(--text-heading);
  border-color: var(--border-hi);
}
.filter-tag.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--code-text);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.blog-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}
.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.3);
}
.blog-card-body {
  padding: 24px;
}
.blog-card-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.blog-card h3 a {
  color: var(--text-heading);
  transition: color 0.2s;
}
.blog-card h3 a:hover {
  color: var(--neon);
}
.blog-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.page-link:hover {
  color: var(--text-heading);
  border-color: var(--border-hi);
}
.page-item.active .page-link {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
}
.page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card-new {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 32px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.contact-card-new::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(600px circle at 50% 0%, rgba(168,85,247,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.contact-card-new:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}
.contact-card-new:hover::before {
  opacity: 1;
}
.contact-card-new-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(6,182,212,0.2));
  border: 1px solid rgba(168,85,247,0.25);
  display: grid;
  place-items: center;
  color: #c4b5fd;
}
.contact-card-new:hover .contact-card-new-icon {
  color: #fff;
}
html[data-theme="light"] .contact-card-new:hover .contact-card-new-icon {
  color: var(--primary);
}
.contact-card-new-body h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-heading);
}
.contact-card-new-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.contact-card-new-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--neon);
  transition: color 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.contact-card-new:hover .contact-card-new-link {
  color: var(--primary);
}
/* Light theme overrides for contact cards */
html[data-theme="light"] .contact-card-new {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
html[data-theme="light"] .contact-card-new:hover {
  border-color: rgba(168,85,247,0.3);
  box-shadow: 0 16px 40px -8px rgba(168,85,247,0.2);
}
html[data-theme="light"] .contact-card-new-icon {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(6,182,212,0.15));
  border-color: rgba(168,85,247,0.2);
  color: var(--primary);
}
html[data-theme="light"] .contact-card-new-link {
  color: var(--primary);
}
html[data-theme="light"] .contact-card-new:hover .contact-card-new-link {
  color: var(--primary-2);
}

/* ============ LIGHT THEME LINK HOVER OVERRIDES ============ */
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .blog-card h3 a:hover,
html[data-theme="light"] .footer-bottom a:hover,
html[data-theme="light"] .auth-links a {
  color: var(--primary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  .header .logo-text {
    display: none;
  }
  .header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header.scrolled {
    background: var(--surface);
  }
  .mobile-menu {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .footer-grid,
  .steps,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .hero-inner,
  .api-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    height: 480px;
    max-width: 560px;
    margin: 0 auto;
  }
  .features-grid,
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .features-grid,
  .testi-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .steps,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    justify-content: center;
  }
  .header-actions .btn-ghost {
    display: none;
  }
  .cta-box {
    padding: 48px 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom .links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .chat-panel {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 24px auto 0;
    width: 100%;
    max-width: 340px;
  }
  .hero-visual {
    height: 420px;
  }
  .section-head {
    margin-bottom: 48px;
  }
  h1 {
    font-size: 42px;
  }
  h2 {
    font-size: 32px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero {
    padding: 130px 0 50px;
  }
}