/* ===================================================================
   Capitalix — Landing Page Styles
   هوية Capitalix · RTL · IBM Plex Sans Arabic
   =================================================================== */

:root {
  /* Brand green */
  --cx-green-900: #0b1a17;
  --cx-green-800: #14332c;
  --cx-green-700: #1d6b58;
  --cx-green-600: #2a6e63;

  /* Neutrals */
  --cx-ink:        #16211d;
  --cx-text:       #4b554f;
  --cx-text-soft:  #6c756f;
  --cx-text-muted: #8e9a92;
  --cx-border:     #e4e6de;
  --cx-border-str: #b4bdb3;
  --cx-surface-3:  #ece7dd;
  --cx-surface-2:  #eff0e9;
  --cx-surface-1:  #f4f3ec;
  --cx-bg:         #fafaf6;
  --cx-white:      #ffffff;

  /* Gold accent */
  --cx-gold:       #c68f2a;
  --cx-gold-text:  #8a681e;
  --cx-gold-deep:  #6e5518;
  --cx-gold-200:   #efe0b8;
  --cx-gold-100:   #fbf4e4;
  --cx-gold-50:    #fdf6e9;

  /* Success / Danger */
  --cx-success:     #067647;
  --cx-success-100: #ecfdf3;
  --cx-danger:      #b42318;
  --cx-danger-50:   #fef3f2;
  --cx-danger-200:  #fecdca;

  /* Shadows — soft, layered (premium feel) */
  --cx-shadow-sm: 0 1px 2px rgba(11, 26, 23, .05), 0 1px 3px rgba(11, 26, 23, .06);
  --cx-shadow-md: 0 6px 16px rgba(20, 51, 44, .07), 0 2px 6px rgba(20, 51, 44, .05);
  --cx-shadow-lg: 0 16px 40px rgba(20, 51, 44, .10), 0 5px 14px rgba(20, 51, 44, .05);
  --cx-shadow-phone: 0 24px 56px rgba(20, 51, 44, .15), 0 10px 22px rgba(20, 51, 44, .07);
  --cx-scrim:     rgba(22, 33, 29, .42);
  --cx-ease: cubic-bezier(.22, .61, .36, 1);

  --cx-font: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--cx-font);
  background: var(--cx-bg);
  color: var(--cx-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* English uses Inter for cleaner Latin typography */
html[lang="en"] body { font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cx-gold-text);
  background: var(--cx-gold-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: .2px;
}

.section-head { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--cx-text);
}
.section-head .text-gold { color: var(--cx-gold-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--cx-green-800);
  color: var(--cx-white);
  box-shadow: var(--cx-shadow-sm);
}
.btn-primary:hover { background: var(--cx-green-700); box-shadow: var(--cx-shadow-md); }
.btn-gold { background: var(--cx-gold); color: #26200e; }
.btn-gold:hover { background: #b17f20; }
.btn-ghost {
  background: transparent;
  color: var(--cx-green-800);
  border: 1.5px solid var(--cx-border-str);
}
.btn-ghost:hover { border-color: var(--cx-green-800); background: var(--cx-white); }
.btn-light { background: var(--cx-white); color: var(--cx-green-800); }
.btn-light:hover { background: var(--cx-gold-50); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled,
.header.solid {
  background: rgba(250, 250, 246, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--cx-border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--cx-text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--cx-green-800); background: var(--cx-surface-2); }
.nav .mobile-cta { display: none; } /* shown only inside the mobile drawer */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--cx-text);
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--cx-border);
  background: var(--cx-white);
  transition: border-color .15s ease;
}
.lang-btn:hover { border-color: var(--cx-border-str); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; color: var(--cx-green-800); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + 72px) 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset-block-start: -220px;
  inset-inline-start: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(42,110,99,.14), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset-block-end: -160px;
  inset-inline-end: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(198,143,42,.12), transparent 68%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1px;
}
.hero h1 .hl { color: var(--cx-green-700); position: relative; }
.hero p.lead {
  margin-top: 22px;
  font-size: 19px;
  color: var(--cx-text);
  line-height: 1.7;
}
.hero-badges { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--cx-green-800); color: var(--cx-white);
  padding: 11px 20px; border-radius: 13px;
  transition: transform .15s ease, background .2s ease;
}
.store-badge:hover { background: var(--cx-green-900); transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .sb-top { font-size: 11px; opacity: .82; line-height: 1.2; }
.store-badge .sb-main { font-size: 17px; font-weight: 600; line-height: 1.2; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; color: var(--cx-text-soft); font-size: 14px; }
.hero-trust .stars { color: var(--cx-gold); letter-spacing: 2px; }

/* phones cluster */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone {
  position: relative;
  background: #0b1a17;
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--cx-shadow-phone);
  width: 268px;
}
.phone::before {
  content: "";
  position: absolute;
  inset-block-start: 20px; inset-inline: 0;
  margin-inline: auto;
  width: 112px; height: 30px;
  background: #0b1a17;
  border-radius: 999px;
  z-index: 3;
}
.phone img { border-radius: 36px; width: 100%; height: auto; display: block; }
.hero-visual .phone-main { z-index: 2; transform: rotate(-3deg); }
.hero-visual .phone-back {
  position: absolute;
  width: 232px;
  z-index: 1;
  inset-inline-start: 8%;
  inset-block-start: 40px;
  transform: rotate(5deg);
  opacity: .96;
}

