/* ============================================================
   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; }
  /* Center the language dropdown horizontally between logo and hamburger */
  .header-right .lang-dropdown,
  header > .lang-dropdown {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* 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;
  text-align: center;
  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;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}
.lang-flags-mobile__link {
  display: inline-flex;
  border-radius: 3px;
  opacity: 0.55;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  font-size: 0;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
}
.lang-flags-mobile__link .fi {
  width: 32px;
  height: 24px;
  border-radius: 3px;
}
.lang-flags-mobile__link:hover,
.lang-flags-mobile__link.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px 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: 14px 18px; gap: 10px; }
  .lang-flags-mobile__link .fi { width: 28px; height: 21px; }
}

@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; }
}


/* ============================================================
   TEMPLATE 13 OVERRIDE — "AURORA NEBULA"
   Premium dark cosmic theme: cyan → violet → magenta aurora,
   frosted glass surfaces, soft halo glows, sharp display type.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #08091a;                 /* deep midnight */
  --bg-secondary: #0e1029;
  --surface: rgba(148, 163, 255, 0.04);
  --surface-2: rgba(148, 163, 255, 0.08);
  --border: rgba(148, 163, 255, 0.14);
  --border-strong: rgba(148, 163, 255, 0.30);
  --text: #eef0fb;
  --text-secondary: #a6acce;
  --muted: #6c7398;
  --accent: #6ee7ff;             /* aurora cyan */
  --accent-2: #a78bfa;            /* aurora violet */
  --accent-3: #f472b6;            /* aurora magenta */
  --accent-light: rgba(110, 231, 255, 0.10);
  --accent-dim: rgba(110, 231, 255, 0.05);
  --success: #34d399;
  --danger: #fb7185;
  --radius: 14px;
  --radius-lg: 22px;
  --aurora: linear-gradient(115deg, #6ee7ff 0%, #a78bfa 45%, #f472b6 100%);
  --aurora-soft: linear-gradient(115deg, rgba(110,231,255,0.18) 0%, rgba(167,139,250,0.18) 45%, rgba(244,114,182,0.18) 100%);
  --shadow-sm: 0 4px 14px rgba(8, 10, 35, 0.45);
  --shadow-md: 0 12px 30px rgba(8, 10, 35, 0.55);
  --shadow-lg: 0 22px 50px -10px rgba(110, 231, 255, 0.20);
  --shadow-xl: 0 32px 70px -12px rgba(167, 139, 250, 0.35);
  --halo: 0 0 36px rgba(110, 231, 255, 0.35);
  --header-bg: rgba(8, 9, 26, 0.72);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08091a;
    --bg-secondary: #0e1029;
    --text: #eef0fb;
    --text-secondary: #a6acce;
    --header-bg: rgba(8, 9, 26, 0.72);
  }
}

@media (prefers-color-scheme: light) {
  /* Aurora Nebula stays dark even in light-mode user preference —
     the theme is intentionally a dark cosmic aesthetic. */
  :root {
    --bg: #08091a;
    --bg-secondary: #0e1029;
    --text: #eef0fb;
    --text-secondary: #a6acce;
    --muted: #6c7398;
    --header-bg: rgba(8, 9, 26, 0.72);
  }
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(167, 139, 250, 0.35); color: #fff; }

/* Cosmic body — deep midnight + faint starfield + nebula gradients */
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 72% 14%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1.6px 1.6px at 36% 78%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1px 1px at 88% 62%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1.2px 1.2px at 8% 64%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1px 1px at 56% 36%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 92% 86%, rgba(255,255,255,0.45), transparent 60%);
  background-size: 720px 720px;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}
