/* ─── Mager Landing Page — style.css ─── */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg:          #0A0B0F;
  --bg-card:     #111318;
  --bg-elevated: #16191F;
  --border:      rgba(255,255,255,.07);
  --border-glow: rgba(99,102,241,.35);
  --text:        #F1F5F9;
  --text-muted:  #94A3B8;
  --text-dim:    #475569;
  --accent:      #6366F1;
  --accent-2:    #8B5CF6;
  --accent-3:    #06B6D4;
  --green:       #10B981;
  --amber:       #F59E0B;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,.4);
  --shadow-glow: 0 0 40px rgba(99,102,241,.15);
  --transition:  .22s cubic-bezier(.4,0,.2,1);
  --font:        'Vazirmatn', sans-serif;
}

[data-theme="light"] {
  --bg:          #F8FAFC;
  --bg-card:     #FFFFFF;
  --bg-elevated: #F1F5F9;
  --border:      rgba(0,0,0,.08);
  --border-glow: rgba(99,102,241,.25);
  --text:        #0F172A;
  --text-muted:  #475569;
  --text-dim:    #94A3B8;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-glow: 0 0 40px rgba(99,102,241,.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 800; }
a { color: inherit; text-decoration: none; }

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ── Gradient orbs ── */
.orb {
  position: fixed; border-radius: 50%; filter: blur(100px);
  pointer-events: none; z-index: 0; animation: float 12s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.18), transparent 70%);
  top: -100px; right: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.14), transparent 70%);
  bottom: 10%; left: -80px;
  animation-delay: -6s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,.1), transparent 70%);
  top: 50%; left: 30%;
  animation-delay: -3s;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-20px) scale(1.05); }
  66% { transform: translate(-15px,15px) scale(.97); }
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative; z-index: 1;
}

/* ── Navbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(10,11,15,.85);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(248,250,252,.9);
}
.nav-inner {
  display: flex; align-items: center;
  gap: 24px;
}

@media (max-width: 540px) {
  .nav-inner span {
    font-size: 14px;
  }
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 800; color: var(--text);
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.4);
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-right: auto;
  list-style: none;
}
.nav-links a {
  padding: 7px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--border); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn-theme {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-theme:hover { color: var(--accent); border-color: var(--border-glow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm); font-family: var(--font);
  font-size: .9rem; font-weight: 600; cursor: pointer; border: none;
  transition: all var(--transition); white-space: nowrap;
}
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.15); background: var(--bg-elevated); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; box-shadow: 0 4px 15px rgba(99,102,241,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99,102,241,.5); }
.btn-xl { padding: 15px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--transition);
}

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  flex-direction: column;
  overflow: hidden;
}
.mobile-menu.open { display: flex; }

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.mobile-close {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-family: var(--font);
}
.mobile-close:hover { color: var(--text); border-color: var(--border-glow); }

.mobile-nav {
  flex: 1; display: flex; flex-direction: column;
  overflow-y: auto; padding: 8px 0;
}
.mobile-nav .menu-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 24px; font-size: 1.05rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.mobile-nav .menu-link:hover {
  color: var(--text); background: var(--bg-elevated);
  padding-right: 28px;
}
.mobile-nav-arrow {
  font-size: .8rem; opacity: .35; transition: all var(--transition);
}
.mobile-nav .menu-link:hover .mobile-nav-arrow { opacity: .7; }

.mobile-menu-footer {
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated); flex-shrink: 0;
}
.mobile-menu-footer .btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ── Section chrome ── */
section { padding: 100px 0; position: relative; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2);
  color: var(--accent); font-size: .82rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; margin-bottom: 16px; line-height: 1.15;
}
.section-sub {
  color: var(--text-muted); font-size: 1.1rem; line-height: 1.8;
  max-width: 540px;
}
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px; overflow: hidden;
}
.hero-inner {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 28px; max-width: 780px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 100px;
  background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.2);
  color: var(--text-muted); font-size: .85rem; font-weight: 500;
  animation: fadeDown .8s ease both;
}
.hero-badge span {
  padding: 2px 8px; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: .72rem; font-weight: 700;
}
.hero-h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900; letter-spacing: -.02em;
  line-height: 1.1;
  background: linear-gradient(150deg, var(--text) 30%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp .8s .1s ease both;
}
.hero-sub {
  font-size: 1.2rem; color: var(--text-muted); line-height: 1.9;
  max-width: 620px; animation: fadeUp .8s .2s ease both;
}
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp .8s .3s ease both;
}
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
  margin-top: 12px; animation: fadeUp .8s .4s ease both;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 900; color: var(--text); }
