/* SuperQ8 — Main Stylesheet
   Supports: Arabic/English + Dark/Light themes (dark is default)
*/

/* ============ THEME VARIABLES ============ */
:root,
[data-theme="dark"] {
  --bg: #0A0A0F;
  --bg-2: #111118;
  --bg-3: #1A1A24;
  --surface: #14141C;
  --surface-hover: #1F1F2B;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #FFFFFF;
  --text-muted: rgba(255,255,255,0.72);
  --text-dim: rgba(255,255,255,0.48);
  --accent: #00D4AA;
  --accent-2: #7FE5CE;
  --accent-dim: #009374;
  --gradient: linear-gradient(135deg, #00D4AA 0%, #7FE5CE 50%, #60A5FA 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 25px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 80px rgba(0,212,170,0.35);
  --nav-bg: rgba(10,10,15,0.7);
  --nav-bg-scroll: rgba(10,10,15,0.95);
  --card-bg: var(--surface);
  --input-bg: var(--bg);
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F7F7F9;
  --bg-3: #EFEFF3;
  --surface: #FFFFFF;
  --surface-hover: #F7F7F9;
  --border: rgba(10,10,15,0.08);
  --border-strong: rgba(10,10,15,0.16);
  --text: #0A0A0F;
  --text-muted: rgba(10,10,15,0.72);
  --text-dim: rgba(10,10,15,0.48);
  --accent: #009374;
  --accent-2: #00D4AA;
  --accent-dim: #007a61;
  --gradient: linear-gradient(135deg, #009374 0%, #00D4AA 50%, #60A5FA 100%);
  --shadow-sm: 0 2px 8px rgba(10,10,15,0.06);
  --shadow-md: 0 10px 30px rgba(10,10,15,0.08);
  --shadow-lg: 0 25px 60px rgba(10,10,15,0.12);
  --shadow-glow: 0 0 80px rgba(0,212,170,0.25);
  --nav-bg: rgba(255,255,255,0.8);
  --nav-bg-scroll: rgba(255,255,255,0.98);
  --card-bg: #FFFFFF;
  --input-bg: #F7F7F9;
}

:root {
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-ar: 'IBM Plex Sans Arabic', 'SF Pro Display', -apple-system, system-ui, sans-serif;
  --font-en: 'Inter', 'SF Pro Display', -apple-system, system-ui, sans-serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--accent); color: #fff; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[lang="en"] { font-family: var(--font-en); }
html[lang="ar"] { font-family: var(--font-ar); }

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .25s ease, color .25s ease;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { cursor: pointer; font: inherit; background: none; border: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ NAVBAR ============ */
.nav {
  position: fixed; top:0; left:0; right:0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: var(--nav-bg-scroll); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-logo {
  width: 32px; height: 32px;
  color: var(--accent);
  filter: drop-shadow(0 2px 8px rgba(0,212,170,0.35));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0 auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: var(--text);
  background: transparent;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-lang { font-weight: 700; font-size: .82rem; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #0A0A0F;
  box-shadow: 0 8px 24px rgba(0,212,170,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,212,170,0.45);
  background: var(--accent-2);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .4;
  animation: float 14s ease-in-out infinite;
}
[data-theme="light"] .hero-orb { opacity: .15; }
.orb-1 { width: 500px; height: 500px; background: var(--accent); top: -100px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: #60A5FA; bottom: -100px; left: -50px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: #A78BFA; top: 30%; left: 40%; opacity: .25; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.95); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--accent);
}
@keyframes pulse { 50% { opacity: .4; } }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--text-dim); font-size: .9rem; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.phone-frame {
  width: 300px; height: 620px;
  background: linear-gradient(145deg, #1a1a24, #0a0a0f);
  border-radius: 48px;
  padding: 10px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.06),
    0 60px 120px rgba(0,0,0,0.5),
    var(--shadow-glow);
  position: relative;
  transform: rotate(-2deg);
}
[data-theme="light"] .phone-frame {
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.06),
    0 60px 120px rgba(0,0,0,0.12),
    var(--shadow-glow);
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #14141C, #0A0A0F);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 100px; height: 28px; background: #000; border-radius: 14px; z-index: 5; }
.phone-content { padding: 56px 20px 20px; height: 100%; color: #fff; }
.phone-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.phone-greeting { font-size: .95rem; font-weight: 600; }
.phone-location { font-size: .8rem; color: rgba(255,255,255,0.7); }
.phone-balance {
  background: linear-gradient(135deg, #00D4AA, #009374);
  border-radius: 20px;
  padding: 18px;
  color: #0A0A0F;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(0,212,170,0.3);
}
.balance-label { font-size: .8rem; opacity: .8; margin-bottom: 4px; }
.balance-amount { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.balance-amount span { font-size: .9rem; opacity: .7; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.phone-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 14px 8px; text-align: center; }
.pc-icon { font-size: 1.75rem; margin-bottom: 4px; }
.pc-label { font-size: .7rem; color: rgba(255,255,255,0.7); font-weight: 500; }

.floating-card {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: floatCard 4s ease-in-out infinite;
  color: var(--text);
}
.floating-card .fc-emoji { font-size: 1.5rem; }
.fc-title { font-size: .85rem; font-weight: 700; }
.fc-sub { font-size: .72rem; color: var(--text-muted); }
.fc-1 { top: 20%; left: -40px; animation-delay: -1s; }
.fc-2 { bottom: 15%; right: -30px; animation-delay: -3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============ SECTIONS ============ */
.section { padding: 100px 0; position: relative; }
.section-dark { background: var(--bg-2); }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 100px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-muted); font-size: 1.1rem; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--c, var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: var(--c, var(--accent));
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { transform: scaleX(1); transform-origin: left; }
.sc-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c, #00D4AA) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-item {
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .3s;
}
.feature-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.fi-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-item h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.feature-item p { color: var(--text-muted); font-size: .95rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.step { text-align: center; padding: 40px 24px; }
.step-num {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0A0A0F;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,212,170,0.3);
}
.step h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-muted); }

/* CTA */
.section-cta { padding: 80px 0 120px; }
.cta-box {
  background: linear-gradient(135deg, #00D4AA 0%, #009374 60%, #0f766e 100%);
  border-radius: var(--radius-xl);
  padding: 72px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,212,170,0.3);
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
  top: -150px; right: -150px;
  border-radius: 50%;
}
.cta-text { position: relative; z-index: 1; color: #0A0A0F; }
.cta-text .eyebrow { background: rgba(10,10,15,0.1); color: #0A0A0F; }
.cta-text h2 { color: #0A0A0F; }
.cta-text p { font-size: 1.15rem; margin-bottom: 32px; opacity: .8; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: #0A0A0F;
  color: #fff;
  border-radius: 14px;
  transition: all .2s;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn small { display: block; font-size: .72rem; opacity: .7; }
.store-btn strong { display: block; font-size: 1.05rem; font-weight: 700; }

.cta-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.cta-phone {
  width: 220px; height: 360px;
  background: rgba(10,10,15,0.2);
  border-radius: 40px;
  border: 2px solid rgba(10,10,15,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transform: rotate(6deg);
}
.cta-emoji { font-size: 6rem; }
.cta-shine {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%,100% { transform: translateX(-30%); } 50% { transform: translateX(30%); } }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: .95rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; color: var(--text-muted); padding: 6px 0; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: .88rem;
}
.socials { display: flex; gap: 16px; }
.socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .2s;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ============ FORMS ============ */
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s, background .25s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; }
.alert { padding: 16px; border-radius: 12px; margin-bottom: 20px; display: none; }
.alert.show { display: block; }
.alert-success { background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid var(--accent); color: var(--accent); }
.alert-error { background: color-mix(in srgb, #ef4444 10%, transparent); border: 1px solid #ef4444; color: #ef4444; }

/* ============ SUB-PAGE HEADS ============ */
.sub-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 48px;
  text-align: center;
}
.sub-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.sub-hero > .container > p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.15rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .phone-frame { transform: rotate(0); }
  .floating-card { display: none; }
  .cta-box { grid-template-columns: 1fr; padding: 48px 32px; text-align: center; }
  .cta-visual { display: none; }
  .stores { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding-bottom: 64px; }
  .hero-stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* Fade-in animation for elements with .fade-in */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.in-view { opacity: 1; transform: translateY(0); }
.service-card, .feature-item, .step { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.service-card.in-view, .feature-item.in-view, .step.in-view { opacity: 1; transform: translateY(0); }

/* ============ APPLE-INSPIRED ENHANCEMENTS ============ */
/* Larger, bolder typography like apple.com */
.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.section-head h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.section-sub { font-size: 1.3rem; font-weight: 400; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.hero-subtitle { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 580px; line-height: 1.5; }

/* More generous spacing — Apple uses a lot */
.section { padding: 140px 0; }
.hero { padding-bottom: 140px; }

/* Apple-like scroll snap between sections */
@media (min-width: 1024px) and (min-height: 700px) {
  .apple-scroll { scroll-snap-type: y mandatory; }
  .apple-scroll .section,
  .apple-scroll .hero { scroll-snap-align: start; }
}

/* Comparison section (desktop-only) */
.desktop-only-section { display: none; }
@media (min-width: 900px) {
  .desktop-only-section { display: block; }
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.compare-card {
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: all .3s;
}
.compare-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.compare-bad { background: color-mix(in srgb, #ef4444 6%, var(--card-bg)); border-color: color-mix(in srgb, #ef4444 20%, transparent); }
.compare-good { background: color-mix(in srgb, var(--accent) 8%, var(--card-bg)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.compare-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.compare-head h3 { font-size: 1.5rem; font-weight: 800; }
.compare-emoji { font-size: 2.5rem; }
.compare-list { list-style: none; padding: 0; }
.compare-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.compare-list li:last-child { border: none; }
.compare-bad .compare-list li::before { content: '✗'; color: #ef4444; font-weight: 900; width: 20px; }
.compare-good .compare-list li::before { content: '✓'; color: var(--accent); font-weight: 900; width: 20px; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.testimonial {
  padding: 40px 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all .3s;
}
.testimonial:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.t-stars { font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  font-weight: 400;
}
.t-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  color: #0A0A0F;
}
.t-name { font-weight: 700; font-size: 1rem; }
.t-role { font-size: .85rem; color: var(--text-dim); }

/* Apple-style bento grid for features */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.bento > * {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.bento > *:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.bento-large { grid-column: span 8; grid-row: span 2; }
.bento-medium { grid-column: span 4; grid-row: span 2; }
.bento-small { grid-column: span 4; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-large, .bento-medium, .bento-small { grid-column: span 1; grid-row: auto; }
}

/* Mobile-specific enhancements */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero-title { font-size: 2.5rem; }
  .section-head h2 { font-size: 2rem; }
  .section-head { margin-bottom: 40px; }
  .nav-actions .btn { padding: 8px 14px; font-size: .85rem; }
  .nav-actions .icon-btn { width: 36px; height: 36px; }
}

/* Smooth theme switch */
*, *::before, *::after {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

/* Scrollbar styling (dark) */
[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a2a35; border-radius: 5px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3a3a45; }

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
