/* ═══════════════════════════════════════════════════════════════
   AksharaTool – style.css
   Complete Design System for Telugu Text Toolkit
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Fonts */
  --font-sans: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.2);
  --shadow-glow: 0 0 40px rgba(99,102,241,.15);

  /* Transitions */
  --transition-fast: all .2s cubic-bezier(.4,0,.2,1);
  --transition: all .35s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .5s cubic-bezier(.4,0,.2,1);

  /* Color palette */
  --blue: #6366f1;
  --blue-soft: rgba(99,102,241,.12);
  --violet: #8b5cf6;
  --violet-soft: rgba(139,92,246,.12);
  --teal: #14b8a6;
  --teal-soft: rgba(20,184,166,.12);
  --rose: #f43f5e;
  --rose-soft: rgba(244,63,94,.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245,158,11,.12);
  --accent: #6366f1;
  --accent-soft: rgba(99,102,241,.12);
  --orange: #f97316;
  --orange-soft: rgba(249,115,22,.12);
}

/* ── DARK THEME (default) ── */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-elevated: #111118;
  --surface: #16161e;
  --card: #1a1a24;
  --border: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.15);
  --input-bg: #111118;
  --text: #f0f0f5;
  --text-muted: #9ca3af;
  --text-faint: #4b5563;
  --hero-gradient: linear-gradient(135deg, rgba(99,102,241,.08) 0%, rgba(139,92,246,.06) 50%, rgba(20,184,166,.04) 100%);
  --nav-bg: rgba(10,10,15,.82);
  --footer-bg: #0d0d14;
  --loader-bg: #0a0a0f;
  color-scheme: dark;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #f8f9fc;
  --bg-elevated: #ffffff;
  --surface: #f1f3f8;
  --card: #ffffff;
  --border: rgba(0,0,0,.08);
  --border-hover: rgba(0,0,0,.15);
  --input-bg: #f4f5f9;
  --text: #111827;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --hero-gradient: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(139,92,246,.04) 50%, rgba(20,184,166,.03) 100%);
  --nav-bg: rgba(248,249,252,.88);
  --footer-bg: #0f172a;
  --loader-bg: #f8f9fc;
  color-scheme: light;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════════════════ */
#page-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--loader-bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity .4s, visibility .4s;
}
#page-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loader-logo span {
  -webkit-text-fill-color: var(--teal);
}
.loader-bar {
  width: 180px; height: 3px;
  background: var(--border); border-radius: 100px; overflow: hidden;
}
.loader-bar-fill {
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--teal));
  border-radius: 100px;
  animation: loaderFill 1.2s ease-out forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ═══════════════════════════════════════════════════════════════
   AMBIENT BACKGROUND BLOBS
   ═══════════════════════════════════════════════════════════════ */
.blob-wrap {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: .35;
}
[data-theme="light"] .blob { opacity: .2; }
.blob1 {
  width: 500px; height: 500px; top: -10%; left: -5%;
  background: radial-gradient(circle, rgba(99,102,241,.5), transparent 70%);
  animation: blobFloat1 18s ease-in-out infinite;
}
.blob2 {
  width: 400px; height: 400px; top: 30%; right: -8%;
  background: radial-gradient(circle, rgba(139,92,246,.4), transparent 70%);
  animation: blobFloat2 22s ease-in-out infinite;
}
.blob3 {
  width: 350px; height: 350px; bottom: 5%; left: 25%;
  background: radial-gradient(circle, rgba(20,184,166,.35), transparent 70%);
  animation: blobFloat3 20s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-30px, 80px) scale(.95); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -30px) scale(1.1); }
  66% { transform: translate(40px, -60px) scale(.92); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -40px) scale(1.05); }
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 1.5rem; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: -0.5px; position: relative;
  display: flex; align-items: center; gap: 6px;
}
.logo .dot {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.telugu-tag {
  font-size: 0.65rem; font-weight: 600;
  background: var(--accent-soft);
  color: var(--blue);
  padding: 2px 8px; border-radius: 100px;
  letter-spacing: 0;
}
.nav-links {
  display: flex; gap: 4px;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.nav-right {
  display: flex; align-items: center; gap: 8px;
}

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast); font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--blue); background: var(--blue-soft); }

/* Hamburger */
.hamburger {
  display: none; width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 0; transition: var(--transition-fast);
}
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: var(--transition-fast);
}
.hamburger:hover { border-color: var(--blue); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 62px; left: 0; width: 100%;
  background: var(--card); border-bottom: 1px solid var(--border);
  z-index: 999; flex-direction: column; padding: 12px 1.5rem 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px); opacity: 0;
  transition: var(--transition-fast);
  pointer-events: none;
}
.mobile-menu.open {
  display: flex; transform: translateY(0); opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition-fast);
}
.mobile-menu a:hover { background: var(--accent-soft); color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION (Homepage)
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; z-index: 1;
  padding: 140px 1.5rem 60px;
  text-align: center;
  background: var(--hero-gradient);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 18px; border-radius: 100px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900; letter-spacing: -1.5px;
  line-height: 1.15; margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero > p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted); max-width: 540px;
  margin: 0 auto 32px; line-height: 1.75;
}
.hero-buttons {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 48px;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff; border: none; cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(99,102,241,.45); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition-fast);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

