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

:root {
  --red: #E11300;
  --red-dark: #8E0000;
  --red-mid: #B50000;
  --red-hover: #C51100;
  --red-glow: rgba(225, 19, 0, 0.20);
  --red-subtle: rgba(225, 19, 0, 0.08);

  --bg: #080808;
  --bg-2: #0D0D0D;
  --bg-3: #131313;
  --bg-4: #1A1A1A;
  --bg-5: #222222;
  --bg-6: #2A2A2A;

  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);
  --border-red: rgba(225, 19, 0, 0.35);

  --white: #FFFFFF;
  --g1: #C8C8C8;
  --g2: #909090;
  --g3: #585858;
  --g4: #303030;

  --green: #22C55E;
  --green-s: rgba(34, 197, 94, 0.10);
  --yellow: #EAB308;
  --yellow-s: rgba(234, 179, 8, 0.10);
  --red-s: rgba(225, 19, 0, 0.10);

  --f: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --r: 8px;
  --r2: 12px;
  --r3: 18px;
  --r4: 24px;
  --t: 0.2s ease;
  --t2: 0.35s ease;

  --shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-red: 0 0 40px rgba(225, 19, 0, 0.20);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--f); border: none; background: none; }

/* ─── TYPOGRAPHY ─── */
.t-hero    { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
.t-h1      { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.t-h2      { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.t-h3      { font-size: 1.1rem; font-weight: 600; }
.t-body    { font-size: 1rem; color: var(--g2); }
.t-small   { font-size: 0.82rem; }
.t-label   { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g3); }
.t-red     { color: var(--red); }
.t-muted   { color: var(--g2); }
.t-center  { text-align: center; }

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LAYOUT ─── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.flex       { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 0 24px var(--red-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-ghost {
  background: var(--bg-4);
  color: var(--g1);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-5); color: var(--white); }

.btn-sm { padding: 8px 16px; font-size: 0.82rem; border-radius: var(--r); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--r3); }

.btn-danger { background: var(--red-subtle); color: var(--red); border: 1px solid var(--border-red); }
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-success { background: var(--green-s); color: var(--green); border: 1px solid rgba(34,197,94,.25); }
.btn-success:hover { background: var(--green); color: #fff; }

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-red    { background: var(--red-s); color: var(--red); border: 1px solid var(--border-red); }
.badge-green  { background: var(--green-s); color: var(--green); border: 1px solid rgba(34,197,94,.2); }
.badge-yellow { background: var(--yellow-s); color: var(--yellow); border: 1px solid rgba(234,179,8,.2); }
.badge-gray   { background: var(--bg-5); color: var(--g2); border: 1px solid var(--border); }

/* ─── CARDS ─── */
.card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  transition: var(--t);
}
.card:hover { border-color: var(--border-2); }
.card-p { padding: 24px; }
.card-red { border-color: var(--border-red); background: linear-gradient(135deg, var(--bg-3), rgba(142,0,0,0.08)); }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); width: 100%; }

/* ─── SECTION HEADER ─── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; color: var(--g2); }

/* ══════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════ */

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--t);
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.98);
  border-bottom-color: var(--border-2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--red);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 16px var(--red-glow);
}
.nav-logo .logo-cost { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--g2);
  transition: var(--t);
}
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(142,0,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

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

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--g1);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title { margin-bottom: 24px; }
.hero-title span { color: var(--red); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--g2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--g3);
}
.hero-trust .avatars { display: flex; }
.hero-trust .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--bg-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.hero-trust .avatars .avatar:first-child { margin-left: 0; }

/* ─── DASHBOARD MOCKUP ─── */
.hero-visual {
  position: relative;
}

.mockup {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r3);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(142,0,0,0.12);
}