.hero-stat span { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* hero gradient bar at bottom */
.hero-glow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: .4;
}

/* ── PRODUCTS GRID ── */
#products { background: transparent; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-top: 56px;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
  transition: all var(--transition); cursor: default; position: relative;
  overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--card-accent,.5) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: var(--icon-bg, rgba(99,102,241,.15));
}
.product-name {
  font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text);
}
.product-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.product-tag {
  display: inline-block; margin-top: 12px;
  padding: 3px 10px; border-radius: 100px;
  font-size: .73rem; font-weight: 600; letter-spacing: .04em;
  background: var(--tag-bg, rgba(99,102,241,.12));
  color: var(--tag-color, var(--accent));
}

/* ── AI SECTION ── */
#ai {
  background: linear-gradient(180deg, transparent, rgba(99,102,241,.04) 50%, transparent);
}
.ai-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.ai-features { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.ai-feat {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px; border-radius: var(--radius); background: var(--bg-card);
  border: 1px solid var(--border); transition: all var(--transition);
}
.ai-feat:hover { border-color: var(--border-glow); transform: translateX(-4px); }
.ai-feat-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: rgba(99,102,241,.15); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}
.ai-feat-text h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.ai-feat-text p { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }

.ai-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.ai-chat-mock {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; width: 100%;
  max-width: 360px; box-shadow: var(--shadow);
}
.ai-chat-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.ai-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #fff; font-weight: 700;
}
.ai-chat-title { font-size: .9rem; font-weight: 700; }
.ai-chat-sub { font-size: .75rem; color: var(--green); }
.ai-messages { display: flex; flex-direction: column; gap: 12px; }
.msg {
  max-width: 85%; font-size: .83rem; line-height: 1.6;
  padding: 10px 14px; border-radius: 12px;
}
.msg-user {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; align-self: flex-start; border-radius: 12px 4px 12px 12px;
}
.msg-ai {
  background: var(--bg-elevated); color: var(--text);
  align-self: flex-end; border-radius: 4px 12px 12px 12px;
  border: 1px solid var(--border);
}
.msg-typing {
  display: flex; gap: 4px; align-items: center; padding: 12px 16px;
  background: var(--bg-elevated); border-radius: 4px 12px 12px 12px;
  border: 1px solid var(--border); align-self: flex-end; width: 60px;
}
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: blink 1.2s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: .2s; }
.msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ── FEATURES ── */
#features { }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px;
}
.feat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; transition: all var(--transition);
}
.feat-card:hover {
  transform: translateY(-3px); border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(99,102,241,.1);
}
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.15));
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  border: 1px solid rgba(99,102,241,.2);
}
.feat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feat-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.75; }

/* ── SCREENSHOTS ── */
#screenshots { overflow: hidden; }
.screenshots-inner { margin-top: 56px; }
.screen-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center;
}
.screen-tab {
  padding: 8px 18px; border-radius: var(--radius-sm); font-size: .85rem;
  font-weight: 600; cursor: pointer; transition: all var(--transition);
  font-family: var(--font); border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
}
.screen-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
}
.screen-tab:hover:not(.active) { border-color: var(--border-glow); color: var(--text); }
.screen-placeholder {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  min-height: 420px; display: none;
}
.screen-placeholder.active { display: block; }
.screen-top-bar {
  height: 48px; background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 8px;
}
.screen-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.screen-body {
  padding: 32px; min-height: 372px;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(99,102,241,.02) 40px, rgba(99,102,241,.02) 41px
  );
  display: flex; flex-direction: column; gap: 16px;
}
.screen-mock-row {
  height: 42px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  animation: shimmer 2s infinite;
}
.screen-mock-row.tall { height: 120px; }
.screen-mock-row.half { width: 55%; }
.screen-label {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--text-dim); font-size: .85rem;
}
.screen-label span { font-size: 2.5rem; opacity: .3; }
.screen-img {
  width: 100%; display: block;
  object-fit: cover; object-position: top;
  max-height: 500px;
}

.screen-caption {
  margin-top: 24px; text-align: center;
  font-size: .88rem; color: var(--text-muted);
}
@keyframes shimmer {
  0%,100% { opacity: 1; } 50% { opacity: .6; }
}