/* Hero stats */
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap; padding-top: 16px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-num span { -webkit-text-fill-color: var(--teal); }
.stat-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .06em; margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION (shared)
   ═══════════════════════════════════════════════════════════════ */
.section {
  position: relative; z-index: 1;
  padding: 64px 1.5rem;
  max-width: 1140px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 40px; }
.section-eyebrow {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 1rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   TOOLS GRID (Homepage)
   ═══════════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.tool-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity .4s;
  border-radius: var(--radius-xl);
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}
.tool-card:hover::before { opacity: 1; }

/* Card color accents */
.tc-orange::before { background: var(--orange-soft); }
.tc-orange:hover { border-color: var(--orange); }
.tc-blue::before { background: var(--blue-soft); }
.tc-blue:hover { border-color: var(--blue); }
.tc-violet::before { background: var(--violet-soft); }
.tc-violet:hover { border-color: var(--violet); }
.tc-teal::before { background: var(--teal-soft); }
.tc-teal:hover { border-color: var(--teal); }
.tc-rose::before { background: var(--rose-soft); }
.tc-rose:hover { border-color: var(--rose); }
.tc-amber::before { background: var(--amber-soft); }
.tc-amber:hover { border-color: var(--amber); }
.tc-cyan::before { background: rgba(6,182,212,.12); }
.tc-cyan:hover { border-color: #06b6d4; }

.tool-icon {
  font-size: 2rem; margin-bottom: 14px; position: relative; z-index: 1;
}
.tool-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px; position: relative; z-index: 1;
}
.tool-card p {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.7; flex: 1; position: relative; z-index: 1;
}
.tool-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); position: relative; z-index: 1;
  transition: var(--transition-fast);
}
.tool-card:hover .tool-arrow { color: var(--blue); transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════
   FEATURES STRIP
   ═══════════════════════════════════════════════════════════════ */
.features-strip {
  position: relative; z-index: 1;
  background: var(--hero-gradient);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 1.5rem;
}
.features-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.feature-item { text-align: center; padding: 16px; }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; margin-bottom: 6px;
}
.feature-item p {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO (Tool pages)
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 120px 1.5rem 40px;
  background: var(--hero-gradient);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 1rem; color: var(--text-muted);
  max-width: 540px; margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   AD BANNERS (Placeholder style)
   ═══════════════════════════════════════════════════════════════ */
.ad-banner {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  color: var(--text-faint); font-size: 0.75rem;
  font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--surface);
  transition: var(--transition-fast);
}
.ad-banner.leaderboard {
  max-width: 728px; height: 90px; margin: 0 auto;
}
.ad-banner.sidebar { height: 600px; }
.ad-banner.rectangle { height: 250px; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  position: relative; z-index: 1;
  background: var(--footer-bg); color: #d1d5db;
  border-top: 1px solid rgba(255,255,255,.06);
}
[data-theme="light"] footer { color: #94a3b8; }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 56px 1.5rem 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  font-size: 0.875rem; color: #9ca3af;
  margin-top: 10px; line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 16px; color: #e5e7eb;
}
[data-theme="light"] .footer-col h4 { color: #cbd5e1; }
.footer-col a {
  display: block; font-size: 0.875rem;
  color: #9ca3af; padding: 4px 0;
  transition: var(--transition-fast);
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }
[data-theme="light"] .footer-col a:hover { color: #e2e8f0; }
.footer-bottom {
  text-align: center; padding: 20px 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 0.78rem; color: #6b7280;
}
.footer-bottom p + p { margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════════════ */
#cookie-banner {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 28px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow-xl);
  max-width: 640px; width: calc(100% - 48px);
  backdrop-filter: blur(12px);
  animation: slideUp .4s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-text {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1;
}
.cookie-text a { color: var(--blue); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  padding: 9px 20px; border-radius: var(--radius-md);
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 0.82rem; border: none;
  cursor: pointer; transition: var(--transition-fast);
}
.cookie-accept:hover { opacity: .9; transform: translateY(-1px); }
.cookie-decline {
  padding: 9px 16px; border-radius: var(--radius-md);
  background: transparent; color: var(--text-muted);
  font-weight: 600; font-size: 0.82rem;
  border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition-fast);
}
.cookie-decline:hover { border-color: var(--text-muted); color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
/* Staggered delays for tool cards */
.fade-up-1 { transition-delay: .05s; }
.fade-up-2 { transition-delay: .1s; }
.fade-up-3 { transition-delay: .15s; }
.fade-up-4 { transition-delay: .2s; }
.fade-up-5 { transition-delay: .25s; }
.fade-up-6 { transition-delay: .3s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .hero-stats { gap: 28px; }
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 120px 1rem 48px; }
  .page-hero { padding: 100px 1rem 32px; }
  .section { padding: 40px 1rem; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  #cookie-banner {
    flex-direction: column; text-align: center;
    bottom: 12px; padding: 18px 20px;
  }
  .cookie-btns { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 400px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════════════════════════ */
::selection {
  background: rgba(99,102,241,.3);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR (WebKit)
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ═══════════════════════════════════════════════════════════════
   FOCUS VISIBLE (Accessibility)
   ═══════════════════════════════════════════════════════════════ */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