.mockup-header {
  background: var(--bg-4);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #28CA41; }
.mockup-title { font-size: 0.75rem; color: var(--g3); flex: 1; text-align: center; }

.mockup-body { padding: 16px; display: flex; gap: 12px; }

.mockup-sidebar {
  width: 120px;
  flex-shrink: 0;
}
.mockup-sidebar-logo {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 16px;
  padding: 6px 8px;
}
.mockup-nav-item {
  padding: 7px 10px;
  border-radius: var(--r);
  font-size: 0.65rem;
  color: var(--g3);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-nav-item.active {
  background: var(--red-subtle);
  color: var(--red);
  border: 1px solid var(--border-red);
}
.mockup-nav-icon { font-size: 0.7rem; }

.mockup-main { flex: 1; }

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.mockup-kpi {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px;
}
.mockup-kpi-label { font-size: 0.6rem; color: var(--g3); margin-bottom: 4px; }
.mockup-kpi-value { font-size: 0.9rem; font-weight: 700; }
.mockup-kpi-value.green { color: var(--green); }
.mockup-kpi-value.red { color: var(--red); }

.mockup-chart {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mockup-chart-label { font-size: 0.6rem; color: var(--g3); }
.mockup-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 50px;
}
.mockup-chart-bars .bar {
  flex: 1;
  background: var(--bg-5);
  border-radius: 2px;
  transition: height 1s ease;
}
.mockup-chart-bars .bar.active { background: var(--red); }

.mockup-alerts { display: flex; flex-direction: column; gap: 5px; }
.mockup-alert {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mockup-alert-text { font-size: 0.6rem; color: var(--g2); }
.mockup-alert-badge {
  padding: 2px 6px;
  background: var(--red-s);
  color: var(--red);
  border-radius: 99px;
  font-size: 0.55rem;
  font-weight: 600;
}

/* ─── STATS BAR ─── */
.stats-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-value span { color: var(--red); }
.stat-label { font-size: 0.82rem; color: var(--g3); }

/* ─── PROBLEM ─── */
.problem-section { background: var(--bg-2); }
.problem-intro { margin-bottom: 56px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.problem-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 20px;
  transition: var(--t);
}
.problem-card:hover {
  border-color: var(--border-red);
  background: var(--bg-4);
  transform: translateY(-2px);
}
.problem-icon {
  width: 40px;
  height: 40px;
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.problem-card h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.problem-card p { font-size: 0.8rem; color: var(--g3); line-height: 1.5; }

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  overflow: hidden;
}
.step-item {
  background: var(--bg-3);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: center;
  transition: var(--t);
}
.step-item:hover { background: var(--bg-4); }
.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--bg-5);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.step-item:hover .step-number { color: var(--red-dark); }
.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 0.88rem; color: var(--g2); line-height: 1.6; }
.step-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.step-tag {
  padding: 3px 10px;
  background: var(--bg-5);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.72rem;
  color: var(--g3);
}

/* ─── FEATURES ─── */
.features-section { background: var(--bg-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 32px;
  transition: var(--t2);
}
.feature-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 30px var(--red-glow);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.85rem; color: var(--g2); line-height: 1.65; }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 32px;
  transition: var(--t);
}
.pricing-card.featured {
  background: linear-gradient(160deg, var(--bg-4) 0%, rgba(142,0,0,0.12) 100%);
  border-color: var(--red);
  box-shadow: 0 0 40px rgba(225,19,0,0.15);
  transform: scale(1.03);
}
.pricing-card:hover { border-color: var(--border-2); }
.pricing-card.featured:hover { border-color: var(--red); }

