/* ============================================================
   Zeongrow — Template 5 stylesheet
   Polished modern minimalist look + dark mode + responsive
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --surface: rgba(0, 0, 0, 0.02);
  --surface-2: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #1a1a1a;
  --text-secondary: #666666;
  --muted: #999999;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-light: rgba(37, 99, 235, 0.10);
  --accent-dim: rgba(37, 99, 235, 0.08);
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 48px rgba(37, 99, 235, 0.18);
  --header-bg: rgba(255, 255, 255, 0.78);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --bg-secondary: #151515;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --muted: #808080;
    --accent: #60a5fa;
    --accent-2: #3b82f6;
    --accent-light: rgba(96, 165, 250, 0.12);
    --accent-dim: rgba(96, 165, 250, 0.08);
    --shadow-xl: 0 24px 48px rgba(96, 165, 250, 0.25);
    --header-bg: rgba(15, 15, 15, 0.78);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Atmospheric background ---------- */
.hero-atmos {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-atmos__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.03;
}
.hero-atmos__dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 50%, var(--bg) 100%);
}
.hero-atmos__accent {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1000px 600px at 100% 0%, var(--accent-light) 0%, transparent 60%),
    radial-gradient(ellipse 800px 500px at 0% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}
.hero-atmos__edge {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.03);
}
.noise { display: none; }
.orb { display: none; }

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

main { display: block; }

/* ---------- Header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  background: var(--header-bg);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}
.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}

.header-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Lang dropdown */
.lang-dropdown { position: relative; display: inline-flex; align-items: center; }
.lang-dropdown__btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.lang-dropdown__btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}
.lang-dropdown__arrow {
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.lang-dropdown__btn[aria-expanded="true"] .lang-dropdown__arrow {
  transform: rotate(180deg);
}
.lang-dropdown__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 170px;
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
}
.lang-dropdown__list.is-open { display: flex; }
.lang-dropdown__list li { list-style: none; }
.lang-dropdown__option,
.lang-dropdown__item {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-dropdown__option:hover,
.lang-dropdown__item:hover,
.lang-dropdown__option--active,
.lang-dropdown__item.is-active {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

@media (max-width: 980px) {
  .site-nav { display: none; }
  /* !important needed — .btn { display: inline-flex } further down the file would
     otherwise win by source order at the same specificity. */
  .header-cta { display: none !important; }
  .nav-toggle { display: flex; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__inner { display: flex; flex-direction: column; min-height: 100%; }
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.mobile-nav__close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex: 1;
}
.mobile-nav nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.mobile-nav nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.mobile-nav nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}
.lang-flags-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.lang-flags-mobile__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  font-size: 0;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-flags-mobile__link .fi {
  display: block;
  width: 22px;
  height: 16px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.lang-flags-mobile__link:hover,
.lang-flags-mobile__link.is-active {
  background: var(--accent-light);
  border-color: var(--accent);
}
.lang-flags-mobile__link span { font-size: 1.2rem; }
.mobile-nav__cta {
  margin: 16px 24px 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding: 72px 0 56px;
  min-height: 520px;
  position: relative;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
    min-height: auto;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 22px;
  width: fit-content;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.trust span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust strong { color: var(--text); font-weight: 600; }

/* Card stack */
.card-stack {
  position: relative;
  height: 420px;
  perspective: 1000px;
}
@media (max-width: 900px) { .card-stack { height: 320px; } }

.glass-card {
  position: absolute;
  width: 100%;
  max-width: 360px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.glass-card.card-float {
  top: 0;
  right: 20px;
  height: 200px;
  transform: rotate(3deg);
  opacity: 0.85;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
}
.glass-card.card-float::before {
  content: "ETH / USDT";
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}
.glass-card.card-float::after {
  content: "$3 241  +1,18%";
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.glass-card.card-main {
  height: 240px;
  top: 90px;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .glass-card.card-float { display: none; }
  .glass-card.card-main { max-width: 100%; top: 0; left: 0; }
}
.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rate-label { font-weight: 600; color: var(--text-secondary); font-size: 0.9rem; }
.rate-change { color: var(--success); font-weight: 700; font-size: 0.9rem; }
.rate-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}
.rate-chart {
  height: 40px;
  background:
    linear-gradient(180deg, var(--accent-light) 0%, transparent 100%),
    repeating-linear-gradient(to right, transparent 0 18px, var(--border) 18px 19px);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.rate-chart svg { width: 100%; height: 100%; }
.row-actions { display: flex; gap: 10px; }
.row-actions .btn { flex: 1; padding: 10px 16px; font-size: 0.9rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; position: relative; }
@media (max-width: 768px) { section { padding: 48px 0; } }

h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 680px;
  line-height: 1.7;
}
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Empower / Features ---------- */
.empower-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.empower-panel { display: block; }
.empower-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .empower-split { grid-template-columns: 1fr; gap: 32px; }
}
.empower-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.empower-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.empower-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.empower-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--accent);
}
.empower-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.empower-text {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  align-self: center;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}
.empower-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.empower-img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details,
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open],
details.faq-item[open] { border-color: var(--accent); }
.faq details summary,
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq details summary::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker { display: none; }
.faq details summary::after,
details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
  font-weight: 400;
}
.faq details[open] summary::after,
details.faq-item[open] summary::after { content: "–"; }
.faq-a {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Contact / Lead form ---------- */
.contact-block {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-copy h2 { margin-bottom: 16px; }
.contact-copy p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.65;
}

.contact-form-shell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.contact2-form-box-all { width: 100%; }
.contact-form { width: 100%; }
.hadding2 h3 { margin-bottom: 6px; font-size: 1.35rem; }
.contact-form .form-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.space24 { height: 16px; }

.form,
.sign_up_form {
  display: grid;
  gap: 14px;
}
.form_header { display: none; }
.form_error {
  display: none;
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
}
.form_error.is-shown { display: block; }
.clear_both { clear: both; height: 0; }

.input_group,
.field,
.rf-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  margin-bottom: 0;
}
.input_group label,
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.input_group input,
.input_group select,
.field input,
.field select,
.rf-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.input_group input:focus,
.input_group select:focus,
.field input:focus,
.field select:focus,
.rf-form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input_group.has-error input,
.field.is-error input,
.rf-form-field.has-error .rf-form-input { border-color: var(--danger); }
.input_group .err,
.field .err,
.error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 2px;
}
.input_group.has-error .err,
.field.is-error .err,
.error-msg:not(.hide) { display: block; }
.error-msg.hide { display: none; }

