/* ═══════════════════════════════════════════════════════════════
   Mada Software & AI — Landing Page Stylesheet
   Copyright © 2026 Hazem Khodier. All rights reserved.  |  madanl.com
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080c18;
  --panel:     #0d1525;
  --card:      #0f1a2e;
  --border:    #1e3050;
  --border-hi: #2d4a6e;
  --acc:       #3b82f6;
  --acc2:      #60a5fa;
  --acc-glow:  rgba(59,130,246,.35);
  --green:     #22c55e;
  --gold:      #fbbf24;
  --purple:    #a78bfa;
  --red:       #ef4444;
  --ai-color:  #c084fc;
  --txt:       #e2e8f0;
  --txt-muted: #94a3b8;
  --txt-dim:   #64748b;
  --foot:      #06090f;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.6);
  --font:      'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: auto; font-size: 16px; } /* JS handles smooth scroll */

/* ─── Nav scroll progress bar ───────────────────────────────── */
#nav-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #1976d2, #60a5fa, #1976d2);
  background-size: 200% 100%;
  z-index: 9999;
  transition: width 0.12s ease;
  animation: progressShimmer 2s linear infinite;
  pointer-events: none;
}
@keyframes progressShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Section entrance animation ────────────────────────────── */
.section, .hero { opacity: 1; }
.sec-enter {
  animation: secFadeUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes secFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Nav active link ───────────────────────────────────────── */
.nav-links a.nav-active {
  color: var(--acc2) !important;
  position: relative;
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--acc2);
  border-radius: 2px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--acc); text-decoration: none; transition: color .2s; }
a:hover { color: var(--acc2); }
code { font-family: 'Courier New', monospace; background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 4px; font-size: .875em; }

/* ─── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }

.gradient-text {
  background: linear-gradient(135deg, var(--acc2) 0%, var(--purple) 60%, var(--ai-color) 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-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.3);
  color: var(--acc2);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.section-sub { color: var(--txt-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .925rem;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm { padding: 7px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

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

.btn-outline { background: transparent; color: var(--txt); border: 1.5px solid var(--border-hi); }
.btn-outline:hover { border-color: var(--acc); color: var(--acc2); background: rgba(59,130,246,.06); }

.btn-ghost { background: rgba(255,255,255,.06); color: var(--txt); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ─── Download Button — 3D press effect ─────────────────────── */
.btn-download {
  position: relative;
  background: linear-gradient(160deg, #2563eb 0%, #1d4ed8 55%, #1e3faf 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  /* 3D depth: bottom shadow acts as the "block" thickness */
  box-shadow:
    0 5px 0 0 #1a3390,
    0 8px 24px rgba(29,78,216,.55);
  transform: translateY(0);
  transition: transform .14s ease, box-shadow .14s ease, background .2s;
  overflow: hidden;
  z-index: 0;
}
/* Top-edge inner highlight (gives 3D face illusion) */
.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,.18) 0%,
    rgba(255,255,255,.04) 45%,
    transparent 100%);
  border-radius: inherit;
  pointer-events: none;
}
/* Shimmer sweep on hover */
.btn-download::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.18),
    transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn-download:hover {
  color: #fff;
  background: linear-gradient(160deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  transform: translateY(-4px);
  box-shadow:
    0 9px 0 0 #1a3390,
    0 14px 36px rgba(29,78,216,.7);
}
.btn-download:hover::after { left: 160%; }
.btn-download:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 0 #1a3390,
    0 4px 12px rgba(29,78,216,.4);
}
/* Unavailable state */
.btn-download.dl-unavail {
  background: linear-gradient(160deg, #374151 0%, #1f2937 100%);
  box-shadow: 0 4px 0 0 #111827, 0 6px 18px rgba(0,0,0,.4);
  cursor: not-allowed;
  opacity: .75;
}
.btn-download.dl-unavail:hover {
  transform: none;
  box-shadow: 0 4px 0 0 #111827, 0 6px 18px rgba(0,0,0,.4);
}

/* ─── Nav download button (compact) ─────────────────────────── */
.nav-dl-btn {
  padding: 7px 14px;
  font-size: .82rem;
  box-shadow: 0 3px 0 0 #1a3390, 0 5px 16px rgba(29,78,216,.45);
}
.nav-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 #1a3390, 0 8px 22px rgba(29,78,216,.6);
}