.pricing-name { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--g3); margin-bottom: 8px; }
.pricing-card.featured .pricing-name { color: var(--red); }
.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup { font-size: 1.2rem; font-weight: 700; vertical-align: top; margin-top: 8px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--g3); letter-spacing: 0; }
.pricing-desc { font-size: 0.82rem; color: var(--g3); margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--g2);
}
.pricing-features li .check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.pricing-enterprise {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

/* ─── TESTIMONIALS ─── */
.testimonials-section { background: var(--bg-2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 28px;
}
.testimonial-quote {
  font-size: 0.9rem;
  color: var(--g1);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-quote::before { content: '"'; color: var(--red); font-size: 1.5rem; font-style: normal; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
  border: 1px solid var(--border-red);
}
.testimonial-name { font-size: 0.88rem; font-weight: 600; }
.testimonial-role { font-size: 0.75rem; color: var(--g3); }
.testimonial-savings {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--green-s);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--r);
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

/* ─── CTA SECTION ─── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(142,0,0,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner p { margin-bottom: 40px; color: var(--g2); max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-note { font-size: 0.78rem; color: var(--g3); }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 260px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.footer-logo .logo-icon { width: 28px; height: 28px; background: var(--red); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 900; }
.footer-desc { font-size: 0.83rem; color: var(--g3); line-height: 1.6; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--g3); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.83rem; color: var(--g3); transition: var(--t); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.78rem; color: var(--g4); }

/* ══════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════ */

.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: 240px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sidebar-logo .logo-icon {
  width: 30px;
  height: 30px;
  background: var(--red);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--red-glow);
}
.sidebar-logo .logo-cost { color: var(--red); }

.sidebar-section { padding: 16px 12px 8px; }
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--g4);
  padding: 0 8px;
  margin-bottom: 6px;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--g3);
  cursor: pointer;
  transition: var(--t);
  position: relative;
}
.nav-item:hover { background: var(--bg-4); color: var(--g1); }
.nav-item.active {
  background: var(--red-subtle);
  color: var(--white);
  border: 1px solid var(--border-red);
}
.nav-item.active .nav-icon { color: var(--red); }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--t);
}
.sidebar-user:hover { background: var(--bg-4); }
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan { font-size: 0.7rem; color: var(--red); font-weight: 500; }

/* ─── MAIN CONTENT ─── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.topbar {
  height: 60px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg);
}
.topbar-title { font-size: 1.1rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 14px;
  font-size: 0.83rem;
  color: var(--g3);
  width: 220px;
  transition: var(--t);
}
.search-box:hover { border-color: var(--border-2); }
.search-box:focus-within { border-color: var(--red); color: var(--white); }
.search-box input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--f);
  font-size: 0.83rem;
  color: var(--white);
  width: 100%;
}
.search-box input::placeholder { color: var(--g3); }

.notif-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--g2);
  cursor: pointer;
  transition: var(--t);
  position: relative;
}
.notif-btn:hover { border-color: var(--border-2); color: var(--white); }
.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

/* ─── KPI CARDS ─── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 22px;
  transition: var(--t);
}
.kpi-card:hover { border-color: var(--border-2); }
.kpi-card.highlight { border-color: var(--red); background: linear-gradient(135deg, var(--bg-3), rgba(142,0,0,0.10)); }
.kpi-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.kpi-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.kpi-change.up { color: var(--green); }
.kpi-change.down { color: var(--red); }
.kpi-value { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.kpi-label { font-size: 0.78rem; color: var(--g3); }

/* ─── CHARTS ─── */
.charts-row { display: grid; grid-template-columns: 1fr 380px; gap: 16px; margin-bottom: 24px; }
.chart-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 24px;
}
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chart-title { font-size: 0.9rem; font-weight: 700; }
.chart-filters { display: flex; gap: 4px; }
.chart-filter {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--g3);
  cursor: pointer;
  transition: var(--t);
}
.chart-filter:hover { color: var(--white); border-color: var(--border-2); }
.chart-filter.active { background: var(--red); border-color: var(--red); color: #fff; }
.chart-canvas { height: 200px; }

/* ─── TABLE ─── */
.table-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  overflow: hidden;
  margin-bottom: 24px;
}
.table-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-title { font-size: 0.9rem; font-weight: 700; }
.table-actions { display: flex; gap: 8px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 24px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g4);
  background: var(--bg-4);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 24px;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border);
  color: var(--g1);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-4); }

.expense-name { font-weight: 600; color: var(--white); }
.expense-desc { font-size: 0.75rem; color: var(--g3); margin-top: 2px; }

