/* ============================================================
   HyperCalc — Shared Stylesheet
   Premium futuristic dark UI | Beginner-friendly
   ============================================================ */

/* ---------- CSS Variables (Theme) ---------- */
:root {
  --bg: #0f0f0f;
  --bg-elevated: #14141f;
  --bg-card: rgba(20, 20, 35, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.04);
  --text: #f4f4ff;
  --text-muted: #9494b8;
  --text-dim: #5c5c78;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #22d3ee 100%);
  --gradient-soft: linear-gradient(145deg, rgba(99,102,241,0.15), rgba(34,211,238,0.08));
  --glow: 0 0 40px rgba(99, 102, 241, 0.35);
  --glow-cyan: 0 0 30px rgba(34, 211, 238, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --nav-h: 72px;
  --font: 'Outfit', system-ui, sans-serif;
  --ease: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1280px;
}

[data-theme="light"] {
  --bg: #f0f0f8;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shine: rgba(255, 255, 255, 1);
  --text: #0f0f1a;
  --text-muted: #4a4a6a;
  --text-dim: #7a7a9a;
  --glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--purple); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Background ---------- */
.bg-layer {
  position: fixed; inset: 0; z-index: -2;
  background: var(--bg) url('assets/background.jpg') center/cover no-repeat,
    radial-gradient(ellipse at 15% 20%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(34, 211, 238, 0.15), transparent 50%);
}
body[data-page="calc"] .bg-layer {
  background: var(--bg) url('../assets/background.jpg') center/cover no-repeat,
    radial-gradient(ellipse at 15% 20%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(34, 211, 238, 0.15), transparent 50%);
}
.bg-layer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,0.92) 0%, rgba(15,15,15,0.85) 50%, rgba(15,15,15,0.95) 100%);
}
[data-theme="light"] .bg-layer::after {
  background: linear-gradient(180deg, rgba(240,240,248,0.9), rgba(240,240,248,0.95));
}
.blob {
  position: fixed; border-radius: 50%; filter: blur(90px); opacity: 0.35;
  z-index: -1; pointer-events: none; animation: blobMove 22s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: #6366f1; top: -8%; left: -6%; }
.blob-2 { width: 400px; height: 400px; background: #8b5cf6; bottom: 5%; right: -4%; animation-delay: -8s; }
.blob-3 { width: 320px; height: 320px; background: #22d3ee; top: 45%; left: 35%; animation-delay: -15s; }
@keyframes blobMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -35px) scale(1.06); }
}
.particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan); opacity: 0.4;
  animation: floatParticle 12s linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
#loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 52px; height: 52px; border: 3px solid var(--glass-border);
  border-top-color: var(--cyan); border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  margin-top: 20px; font-weight: 700; font-size: 1.25rem;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
[data-theme="light"] .navbar { background: rgba(240, 240, 248, 0.88); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--text); flex-shrink: 0;
}
.brand img { width: 36px; height: 36px; }
.brand span { background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  padding: 8px 14px; border-radius: var(--radius-pill); transition: all var(--ease);
}
.nav-menu a:hover { color: var(--text); background: var(--glass-shine); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  transition: all var(--ease); font-size: 1.1rem;
}
.icon-btn:hover { border-color: var(--purple); box-shadow: var(--glow); transform: scale(1.05); }
.hamburger { display: none; }