/* ─── Download meta row (badge + counter) ───────────────────── */
.dl-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.dl-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.28);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.dl-badge-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: dl-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.7); }
}
/* Unavailable badge variant */
.dl-badge.unavail {
  color: var(--red);
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.28);
}
.dl-badge.unavail .dl-badge-dot { background: var(--red); animation: none; }

.dl-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--txt-muted);
}
.dl-count-num { font-weight: 600; color: var(--txt); }

/* Secondary hero CTA row */
.hero-ctas-secondary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Download Strip (pricing section) ──────────────────────── */
.dl-strip {
  margin-top: 48px;
  background: linear-gradient(135deg,
    rgba(29,78,216,.12) 0%,
    rgba(30,64,175,.18) 100%);
  border: 1px solid rgba(59,130,246,.22);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.dl-strip-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 220px;
}
.dl-strip-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc2);
  flex-shrink: 0;
}
.dl-strip-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--txt);
}
.dl-strip-text span {
  font-size: .82rem;
  color: var(--txt-muted);
}
.dl-strip-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .dl-strip { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .dl-strip-right { align-items: flex-start; width: 100%; }
  .dl-strip-right .btn-download { width: 100%; justify-content: center; }
  .dl-wrap { align-items: stretch; }
  .dl-wrap .btn-download { justify-content: center; }
  .hero-ctas-secondary { flex-direction: column; }
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(8,12,24,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,.6); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--txt); }
.logo-icon { color: var(--acc); font-size: 1.3rem; }
.logo-ai { color: var(--acc2); }
.logo-img { height: 36px; width: auto; display: block; object-fit: contain; }
.footer-brand .logo-img { height: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a { color: var(--txt-muted); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--txt); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--txt-muted); border-radius: 2px; transition: all .25s; }
.nav-mobile { display: none; flex-direction: column; padding: 12px 24px 20px; gap: 10px; border-top: 1px solid var(--border); }
.nav-mobile a { color: var(--txt-muted); padding: 8px 0; font-size: .95rem; }
.nav-mobile .btn { margin-top: 4px; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}
#heroCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}
.hero-content { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .82rem;
  color: var(--acc2);
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 6px var(--green); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-title { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 20px; line-height: 1.1; }
.hero-sub { color: var(--txt-muted); font-size: 1.1rem; max-width: 500px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); color: var(--acc2); }
.stat-lbl { font-size: .75rem; color: var(--txt-dim); text-transform: uppercase; letter-spacing: .06em; }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* App Mockup */
.hero-visual { flex: 0 0 420px; }
.app-mockup {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(59,130,246,.08);
}
.mockup-bar {
  background: #060a14;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot.red { background: #ef4444; }
.mockup-dot.amber { background: #f59e0b; }
.mockup-dot.green { background: #22c55e; }
.mockup-title { margin-left: auto; font-size: .75rem; color: var(--txt-dim); font-family: monospace; }
.mockup-body { padding: 16px; }
.mockup-tasks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .85rem;
  border: 1px solid transparent;
}
.task-row.done { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.2); color: #86efac; }
.task-row.running { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: var(--acc2); }
.task-row.idle { background: rgba(255,255,255,.03); border-color: var(--border); color: var(--txt-muted); }
.task-icon { font-size: .9rem; min-width: 16px; }
.spin { display: inline-block; animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mockup-footer-bar {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  font-size: .75rem;
}
.mf-item { color: var(--txt-dim); }
.mf-item.ok { color: var(--green); }
.mf-item.ai { color: var(--ai-color); }

/* Hero scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  color: var(--txt-dim);
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: fade-scroll 2s ease-in-out infinite;
}
@keyframes fade-scroll { 0%,100%{opacity:.4} 50%{opacity:.9} }
.scroll-dot { animation: scroll-bounce 2s ease-in-out infinite; }
@keyframes scroll-bounce { 0%{transform:translateY(0)} 50%{transform:translateY(6px)} 100%{transform:translateY(0)} }

/* ─── Trust Bar ─────────────────────────────────────────────── */
.trust-bar {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.trust-label { font-size: .8rem; color: var(--txt-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 40px; }
.trust-item { color: var(--txt-muted); font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }

/* ─── Features ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .25s, box-shadow .25s;
}
.feat-card:hover { border-color: var(--border-hi); box-shadow: 0 0 30px rgba(59,130,246,.08); }
.feat-wide { grid-column: span 2; }
.feat-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feat-card p { color: var(--txt-muted); font-size: .9rem; line-height: 1.6; }
.feat-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-icon-wrap.accent { background: rgba(59,130,246,.12); color: var(--acc2); }
.feat-icon-wrap.green { background: rgba(34,197,94,.1); color: var(--green); }
.feat-icon-wrap.gold { background: rgba(251,191,36,.1); color: var(--gold); }
.feat-icon-wrap.purple { background: rgba(167,139,250,.1); color: var(--purple); }
.feat-icon-wrap.ai-color { background: rgba(192,132,252,.1); color: var(--ai-color); }
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.feat-tags span {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--txt-dim);
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 20px;
}
.feat-ai { position: relative; }
.ai-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--acc) 0%, var(--ai-color) 100%);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 12px;
}

/* ─── How It Works ──────────────────────────────────────────── */
.how { background: linear-gradient(180deg, var(--bg) 0%, rgba(13,21,37,.5) 100%); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.step { text-align: center; max-width: 220px; padding: 24px; }
.step-num {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--border-hi);
  line-height: 1;
  margin-bottom: 12px;
}
.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--txt-muted); font-size: .875rem; }
.step-arrow { font-size: 1.5rem; color: var(--border-hi); align-self: center; padding: 0 8px; margin-top: -20px; }

/* ─── Pricing ───────────────────────────────────────────────── */
.pricing-section { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,.07) 0%, transparent 70%), var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; margin-bottom: 32px; }
.pricing-grid-5 { grid-template-columns: repeat(5,1fr); gap: 18px; }
.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow .3s, transform .3s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.plan-featured {
  border-color: var(--acc);
  background: linear-gradient(145deg, #0d1a30 0%, #0f2040 100%);
  box-shadow: 0 0 40px rgba(59,130,246,.15);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--acc);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-header { margin-bottom: 24px; }
.plan-icon { font-size: 2rem; margin-bottom: 12px; }
.trial-icon { color: var(--green); }
.basic-icon { color: var(--acc2); }
.pro-icon { color: var(--acc2); }
.biz-icon { color: var(--gold); }
.gold-icon { color: var(--gold); font-size: 2rem; }

/* Gold plan */
.plan-gold {
  border-color: var(--gold);
  background: linear-gradient(145deg, #1a1200 0%, #221800 100%);
  box-shadow: 0 0 40px rgba(251,191,36,.1);
}
.plan-gold:hover { box-shadow: 0 12px 40px rgba(251,191,36,.2); }
.plan-badge-gold { background: linear-gradient(90deg, var(--gold), #f59e0b); color: #000; }
.btn-gold {
  background: linear-gradient(90deg, var(--gold), #f59e0b);
  color: #000; font-weight: 700;
  transition: opacity .2s, transform .2s;
}
.btn-gold:hover { opacity: .9; transform: translateY(-1px); color: #000; }

/* Trial plan */
.plan-trial { border-color: var(--green); }
.plan-trial:hover { box-shadow: 0 12px 40px rgba(34,197,94,.1); }

/* Custom price (Gold) */
.price-custom { font-size: 2.4rem !important; color: var(--gold) !important; }
.plan-name { font-size: 1.3rem; margin-bottom: 4px; }
.plan-tagline { color: var(--txt-muted); font-size: .85rem; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 28px; }
.price-currency { font-size: 1.4rem; font-weight: 700; color: var(--txt-muted); align-self: flex-start; margin-top: 8px; }
.price-amount { font-size: 3.2rem; font-weight: 800; font-family: var(--font-head); color: var(--txt); line-height: 1; }
.price-period { color: var(--txt-muted); font-size: .85rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.check { color: var(--green); font-size: .95rem; flex-shrink: 0; }
.cross { color: var(--txt-dim); font-size: .95rem; flex-shrink: 0; }
.ai-feat { color: var(--ai-color) !important; }
.pricing-note { text-align: center; color: var(--txt-muted); font-size: .875rem; margin-top: 20px; }
.pricing-note a { color: var(--acc2); }
.dl-strip-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .73rem;
  color: var(--txt-dim);
  margin: 0;
}

/* ─── Download Instructions Box ─────────────────────────────── */
.dl-instructions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.2);
  border-left: 3px solid var(--acc2);
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 420px;
}
.dl-instr-icon {
  color: var(--acc2);
  flex-shrink: 0;
  margin-top: 2px;
}
.dl-instr-text p {
  font-size: .78rem;
  color: var(--txt-muted);
  line-height: 1.5;
  margin: 0 0 6px;
}
.dl-instr-text p:last-child { margin-bottom: 0; }
.dl-instr-ar {
  font-size: .8rem !important;
  color: var(--txt-dim) !important;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* ─── AI Section ────────────────────────────────────────────── */
.ai-section { background: linear-gradient(135deg, var(--bg) 0%, #0a0e22 100%); overflow: hidden; }
.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-text .section-title { text-align: left; }
.ai-text > p { color: var(--txt-muted); margin-bottom: 32px; }
.ai-list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.ai-list li { display: flex; gap: 16px; }
.ai-check { color: var(--ai-color); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.ai-list strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.ai-list p { color: var(--txt-muted); font-size: .875rem; margin: 0; }
.ai-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ai-note { color: var(--txt-dim); font-size: .8rem; }

/* AI Chat mockup */
.ai-chat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(192,132,252,.07);
}
.chat-header {
  background: #06090f;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  font-weight: 600;
}
.chat-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--acc) 0%, var(--ai-color) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.chat-status { margin-left: auto; color: var(--green); font-size: .75rem; font-weight: 400; }
.chat-messages { padding: 16px; display: flex; flex-direction: column; gap: 14px; max-height: 360px; overflow-y: auto; }
.msg { font-size: .83rem; line-height: 1.55; padding: 12px 14px; border-radius: 10px; }
.msg.user { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.2); color: var(--acc2); align-self: flex-end; max-width: 85%; }
.msg.ai {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--txt-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.msg.ai strong { color: var(--txt); }
.msg.ai em { color: var(--txt-dim); }
.msg-icon { color: var(--ai-color); font-size: .9rem; flex-shrink: 0; margin-top: 2px; }
.msg.typing { background: rgba(255,255,255,.03); border: 1px solid var(--border); display: flex; align-items: center; gap: 5px; padding: 14px 18px; }
.typing-dot {
  width: 7px; height: 7px;
  background: var(--txt-dim);
  border-radius: 50%;
  animation: type-pulse 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes type-pulse { 0%,80%,100%{opacity:.2; transform:scale(.8)} 40%{opacity:1; transform:scale(1)} }
.chat-input {
  display: flex;
  padding: 12px 14px;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--txt-muted);
  padding: 8px 12px;
  font-size: .83rem;
  outline: none;
}
/* Live badge (replaces old .chat-status) */
.chat-live-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--txt-dim);
}
.chat-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--txt-dim);
  transition: background .4s;
}
.chat-status-dot.online  { background: var(--green); animation: dl-pulse 2.5s infinite; }
.chat-status-dot.offline { background: var(--red);   animation: none; }

/* Suggestion chips */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}
.chat-sugg {
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.22);
  border-radius: 20px;
  color: var(--acc2);
  font-size: .72rem;
  font-weight: 500;
  padding: 4px 11px;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  font-family: var(--font);
  white-space: nowrap;
}
.chat-sugg:hover { background: rgba(59,130,246,.22); border-color: var(--acc2); }

/* Send button */
.chat-send-btn {
  background: var(--acc);
  border: none;
  border-radius: 6px;
  color: #fff;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, transform .12s;
  flex-shrink: 0;
}
.chat-send-btn:hover   { background: var(--acc2); transform: scale(1.08); }
.chat-send-btn:active  { transform: scale(.95); }
.chat-send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Active chat input (was disabled) */
.chat-input input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--txt);
  padding: 8px 12px;
  font-size: .83rem;
  outline: none;
  transition: border-color .18s;
  font-family: var(--font);
}
.chat-input input:focus  { border-color: var(--acc); }
.chat-input input::placeholder { color: var(--txt-dim); }