/* ─── CONTRACTS ─── */
.contracts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.contract-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.contract-item {
  background: var(--bg-3);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--t);
}
.contract-item:hover { background: var(--bg-4); }
.contract-urgency { width: 3px; height: 36px; border-radius: 99px; flex-shrink: 0; }
.contract-urgency.critical { background: var(--red); }
.contract-urgency.warning { background: var(--yellow); }
.contract-urgency.ok { background: var(--green); }
.contract-info { flex: 1; }
.contract-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 3px; }
.contract-meta { font-size: 0.75rem; color: var(--g3); }
.contract-value { text-align: right; }
.contract-amount { font-size: 0.9rem; font-weight: 700; }
.contract-action { font-size: 0.72rem; color: var(--red); margin-top: 2px; }

/* ─── AI RECOMMENDATIONS ─── */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.ai-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 22px;
  transition: var(--t2);
}
.ai-card:hover { border-color: var(--border-red); transform: translateY(-2px); }
.ai-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.ai-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(142,0,0,0.15);
  border: 1px solid rgba(142,0,0,0.3);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
}
.ai-confidence {
  font-size: 0.75rem;
  color: var(--g3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-text { font-size: 0.88rem; color: var(--g1); line-height: 1.55; margin-bottom: 16px; }
.ai-saving {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--green-s);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--r);
  margin-bottom: 14px;
}
.ai-saving-label { font-size: 0.75rem; color: var(--g3); }
.ai-saving-value { font-size: 1rem; font-weight: 800; color: var(--green); }

/* ─── PERIOD SELECTOR ─── */
.period-selector {
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 3px;
}
.period-btn {
  padding: 6px 14px;
  border-radius: calc(var(--r) - 2px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--g3);
  transition: var(--t);
}
.period-btn:hover { color: var(--white); }
.period-btn.active { background: var(--red); color: #fff; }

/* ─── PROGRESS BAR ─── */
.progress-bar { height: 4px; background: var(--bg-5); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--red); border-radius: 99px; transition: width 1s ease; }
.progress-fill.green { background: var(--green); }

