/* نَفَس — Design tokens */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Light (default) — clinical, cool, calm */
:root, [data-theme="light"] {
  --bg:            oklch(98.6% 0.006 220);
  --surface:       oklch(100% 0 0);
  --surface-2:     oklch(96.4% 0.011 220);
  --border:        oklch(90.5% 0.014 220);
  --border-strong: oklch(82% 0.02 220);
  --ink:           oklch(24% 0.03 245);
  --ink-2:         oklch(46% 0.022 245);
  --ink-3:         oklch(60% 0.018 245);
  --accent:        oklch(58% 0.12 218);
  --accent-ink:    oklch(100% 0 0);
  --accent-soft:   oklch(94.5% 0.032 218);
  --accent-deep:   oklch(38% 0.09 235);
  --wa:            oklch(62% 0.15 152);
  --shadow-sm: 0 1px 2px oklch(24% 0.03 245 / 0.06), 0 2px 8px oklch(24% 0.03 245 / 0.04);
  --shadow-md: 0 2px 4px oklch(24% 0.03 245 / 0.05), 0 12px 32px oklch(24% 0.03 245 / 0.07);
  --hero-ink: oklch(97% 0.01 220);
}

[data-theme="dark"] {
  --bg:            oklch(19% 0.018 245);
  --surface:       oklch(23.5% 0.021 245);
  --surface-2:     oklch(27% 0.024 245);
  --border:        oklch(33% 0.025 245);
  --border-strong: oklch(42% 0.03 245);
  --ink:           oklch(96% 0.008 220);
  --ink-2:         oklch(78% 0.015 220);
  --ink-3:         oklch(64% 0.018 220);
  --accent:        oklch(72% 0.115 205);
  --accent-ink:    oklch(18% 0.03 245);
  --accent-soft:   oklch(30% 0.045 215);
  --accent-deep:   oklch(80% 0.09 200);
  --wa:            oklch(70% 0.14 152);
  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.3);
  --shadow-md: 0 2px 4px oklch(0% 0 0 / 0.25), 0 14px 36px oklch(0% 0 0 / 0.35);
  --hero-ink: oklch(97% 0.01 220);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3, h4 { line-height: 1.28; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  color: var(--accent); text-transform: none;
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4);
}
.eyebrow::after { content: ""; height: 1px; flex: 1; background: var(--border-strong); max-width: 90px; }
.h2 { font-size: var(--text-xl); max-width: 28ch; text-wrap: balance; }
.lede { font-size: var(--text-base); color: var(--ink-2); max-width: 62ch; margin-top: var(--space-4); }
.muted { color: var(--ink-3); font-size: var(--text-sm); }