/* Mobile sidebar */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 1100; opacity: 0; visibility: hidden; transition: all var(--ease);
}
.sidebar-overlay.open { opacity: 1; visibility: visible; }
.sidebar {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
  background: var(--bg-elevated); border-left: 1px solid var(--glass-border);
  z-index: 1200; padding: 24px; transition: right var(--ease); overflow-y: auto;
}
.sidebar.open { right: 0; }
.sidebar a {
  display: block; padding: 14px 16px; color: var(--text-muted);
  border-radius: var(--radius); margin-bottom: 4px; font-weight: 500;
}
.sidebar a:hover { background: var(--glass-shine); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; transition: all var(--ease);
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow), 0 8px 32px rgba(99,102,241,0.4); }
.btn-ghost {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); color: var(--text);
}
.btn-ghost:hover { border-color: var(--purple); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-copy {
  margin-top: 12px; background: rgba(99,102,241,0.2);
  border: 1px solid var(--indigo); color: var(--cyan);
}

/* ---------- Hero ---------- */
.hero { padding: 100px 0 80px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--bg-card); border: 1px solid var(--glass-border);
  font-size: 0.85rem; color: var(--cyan); margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-sub { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mockup {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.mockup-card {
  width: 100%; max-width: 380px;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 28px;
  backdrop-filter: blur(20px); box-shadow: var(--glow);
  animation: floatMock 6s ease-in-out infinite;
}
@keyframes floatMock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.mockup-display {
  background: rgba(0,0,0,0.4); border-radius: var(--radius);
  padding: 20px; text-align: right; font-size: 2rem; font-weight: 700;
  margin-bottom: 16px; border: 1px solid var(--glass-border);
  color: var(--cyan);
}
.mockup-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mockup-keys span {
  padding: 14px; text-align: center; border-radius: 10px;
  background: rgba(99,102,241,0.15); border: 1px solid var(--glass-border);
  font-weight: 600; font-size: 0.95rem;
}
.glow-orb {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.3), transparent 70%);
  filter: blur(40px); animation: pulseOrb 4s ease-in-out infinite;
}
@keyframes pulseOrb { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- Search ---------- */
.search-section { padding: 40px 0; }
.search-wrap {
  max-width: 640px; margin: 0 auto; position: relative;
}
.search-wrap input {
  width: 100%; padding: 18px 24px 18px 52px;
  border-radius: var(--radius-pill); font-size: 1rem;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  color: var(--text); backdrop-filter: blur(12px);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search-wrap input:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}
.search-wrap .search-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; opacity: 0.6;
}

/* ---------- Cards & Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg-card); background-image: var(--gradient-soft);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 26px; backdrop-filter: blur(16px);
  transition: all var(--ease); position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient); opacity: 0; transition: opacity var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: var(--glow);
}
.card:hover::before { opacity: 0.06; }
.card > * { position: relative; z-index: 1; }
.card-icon {
  width: 54px; height: 54px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 16px;
  background: rgba(99, 102, 241, 0.18); border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--cyan);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  flex-shrink: 0;
}
.card-icon .icon-svg {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.35));
}
.category-card .card-icon .icon-svg { width: 32px; height: 32px; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.875rem; color: var(--text-muted); }
.card-tag {
  display: inline-block; margin-top: 14px; font-size: 0.72rem;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.12); color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.04em;
}
a.card { display: block; color: inherit; cursor: pointer; }
.category-card { text-align: center; }
.category-card .card-icon { margin: 0 auto 16px; width: 64px; height: 64px; font-size: 2rem; }

/* ---------- Stats / Counters ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 48px;
}
.stat-item {
  text-align: center; padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--glass-border);
}
.stat-item .num {
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-item .label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Features ---------- */
.feature-grid .card { cursor: default; }
.feature-grid .card:hover { transform: translateY(-4px); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; background: var(--bg-card);
}
.faq-q {
  width: 100%; text-align: left; padding: 18px 22px;
  font-weight: 600; font-size: 1rem; display: flex;
  justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--cyan); transition: transform var(--ease); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height var(--ease);
  color: var(--text-muted); font-size: 0.95rem;
}
.faq-a-inner { padding: 0 22px 18px; }
.faq-item.open .faq-a { max-height: 200px; }

/* ---------- Testimonials ---------- */
.testimonial-card .stars { color: #fbbf24; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card .quote { font-style: italic; color: var(--text-muted); margin-bottom: 16px; }
.testimonial-card .author { font-weight: 700; font-size: 0.9rem; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  max-width: 520px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap;
}
.newsletter-box input {
  flex: 1; min-width: 200px; padding: 14px 20px;
  border-radius: var(--radius-pill); background: var(--bg-card);
  border: 1px solid var(--glass-border); color: var(--text);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 28px; background: rgba(0, 0, 0, 0.35);
}
[data-theme="light"] footer { background: rgba(0, 0, 0, 0.03); }
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); margin: 14px 0; font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); margin-bottom: 16px;
}
.footer-col a {
  display: block; color: var(--text-muted); font-size: 0.9rem;
  padding: 5px 0; transition: color var(--ease);
}
.footer-col a:hover { color: var(--text); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  transition: all var(--ease);
}
.social a:hover { border-color: var(--purple); transform: translateY(-3px); box-shadow: var(--glow); }
.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim); font-size: 0.85rem;
}