/* Phone group with country select */
.phone-group {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
}
.phone-group select {
  background: var(--bg);
  cursor: pointer;
}

/* intl-tel-input integration (v23 separate-dial-code layout) */
.iti { width: 100%; display: block; }
.iti-wrap { width: 100%; position: relative; }
.iti--separate-dial-code {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.iti--separate-dial-code:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.iti--separate-dial-code .iti__flag-container { width: 110px; }
.iti--separate-dial-code .iti__selected-flag {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 14px;
  box-sizing: border-box;
  background: transparent;
}
.iti--separate-dial-code .iti__selected-flag::after {
  content: "";
  display: block;
  width: 1px;
  height: 60%;
  margin-left: 10px;
  background: var(--border);
}
.iti__selected-dial-code { margin-left: 6px; line-height: 1; white-space: nowrap; color: var(--text); }
.iti--separate-dial-code input,
.iti--separate-dial-code input#phone_input {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 12px 14px 12px 126px !important;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  outline: none;
}
.iti--separate-dial-code input:focus { box-shadow: none !important; }
.iti__country-list {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  z-index: 9999;
}
.iti__dropdown-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 9999;
}
.iti__search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-size: 0.9rem;
}
.iti__country-name { color: var(--text); }
.iti.phone-error { border-color: var(--danger) !important; }

.input_submit { margin-top: 6px; }
.btn-submit,
.submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-submit:hover:not(:disabled),
.submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}
.btn-submit:disabled,
.submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-submit.is-loading,
.submit.is-loading { color: transparent; pointer-events: none; }
.btn-submit.is-loading::after,
.submit.is-loading::after,
.waiting_block:not(.hidden) .dot-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  content: "";
}
@keyframes spin { to { transform: rotate(360deg); } }

.waiting_block { position: relative; min-height: 0; }
.waiting_block.hidden { display: none; }
.dot-spinner { display: none; }

.form-disclaimer,
.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 10px;
}
.form-disclaimer .underline,
.form-disclaimer a,
.disclaimer a {
  color: var(--accent);
  text-decoration: underline;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 28px 12px;
}
.form-success.is-shown { display: block; animation: fadeIn 0.3s ease; }
.form-success .ok-mark {
  width: 56px; height: 56px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  font-size: 28px;
  font-weight: 700;
}
.form-success h3 { font-size: 1.35rem; margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); }
.form-success .reset-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Subpage intro ---------- */
.subpage-intro {
  text-align: center;
  padding: 56px 0 24px;
}
.subpage-intro h1 { margin-bottom: 12px; }
.subpage-intro .lead { margin: 0 auto; }