/* Soft animated aurora veil — fixed full-bleed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 18% 8%, rgba(110, 231, 255, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 82% 20%, rgba(167, 139, 250, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 95%, rgba(244, 114, 182, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(110, 231, 255, 0.12) 0%, transparent 60%);
  filter: blur(40px);
  animation: aurora-drift 24s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
  100% { transform: translate3d(2%, -2%, 0) scale(1); }
}
/* Vignette for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(8, 9, 26, 0.55) 100%);
}

a { color: var(--accent); text-decoration: none; transition: color 0.18s ease, text-shadow 0.18s ease; }
a:hover { color: var(--accent-2); text-shadow: 0 0 18px rgba(167, 139, 250, 0.55); }

/* Built-in atmos block from base — replace the dim image with a richer halo */
.hero-atmos { display: block; pointer-events: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.hero-atmos__img { display: none; }
.hero-atmos__dark { display: none; }
.hero-atmos__edge { display: none; }
.hero-atmos__accent {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 520px at 12% 10%, rgba(110, 231, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 720px 460px at 92% 6%, rgba(167, 139, 250, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 900px 600px at 60% 100%, rgba(244, 114, 182, 0.14) 0%, transparent 65%);
  mix-blend-mode: screen;
  filter: blur(20px);
}
.wrap, header, footer, main, section { position: relative; z-index: 1; }

/* Typography — Space Grotesk display */
h1, h2, h3 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-transform: none;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 700;
}
h1 span {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(110, 231, 255, 0.35));
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  display: inline-block;
  padding-bottom: 8px;
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--aurora);
  border-radius: 2px;
  opacity: 0.85;
}
.section-center h2::after { left: 50%; transform: translateX(-50%); width: 64px; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.lead { color: var(--text-secondary); font-size: 1.08rem; font-weight: 400; line-height: 1.7; }
.section-sub { color: var(--text-secondary); font-size: 0.98rem; }

/* Header — frosted glass strip with aurora hairline */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--aurora);
  opacity: 0.55;
}
.logo { font-family: 'Space Grotesk', sans-serif; color: var(--text); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.015em; }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--aurora);
  color: #0a0c1f;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 22px rgba(110, 231, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
.site-nav a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(135deg, rgba(110,231,255,0.14), rgba(167,139,250,0.14));
  box-shadow: inset 0 0 0 1px rgba(167,139,250,0.30);
}
.lang-dropdown__btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.lang-dropdown__btn:hover { background: var(--surface); border-color: rgba(167,139,250,0.35); }
.lang-dropdown__list {
  background: rgba(14, 16, 41, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}
.lang-dropdown__option, .lang-dropdown__item { color: var(--text-secondary); font-family: 'Manrope', sans-serif; }
.lang-dropdown__option:hover, .lang-dropdown__item:hover, .lang-dropdown__item.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(110,231,255,0.12), rgba(167,139,250,0.12));
}
.nav-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}

/* Buttons — aurora-filled primary with halo, gradient-stroke ghost */
.btn {
  border-radius: 999px;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  padding: 13px 26px;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.25s ease;
  position: relative;
  isolation: isolate;
}
.btn-primary {
  background: var(--aurora);
  color: #0b0f24;
  box-shadow: 0 10px 28px -8px rgba(110, 231, 255, 0.45), 0 0 0 1px rgba(255,255,255,0.10) inset;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--aurora);
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
  transition: opacity 0.25s ease;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: #0b0f24;
}
.btn-primary:hover:not(:disabled)::after { opacity: 0.85; }
/* Ghost — gradient stroke via mask */
.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid transparent;
  position: relative;
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.btn-ghost:hover { background: rgba(167,139,250,0.10); color: var(--text); transform: translateY(-1px); }
.btn-ghost:hover::before { opacity: 1; }

/* Badge — aurora pill */
.badge {
  background: rgba(110, 231, 255, 0.10);
  color: var(--text);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.76rem;
  padding: 6px 14px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(110, 231, 255, 0.55);
}

/* Hero glass card — frosted with aurora-edge.
   IMPORTANT: keep base's `position: absolute` so .card-float / .card-main
   stack correctly inside .card-stack. Don't add `position: relative` here. */
