/* ===================================================================
   نخبة — Nokba — Landing Page Styles
   هوية نخبة · RTL · Tajawal / Poppins · أخضر غابة + مريمية + كريمي
   Tokens mapped from the app identity (Forest #0F231D · Sage #7A9E7E)
   =================================================================== */

:root {
  /* Brand forest green (primary) */
  --hp-primary:     #1C4535;  /* ★ اللون الأساسي — أخضر غابة */
  --hp-primary-700: #0F231D;  /* hover / أغمق — أعمق درجة */
  --hp-primary-600: #163a2d;  /* active */
  --hp-primary-400: #7A9E7E;  /* مريمية فاتحة */
  --hp-accent:      #7A9E7E;  /* ثانوي — أخضر مريمي */
  --hp-accent-text: #43664B;  /* نص أخضر على خلفية فاتحة */
  --hp-tint-100:    #E8EFE8;  /* خلفية خضراء فاتحة */
  --hp-tint-50:     #F2F6F2;

  /* Deep forest darks (bands / footer) */
  --hp-dark-900: #0A1812;  /* فوتر */
  --hp-dark-800: #0F231D;  /* داكن ثانوي */

  /* Neutrals (warm-green tinted) */
  --hp-ink:        #14281F;  /* نص أساسي - أخضر عميق */
  --hp-text:       #37433B;
  --hp-text-soft:  #5A665C;
  --hp-text-muted: #8A958C;
  --hp-border:     #E6EAE5;
  --hp-border-str: #D2DAD0;
  --hp-surface-2:  #EDF1EC;
  --hp-surface-1:  #F5F7F5;
  --hp-bg:         #FFFFFF;  /* خلفية الصفحة - أبيض نظيف */
  --hp-white:      #ffffff;

  /* Premium gold (نبرة "النخبة") */
  --hp-gold:        #B89155;
  --hp-gold-soft:   #F3ECDD;

  /* Success / Danger (من هوية التطبيق) */
  --hp-success:     #2E7D32;
  --hp-success-100: #E8F2E9;
  --hp-danger:      #C0392B;
  --hp-danger-50:   #FBEDEB;

  /* Shadows — soft, warm-green, layered */
  --hp-shadow-sm: 0 1px 2px rgba(15, 35, 29, .05), 0 1px 3px rgba(15, 35, 29, .06);
  --hp-shadow-md: 0 6px 18px rgba(28, 69, 53, .10), 0 2px 6px rgba(15, 35, 29, .05);
  --hp-shadow-lg: 0 18px 44px rgba(28, 69, 53, .14), 0 5px 14px rgba(15, 35, 29, .06);
  --hp-shadow-phone: 0 26px 60px rgba(10, 24, 18, .24), 0 10px 22px rgba(10, 24, 18, .12);
  --hp-scrim:     rgba(10, 24, 18, .48);
  --hp-ease: cubic-bezier(.22, .61, .36, 1);

  --hp-font-ar: 'Tajawal', 'Montserrat Arabic', system-ui, -apple-system, sans-serif;
  --hp-font-en: 'Poppins', 'Tajawal', system-ui, sans-serif;
  --hp-font: var(--hp-font-ar);

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 26px;
  --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(--hp-font);
  background: var(--hp-bg);
  color: var(--hp-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--hp-font-en); }

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: 700;
  color: var(--hp-accent-text);
  background: var(--hp-tint-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(--hp-text); }