.subpage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.subpage-card h2 { font-size: 1.4rem; margin-bottom: 16px; }
.subpage-card p { color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; }
.subpage-card ul { padding-left: 20px; margin-bottom: 12px; }
.subpage-card li { color: var(--text-secondary); margin-bottom: 8px; line-height: 1.6; }

/* ---------- Plans ---------- */
.plans-pricing { padding: 40px 0 64px; }
.plans-pricing-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 12px;
}
.plans-pricing-lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.plan-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
}
.plan-card--featured::before {
  content: "POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.plan-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.plan-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.plan-card-price,
.plan-card-price-box {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.plan-card-price-box--long { font-size: 1.6rem; }
.plan-card-price small { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.plan-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.plan-card-note { color: var(--text-secondary); font-size: 0.92rem; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
  display: grid;
  gap: 10px;
}
.plan-features li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.plan-cta { margin-top: auto; }
.plans-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Documents ---------- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  text-decoration: none;
}
.doc-card__icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--accent);
}
.doc-card__title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.doc-card__desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.about-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.about-stat__num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  line-height: 1.1;
}
.about-stat__label { color: var(--text-secondary); font-size: 0.92rem; }

.about-body { max-width: 760px; margin: 0 auto; }
.about-body p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---------- Legal ---------- */
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 0;
}
.legal-doc h1 { margin-bottom: 12px; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal-doc h2 {
  margin-top: 36px;
  font-size: 1.5rem;
}
.legal-doc h3 { margin-top: 24px; font-size: 1.2rem; }
.legal-doc p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin-bottom: 16px; }
.legal-doc li { margin-bottom: 8px; color: var(--text-secondary); line-height: 1.7; }
.legal-note {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--text);
  margin: 20px 0;
}
.legal-lang-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 40px;
}
footer p { margin-bottom: 6px; }
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.hide { display: none; }

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
table thead { background: var(--surface); border-bottom: 2px solid var(--border); }
table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}
table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
table tbody tr:hover { background: var(--surface); }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  body { background: white; color: black; }
  header, footer, .hero-atmos, .nav-toggle, .lang-dropdown { display: none; }
  a { text-decoration: underline; color: black; }
  section { page-break-inside: avoid; }
}

/* ============================================================
   Mobile optimizations (<= 640px / <= 420px)
   ============================================================ */