.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
  isolation: isolate;
}
/* Aurora hairline — only on the main card. The float card's ::before
   is reserved by base CSS for its "ETH / USDT" label text. */
.glass-card.card-main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
/* card-stack height + card-main padding inherit from base CSS so mobile
   @media (640/420) reductions keep working. We only restyle look here. */
.glass-card.card-float {
  background: linear-gradient(160deg, rgba(167,139,250,0.16) 0%, rgba(110,231,255,0.06) 100%);
  opacity: 0.92;
}
.glass-card.card-float::before { color: var(--text-secondary); }
.glass-card.card-float::after { color: var(--text); }
/* Let the main card grow on mobile so the rate-chart + Long/Short buttons fit
   inside the aurora frame without overflow. */
@media (max-width: 640px) {
  .card-stack { height: auto; min-height: 280px; }
  .glass-card.card-main { height: auto; min-height: 220px; }
}
@media (max-width: 420px) {
  .card-stack { min-height: 260px; }
  .glass-card.card-main { min-height: 220px; }
}
.rate-label {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 500;
  font-size: 0.76rem;
}
.rate-value {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 0 0 28px rgba(110, 231, 255, 0.25);
}
.rate-change {
  font-family: 'JetBrains Mono', monospace;
  color: var(--success);
  font-weight: 500;
  background: rgba(52, 211, 153, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.82rem;
}
.rate-chart {
  background:
    linear-gradient(180deg, rgba(110,231,255,0.18) 0%, transparent 100%),
    repeating-linear-gradient(to right, transparent 0 26px, rgba(167,139,250,0.10) 26px 27px);
  border: 1px solid var(--border);
  border-radius: 10px;
}

section { padding: 80px 0; border-bottom: none; }
.empower-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Empower / Features */
.empower-panel { background: transparent; border: none; padding: 0; box-shadow: none; }
.empower-item {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.empower-item:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 18px 36px -16px rgba(167, 139, 250, 0.40);
}
.empower-icon {
  background: linear-gradient(135deg, rgba(110,231,255,0.18), rgba(167,139,250,0.18));
  color: var(--accent);
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 24px -6px rgba(110,231,255,0.40);
  width: 46px; height: 46px;
}
.empower-text { color: var(--text); font-weight: 500; }
.empower-img {
  border-radius: 22px;
  box-shadow: 0 30px 60px -15px rgba(167, 139, 250, 0.35);
  border: 1px solid var(--border);
}

/* Trust pills */
.trust { border-top: 1px solid var(--border); padding-top: 22px; }
.trust span {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
.trust span strong { color: var(--accent); font-weight: 600; }

/* FAQ */
.faq details, details.faq-item {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.faq details[open], details.faq-item[open] {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 16px 36px -18px rgba(167, 139, 250, 0.45);
}
.faq summary, details.faq-item summary {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  text-transform: none;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.faq details[open] summary, details.faq-item[open] summary {
  background: transparent;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.faq summary::after, details.faq-item summary::after {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.faq-a { color: var(--text-secondary); }

/* Plans */
.plan-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 28px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 255, 0.38);
  box-shadow: 0 26px 50px -16px rgba(110, 231, 255, 0.35);
}
.plan-card--featured {
  background: linear-gradient(160deg, rgba(110,231,255,0.10) 0%, rgba(167,139,250,0.08) 60%, rgba(244,114,182,0.06) 100%);
  border: 1px solid transparent;
  position: relative;
  isolation: isolate;
}
.plan-card--featured::before {
  content: "POPULAR";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--aurora);
  color: #0b0f24;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  box-shadow: 0 0 24px rgba(167,139,250,0.50);
}
.plan-card--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}
.plan-card-name {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 500;
}
.plan-card-price, .plan-card-price-box {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.025em;
  text-shadow: none;
}
.plan-card-price small { color: var(--text-secondary); -webkit-text-fill-color: var(--text-secondary); background: none; }
.plan-card--featured .plan-card-name { color: var(--accent-3); }
.plan-badge {
  background: rgba(244, 114, 182, 0.14);
  color: var(--accent-3);
  border: 1px solid rgba(244, 114, 182, 0.30);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 500;
}
.plan-features li::before { color: var(--accent); text-shadow: 0 0 8px rgba(110,231,255,0.6); }

/* About */
.about-stat {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  padding: 24px 16px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.about-stat:hover { transform: translateY(-3px); border-color: rgba(167,139,250,0.35); }
.about-stat__num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.about-stat__label {
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.10em;
}

/* Documents */
.doc-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.doc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 255, 0.38);
  box-shadow: 0 18px 40px -18px rgba(110, 231, 255, 0.40);
}
.doc-card__icon {
  background: linear-gradient(135deg, rgba(110,231,255,0.20), rgba(167,139,250,0.20));
  color: var(--accent);
  border-radius: 12px;
  border: 1px solid rgba(110,231,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.doc-card__title { font-family: 'Space Grotesk', sans-serif; color: var(--text); font-weight: 600; }
.doc-card__desc { color: var(--text-secondary); }

/* Lead form / contact */
.contact-block { border-top: 1px solid var(--border); }
.contact-form-shell {
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-xl);
  position: relative;
  isolation: isolate;
}
.contact-form-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.hadding2 h3 {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  position: relative;
}
.hadding2 h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 56px; height: 2px;
  background: var(--aurora);
  border-radius: 2px;
}
.input_group input, .input_group select, .field input, .field select, .rf-form-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.input_group input::placeholder, .field input::placeholder, .rf-form-input::placeholder { color: var(--muted); }
.input_group input:focus, .field input:focus, .rf-form-input:focus {
  border-color: rgba(110, 231, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.18), 0 0 22px rgba(167, 139, 250, 0.20);
  outline: none;
  background: rgba(255,255,255,0.05);
}
.input_group label, .field label {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.74rem;
  font-weight: 500;
}
.input_group.has-error input, .field.is-error input, .rf-form-field.has-error .rf-form-input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
}
.input_group .err, .field .err, .error-msg { color: var(--danger); font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.btn-submit, .submit {
  background: var(--aurora);
  color: #0b0f24;
  border: none;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 14px 30px -10px rgba(110, 231, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.20);
  position: relative;
  isolation: isolate;
}
.btn-submit::after, .submit::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--aurora);
  filter: blur(20px);
  opacity: 0.55;
  z-index: -1;
  transition: opacity 0.25s ease;
}
.btn-submit:hover:not(:disabled), .submit:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
  color: #0b0f24;
}
.btn-submit:hover:not(:disabled)::after, .submit:hover:not(:disabled)::after { opacity: 0.85; }
.form-disclaimer, .disclaimer { color: var(--muted); font-family: 'Manrope', sans-serif; font-size: 0.84rem; }
.form-disclaimer a, .disclaimer a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(110,231,255,0.4); }
.form-success .ok-mark {
  background: linear-gradient(135deg, rgba(110,231,255,0.18), rgba(167,139,250,0.18));
  color: var(--accent);
  border: 1px solid rgba(110, 231, 255, 0.30);
  box-shadow: 0 0 24px rgba(110,231,255,0.40);
}