/* Skip link */
.skip {
  position: absolute; inset-inline-start: -9999px; top: var(--space-3); z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600;
}
.skip:focus { inset-inline-start: var(--space-4); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: inherit; font-size: var(--text-sm); font-weight: 600;
  padding: 0.72rem var(--space-5); border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-wa { background: var(--wa); color: oklch(100% 0 0); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .btn-wa { color: oklch(18% 0.03 245); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
.btn-onhero { background: oklch(100% 0 0 / 0.1); color: var(--hero-ink); border-color: oklch(100% 0 0 / 0.32); backdrop-filter: blur(8px); }
.btn-onhero:hover { background: oklch(100% 0 0 / 0.18); border-color: oklch(100% 0 0 / 0.55); }
.btn-lg { padding: 0.9rem var(--space-6); font-size: var(--text-base); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.header-in { display: flex; align-items: center; gap: var(--space-5); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; flex-shrink: 0; }
.brand-mark { color: var(--accent); flex-shrink: 0; }
.brand-name { font-size: var(--text-lg); font-weight: 700; letter-spacing: 0.01em; line-height: 1.1; }
.brand-sub { font-size: var(--text-xs); color: var(--ink-3); line-height: 1.2; }
.nav { display: flex; gap: var(--space-1); margin-inline-start: auto; }
.nav a {
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: var(--space-2) var(--space-3); border-radius: 999px; transition: color 0.15s, background-color 0.15s;
}
.nav a:hover { color: var(--accent); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); cursor: pointer; transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 88% 6%, oklch(48% 0.11 205 / 0.55) 0%, transparent 55%),
    radial-gradient(110% 80% at 8% 96%, oklch(42% 0.1 250 / 0.5) 0%, transparent 58%),
    linear-gradient(160deg, oklch(27% 0.055 248) 0%, oklch(21% 0.04 250) 55%, oklch(17% 0.03 252) 100%);
  color: var(--hero-ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(to right, oklch(100% 0 0 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(100% 0 0 / 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(80% 70% at 50% 30%, black, transparent 75%);
}
.hero-in { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600;
  background: oklch(100% 0 0 / 0.1); border: 1px solid oklch(100% 0 0 / 0.2);
  padding: var(--space-2) var(--space-4); border-radius: 999px; margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(78% 0.16 150); box-shadow: 0 0 0 4px oklch(78% 0.16 150 / 0.22); flex-shrink: 0; }
.hero h1 { font-size: var(--text-2xl); max-width: 22ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: oklch(84% 0.11 200); }
.hero-lede { font-size: var(--text-base); color: oklch(100% 0 0 / 0.76); max-width: 52ch; margin-top: var(--space-5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
  margin-top: var(--space-12); padding-top: var(--space-8);
  border-top: 1px solid oklch(100% 0 0 / 0.14);
}
.hero-stats dt { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.hero-stats dd { margin: var(--space-1) 0 0; font-size: var(--text-xs); color: oklch(100% 0 0 / 0.6); line-height: 1.5; }

/* Cylinder illustration */
.hero-art { display: grid; place-items: center; }
.cyl-card {
  width: 100%; max-width: 330px; padding: var(--space-6);
  background: oklch(100% 0 0 / 0.06); border: 1px solid oklch(100% 0 0 / 0.16);
  border-radius: 20px; backdrop-filter: blur(16px); box-shadow: 0 24px 60px oklch(0% 0 0 / 0.32);
}
.cyl-card h3 { font-size: var(--text-sm); font-weight: 600; color: oklch(100% 0 0 / 0.66); margin-bottom: var(--space-5); }
.cyl-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px dashed oklch(100% 0 0 / 0.14); }
.cyl-row:last-of-type { border-bottom: 0; }
.cyl-row span:first-child { font-size: var(--text-sm); color: oklch(100% 0 0 / 0.85); }
.cyl-row span:last-child { font-size: var(--text-xs); color: oklch(84% 0.11 200); font-weight: 600; }
.cyl-note { margin-top: var(--space-5); font-size: var(--text-xs); color: oklch(100% 0 0 / 0.52); line-height: 1.6; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-12); }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6); position: relative; box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.step-n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-4);
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--ink-2); }

/* ---------- Products ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-12); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.card-icon { color: var(--accent); flex-shrink: 0; }
.tag {
  font-size: var(--text-xs); font-weight: 600; padding: var(--space-1) var(--space-3);
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); white-space: nowrap;
}
.tag-alt { background: var(--surface-2); color: var(--ink-3); }
.card h3 { font-size: var(--text-lg); }
.card p { font-size: var(--text-sm); color: var(--ink-2); }
.card-meta { font-size: var(--text-xs); color: var(--ink-3); border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: auto; }
.card .btn { align-self: flex-start; }

/* ---------- Why ---------- */
.why { background: var(--surface-2); border-block: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-12); }
.why-item { padding-top: var(--space-5); border-top: 2px solid var(--accent); }
.why-item h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); }
.why-item p { font-size: var(--text-sm); color: var(--ink-2); }