@media (max-width: 640px) {
  /* Layout & typography */
  .wrap { padding: 0 16px 56px; }
  .container { padding: 0 16px; }
  section { padding: 40px 0; }

  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.15; margin-bottom: 16px; }
  h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); margin-bottom: 12px; }
  h3 { font-size: 1.1rem; }
  .lead { font-size: 1rem; margin-bottom: 20px; }
  .section-sub { font-size: 0.98rem; margin-bottom: 28px; }

  /* Header */
  header { padding: 12px 0; gap: 10px; flex-wrap: nowrap; }
  .logo { font-size: 1.05rem; gap: 8px; min-width: 0; }
  .logo span:not(.logo-mark) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .logo-mark { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; flex-shrink: 0; }
  .logo-img { height: 26px; }
  .header-right { gap: 6px !important; flex-shrink: 0; }
  /* Compact language picker — keep just the flag + arrow, hide the long label */
  .lang-dropdown__btn { padding: 7px 9px; font-size: 0.8rem; gap: 6px; }
  .lang-dropdown__label { display: none; }
  .lang-dropdown__list { min-width: 150px; }
  .nav-toggle { padding: 8px; flex-shrink: 0; }
  .nav-toggle__bar { width: 18px; }

  /* Hero */
  .hero { padding: 28px 0 24px; gap: 28px; }
  .badge { font-size: 0.76rem; padding: 5px 12px; margin-bottom: 16px; }
  /* Stack hero CTAs on mobile — long translations (e.g. French) would otherwise
     overflow when two buttons share a flex:1 row. */
  .hero-cta {
    margin-bottom: 24px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
    font-size: 0.95rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }
  .trust { gap: 8px 14px; padding-top: 14px; }
  .trust span { font-size: 0.82rem; }

  .card-stack { height: 280px; }
  .glass-card.card-main { padding: 18px; height: 220px; top: 0; }
  .rate-value { font-size: 1.7rem; margin: 8px 0 12px; }

  /* Features */
  .empower-split { gap: 24px; }
  .empower-item { padding: 14px; gap: 12px; }
  .empower-icon { width: 38px; height: 38px; }
  .empower-icon svg { width: 19px; height: 19px; }
  .empower-text { font-size: 0.94rem; }
  .empower-img { max-width: 100%; }

  /* FAQ */
  .faq { gap: 8px; }
  .faq details summary,
  details.faq-item summary {
    padding: 14px 16px;
    font-size: 0.95rem;
    gap: 12px;
  }
  .faq-a { padding: 0 16px 16px; font-size: 0.93rem; }

  /* Contact / Lead form */
  .contact-block { padding: 48px 0; scroll-margin-top: 72px; }
  .contact-form-shell { padding: 20px; border-radius: 14px; }
  .hadding2 h3 { font-size: 1.2rem; }
  .contact-form .form-sub { font-size: 0.88rem; margin-bottom: 16px; }

  /* Prevent iOS auto-zoom on focus — inputs need >= 16px */
  .input_group input,
  .input_group select,
  .field input,
  .field select,
  .rf-form-input,
  .iti--separate-dial-code input,
  .iti--separate-dial-code input#phone_input {
    font-size: 16px !important;
  }
  .input_group input,
  .input_group select,
  .field input,
  .field select,
  .rf-form-input { padding: 13px 14px; }

  /* Narrower flag container so the phone number has more room */
  .iti--separate-dial-code .iti__flag-container { width: 92px; }
  .iti--separate-dial-code input,
  .iti--separate-dial-code input#phone_input {
    padding: 13px 14px 13px 104px !important;
  }
  .iti__country-list { max-height: 45vh; }

  .btn-submit,
  .submit { padding: 14px 18px; font-size: 0.98rem; }

  /* Subpages */
  .subpage-intro { padding: 36px 0 18px; }
  .subpage-card { padding: 20px; border-radius: 14px; }
  .subpage-card h2 { font-size: 1.2rem; }

  /* Plans */
  .plans-pricing { padding: 24px 0 48px; }
  .plans-grid { gap: 16px; margin: 16px 0; }
  .plan-card { padding: 24px 20px; }
  .plan-card-price, .plan-card-price-box { font-size: 1.9rem; }
  .plan-card-price-box--long { font-size: 1.35rem; }
  .plans-footnote { font-size: 0.84rem; }

  /* About */
  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
  .about-stat { padding: 18px 12px; }
  .about-stat__num { font-size: 1.9rem; }
  .about-stat__label { font-size: 0.84rem; }
  .about-body p { font-size: 0.95rem; }

  /* Documents */
  .docs-grid { grid-template-columns: 1fr; gap: 14px; }
  .doc-card { padding: 18px; }
  .doc-card__icon { width: 38px; height: 38px; }

  /* Legal */
  .legal-doc { padding: 24px 0; }
  .legal-doc h2 { margin-top: 24px; font-size: 1.25rem; }
  .legal-doc h3 { margin-top: 18px; font-size: 1.08rem; }
  .legal-doc p { font-size: 0.95rem; line-height: 1.7; }
  .legal-note { padding: 12px 14px; font-size: 0.92rem; }

  /* Footer */
  footer { padding: 28px 0 20px; margin-top: 24px; }
  .footer-links { gap: 12px 16px; font-size: 0.88rem; }
  .site-footer .container p { font-size: 0.82rem; line-height: 1.55; }

  /* Mobile nav */
  .mobile-nav__header { padding: 14px 18px; }
  .mobile-nav nav a { padding: 13px 18px; font-size: 0.98rem; }
  .mobile-nav__cta { margin: 12px 18px 20px; }
  .lang-flags-mobile { padding: 12px 18px; gap: 8px; flex-wrap: wrap; }
  .lang-flags-mobile__link { width: 40px; height: 36px; border-radius: 10px; }
  .lang-flags-mobile__link .fi { width: 22px; height: 16px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 14px 48px; }
  .container { padding: 0 14px; }

  /* Hero CTAs already stacked at <=640px — keep them snug here */
  .hero-cta .btn { padding: 12px 14px; font-size: 0.92rem; }

  .card-stack { height: 240px; }
  .glass-card.card-main { padding: 16px; height: 200px; }
  .rate-value { font-size: 1.45rem; }

  .about-grid { grid-template-columns: 1fr; }

  .contact-form-shell { padding: 16px; }

  /* Plan cards */
  .plan-card { padding: 22px 18px; }

  /* Legal note takes less room */
  .legal-note { padding: 10px 12px; }
}

/* Ensure the horizontal scroll inside header does not break layout on tiny viewports */
@media (max-width: 380px) {
  header { gap: 8px; }
  .logo span:not(.logo-mark) { display: none; }
}