/* intl-tel-input */
.iti--separate-dial-code {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.iti--separate-dial-code:focus-within {
  border-color: rgba(110, 231, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.18);
}
.iti--separate-dial-code .iti__flag-container { background: transparent; border-right: 1px solid var(--border); }
.iti__selected-dial-code { color: var(--text); font-family: 'JetBrains Mono', monospace; }
.iti__country-list, .iti__dropdown-content {
  background: rgba(14, 16, 41, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}
.iti__country-name { color: var(--text); font-family: 'Manrope', sans-serif; }
.iti__country:hover, .iti__country.iti__highlight {
  background: linear-gradient(135deg, rgba(110,231,255,0.12), rgba(167,139,250,0.12));
  color: var(--text);
}
.iti__search-input { background: rgba(255,255,255,0.03); color: var(--text); border-bottom-color: var(--border); }

/* Subpage / legal */
.subpage-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}
.legal-note {
  background: linear-gradient(135deg, rgba(110,231,255,0.10), rgba(167,139,250,0.08));
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  color: var(--text);
}

/* Tables */
table thead { background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
table th { color: var(--text); }
table td { color: var(--text-secondary); border-bottom-color: var(--border); }
table tbody tr:hover { background: rgba(167,139,250,0.06); }

/* Mobile nav overlay — match dark cosmic vibe */
.mobile-nav { background: rgba(8, 9, 26, 0.96); backdrop-filter: blur(28px); }
.mobile-nav__header { border-bottom-color: var(--border); }
.mobile-nav__close { background: var(--surface-2); border: 1px solid var(--border); }
.mobile-nav nav a { color: var(--text-secondary); }
.mobile-nav nav a:hover { color: var(--text); background: var(--surface-2); }
.mobile-nav nav a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(135deg, rgba(110,231,255,0.14), rgba(167,139,250,0.14));
}
/* lang-flags-mobile uses base bare-flag rules — no theme box override */

/* Footer */
footer {
  background: rgba(8, 9, 26, 0.55);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  position: relative;
  margin-top: 40px;
}
footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--aurora);
  opacity: 0.45;
}
.footer-links a {
  color: var(--text-secondary);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--accent); background: transparent; padding: 0; }