/* ---------- Coverage ---------- */
.cov-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: start; margin-top: var(--space-10); }
.cov-list { display: grid; gap: var(--space-4); }
.cov-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); display: grid; gap: var(--space-2);
}
.cov-item h3 { font-size: var(--text-base); display: flex; align-items: center; gap: var(--space-3); }
.pin { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.cov-item p { font-size: var(--text-sm); color: var(--ink-2); }
.cov-item .muted { font-size: var(--text-xs); }
.cov-side { display: grid; gap: var(--space-5); }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm);
}
.panel h3 { font-size: var(--text-base); margin-bottom: var(--space-4); }
.kv { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--border); font-size: var(--text-sm); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--ink-2); }
.kv span:last-child { font-weight: 600; text-align: end; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { font-size: var(--text-xs); padding: var(--space-2) var(--space-3); border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); }

/* ---------- Order form ---------- */
.order { background: var(--surface-2); border-block: 1px solid var(--border); }
.order-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: start; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(var(--space-5), 3vw, var(--space-8)); box-shadow: var(--shadow-md); }
.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
input, select, textarea {
  font-family: inherit; font-size: var(--text-sm); color: var(--ink);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.7rem var(--space-4); width: 100%; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
select { appearance: none; background-image: none; }
.form-note { font-size: var(--text-xs); color: var(--ink-3); margin-top: var(--space-4); line-height: 1.6; }
.form .btn { width: 100%; }
.order-copy .lede { margin-bottom: var(--space-8); }
.contact-list { display: grid; gap: var(--space-3); }
.contact-row {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: border-color 0.18s, transform 0.18s var(--ease);
}
.contact-row:hover { border-color: var(--accent); transform: translateX(-3px); }
.contact-row svg { color: var(--accent); flex-shrink: 0; }
.contact-row b { font-size: var(--text-sm); display: block; }
.contact-row span { font-size: var(--text-xs); color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); margin-top: var(--space-10); max-width: 820px; }
details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-5) var(--space-6);
  transition: border-color 0.18s;
}
details[open] { border-color: var(--border-strong); }
summary {
  cursor: pointer; font-weight: 600; font-size: var(--text-base);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; color: var(--accent); font-size: var(--text-lg); font-weight: 400;
  transition: transform 0.22s var(--ease); flex-shrink: 0; line-height: 1;
}
details[open] summary::after { transform: rotate(45deg); }
details p { font-size: var(--text-sm); color: var(--ink-2); margin-top: var(--space-4); }

/* ---------- Notice ---------- */
.notice {
  margin-top: var(--space-10); padding: var(--space-5) var(--space-6);
  background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: var(--radius); font-size: var(--text-sm); color: var(--ink-2);
  display: flex; gap: var(--space-4); align-items: flex-start;
}
.notice svg { color: var(--accent-deep); flex-shrink: 0; margin-top: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: var(--space-16) var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
.footer h4 { font-size: var(--text-sm); margin-bottom: var(--space-4); }
.footer ul { display: grid; gap: var(--space-3); }
.footer a { font-size: var(--text-sm); color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-brand p { font-size: var(--text-sm); color: var(--ink-2); max-width: 42ch; margin-top: var(--space-4); }
.footer-bottom {
  margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--text-xs); color: var(--ink-3);
}

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; inset-inline-start: var(--space-5); bottom: var(--space-5); z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: oklch(100% 0 0); box-shadow: 0 8px 26px oklch(62% 0.15 152 / 0.4);
  transition: transform 0.2s var(--ease);
}
.fab:hover { transform: scale(1.07); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .cov-layout, .order-layout { grid-template-columns: 1fr; }
  .hero-art { justify-items: start; }
  .cyl-card { max-width: 100%; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: var(--space-3);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
  .nav-toggle { display: grid; }
  .header-actions { margin-inline-start: auto; }
  .header-in { position: relative; }
  .steps, .cards, .why-grid, .field-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .brand-sub { display: none; }
}