/* ── PRICING ── */
#pricing { }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px; align-items: start;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all var(--transition); position: relative;
}
.price-card.featured {
  border-color: var(--accent); background: var(--bg-elevated);
  box-shadow: 0 0 40px rgba(99,102,241,.18);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; padding: 4px 16px; border-radius: 100px;
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.price-icon {
  font-size: 2rem; margin-bottom: 16px;
}
.price-name {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 6px;
}
.price-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; }
.price-value {
  font-size: 2.8rem; font-weight: 900; margin-bottom: 4px; line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-value.free { -webkit-text-fill-color: var(--text); }
.price-period { font-size: .82rem; color: var(--text-muted); margin-bottom: 28px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.price-features li {
  font-size: .88rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 10px;
}
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.price-features li.dim { color: var(--text-dim); }
.price-features li.dim::before { content: '×'; color: var(--text-dim); }
.price-card:hover { transform: translateY(-4px); }
.price-card.featured:hover { box-shadow: 0 8px 60px rgba(99,102,241,.25); }

/* ── FINAL CTA ── */
#cta {
  background: linear-gradient(180deg, transparent, rgba(99,102,241,.06) 50%, transparent);
}
.cta-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 72px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.12), transparent 70%);
}
.cta-box > * { position: relative; }
.cta-h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-sub { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  padding: 48px 0 32px; border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-links {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.footer-links a {
  padding: 6px 14px; border-radius: var(--radius-sm); font-size: .87rem;
  color: var(--text-muted); transition: all var(--transition);
}
.footer-links a:hover { color: var(--text); background: var(--bg-elevated); }
.footer-copy { font-size: .82rem; color: var(--text-dim); }

/* ── Animations ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ai-inner { grid-template-columns: 1fr; }
  .ai-visual { order: -1; }
  .ai-chat-mock { max-width: 460px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .ai-inner { gap: 40px; }
  .hero-stats { gap: 24px; }
  .cta-box { padding: 48px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-end; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .products-grid { grid-template-columns: 1fr; }
}

/* ── Divider gradient ── */
.divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

img {
  max-width: 100%;
}

/* ── Glow card selects (products) ── */
.glow-indigo { --icon-bg: rgba(99,102,241,.15); --card-accent: rgba(99,102,241,.05); --tag-bg: rgba(99,102,241,.12); --tag-color: #818CF8; }
.glow-violet { --icon-bg: rgba(139,92,246,.15); --card-accent: rgba(139,92,246,.05); --tag-bg: rgba(139,92,246,.12); --tag-color: #A78BFA; }
.glow-cyan   { --icon-bg: rgba(6,182,212,.15);  --card-accent: rgba(6,182,212,.05);  --tag-bg: rgba(6,182,212,.12);  --tag-color: #22D3EE; }
.glow-green  { --icon-bg: rgba(16,185,129,.15); --card-accent: rgba(16,185,129,.05); --tag-bg: rgba(16,185,129,.12); --tag-color: #34D399; }
.glow-amber  { --icon-bg: rgba(245,158,11,.15); --card-accent: rgba(245,158,11,.05); --tag-bg: rgba(245,158,11,.12); --tag-color: #FCD34D; }
.glow-rose   { --icon-bg: rgba(244,63,94,.15);  --card-accent: rgba(244,63,94,.05);  --tag-bg: rgba(244,63,94,.12);  --tag-color: #FB7185; }
.glow-sky    { --icon-bg: rgba(14,165,233,.15); --card-accent: rgba(14,165,233,.05); --tag-bg: rgba(14,165,233,.12); --tag-color: #38BDF8; }
.glow-teal   { --icon-bg: rgba(20,184,166,.15); --card-accent: rgba(20,184,166,.05); --tag-bg: rgba(20,184,166,.12); --tag-color: #2DD4BF; }
.glow-orange { --icon-bg: rgba(249,115,22,.15); --card-accent: rgba(249,115,22,.05); --tag-bg: rgba(249,115,22,.12); --tag-color: #FB923C; }
.glow-pink   { --icon-bg: rgba(236,72,153,.15); --card-accent: rgba(236,72,153,.05); --tag-bg: rgba(236,72,153,.12); --tag-color: #F472B6; }
.glow-lime   { --icon-bg: rgba(132,204,22,.15); --card-accent: rgba(132,204,22,.05); --tag-bg: rgba(132,204,22,.12); --tag-color: #A3E635; }