/* ============================================================
   MOBILE — softer halos, smaller display sizes,
   iOS input fix, full-width CTAs.
   ============================================================ */
@media (max-width: 900px) {
  .hero { display: block; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px 56px; }
  section { padding: 56px 0; }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  h1 { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 1.95rem); }

  /* Soften halos on mobile so they don't dominate small viewports */
  .btn-primary, .btn-submit, .submit {
    box-shadow: 0 8px 22px -8px rgba(110, 231, 255, 0.40);
  }
  .btn-primary::after, .btn-submit::after, .submit::after { opacity: 0.35; filter: blur(14px); }
  .glass-card { box-shadow: 0 16px 36px -14px rgba(110, 231, 255, 0.18); }
  .contact-form-shell { box-shadow: 0 18px 40px -18px rgba(167, 139, 250, 0.30); padding: 22px; }
  .empower-img { box-shadow: 0 18px 36px -18px rgba(167, 139, 250, 0.28); }
  .rate-value { font-size: 1.7rem; }

  /* iOS auto-zoom prevention */
  .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;
  }
  .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; }

  .site-nav { display: none; }
  .header-cta { display: none !important; }
  .nav-toggle { display: flex; }
  .lang-dropdown__label { display: none; }

  .trust { gap: 8px 12px; }
  .trust span { font-size: 0.76rem; padding: 5px 11px; }

  /* Tame the aurora veil on small screens for legibility */
  body::before { filter: blur(60px); opacity: 0.85; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 14px 44px; }
  section { padding: 44px 0; }
  h1 { font-size: clamp(1.7rem, 10vw, 2.2rem); }
  .contact-form-shell { padding: 18px; }
}

/* ============================================================
   AURORA NEBULA — Reviews / Offer banner / Profit calculator
   Sections imported from template_4, restyled for the dark cosmic theme.
   ============================================================ */