/* ---------- Calculator Page Layout ---------- */
.calc-page { padding: 40px 0 80px; min-height: calc(100vh - var(--nav-h)); }
.calc-header { margin-bottom: 32px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-weight: 500; margin-bottom: 16px;
  transition: color var(--ease);
}
.back-link:hover { color: var(--cyan); }
.calc-header h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
.calc-header p { color: var(--text-muted); margin-top: 8px; }
.calc-panel {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 32px;
  backdrop-filter: blur(20px); max-width: 560px;
  box-shadow: var(--glow-cyan);
}
.calc-panel.wide { max-width: 720px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border-radius: var(--radius); font-size: 1rem;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-border);
  color: var(--text); transition: all var(--ease);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select { background: rgba(255,255,255,0.9); }
.form-group input:focus,
.form-group select:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-box {
  margin-top: 20px; padding: 18px 20px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius); font-weight: 600;
  color: var(--cyan); word-break: break-word; line-height: 1.5;
}
.related { margin-top: 56px; }
.related h3 { font-size: 1.25rem; margin-bottom: 20px; }

/* Keypad */
.calc-display {
  background: rgba(0,0,0,0.45); border-radius: var(--radius);
  padding: 20px; text-align: right; font-size: 2rem; font-weight: 700;
  min-height: 72px; word-break: break-all; margin-bottom: 16px;
  border: 1px solid var(--glass-border); color: var(--text);
}
.keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.key {
  padding: 18px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--glass-border);
  font-weight: 600; font-size: 1.05rem; transition: all 0.15s;
}
.key:hover { background: rgba(99,102,241,0.25); border-color: var(--purple); }
.key:active { transform: scale(0.96); }
.key.op { color: var(--cyan); }
.key.eq { background: var(--gradient); color: #fff; border: none; grid-column: span 2; }
.key.wide { grid-column: span 2; }
.pass-out {
  font-family: ui-monospace, monospace; padding: 16px;
  background: rgba(0,0,0,0.35); border-radius: var(--radius);
  border: 1px solid var(--glass-border); word-break: break-all;
  letter-spacing: 1px; margin: 12px 0;
}
.strength { height: 6px; background: var(--glass-border); border-radius: 3px; overflow: hidden; }
.strength-fill { height: 100%; width: 0; transition: all 0.3s; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--bg-card); border: 1px solid var(--glass-border);
  font-weight: 500; font-size: 0.9rem; transition: all var(--ease);
}
.tab.active { background: var(--gradient); color: #fff; border-color: transparent; }
a.tab { text-decoration: none; color: var(--text-muted); display: inline-flex; align-items: center; }
a.tab:hover { color: var(--text); border-color: var(--purple); }
a.tab.active { color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.category-card p { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- FAB & Back Top ---------- */
.fab, .back-top {
  position: fixed; z-index: 900; width: 52px; height: 52px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); color: #fff; font-size: 1.25rem;
  box-shadow: var(--glow); transition: all var(--ease);
  opacity: 0; visibility: hidden; transform: translateY(20px);
}
.fab { bottom: 28px; right: 28px; opacity: 1; visibility: visible; transform: none; }
.back-top { bottom: 92px; right: 28px; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fab:hover, .back-top:hover { transform: scale(1.08) translateY(-3px); }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; bottom: 100px; right: 24px; z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.35s ease; font-size: 0.9rem;
  border-left: 3px solid var(--cyan);
}
.toast.err { border-left-color: #ef4444; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* JS-rendered cards: always visible (reveal observer runs before inject) */
.card.reveal.visible,
.category-card.reveal.visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-mockup { order: -1; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .calc-panel { padding: 22px; }
}