.section-head .text-brand { color: var(--hp-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  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(--hp-primary);
  color: var(--hp-white);
  box-shadow: 0 6px 16px rgba(63, 141, 173, .28);
}
.btn-primary:hover { background: var(--hp-primary-700); box-shadow: 0 10px 22px rgba(63, 141, 173, .34); }
.btn-ghost {
  background: transparent;
  color: var(--hp-primary);
  border: 1.5px solid var(--hp-border-str);
}
.btn-ghost:hover { border-color: var(--hp-primary); background: var(--hp-white); }
.btn-light { background: var(--hp-white); color: var(--hp-primary); }
.btn-light:hover { background: var(--hp-tint-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(255, 251, 248, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--hp-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: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--hp-text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--hp-primary); background: var(--hp-surface-2); }
.nav .mobile-cta { display: none; }
.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: 700; color: var(--hp-text);
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--hp-border);
  background: var(--hp-white);
  transition: border-color .15s ease;
}
.lang-btn:hover { border-color: var(--hp-border-str); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; color: var(--hp-primary); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Phone device ---------- */
.phone {
  position: relative;
  background: #0A1812;
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--hp-shadow-phone);
  width: 268px;
}
.phone::before {
  content: "";
  position: absolute;
  inset-block-start: 15px; inset-inline: 0;
  margin-inline: auto;
  width: 74px; height: 20px;
  background: #0A1812;
  border-radius: 999px;
  z-index: 3;
}
.phone img {
  border-radius: 36px;
  width: 100%;
  height: auto;
  aspect-ratio: 1125 / 2436;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- 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(63,141,173,.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(0,150,107,.14), 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.18;
  font-weight: 700;
  letter-spacing: -1px;
}
.hero h1 .hl { color: var(--hp-primary); position: relative; }
.hero p.lead { margin-top: 22px; font-size: 19px; color: var(--hp-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(--hp-ink); color: var(--hp-white);
  padding: 11px 20px; border-radius: 13px;
  transition: transform .15s ease, background .2s ease;
}
.store-badge:hover { background: #000; 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: 700; line-height: 1.2; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; color: var(--hp-text-soft); font-size: 14px; }
.hero-trust .stars { color: var(--hp-accent); letter-spacing: 2px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.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(--hp-primary); color: var(--hp-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,.22);
}
.stat .num { font-size: clamp(32px, 4vw, 46px); font-weight: 700; color: var(--hp-white); 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,.85); }

/* ---------- Features (bento) ---------- */
.features { background: var(--hp-white); }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bento-card {
  position: relative;
  background: var(--hp-surface-1);
  border: 1px solid var(--hp-border);
  border-radius: 28px;
  padding: 44px;
  overflow: hidden;
  transition: box-shadow .4s var(--hp-ease), transform .4s var(--hp-ease);
}
.bento-card:hover { box-shadow: var(--hp-shadow-md); transform: translateY(-4px); }
.bento-card .arc {
  position: absolute; z-index: 0; pointer-events: none;
  border: 1.5px dashed var(--hp-border-str); opacity: .55;
  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(--hp-ink); }
.bc-text p { margin-top: 12px; color: var(--hp-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(--hp-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(--hp-primary); }

.bento .phone { width: 196px; border-radius: 34px; padding: 8px; }
.bento .phone::before { inset-block-start: 11px; width: 54px; height: 15px; }
.bento .phone img { border-radius: 27px; }

/* Card: detail — centered layout (matches card-center) */
.card-detail { text-align: center; }
.card-detail .bc-text { max-width: 420px; margin-inline: auto; }
.card-detail .bc-visual { position: relative; display: flex; justify-content: center; margin-top: 30px; min-height: 320px; }
.card-detail .arc { width: 330px; height: 330px; inset-inline-start: 50%; transform: translateX(-50%); inset-block-end: -60px; }
.card-detail .float-toast { inset-inline-start: 4%; inset-block-end: 6px; }

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

/* Card: centered */
.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(--hp-white); box-shadow: var(--hp-shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.float-ic svg { width: 26px; height: 26px; }
.float-ic.brand { color: var(--hp-primary); }
.float-ic.accent { color: var(--hp-accent); }
.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 */
.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(--hp-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 — centered */
.card-vert { display: flex; flex-direction: column; text-align: center; }
.card-vert .bc-text { max-width: 420px; margin-inline: auto; }
.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(--hp-white); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card {
  background: var(--hp-bg);
  border: 1px solid var(--hp-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .4s var(--hp-ease), box-shadow .4s var(--hp-ease), border-color .4s var(--hp-ease);
  position: relative;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow-md); border-color: var(--hp-border); }
.step-ic {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--hp-primary); color: var(--hp-white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(63, 141, 173, .26);
}
.step-ic svg { width: 27px; height: 27px; }
.step-card h4 { font-size: 18px; font-weight: 700; }
.step-card p { margin-top: 8px; font-size: 14.5px; color: var(--hp-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(--hp-border-str);
}

/* ---------- FAQ ---------- */
.faq { background: var(--hp-bg); }
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--hp-white);
  border: 1px solid var(--hp-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(--hp-primary); box-shadow: var(--hp-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: 700; color: var(--hp-ink); text-align: start;
}
.faq-q .chev { flex-shrink: 0; width: 24px; height: 24px; color: var(--hp-primary); 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(--hp-text); font-size: 16px; line-height: 1.75; }

/* ---------- CTA banner ---------- */
.cta-band { padding-block: 40px; }
.cta-box {
  position: relative;
  background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-700) 100%);
  border-radius: var(--radius-lg);
  padding: 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(255,255,255,.18), transparent 70%);
}
.cta-box h2 { position: relative; color: var(--hp-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,.9); 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(--hp-white); color: var(--hp-primary); }
.cta-band .store-badge:hover { background: var(--hp-tint-50); }

/* ---------- Contact ---------- */
.contact { background: var(--hp-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(--hp-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(--hp-tint-100); color: var(--hp-accent-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(--hp-text-soft); }
.contact-list .ct-val { font-size: 16px; font-weight: 700; color: var(--hp-ink); direction: ltr; unicode-bidi: plaintext; }

.contact-form {
  background: var(--hp-bg);
  border: 1px solid var(--hp-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--hp-ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit; font-size: 15px; color: var(--hp-ink);
  background: var(--hp-white);
  border: 1px solid var(--hp-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(--hp-text-muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--hp-primary);
  box-shadow: 0 0 0 3px rgba(63, 141, 173, .14);
}
.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(--hp-text-soft); margin-top: 14px; text-align: center; }
.form-note a { color: var(--hp-primary); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--hp-dark-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: 46px; 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(--hp-white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--hp-primary); color: var(--hp-white); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h5 { color: var(--hp-white); font-size: 15px; font-weight: 700; 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(--hp-primary-400); }
.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(--hp-primary-400); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--hp-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(--hp-white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: var(--hp-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(--hp-success-100); color: var(--hp-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(--hp-text); font-size: 16px; }
.modal .btn { margin-top: 26px; width: 100%; }

/* ---------- Legal / 404 shared ---------- */
.subpage-hero {
  background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-700) 100%);
  color: var(--hp-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,.88); font-size: 16px; }
.legal-body { padding-block: 64px; }
.legal-wrap { max-width: 820px; margin-inline: auto; }
.legal-wrap .meta { color: var(--hp-text-soft); font-size: 14px; margin-bottom: 36px; }
.legal-wrap h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: var(--hp-ink); }
.legal-wrap h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; color: var(--hp-primary); }
.legal-wrap p { color: var(--hp-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(--hp-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(--hp-primary);
}

/* 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(--hp-ink); letter-spacing: -4px;
}
.notfound .code span { color: var(--hp-primary); }
.notfound h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; margin-top: 8px; }
.notfound p { margin-top: 14px; color: var(--hp-text); font-size: 17px; }
.notfound .btn { margin-top: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--hp-ease), transform .6s var(--hp-ease); }
.reveal.in { opacity: 1; transform: 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(63,141,173,.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(0,150,107,.46), 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(0,150,107,.4), 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(--hp-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; }

  .nav.mobile-open {
    display: flex;
    position: fixed;
    inset-block-start: 0; inset-inline-end: 0;
    height: 100vh; width: min(82vw, 320px);
    background: var(--hp-white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--header-h) + 16px) 20px 24px;
    z-index: 99;
    box-shadow: var(--hp-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(--hp-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; }
}