/* Error bubble */
.msg.error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.22);
  color: var(--red);
  font-size: .8rem;
  padding: 10px 14px;
  border-radius: 8px;
}

/* Chat footer note */
.chat-footer-note {
  padding: 7px 14px;
  border-top: 1px solid var(--border);
  font-size: .68rem;
  color: var(--txt-dim);
  text-align: center;
}
.chat-footer-note a { color: var(--txt-dim); }
.chat-footer-note a:hover { color: var(--acc2); }

/* ─── Testimonials ──────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-card > p { color: var(--txt-muted); font-size: .9rem; line-height: 1.65; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--acc) 0%, var(--purple) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: .9rem; }
.testi-author span { color: var(--txt-dim); font-size: .78rem; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-section { background: linear-gradient(180deg, var(--bg) 0%, rgba(13,21,37,.4) 100%); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--txt);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .2s;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--txt-dim); transition: transform .25s; }
.faq-q[aria-expanded="true"] { color: var(--acc2); }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--acc2); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--txt-muted);
  font-size: .9rem;
  line-height: 1.65;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-a.open { max-height: 200px; padding: 0 22px 18px; }

/* ─── Contact ───────────────────────────────────────────────── */
.contact-section { background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(59,130,246,.06) 0%, transparent 70%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-text .section-title { text-align: left; }
.contact-text > p { color: var(--txt-muted); margin-bottom: 28px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.ci-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--txt-muted); }
.ci-item a { color: var(--acc2); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--txt-muted); text-transform: uppercase; letter-spacing: .05em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--txt);
  font-family: var(--font);
  font-size: .9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: #0d1525; }

