/* =============================================================
   Nurly — Landing design system
   Emerald + gold + cream · Playfair Display / Plus Jakarta Sans / Amiri
   Hand-tuned to mirror the in-app theme (lib/app/theme.dart).
   ============================================================= */

:root {
  /* Brand — emerald */
  --emerald-900: #06281D;
  --emerald-800: #0B3526;
  --emerald-700: #0F4232;
  --emerald-600: #14543F;
  --emerald-500: #1C6A4C;
  --emerald-300: #74D3AD;
  --emerald-100: #DDEDE4;

  /* Brand — gold */
  --gold-strong: #9C7A2E;
  --gold: #C9A24B;
  --gold-soft: #E6C877;
  --gold-tint: #F4EBD2;

  /* Neutrals — warm cream */
  --cream: #FAF8F3;
  --cream-2: #F6F3EC;
  --cream-3: #F1EDE4;
  --ink: #18211C;
  --ink-soft: #41514A;
  --muted: #5C6A61;
  --hairline: #E8E4D9;

  /* Dark surfaces */
  --night-1: #0A1310;
  --night-2: #0E1A15;
  --night-3: #12201A;

  /* Semantic */
  --bg: var(--cream);
  --surface: #FFFFFF;
  --text: var(--ink);
  --text-muted: var(--muted);
  --border: var(--hairline);
  --primary: var(--emerald-700);
  --on-primary: #FBFAF6;

  /* Type */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 40, 32, .06), 0 4px 12px rgba(16, 40, 32, .05);
  --shadow-md: 0 12px 28px -10px rgba(16, 40, 32, .14), 0 2px 6px rgba(16, 40, 32, .05);
  --shadow-lg: 0 30px 60px -22px rgba(6, 40, 29, .30), 0 8px 20px -10px rgba(6, 40, 29, .18);
  --shadow-gold: 0 18px 40px -18px rgba(201, 162, 75, .55);

  /* Layout */
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }
input, select { font: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--emerald-900); }