/* ---- REVIEWS ---- */
.reviews-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.40);
  box-shadow: 0 22px 44px -18px rgba(167, 139, 250, 0.40);
}
.review-stars {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 1.05rem;
  letter-spacing: 0.20em;
  filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.45));
}
.review-text {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  position: relative;
}
.review-text::before {
  content: "\201C";
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: 'Space Grotesk', serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 0;
  margin-right: 6px;
  vertical-align: -0.22em;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(110, 231, 255, 0.35);
  box-shadow: 0 0 18px rgba(110, 231, 255, 0.30);
}
.review-meta-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.review-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
}
.review-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ---- OFFER BANNER ---- */
.offer-section { border-bottom: 1px solid var(--border); }
.offer-bar {
  margin-top: 16px;
  padding: 28px 32px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(110,231,255,0.10) 0%, rgba(167,139,250,0.10) 50%, rgba(244,114,182,0.10) 100%),
    rgba(8, 9, 26, 0.55);
  border: 1px solid transparent;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 48px -18px rgba(167, 139, 250, 0.35);
}
.offer-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.65;
  pointer-events: none;
  z-index: -1;
}
.offer-bar p {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  max-width: 560px;
  line-height: 1.55;
  margin: 0;
}
.offer-bar em {
  font-style: normal;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  filter: drop-shadow(0 0 16px rgba(110, 231, 255, 0.45));
}
.offer-bar .btn { flex-shrink: 0; }

/* ---- PROFIT CALCULATOR ---- */
.calc-section { padding: 80px 0 24px; }
.calc-section .section-center { margin-bottom: 28px; }
.calc-layout {
  display: grid;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}
@media (min-width: 880px) {
  .calc-layout { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}

.calc-inputs { display: flex; flex-direction: column; gap: 32px; }
.calc-field { display: flex; flex-direction: column; gap: 10px; }
.calc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.calc-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(110, 231, 255, 0.30));
}
.calc-range {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* Aurora-stroke range slider */
.calc-field input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  background-size: 100% 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.30);
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #eef0fb;
  border: 3px solid #08091a;
  box-shadow: 0 0 0 2px var(--accent), 0 0 22px rgba(110, 231, 255, 0.65);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.calc-field input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.08); }
.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #eef0fb;
  border: 3px solid #08091a;
  box-shadow: 0 0 0 2px var(--accent), 0 0 22px rgba(110, 231, 255, 0.65);
  cursor: grab;
}
.calc-field input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
}
.calc-field input[type="range"]:focus-visible {
  outline: 2px solid rgba(110, 231, 255, 0.55);
  outline-offset: 4px;
}

.calc-result-card {
  border-radius: 22px;
  padding: 36px 32px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid transparent;
  text-align: center;
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 60px -18px rgba(167, 139, 250, 0.40);
}
.calc-result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.65;
  pointer-events: none;
  z-index: -1;
}
.calc-result-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.calc-result-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 26px;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(110, 231, 255, 0.45));
}
.calc-result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--muted);
  text-transform: uppercase;
}
.calc-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.calc-stat-value.accent {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.calc-disclaimer {
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 540px;
  margin: 22px auto 0;
  line-height: 1.55;
}
.calc-cta {
  display: flex;
  margin: 28px auto 0;
  max-width: 420px;
  width: 100%;
  padding: 16px 28px;
  font-size: 0.98rem;
  justify-content: center;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .reviews-grid { gap: 14px; }
  .review-card { padding: 22px 20px; gap: 14px; border-radius: 16px; }
  .review-text { font-size: 0.92rem; line-height: 1.65; }
  .review-avatar { width: 44px; height: 44px; }
  .review-name { font-size: 0.9rem; }
  .review-role { font-size: 0.72rem; }

  .offer-bar {
    padding: 22px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-radius: 16px;
    margin-top: 8px;
  }
  .offer-bar p { font-size: 0.98rem; }
  .offer-bar .btn { width: 100%; }

  .calc-section { padding: 56px 0 12px; }
  .calc-inputs { gap: 24px; }
  .calc-result-card { padding: 26px 22px; border-radius: 18px; }
  .calc-result-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .calc-stat { padding: 14px 12px; border-radius: 12px; }
  .calc-stat-value { font-size: 1.05rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .badge-dot { animation: none; }
}