/* ─── DONUT LEGEND ─── */
.donut-legend { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.legend-item { display: flex; align-items: center; justify-content: space-between; }
.legend-left { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-label { font-size: 0.8rem; color: var(--g2); }
.legend-value { font-size: 0.8rem; font-weight: 600; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--g4); }

/* ─── ANIMATIONS ─── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-in {
  animation: fadeUp 0.6s ease forwards;
}

[data-animate] { opacity: 0; }
[data-animate].visible { animation: fadeUp 0.6s ease forwards; }
[data-animate-delay="1"] { animation-delay: 0.1s; }
[data-animate-delay="2"] { animation-delay: 0.2s; }
[data-animate-delay="3"] { animation-delay: 0.3s; }
[data-animate-delay="4"] { animation-delay: 0.4s; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r);
  background: transparent;
  border: none;
  transition: var(--t);
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover { background: var(--bg-4); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 99px;
  transition: var(--t2);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV (landing) ─── */
.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px;
  z-index: 99;
  flex-direction: column;
  gap: 3px;
  display: none;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav a {
  display: block;
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--g2);
  transition: var(--t);
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav a:hover, .mobile-nav a:active { background: var(--bg-4); color: var(--white); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-nav-actions { display: flex; gap: 8px; padding: 4px 0 8px; }
.mobile-nav-actions .btn { flex: 1; justify-content: center; }

/* ─── DASHBOARD SIDEBAR OVERLAY ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 49;
  backdrop-filter: blur(3px);
  -webkit-tap-highlight-color: transparent;
}
.sidebar-overlay.visible { display: block; }

/* ─── DASHBOARD MENU TOGGLE ─── */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: var(--bg-3);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: var(--t);
}
.menu-toggle:hover { border-color: var(--border-2); background: var(--bg-4); }
.menu-toggle span {
  width: 15px;
  height: 2px;
  background: var(--g2);
  border-radius: 99px;
  display: block;
}

/* ─── BOTTOM NAV (dashboard mobile) ─── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 40;
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--g4);
  font-size: 0.58rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.bottom-nav-item.active { color: var(--red); }
.bottom-nav-item:active { opacity: 0.7; }
.bottom-nav-icon { font-size: 1.25rem; line-height: 1; }

/* ─── TABLE SCROLL WRAPPER ─── */
.table-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll-wrap .data-table { min-width: 580px; }

/* ─── RESPONSIVE ─── */

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 24px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
  .nav-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
  .charts-row { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .contracts-row { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ─── MOBILE (≤768px) ─── */
@media (max-width: 768px) {

  /* Layout */
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .section-header { margin-bottom: 40px; }

  /* Typography */
  .t-hero { font-size: 2.2rem; }
  .t-h1 { font-size: 1.7rem; }
  .t-h2 { font-size: 1.35rem; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-actions { gap: 8px; }

  /* Hero */
  .hero { padding-top: 80px; min-height: auto; padding-bottom: 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .hero-badge { font-size: 0.72rem; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { font-size: 0.75rem; flex-wrap: wrap; }

  /* Stats */
  .stats-bar { padding: 32px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px; }
  .stat-value { font-size: 1.9rem; }

  /* Problem */
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .problem-card { padding: 16px; }

  /* Steps */
  .step-item { grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 18px; }
  .step-number { font-size: 1.8rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 24px; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .pricing-card.featured { transform: none; }
  .pricing-enterprise { flex-direction: column; gap: 16px; text-align: center; }
  .pricing-enterprise > * { width: 100%; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 14px; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 360px; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom > div { flex-wrap: wrap; justify-content: center; }

  /* ── DASHBOARD ── */
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,0.6); }

  .menu-toggle { display: flex; }

  .topbar { padding: 0 14px; height: 56px; gap: 8px; }
  .topbar-title { font-size: 0.95rem; }
  .search-box { display: none; }
  .period-selector { display: none; }
  #pageStatus { display: none; }

  .page-content {
    padding: 16px;
    padding-bottom: calc(72px + max(6px, env(safe-area-inset-bottom)));
  }

  .bottom-nav { display: grid; }

  /* KPI cards */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 1.4rem; }
  .kpi-icon { width: 32px; height: 32px; font-size: 0.85rem; }

  /* Charts */
  .charts-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
  .chart-card { padding: 16px; }
  .chart-canvas { height: 180px; }

  /* Tables */
  .table-card { overflow-x: auto; margin-bottom: 16px; }
  .data-table { min-width: 560px; }
  .data-table th, .data-table td { padding: 10px 14px; font-size: 0.78rem; }
  .table-header { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .table-actions { width: 100%; justify-content: flex-end; }

  /* Contracts */
  .contracts-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
  .contract-item { padding: 12px 14px; gap: 10px; }
  .contract-name { font-size: 0.82rem; }

  /* AI grid */
  .ai-grid { grid-template-columns: 1fr; gap: 12px; }
  .ai-card { padding: 18px; }
}

/* ─── SMALL MOBILE (≤480px) ─── */
@media (max-width: 480px) {
  .t-hero { font-size: 1.85rem; }
  .t-h1 { font-size: 1.45rem; }
  .container { padding: 0 14px; }

  .problem-grid { grid-template-columns: 1fr; gap: 10px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-bottom: 1px solid var(--border); border-right: none; padding: 18px 0; }
  .stats-bar { padding: 0; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi-value { font-size: 1.25rem; }
  .kpi-label { font-size: 0.7rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:nth-child(n+3) { display: none; }

  .hero-trust .avatars { display: none; }
  .pricing-features li { font-size: 0.8rem; }

  .step-item { grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 14px; }
  .step-number { font-size: 1.4rem; }
  .step-content h3 { font-size: 1rem; }

  .feature-card { padding: 20px; }
  .feature-icon { width: 42px; height: 42px; font-size: 1.1rem; margin-bottom: 14px; }
}

/* ─── Touch device improvements ─── */
@media (hover: none) {
  .feature-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .ai-card:hover { transform: none; border-color: var(--border); }
  .problem-card:hover { transform: none; }
  .pricing-card:hover { border-color: var(--border); }
}

/* ─── Safe area (notch/home indicator) ─── */
@supports (padding: max(0px)) {
  .navbar { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .mobile-nav { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
}