/* ── Math CAPTCHA ───────────────────────────────────────────── */
.captcha-group {
  background: rgba(88,166,255,.06);
  border: 1px solid rgba(88,166,255,.2);
  border-radius: 10px;
  padding: 14px 16px;
}
.captcha-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--txt-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.captcha-group input[type="number"] {
  max-width: 120px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.captcha-hint {
  font-size: .78rem;
  margin-top: 6px;
  min-height: 16px;
}
.captcha-hint.error  { color: #f87171; }
.captcha-hint.ok     { color: #4ade80; }
.captcha-hint.info   { color: var(--txt-muted); }
.form-success {
  display: none;
  color: var(--green);
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 8px;
}
.form-success.show { display: block; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--foot); border-top: 1px solid var(--border); padding: 60px 24px 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand > p { color: var(--txt-dim); font-size: .875rem; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-col h5 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-muted); margin-bottom: 4px; }
.fl-col a { color: var(--txt-dim); font-size: .875rem; }
.fl-col a:hover { color: var(--txt); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .8rem;
  color: var(--txt-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .feat-wide { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid-5 { grid-template-columns: 1fr 1fr; }
  .pricing-grid-5 .plan-card:last-child { grid-column: span 2; max-width: 420px; margin: 0 auto; width: 100%; }
  .plan-card:last-child { grid-column: span 2; max-width: 420px; margin: 0 auto; width: 100%; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-card:last-child { grid-column: span 2; }
  .ai-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 110px; gap: 40px; }
  .hero-visual { display: none; }
  .hero-scroll { display: none; }
  .nav-links { display: none; }
  .nav-inner > .btn-primary { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-mobile.open { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-wide { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid-5 { grid-template-columns: 1fr; }
  .plan-card:last-child { grid-column: span 1; max-width: 100%; }
  .pricing-grid-5 .plan-card:last-child { grid-column: span 1; max-width: 100%; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card:last-child { grid-column: span 1; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; padding: 4px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-ctas { flex-direction: column; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.2rem; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--acc); }

/* ─── Utility ───────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Toast Notification ─────────────────────────────────────── */
#mada-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
#mada-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#mada-toast.toast-success {
  background: linear-gradient(135deg, #0d2b1a, #0f3320);
  border: 1px solid #22c55e;
  color: #86efac;
}
#mada-toast.toast-warn {
  background: linear-gradient(135deg, #1c1000, #2a1800);
  border: 1px solid #f59e0b;
  color: #fcd34d;
}
#mada-toast .toast-icon { font-size: 20px; flex-shrink: 0; }
#mada-toast .toast-body { flex: 1; }
#mada-toast .toast-title { font-weight: 700; margin-bottom: 2px; }
#mada-toast .toast-msg   { font-size: 12px; opacity: .85; }