/* --------------------------- Typography -------------------------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p { color: var(--ink-soft); }
.arabic { font-family: var(--font-arabic); direction: rtl; line-height: 1.9; }

/* --------------------------- Layout ------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-sans); font-weight: 700;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-strong);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); display: inline-block; }
.eyebrow--center::after { content: ""; width: 22px; height: 1.5px; background: var(--gold); display: inline-block; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: 16px; font-size: 1.075rem; color: var(--muted); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); }

/* --------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--emerald-700); color: var(--on-primary); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--emerald-600); box-shadow: var(--shadow-lg); }
.btn--gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--emerald-900); box-shadow: var(--shadow-gold); }
.btn--gold:hover { filter: brightness(1.04); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--emerald-700); color: var(--emerald-700); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.18); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 30px; font-size: 1.02rem; }

/* App store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 18px; border-radius: 14px;
  background: var(--ink); color: #fff;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge__txt small { font-size: .66rem; opacity: .8; letter-spacing: .02em; }
.store-badge__txt strong { font-size: 1.05rem; font-weight: 700; }
.store-badge--soon { position: relative; }
.store-badge--soon::after {
  content: "Tezliklə"; position: absolute; top: -9px; right: -8px;
  background: var(--gold); color: var(--emerald-900);
  font-size: .58rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 7px; border-radius: var(--r-pill); text-transform: uppercase;
}

/* --------------------------- Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(250, 248, 243, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__links a {
  font-size: .94rem; font-weight: 600; color: var(--ink-soft);
  padding: 9px 14px; border-radius: var(--r-pill); transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--emerald-700); background: rgba(15, 66, 50, .06); }
.nav__cta { margin-inline-start: 8px; }
.nav__toggle { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle span::before { transform: translateY(-7px); }
.nav__toggle span::after { transform: translateY(5px); }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: rotate(-45deg) translateY(-1.5px) translateX(1px); }

/* ----------------------------- Hero ------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,162,75,.12), transparent 60%),
    radial-gradient(900px 500px at -5% 10%, rgba(15,66,50,.07), transparent 55%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 110px);
}
.hero__title { margin-top: 22px; }
.hero__title .accent { font-style: italic; color: var(--emerald-700); position: relative; }
.hero__title .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .14em; background: linear-gradient(90deg, var(--gold-soft), transparent); border-radius: 2px; }
.hero__lede { margin-top: 22px; max-width: 36ch; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__trust { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero__trust .stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* Hero visual — phone + floating widgets */
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 540px; }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19.3;
  border-radius: 46px; padding: 13px;
  background: linear-gradient(150deg, #1d2b24, #0a1310);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.06);
}
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0a1310; border-radius: var(--r-pill); z-index: 3; }
.phone__screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(230,200,119,.16), transparent 60%),
    linear-gradient(180deg, #0f4232, #0a2a20 55%, #081f18);
  display: flex; flex-direction: column;
}
.app-mock { padding: 46px 18px 18px; color: #f4f1e6; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.app-mock__date { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.app-mock__hi { font-family: var(--font-serif); font-size: 1.35rem; color: #fff; line-height: 1.1; }
.app-mock__verse-card {
  margin-top: 4px; padding: 16px; border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(230,200,119,.22);
}
.app-mock__verse-card .arabic { color: #fdfaf0; font-size: 1.18rem; text-align: right; }
.app-mock__verse-card .tr { margin-top: 10px; font-size: .68rem; color: rgba(244,241,230,.78); line-height: 1.5; }
.app-mock__verse-card .ref { margin-top: 10px; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.app-mock__row { display: flex; gap: 10px; margin-top: auto; }
.app-mock__chip { flex: 1; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); font-size: .62rem; color: #e7eee9; text-align: center; }
.app-mock__chip b { display: block; font-size: .78rem; color: #fff; margin-bottom: 3px; }
.app-mock__nav { display: flex; justify-content: space-around; padding: 12px 4px 4px; margin: 8px -6px 0; border-top: 1px solid rgba(255,255,255,.08); }
.app-mock__nav span { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.12); }
.app-mock__nav span.on { background: var(--gold-soft); }

/* Floating widget cards around phone */
.float-widget {
  position: absolute; border-radius: 20px; padding: 14px 15px; color: #fff;
  box-shadow: var(--shadow-lg); width: 178px;
  border: 1px solid rgba(255,255,255,.14);
  animation: floaty 6s ease-in-out infinite;
}
.float-widget .arabic { font-size: 1.05rem; text-align: right; line-height: 1.7; }
.float-widget .fw-tr { font-size: .62rem; opacity: .85; margin-top: 7px; line-height: 1.45; }
.float-widget .fw-ref { font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; opacity: .9; }
.float-widget__tag { position: absolute; top: -10px; left: 14px; font-size: .56rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); background: var(--gold); color: var(--emerald-900); box-shadow: var(--shadow-sm); }
.float-widget--a { top: 4%; left: -6%; background: linear-gradient(150deg, #14543f, #0b3526); animation-delay: -1s; }
.float-widget--b { bottom: 8%; right: -8%; background: linear-gradient(150deg, #2d2a6a, #161a33); animation-delay: -3s; }
.float-widget--lock { bottom: -2%; left: 2%; width: 200px; background: rgba(18,28,24,.72); backdrop-filter: blur(8px); animation-delay: -2s; }
.float-widget--lock .lock-time { font-family: var(--font-sans); font-weight: 300; font-size: 1.6rem; letter-spacing: .02em; }
.float-widget--lock .lock-verse { font-size: .64rem; opacity: .9; margin-top: 4px; line-height: 1.4; }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@media (prefers-reduced-motion: reduce) { .float-widget { animation: none; } }

/* --------------------------- Stat bar ---------------------------- */
.statbar { border-block: 1px solid var(--border); background: var(--cream-2); }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: clamp(22px, 3vw, 34px) 14px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border); }
.stat__num { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; color: var(--emerald-700); line-height: 1; }
.stat__num .u { color: var(--gold-strong); }
.stat__label { margin-top: 8px; font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }

/* ----------------------- Widget Studio (flagship) ---------------- */
.studio { background: linear-gradient(180deg, var(--night-1), #06120d); color: #e9efea; position: relative; overflow: hidden; }
.studio::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 0, rgba(230,200,119,.12), transparent 60%), radial-gradient(700px 500px at 0 100%, rgba(116,211,173,.08), transparent 55%); pointer-events: none; }
.studio .eyebrow { color: var(--gold-soft); }
.studio h2 { color: #fff; }
.studio .section-head p { color: #9fb1a7; }
.studio__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; position: relative; }

.studio-stage {
  position: sticky; top: 90px;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: clamp(28px, 4vw, 44px) 20px; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(230,200,119,.10), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.studio-stage__wall { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; transition: background .4s; }
.studio-stage__wall--default { background: linear-gradient(160deg, #1a2733, #0c151b); }
.studio-stage > * { position: relative; z-index: 1; }
.stage-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* Live preview widget surface */
.wgt {
  width: 250px; border-radius: 22px; padding: 18px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.55);
  position: relative; overflow: hidden;
  transition: background .25s, color .2s;
}
.wgt__bg { position: absolute; inset: 0; z-index: 0; }
.wgt__img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.wgt > * { position: relative; z-index: 1; }
.wgt__deco { position: absolute; right: -18px; top: -18px; z-index: 0; opacity: .12; font-size: 90px; line-height: 1; }
.wgt .w-ar { text-align: right; direction: rtl; }
.wgt .w-tr { margin-top: 10px; opacity: .92; }
.wgt .w-tl { margin-top: 7px; font-style: italic; opacity: .78; }
.wgt .w-ref { margin-top: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; display: flex; align-items: center; gap: 7px; }
.wgt .w-ref::before { content: ""; width: 14px; height: 1.5px; background: currentColor; opacity: .6; }

.wgt--home { min-height: 250px; }
.wgt--lock { width: 250px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(12,20,16,.55); backdrop-filter: blur(10px); }
.wgt--lock .lk-icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(230,200,119,.18); display: grid; place-items: center; flex: none; }
.wgt--lock .lk-icon svg { width: 18px; height: 18px; }
.wgt--lock .lk-body { min-width: 0; }
.wgt--lock .lk-ar { font-family: var(--font-arabic); direction: rtl; text-align: right; font-size: 1rem; color: #fdfaf0; }
.wgt--lock .lk-tr { font-size: .68rem; color: rgba(255,255,255,.82); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Studio controls panel */
.studio-panel { display: flex; flex-direction: column; gap: 22px; }
.ctrl-group { border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); padding: 18px 18px 20px; background: rgba(255,255,255,.025); }
.ctrl-group__title { display: flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.ctrl-group__title .n { width: 22px; height: 22px; border-radius: 7px; background: rgba(230,200,119,.14); color: var(--gold-soft); display: grid; place-items: center; font-size: .72rem; }
.ctrl-label { font-size: .82rem; color: #9fb1a7; font-weight: 600; margin-bottom: 9px; display: flex; justify-content: space-between; }
.ctrl-label .val { color: #e9efea; font-variant-numeric: tabular-nums; }
.ctrl + .ctrl { margin-top: 16px; }

/* swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 2px solid rgba(255,255,255,.14); cursor: pointer; transition: transform .15s var(--ease), border-color .2s; position: relative; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(230,200,119,.25); }
.swatch.is-active::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .8rem; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* segmented / chips */
.seg { display: inline-flex; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-pill); padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 8px 15px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; color: #9fb1a7; transition: color .2s, background .2s; }
.seg button.is-active { background: rgba(230,200,119,.16); color: var(--gold-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle { padding: 9px 14px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600; color: #9fb1a7; border: 1px solid rgba(255,255,255,.12); transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.chip-toggle .tick { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .6rem; }
.chip-toggle.is-on { color: var(--emerald-900); background: var(--gold-soft); border-color: var(--gold-soft); }

/* range slider */
input[type="range"].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); outline: none; }
input[type="range"].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-soft); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.4); border: 3px solid #0e1a15; }
input[type="range"].slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft); cursor: pointer; border: 3px solid #0e1a15; }

.studio-note { font-size: .82rem; color: #7e9087; display: flex; align-items: flex-start; gap: 9px; }
.studio-note svg { width: 17px; height: 17px; flex: none; color: var(--gold-soft); margin-top: 2px; }

/* type select pills */
.font-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.font-pill { padding: 9px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #c9d4ce; transition: all .2s; }
.font-pill.is-active { border-color: var(--gold-soft); color: #fff; background: rgba(230,200,119,.1); }
.font-pill[data-arabic] { font-family: var(--font-arabic); font-size: 1.05rem; }

/* --------------------------- Features ---------------------------- */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,162,75,.4); }
.feature__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(150deg, var(--emerald-100), #eef6f1); color: var(--emerald-700); margin-bottom: 18px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature--gold .feature__icon { background: linear-gradient(150deg, var(--gold-tint), #fbf4df); color: var(--gold-strong); }
.feature h3 { font-size: 1.22rem; }
.feature p { margin-top: 10px; font-size: .95rem; color: var(--muted); }

/* --------------------- Widget gallery showcase ------------------- */
.gallery { background: var(--cream-2); }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.gallery-card {
  border-radius: var(--r-lg); padding: 22px; color: #fff; min-height: 210px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.1);
}
.gallery-card .arabic { text-align: right; font-size: 1.4rem; line-height: 1.8; }
.gallery-card .gc-tr { font-size: .78rem; opacity: .86; margin-top: auto; padding-top: 12px; line-height: 1.5; }
.gallery-card .gc-ref { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 10px; opacity: .9; }
.gallery-card__name { position: absolute; top: 14px; left: 16px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }

/* --------------------------- Steps ------------------------------- */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num { font-family: var(--font-serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.step h3 { margin-top: 12px; font-size: 1.28rem; }
.step p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 64px; right: -12px; height: 1.5px; background: linear-gradient(90deg, var(--gold), transparent); }
@media (max-width: 760px) { .step:not(:last-child)::after { display: none; } }

/* ------------------------- Split feature ------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__list { margin-top: 24px; display: grid; gap: 16px; }
.split__list li { display: flex; gap: 13px; align-items: flex-start; }
.split__list .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--emerald-100); color: var(--emerald-700); display: grid; place-items: center; flex: none; margin-top: 1px; }
.split__list .ic svg { width: 15px; height: 15px; }
.split__list b { font-weight: 700; color: var(--ink); }
.split__list span { color: var(--muted); font-size: .95rem; }
.media-card {
  border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(160deg, var(--emerald-600), var(--emerald-800));
  color: #f4f1e6; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.media-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(230,200,119,.18), transparent 70%); }
.media-card .arabic { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: right; color: #fdfaf0; line-height: 1.9; position: relative; }
.media-card .mc-tr { margin-top: 18px; font-size: 1rem; opacity: .9; line-height: 1.6; }
.media-card .mc-ref { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }

/* collections row */
.coll-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.coll-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-size: .9rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.coll-pill .d { width: 8px; height: 8px; border-radius: 50%; }

/* --------------------------- FAQ --------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 22px 4px; font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600; color: var(--ink); }
.faq__q .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; transition: transform .3s var(--ease), background .2s, border-color .2s, color .2s; color: var(--emerald-700); }
.faq__q[aria-expanded="true"] .pm { transform: rotate(45deg); background: var(--emerald-700); color: #fff; border-color: var(--emerald-700); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.faq__a-inner { padding: 0 4px 24px; color: var(--muted); font-size: 1rem; max-width: 64ch; }

/* --------------------------- CTA band ---------------------------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--emerald-600), var(--emerald-900)); color: #fff; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(230,200,119,.22), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(244,241,230,.82); margin: 16px auto 0; max-width: 52ch; position: relative; }
.cta-band__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }

/* --------------------------- Footer ------------------------------ */
.site-footer { background: var(--night-1); color: #b9c6bf; padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand .brand { color: #fff; }
.footer__brand p { margin-top: 14px; font-size: .92rem; color: #8a9a92; max-width: 32ch; }
.footer__brand .store-badges { margin-top: 20px; }
.footer__col h4 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; font-size: .92rem; color: #9fb1a7; transition: color .2s; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .85rem; color: #7e9087; }
.footer__bottom .made { display: inline-flex; align-items: center; gap: 7px; }

/* --------------------------- Legal pages ------------------------- */
.legal-hero { background: linear-gradient(160deg, var(--emerald-700), var(--emerald-900)); color: #fff; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 64px); }
.legal-hero .eyebrow { color: var(--gold-soft); }
.legal-hero h1 { color: #fff; margin-top: 16px; }
.legal-hero p { color: rgba(244,241,230,.8); margin-top: 14px; }
.legal { padding-block: clamp(48px, 6vw, 80px); }
.legal__body { max-width: 760px; margin-inline: auto; }
.legal__body h2 { font-size: 1.5rem; margin-top: 44px; scroll-margin-top: 90px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.15rem; margin-top: 26px; }
.legal__body p, .legal__body li { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.legal__body p { margin-top: 14px; }
.legal__body ul { margin-top: 14px; display: grid; gap: 9px; }
.legal__body li { padding-left: 26px; position: relative; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.legal__body a { color: var(--emerald-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.legal__toc { background: var(--cream-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 36px; }
.legal__toc h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal__toc a { color: var(--emerald-700); font-weight: 600; font-size: .95rem; }
.callout { margin-top: 22px; padding: 18px 20px; border-radius: var(--r-md); background: var(--emerald-100); border: 1px solid #c7e0d3; color: var(--emerald-900); font-size: .95rem; }
.callout strong { color: var(--emerald-800); }

/* support cards */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.support-card__icon { width: 48px; height: 48px; border-radius: 13px; background: var(--emerald-100); color: var(--emerald-700); display: grid; place-items: center; margin-bottom: 16px; }
.support-card h3 { font-size: 1.18rem; }
.support-card p { margin-top: 8px; font-size: .94rem; color: var(--muted); }
.support-card a { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--emerald-700); }

/* --------------------------- Reveal anim ------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------- Responsive -------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__visual { order: -1; min-height: 480px; margin-top: 12px; }
  .studio__layout { grid-template-columns: 1fr; }
  .studio-stage { position: static; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  body.nav-open .nav__links {
    display: flex; position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px var(--gutter) 24px; background: rgba(250,248,243,.97);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  body.nav-open .nav__links a { padding: 14px; font-size: 1.05rem; }
  body.nav-open .nav__cta { display: block; margin: 8px var(--gutter) 0; }
  body.nav-open .nav__cta .btn { width: 100%; }
  .statbar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before, .stat:nth-child(2)::before { } /* keep dividers */
  .features__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .float-widget { transform: scale(.86); }
  .float-widget--a { left: -2%; }
  .float-widget--b { right: -2%; }
}
@media (max-width: 420px) {
  .phone { width: 250px; }
  .footer__top { grid-template-columns: 1fr; }
}