/* ---------- Stats ---------- */
.stats { background: var(--cx-green-800); color: var(--cx-white); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 14px; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-block: 14px;
  width: 1px; background: rgba(255,255,255,.14);
}
.stat .num { font-size: clamp(32px, 4vw, 46px); font-weight: 700; color: var(--cx-gold); line-height: 1.1; letter-spacing: -1px; }
.stat .num span { font-size: .6em; }
.stat .label { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.78); }

/* ---------- Features (bento) ---------- */
.features { background: var(--cx-white); }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bento-card {
  position: relative;
  background: var(--cx-surface-1);
  border: 1px solid var(--cx-border);
  border-radius: 28px;
  padding: 44px;
  overflow: hidden;
  transition: box-shadow .4s var(--cx-ease), transform .4s var(--cx-ease);
}
.bento-card:hover { box-shadow: var(--cx-shadow-md); transform: translateY(-4px); }
/* faint dashed arc behind phones, like the reference */
.bento-card .arc {
  position: absolute; z-index: 0; pointer-events: none;
  border: 1.5px dashed var(--cx-border-str); opacity: .5;
  border-radius: 50%;
}
.bento-card > * { position: relative; z-index: 1; }

.bc-text h3 { font-size: clamp(21px, 2.3vw, 27px); font-weight: 700; line-height: 1.35; letter-spacing: -.3px; color: var(--cx-ink); }
.bc-text p { margin-top: 12px; color: var(--cx-text); font-size: 15.5px; line-height: 1.75; }
.bc-text .bullets { margin-top: 18px; display: grid; gap: 12px; }
.bc-text .bullets li { position: relative; padding-inline-start: 20px; color: var(--cx-text); font-size: 15.5px; line-height: 1.7; }
.bc-text .bullets li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--cx-gold); }

/* phone inside bento */
.bento .phone { width: 196px; border-radius: 34px; padding: 8px; }
.bento .phone::before { inset-block-start: 15px; width: 82px; height: 22px; }
.bento .phone img { border-radius: 27px; }

/* --- Card: detail (phone on the start side, text on the other) --- */
.card-detail { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; align-items: center; }
.card-detail .bc-text { align-self: start; }
.card-detail .bc-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.card-detail .arc { width: 300px; height: 300px; inset-inline-start: -70px; inset-block-end: -40px; }

