:root {
  --opti: #2563eb;
  --opti-dark: #1d4ed8;
  --denti: #0d9488;
  --denti-dark: #0f766e;
  --grad: linear-gradient(135deg, var(--opti), var(--denti));
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --bg-alt: #0f172a; --surface: #131c2e; --text: #e2e8f0;
    --muted: #94a3b8; --border: #1e293b; --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --bg-alt: #0f172a; --surface: #131c2e; --text: #e2e8f0;
  --muted: #94a3b8; --border: #1e293b; --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: "Noto Sans Arabic", var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Wordmark */
.wordmark { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.wordmark .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-links { display: flex; gap: 28px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 .8rem var(--font); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.lang button.active { background: var(--grad); color: #fff; }
.icon-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1rem; }
.menu-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 12px; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s; border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .55); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-opti { background: var(--opti); color: #fff; }
.btn-opti:hover { background: var(--opti-dark); }
.btn-denti { background: var(--denti); color: #fff; }
.btn-denti:hover { background: var(--denti-dark); }
.btn-light { background: #fff; color: #0f172a; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(1000px 500px at 85% -10%, rgba(13, 148, 136, .14), transparent 60%), radial-gradient(900px 500px at 0% 0%, rgba(37, 99, 235, .12), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-cta.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 500; }
.hero-points li::before { content: "✓"; color: var(--denti); font-weight: 800; margin-inline-end: 8px; }

.hero-visual { position: relative; height: 460px; }
.photo { position: absolute; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-a { width: 66%; height: 72%; top: 0; inset-inline-start: 0; }
.photo-b { width: 58%; height: 62%; bottom: 0; inset-inline-end: 0; }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); padding: 10px 16px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow); direction: ltr; }
.chip img { height: 22px; width: auto; }
.chip-opti { bottom: 22%; inset-inline-start: 4%; }
.chip-opti span { color: var(--opti); }
.chip-denti { top: 12%; inset-inline-end: 2%; }
.chip-denti span { color: var(--denti); }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.product.opti::before { background: var(--opti); }
.product.denti::before { background: var(--denti); }
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.product-logo { height: 56px; width: 56px; object-fit: contain; }
.product h3 { font-size: 1.6rem; margin: 0; direction: ltr; text-align: start; }
.product.opti .accent { color: var(--opti); }
.product.denti .accent { color: var(--denti); }
.product-for { margin: 2px 0 0; color: var(--muted); font-weight: 500; }
.product > p { color: var(--muted); }
.features { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 10px; flex: 1; }
.features li { display: flex; gap: 10px; }
.features li::before { content: "✓"; font-weight: 800; flex: none; color: var(--denti); }
.product.opti .features li::before { color: var(--opti); }
.product .btn { align-self: flex-start; }

/* Why */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card .ico { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--opti) 10%, transparent); margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; }

/* Pricing */
.price-card { max-width: 460px; margin: 0 auto; background: var(--surface); border-radius: 24px; padding: 36px; border: 2px solid transparent; background-image: linear-gradient(var(--surface), var(--surface)), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: var(--shadow); }
.price-top { text-align: center; margin-bottom: 20px; }
.plan { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.price { font-size: 1.1rem; color: var(--muted); margin: 6px 0; }
.price strong { font-size: 3.4rem; font-weight: 800; color: var(--text); }
.trial { display: inline-block; background: color-mix(in srgb, var(--denti) 12%, transparent); color: var(--denti); font-weight: 600; padding: 6px 14px; border-radius: 999px; margin: 8px 0 0; }
.price-card .features { margin-bottom: 16px; }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 0; }

/* Testimonials */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; border-inline-start: 5px solid var(--opti); }
.quote.denti { border-inline-start-color: var(--denti); }
.quote blockquote { margin: 0 0 18px; font-size: 1.1rem; }
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption span { color: var(--muted); font-size: .92rem; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.about p { color: var(--muted); font-size: 1.05rem; }
.stats { display: grid; gap: 16px; }
.stats div { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: baseline; gap: 14px; }
.stats strong { font-size: 2.2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 90px; }
.stats span { color: var(--muted); font-weight: 500; }

/* Contact */
.contact { background: var(--grad); color: #fff; text-align: center; }
.contact-inner { max-width: 720px; }
.contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.contact p { opacity: .92; font-size: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 22px; color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.copy { margin: 0; color: var(--muted); font-size: .9rem; }

/* Responsive */
@media (max-width: 920px) {
  .hero-inner, .products, .grid-2, .about { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 360px; }
  .menu-btn { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero-visual { height: 290px; }
  .section { padding: 64px 0; }
  .product, .price-card { padding: 24px; }
  .wordmark { font-size: 1.05rem; }
  .lang button { padding: 5px 8px; }
}
.wordmark .group { font-weight: 500; color: var(--muted); letter-spacing: 0; }