/* floating success toast */
.float-toast {
  position: absolute; z-index: 3;
  inset-block-end: 26px; inset-inline-start: -14px;
  background: var(--cx-white); border-radius: 16px;
  box-shadow: var(--cx-shadow-md);
  padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start;
  max-width: 236px;
}
.float-toast .ft-ic {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cx-success-100); color: var(--cx-success);
  display: flex; align-items: center; justify-content: center;
}
.float-toast .ft-ic svg { width: 19px; height: 19px; }
.float-toast .ft-title { font-size: 14px; font-weight: 700; color: var(--cx-ink); }
.float-toast .ft-sub { font-size: 12px; color: var(--cx-text-soft); margin-top: 3px; line-height: 1.5; }

/* --- Card: centered (text top, phone centered, floating icon bubbles) --- */
.card-center { text-align: center; }
.card-center .bc-text { max-width: 420px; margin-inline: auto; }
.card-center .bc-visual { position: relative; display: flex; justify-content: center; margin-top: 30px; min-height: 300px; }
.card-center .arc { width: 330px; height: 330px; inset-inline-start: 50%; transform: translateX(-50%); inset-block-end: -60px; }

.float-ic {
  position: absolute; z-index: 3;
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--cx-white); box-shadow: var(--cx-shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.float-ic svg { width: 26px; height: 26px; }
.float-ic.gold { color: var(--cx-gold); }
.float-ic.green { color: var(--cx-green-700); }
.float-ic.f1 { inset-block-start: 10px; inset-inline-end: 6px; }
.float-ic.f2 { inset-block-start: 70px; inset-inline-start: 0; }
.float-ic.f3 { inset-block-end: 40px; inset-inline-end: 14px; }
.float-ic.f4 { inset-block-start: 150px; inset-inline-start: 18px; width: 44px; height: 44px; }

/* --- Wide card: fanned phones + text with bullets --- */
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.bc-fan { position: relative; height: 420px; display: flex; justify-content: center; align-items: center; }
.bc-fan .phone { position: absolute; width: 188px; box-shadow: var(--cx-shadow-phone); }
.bc-fan .phone:nth-child(1) { transform: rotate(-11deg) translateX(118px); z-index: 1; opacity: .96; }
.bc-fan .phone:nth-child(2) { transform: rotate(0deg); z-index: 3; }
.bc-fan .phone:nth-child(3) { transform: rotate(11deg) translateX(-118px); z-index: 1; opacity: .96; }

/* --- Vertical card: text top, phone below --- */
.card-vert { display: flex; flex-direction: column; }
.card-vert .bc-visual { position: relative; display: flex; justify-content: center; margin-top: 30px; min-height: 320px; align-items: flex-end; }
.card-vert .arc { width: 300px; height: 300px; inset-inline-start: 50%; transform: translateX(-50%); inset-block-end: -70px; }
.card-vert .phone { width: 190px; }

/* ---------- How it works ---------- */
.how { background: var(--cx-white); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card {
  background: var(--cx-bg);
  border: 1px solid var(--cx-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .4s var(--cx-ease), box-shadow .4s var(--cx-ease), border-color .4s var(--cx-ease);
  position: relative;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--cx-shadow-md); border-color: var(--cx-border); }
.step-ic {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--cx-green-800); color: var(--cx-gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step-ic svg { width: 27px; height: 27px; }
.step-card h4 { font-size: 18px; font-weight: 600; }
.step-card p { margin-top: 8px; font-size: 14.5px; color: var(--cx-text-soft); line-height: 1.6; }
.step-num {
  position: absolute; inset-block-start: 22px; inset-inline-end: 24px;
  font-size: 15px; font-weight: 700; color: var(--cx-border-str);
}

/* ---------- FAQ ---------- */
.faq { background: var(--cx-bg); }
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--cx-white);
  border: 1px solid var(--cx-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.open { border-color: var(--cx-green-700); box-shadow: var(--cx-shadow-sm); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px;
  font-size: 17px; font-weight: 600; color: var(--cx-ink); text-align: start;
}
.faq-q .chev { flex-shrink: 0; width: 24px; height: 24px; color: var(--cx-green-700); transition: transform .25s ease; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--cx-text); font-size: 16px; line-height: 1.75; }

/* ---------- CTA banner ---------- */
.cta-band { padding-block: 40px; }
.cta-box {
  position: relative;
  background: var(--cx-green-800);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}
.cta-box::before {
  content: ""; position: absolute; inset-block-start: -120px; inset-inline-start: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,143,42,.22), transparent 70%);
}
.cta-box h2 { position: relative; color: var(--cx-white); font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.3; }
.cta-box p { position: relative; color: rgba(255,255,255,.82); margin-top: 14px; font-size: 17px; }
.cta-actions { position: relative; display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.cta-visual { position: relative; display: flex; justify-content: center; }
.cta-visual .phone { width: 230px; transform: rotate(4deg); }
.cta-band .store-badge { background: var(--cx-white); color: var(--cx-green-800); }
.cta-band .store-badge:hover { background: var(--cx-gold-50); }

/* ---------- Contact ---------- */
.contact { background: var(--cx-white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.3; }
.contact-info > p { margin-top: 16px; font-size: 17px; color: var(--cx-text); }
.contact-list { margin-top: 32px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .ci {
  width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
  background: var(--cx-gold-100); color: var(--cx-gold-text);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ci svg { width: 24px; height: 24px; }
.contact-list .ct-label { font-size: 13px; color: var(--cx-text-soft); }
.contact-list .ct-val { font-size: 16px; font-weight: 600; color: var(--cx-ink); direction: ltr; unicode-bidi: plaintext; }

.contact-form {
  background: var(--cx-bg);
  border: 1px solid var(--cx-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--cx-ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit; font-size: 15px; color: var(--cx-ink);
  background: var(--cx-white);
  border: 1px solid var(--cx-border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--cx-text-muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cx-green-700);
  box-shadow: 0 0 0 3px rgba(29,107,88,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--cx-text-soft); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--cx-green-900); color: rgba(255,255,255,.72); padding-block: 64px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: var(--cx-white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--cx-gold); color: var(--cx-green-900); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h5 { color: var(--cx-white); font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color .15s ease; }
.footer-col a:hover { color: var(--cx-gold); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-bottom a:hover { color: var(--cx-gold); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--cx-scrim);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--cx-white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: var(--cx-shadow-lg);
  transform: translateY(16px) scale(.97); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal .modal-ic {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--cx-success-100); color: var(--cx-success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.modal .modal-ic svg { width: 40px; height: 40px; }
.modal h3 { font-size: 23px; font-weight: 700; }
.modal p { margin-top: 12px; color: var(--cx-text); font-size: 16px; }
.modal .btn { margin-top: 26px; width: 100%; }

/* ---------- Legal / 404 shared ---------- */
.subpage-hero {
  background: var(--cx-green-800);
  color: var(--cx-white);
  padding-block: calc(var(--header-h) + 56px) 56px;
  text-align: center;
}
.subpage-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.subpage-hero p { margin-top: 12px; color: rgba(255,255,255,.78); font-size: 16px; }
.legal-body { padding-block: 64px; }
.legal-wrap { max-width: 820px; margin-inline: auto; }
.legal-wrap .meta { color: var(--cx-text-soft); font-size: 14px; margin-bottom: 36px; }
.legal-wrap h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: var(--cx-ink); }
.legal-wrap h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--cx-green-700); }
.legal-wrap p { color: var(--cx-text); font-size: 16px; margin-bottom: 14px; line-height: 1.8; }
.legal-wrap ul.bullets { margin: 0 0 16px; display: grid; gap: 10px; }
.legal-wrap ul.bullets li { position: relative; padding-inline-start: 22px; color: var(--cx-text); line-height: 1.75; }
.legal-wrap ul.bullets li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cx-gold);
}

/* 404 */
.notfound { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.notfound-inner { max-width: 520px; }
.notfound .code {
  font-size: clamp(90px, 18vw, 160px); font-weight: 700; line-height: 1;
  color: var(--cx-green-800); letter-spacing: -4px;
}
.notfound .code span { color: var(--cx-gold); }
.notfound h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; margin-top: 8px; }
.notfound p { margin-top: 14px; color: var(--cx-text); font-size: 17px; }
.notfound .btn { margin-top: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* When GSAP drives the reveals, it owns the easing (no CSS transition). */
.gsap-ready .reveal { transition: none; }

/* ---------- Abstract hero orbs ---------- */
.hero-orb {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(34px); opacity: .55;
  will-change: transform;
}
.hero-orb.orb-1 { width: 300px; height: 300px; inset-block-start: 6%; inset-inline-start: 4%;
  background: radial-gradient(circle at 35% 35%, rgba(42,110,99,.5), transparent 70%); }
.hero-orb.orb-2 { width: 240px; height: 240px; inset-block-end: 6%; inset-inline-end: 8%;
  background: radial-gradient(circle at 60% 40%, rgba(198,143,42,.42), transparent 70%); }
.hero-orb.orb-3 { width: 180px; height: 180px; inset-block-start: 40%; inset-inline-end: 34%;
  background: radial-gradient(circle at 50% 50%, rgba(29,107,88,.34), transparent 70%); opacity: .4; }
@media (max-width: 820px) { .hero-orb.orb-3 { display: none; } }

/* ---------- Mobile nav drawer ---------- */
.nav-backdrop { position: fixed; inset: 0; background: var(--cx-scrim); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: none; text-align: center; margin-inline: auto; }
  .hero-badges, .hero-trust { justify-content: center; }
  .hero-visual { min-height: 480px; }
  .bento-card { padding: 32px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .section { padding-block: 72px; }
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { gap: 6px; }
  .header-actions .lang-btn { padding: 7px 10px; } /* keep language switch reachable on mobile */

  .nav.mobile-open {
    display: flex;
    position: fixed;
    inset-block-start: 0; inset-inline-end: 0;
    height: 100vh; width: min(82vw, 320px);
    background: var(--cx-white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--header-h) + 16px) 20px 24px;
    z-index: 99;
    box-shadow: var(--cx-shadow-lg);
    overflow-y: auto;
  }
  .nav.mobile-open a { font-size: 16px; padding: 14px 16px; }
  .nav.mobile-open .mobile-cta { display: flex; margin-top: 12px; color: var(--cx-white); }

  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat:nth-child(2)::after { display: none; }

  .bento { grid-template-columns: 1fr; gap: 20px; }
  .card-detail { grid-template-columns: 1fr; gap: 24px; }
  .card-detail .bc-visual { min-height: 340px; }
  .card-wide { grid-column: auto; grid-template-columns: 1fr; gap: 24px; }
  .card-wide .bc-fan { order: 2; height: 380px; }

  .cta-box { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .cta-actions { justify-content: center; }
  .cta-visual { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .section { padding-block: 56px; }
  .steps-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 26px 20px; }
  .hero-visual .phone-back { display: none; }
  .hero-visual .phone-main { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .bento-card { padding: 26px 22px; }
  .bc-fan .phone { width: 150px; }
  .bc-fan .phone:nth-child(1) { transform: rotate(-9deg) translateX(78px); }
  .bc-fan .phone:nth-child(3) { transform: rotate(9deg) translateX(-78px); }
  .float-toast { inset-inline-start: 0; max-width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.footer-cr { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.3); transition: color .2s; }
.footer-cr:hover { color: var(--cx-gold); text-decoration-color: currentColor; }
.footer-legal-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-legal-row strong { font-weight: 700; }
