/* ═══════════════════════════════════════════════════
   TRADE REPUBLIC AI — STYLES
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #000000;
  --bg-1:       #06060f;
  --bg-card:    #0d0d1a;
  --bg-card-2:  #111122;
  --border:     rgba(255,255,255,0.07);
  --border-l:   rgba(255,255,255,0.13);
  --text:       #ffffff;
  --text-muted: #5a6070;
  --text-sub:   #8892a0;
  --gold:       #c9a84c;
  --gold-l:     #e0c06a;
  --gold-d:     #a07a20;
  --purple:     #6c3fc4;
  --purple-l:   #9d72ff;
  --blue:       #2563eb;
  --green:      #10b981;
  --radius:     12px;
  --radius-lg:  20px;
  --font:       'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; touch-action: manipulation; }
input, textarea { font-family: var(--font); }

/* iOS: prevent auto-zoom on input focus (requires font-size >= 16px) */
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px !important; }
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 60%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-d), var(--gold), var(--gold-l));
  color: #000;
}
.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text-sub);
}
.btn--ghost:hover { color: var(--text); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-l);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
}

.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }

/* ── Section helpers ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.3);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(201,168,76,0.06);
}
.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Highlight mark ── */
mark {
  background: rgba(201,168,76,0.18);
  color: var(--gold-l);
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 600;
  -webkit-text-fill-color: var(--gold-l);
}

/* ── KEY highlight — главная фишка ── */
.highlight-key {
  display: inline;
  font-weight: 800;
  font-size: 1.15em;
  background: linear-gradient(135deg, #f5d97a 0%, #c9a84c 40%, #ffe9a0 70%, #c9a84c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine-text 3s linear infinite;
  text-shadow: none;
  position: relative;
  letter-spacing: 0.01em;
}
.highlight-key::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
  animation: underline-glow 3s ease-in-out infinite;
}
@keyframes shine-text {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes underline-glow {
  0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
  50%       { opacity: 1;   transform: scaleX(1); }
}

/* ── Scroll animations ── */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-up"]    { transform: translateY(28px); }
[data-animate="fade-right"] { transform: translateX(-28px); }
[data-animate="fade-left"]  { transform: translateX(28px); }
[data-animate].visible { opacity: 1; transform: none; }


/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(18px);
  border-color: var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.logo-ai {
  color: var(--gold);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}
.navbar__links a {
  font-size: 14px;
  color: var(--text-sub);
  transition: color var(--transition);
  font-weight: 500;
}
.navbar__links a:hover { color: var(--text); }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.navbar__burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}


/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
  background-image: url('../index/hero-bg.png');
  background-size: cover;
  background-position: center top;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 0;
}
.hero .container { z-index: 1; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--1 {
  width: 700px; height: 500px;
  background: rgba(201,168,76,0.06);
  top: -50px; left: 50%;
  transform: translateX(-50%);
  animation: glow-drift 8s ease-in-out infinite;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  background: rgba(108,63,196,0.08);
  bottom: 0; right: -100px;
  animation: glow-drift 10s ease-in-out infinite reverse;
}
@keyframes glow-drift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-20px); }
}

/* Two-column hero layout */
.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1160px;
}

.hero__left {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.hero__right {
  flex: 0 0 420px;
  width: 420px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.06);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--green); }
  50% { box-shadow: 0 0 18px var(--green); }
}

.hero__title {
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.hero__title-sub {
  display: block;
  font-size: clamp(18px, 2.4vw, 34px);
  font-weight: 700;
  margin-top: 8px;
  color: rgba(255,255,255,0.9);
}

.hero__subtitle {
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(255,255,255,0.72);
  margin: 20px 0 10px;
  line-height: 1.65;
}

.hero__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  margin-bottom: 28px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* ── Hero registration form card ── */
.hero-form-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 32px 28px;
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5),
              inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}
.hero-form-card__header {
  margin-bottom: 24px;
}
.hero-form-card__header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.hero-form-card__header p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.hero-form-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.hero-form-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ── Collab badge ── */
.collab-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  margin-top: 32px;
}

.collab-badge__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 32px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3),
              inset 0 1px 0 rgba(255,255,255,0.08);
}

.collab-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.collab-icon {
  flex-shrink: 0;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}

.collab-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.collab-logo--tr .collab-brand-name {
  letter-spacing: 0.08em;
  font-size: 13px;
}

.collab-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.collab-x {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  user-select: none;
}

.collab-badge__label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__license {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.license-img {
  max-width: 380px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.license-note {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}


/* ═══════════════════════════════════════════════════
   TRUST BLOCK
═══════════════════════════════════════════════════ */
.trust {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(201,168,76,0.02), transparent);
}

.trust__insurance {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 72px;
  box-shadow: 0 0 0 1px rgba(201,168,76,0.08),
              0 0 48px rgba(201,168,76,0.12),
              inset 0 1px 0 rgba(201,168,76,0.15);
  position: relative;
  overflow: hidden;
}
.trust__insurance::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-l), var(--gold), transparent);
  animation: border-shine 4s ease-in-out infinite;
}
@keyframes border-shine {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
.insurance__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust__insurance h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.trust__insurance p { font-size: 15px; color: var(--text-sub); line-height: 1.65; }

.trust__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(201,168,76,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card__icon--blue  { background: rgba(37,99,235,0.12); color: #60a5fa; border: 1px solid rgba(37,99,235,0.2); }
.feature-card__icon--gold  { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.2); }
.feature-card__icon--green { background: rgba(16,185,129,0.12); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-sub); line-height: 1.65; }


/* ═══════════════════════════════════════════════════
   BAFIN
═══════════════════════════════════════════════════ */
.bafin {
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bafin__glow {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.bafin__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.bafin__text .section-header { text-align: left; margin-bottom: 24px; }
.bafin__text .section-tag { margin-bottom: 12px; }
.bafin__text .section-title { font-size: clamp(24px, 3vw, 38px); }
.bafin__text p {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 14px;
  line-height: 1.7;
}

.bafin__badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.bafin__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
}
.bafin__badge svg { color: var(--gold); flex-shrink: 0; }

.bafin__license { text-align: center; }
.bafin__license-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}


/* ═══════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════ */
.how-it-works { padding: 100px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step {
  position: relative;
  padding: 0 20px;
  text-align: center;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -1px;
  width: 2px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--border-l), transparent);
}

.step__number {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.step__card:hover {
  border-color: rgba(201,168,76,0.2);
  transform: translateY(-4px);
}

.step__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step__card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step__card p { font-size: 14px; color: var(--text-sub); line-height: 1.65; }

.step__arrow {
  display: none;
}


/* ═══════════════════════════════════════════════════
   CALCULATOR
═══════════════════════════════════════════════════ */
.calculator {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(108,63,196,0.03), transparent);
  position: relative;
}
.calculator__glow {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(108,63,196,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.calc-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.calculator__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Inputs side */
.calculator__inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.calc-input-wrap:focus-within { border-color: var(--gold); }

.calc-prefix, .calc-suffix {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  border-right: 1px solid var(--border);
  user-select: none;
}
.calc-suffix { border-right: none; border-left: 1px solid var(--border); }

.calc-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  width: 100%;
}
.calc-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }

.calc-slider {
  width: 100%;
  margin-top: 10px;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--border-l) 0%);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #000;
  box-shadow: 0 0 8px rgba(201,168,76,0.4);
  cursor: pointer;
  transition: transform 0.15s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Month buttons */
.calc-months-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.months-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-l);
  background: var(--bg-card);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.months-btn:hover { border-color: var(--gold); color: var(--gold); }
.months-btn.active {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--gold);
}

/* Result side */
.result-box {
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.result-box__header {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.result-box__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.result-row span { color: var(--text-sub); }
.result-row strong { font-weight: 600; }
.result-row--total {
  padding: 14px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 10px;
  margin: 4px 0;
}
.result-total { font-size: 22px; font-weight: 800; color: var(--gold); }
.result-profit { color: var(--green); font-weight: 700; }

/* Chart canvas */
.calc-chart {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(108,63,196,0.03);
  padding: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
#calc-canvas { width: 100%; display: block; }

.result-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  font-style: italic;
}

.calc-cta { margin-top: 4px; }


/* ═══════════════════════════════════════════════════
   REVIEWS — SCROLLING STRIP
═══════════════════════════════════════════════════ */
.reviews {
  padding: 80px 0;
  overflow: hidden;
}

.reviews__wrapper {
  position: relative;
  margin-top: 48px;
}

.reviews__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.reviews__fade--left  { left: 0;  background: linear-gradient(90deg,  var(--bg), transparent); }
.reviews__fade--right { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.reviews__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: reviews-scroll 48s linear infinite;
}
.reviews__track:hover { animation-play-state: paused; }

@keyframes reviews-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Card ── */
.review-card {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s;
}
.review-card:hover { border-color: rgba(201,168,76,0.25); }

.review-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.review-avatar--photo {
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  opacity: 1 !important;
}

.review-card__meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.review-stars {
  font-size: 13px;
  color: #f59e0b;
  letter-spacing: 1px;
}

.review-card__text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
  flex: 1;
}

.review-card__amounts {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.review-amount {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.amount-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.amount-value {
  font-size: 15px;
  font-weight: 700;
}
.amount-value--in  { color: var(--text-sub); }
.amount-value--out { color: var(--green); }

/* ═══════════════════════════════════════════════════
   NEUROBOT
═══════════════════════════════════════════════════ */
.neurobot { padding: 100px 0; border-top: 1px solid var(--border); }

.neurobot__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Orb visual */
.neurobot__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 360px;
}

.neurobot__orb {
  position: relative;
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
}

.orb__core {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(201,168,76,0.6), rgba(108,63,196,0.4), rgba(0,0,0,0.8));
  box-shadow: 0 0 60px rgba(201,168,76,0.3), 0 0 120px rgba(108,63,196,0.2);
  animation: orb-breathe 4s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(201,168,76,0.3), 0 0 120px rgba(108,63,196,0.2); }
  50% { transform: scale(1.06); box-shadow: 0 0 80px rgba(201,168,76,0.5), 0 0 160px rgba(108,63,196,0.3); }
}

.orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}
.orb__ring--1 { width: 150px; height: 150px; border-color: rgba(201,168,76,0.25); animation: ring-spin 6s linear infinite; }
.orb__ring--2 { width: 190px; height: 190px; border-color: rgba(108,63,196,0.2); animation: ring-spin 10s linear infinite reverse; }
.orb__ring--3 { width: 230px; height: 230px; border-color: rgba(201,168,76,0.1); animation: ring-spin 14s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.orb__pulse {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.3);
  animation: pulse-expand 3s ease-out infinite;
}
@keyframes pulse-expand {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.neurobot__stats-float {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
  right: 0; top: 50%;
  transform: translateY(-50%);
}
.float-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  animation: float-bob 4s ease-in-out infinite;
}
.float-badge--2 { animation-delay: 2s; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.float-dot--green { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Content side */
.neurobot__content .section-tag { display: inline-block; }
.neurobot__content .section-title { font-size: clamp(24px, 3vw, 36px); text-align: left; margin-bottom: 16px; }
.neurobot__content p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 16px;
}

.neurobot__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.neurobot__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}
.neurobot__list svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }


/* ═══════════════════════════════════════════════════
   FORM
═══════════════════════════════════════════════════ */
.form-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(201,168,76,0.02), transparent);
}

.form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-section__text .section-title { font-size: clamp(24px, 3vw, 36px); text-align: left; margin-bottom: 16px; }
.form-section__text p { font-size: 15px; color: var(--text-sub); line-height: 1.7; margin-bottom: 24px; }

.form-trust-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
}
.form-trust-item svg { color: var(--gold); flex-shrink: 0; }

/* Form */
.form-section__form {
  background: var(--bg-card);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-l);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--gold); }
.form-group input::placeholder { color: var(--text-muted); }

.form-error {
  display: block;
  font-size: 12px;
  color: #f87171;
  margin-top: 4px;
  min-height: 16px;
}

.age-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.age-radio {
  cursor: pointer;
}
.age-radio input { display: none; }
.age-radio span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-l);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  transition: var(--transition);
  cursor: pointer;
}
.age-radio input:checked + span {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  color: var(--gold);
}
.age-radio span:hover { border-color: var(--gold); color: var(--gold); }

.form-consent {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.visible { display: block; }
.success-icon { margin-bottom: 16px; }
.form-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--green); }
.form-success p { font-size: 14px; color: var(--text-sub); }


/* ═══════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════ */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-section__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-section__inner .section-tag { margin-bottom: 16px; }
.cta-section__inner h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.cta-section__inner p {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 10px;
  line-height: 1.7;
}
.cta-sub {
  margin-bottom: 36px !important;
  color: var(--text-muted) !important;
  font-size: 14px !important;
}


/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__top {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer__brand { max-width: 300px; }
.footer__brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}
.footer__regulation {
  font-size: 12px;
  color: var(--gold);
  margin-top: 8px !important;
  opacity: 0.8;
}

.footer__links {
  display: flex;
  gap: 40px;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer__col a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p { font-size: 13px; color: var(--text-muted); }
.footer__disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
  font-style: italic;
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

/* ── Tablet landscape ── */
@media (max-width: 1024px) {
  .bafin__inner { grid-template-columns: 1fr; }
  .bafin__license { order: -1; }
  .bafin__license-img { max-width: 480px; margin: 0 auto; }

  .calculator__body { grid-template-columns: 1fr; }

  .neurobot__inner { grid-template-columns: 1fr; }
  .neurobot__visual { height: 260px; order: -1; }

  .form-section__inner { grid-template-columns: 1fr; }

  .trust__features { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet / large phone ── */
@media (max-width: 768px) {

  /* Global spacing */
  .trust, .bafin, .how-it-works, .calculator,
  .reviews, .neurobot, .form-section, .cta-section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  /* Navbar */
  .navbar__links { display: none; }
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.97);
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 20px;
    z-index: 99;
  }
  .navbar__burger { display: flex; }
  .navbar__actions .btn--ghost { display: none; }
  .navbar__actions .btn--primary { font-size: 13px; padding: 9px 16px; }

  /* Hero — stack vertically on tablet */
  .hero { padding: 100px 0 60px; }
  .hero__inner { flex-direction: column; gap: 40px; }
  .hero__left { text-align: left; }
  .hero__right { width: 100%; flex: none; }
  .hero-form-card { padding: 28px 24px; }
  .hero__badge { font-size: 11px; padding: 5px 12px; line-height: 1.5; }
  .hero__title { font-size: clamp(30px, 8vw, 44px); }
  .hero__title-sub { font-size: clamp(18px, 5vw, 26px); }
  .hero__subtitle { font-size: 15px; }
  .hero__cta .btn { justify-content: center; }

  /* Collab badge */
  .collab-badge__logos { padding: 12px 20px; gap: 12px; }
  .collab-brand-name { font-size: 12px; }
  .collab-logo--tr .collab-brand-name { font-size: 11px; }
  .collab-icon { width: 20px; height: 20px; }

  /* Trust */
  .trust__insurance { flex-direction: column; gap: 16px; padding: 24px; }
  .trust__features { grid-template-columns: 1fr; }

  /* BaFin */
  .bafin__text .section-title { font-size: clamp(22px, 5vw, 32px); }
  .bafin__license-img { max-width: 100%; }

  /* Steps */
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step:not(:last-child)::after { display: none; }
  .step__card { text-align: left; }
  .step__icon { margin: 0 0 12px; }

  /* Calculator */
  .calc-field label { font-size: 11px; }
  .calc-months-group { flex-wrap: wrap; gap: 8px; }
  .months-btn { flex: 1 1 calc(33% - 8px); text-align: center; }
  .result-box { padding: 20px; }
  .result-total { font-size: 20px; }

  /* Neurobot */
  .neurobot__content .section-title { font-size: clamp(22px, 5vw, 32px); }
  .neurobot__stats-float { display: none; }

  /* Form */
  .form-section__form { padding: 24px 20px; }
  .age-group { grid-template-columns: repeat(2, 1fr); }

  /* CTA */
  .cta-section__inner h2 { font-size: clamp(26px, 6vw, 40px); }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__brand { max-width: 100%; }
  .footer__links { margin-left: 0; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer__disclaimer { text-align: center; }
}

/* ── Phone ── */
@media (max-width: 480px) {

  /* Global */
  .container { padding: 0 16px; }
  .section-title { font-size: clamp(22px, 6vw, 30px); }
  .section-desc { font-size: 14px; }

  /* Hero */
  .hero { padding: 90px 0 52px; }
  .hero__inner { gap: 28px; }
  .hero__badge { font-size: 10px; border-radius: 10px; }
  .hero__title { font-size: clamp(26px, 8vw, 36px); letter-spacing: -0.01em; }
  .hero__title-sub { font-size: clamp(16px, 5vw, 22px); }
  .hero__subtitle { font-size: 14px; }
  .hero__desc { font-size: 13px; }
  .hero-form-card { padding: 20px 16px; border-radius: 18px; }
  .hero-form-card__header h2 { font-size: 17px; }
  .btn--lg { padding: 13px 20px; font-size: 14px; }

  /* Collab */
  .collab-badge__logos { gap: 10px; padding: 11px 16px; flex-wrap: wrap; justify-content: center; }
  .collab-badge__label { font-size: 10px; }

  /* Insurance */
  .trust__insurance { padding: 20px 16px; }
  .trust__insurance h2 { font-size: 17px; }
  .trust__insurance p { font-size: 13px; }
  .highlight-key { font-size: 1.05em; }
  .insurance__icon { width: 48px; height: 48px; }

  /* Feature cards */
  .feature-card { padding: 20px; }
  .feature-card h3 { font-size: 15px; }

  /* BaFin badges */
  .bafin__badges { gap: 8px; }
  .bafin__badge { font-size: 13px; }

  /* Steps */
  .step__card { padding: 20px; }
  .step__card h3 { font-size: 15px; }
  .step__card p { font-size: 13px; }

  /* Calculator */
  .calc-months-group { gap: 6px; }
  .months-btn { padding: 9px 8px; font-size: 12px; flex: 1 1 calc(50% - 6px); }
  .calc-input-wrap input { font-size: 15px; }
  .price-amount { font-size: 40px; }

  /* Reviews */
  .review-card { width: 260px; padding: 18px; }
  .review-card__text { font-size: 12px; }
  .reviews__fade { width: 60px; }

  /* Neurobot orb */
  .neurobot__orb { width: 140px; height: 140px; }
  .orb__core { width: 84px; height: 84px; }
  .orb__ring--3 { display: none; }
  .neurobot__list li { font-size: 13px; }
  .neurobot__visual { height: 200px; }

  /* Form */
  .form-section__form { padding: 20px 16px; }
  .age-group { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .age-radio span { padding: 9px 6px; font-size: 12px; }

  /* Footer */
  .footer__links { flex-direction: column; }
  .navbar__logo span { font-size: 14px; }
}

/* ── Small phone (iPhone SE, etc.) ── */
@media (max-width: 375px) {
  .hero__title { font-size: 24px; }
  .hero__title-sub { font-size: 15px; }
  .collab-badge__logos { flex-direction: column; gap: 8px; }
  .collab-x { transform: rotate(90deg); }
  .months-btn { padding: 8px 4px; font-size: 11px; }
  .result-total { font-size: 18px; }
  .review-card { width: 240px; }
}

/* ── intl-tel-input: dark theme ─────────────────── */
.iti { width: 100%; display: block; }
.iti__flag-container { z-index: 3; }

/* Room for the separate dial code inside the existing input styling */
.form-group .iti--separate-dial-code input[type="tel"] { padding-left: 88px; }

.iti--separate-dial-code .iti__selected-flag {
  background: rgba(255,255,255,0.06);
  border-radius: 10px 0 0 10px;
}
.iti--separate-dial-code .iti__selected-flag:hover,
.iti--separate-dial-code .iti__selected-flag:focus {
  background: rgba(255,255,255,0.1);
}
.iti--separate-dial-code .iti__selected-dial-code {
  color: var(--text);
  font-size: 15px;
}
.iti__arrow { border-top-color: var(--text-sub); }
.iti__arrow--up { border-bottom-color: var(--text-sub); }

/* ── Country dropdown ──────────────────────────────
   The library sizes this list to its widest country name, which
   overflows the form card and forces horizontal scroll on phones.
   Width is set to the field width by PHONE.init(); the rules below
   are the fallback and the hard cap. */
.iti__country-list {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: calc(100vw - 32px);
  overflow-x: hidden;
  white-space: normal;

  background-color: #14141f;
  border: 1px solid var(--border-l);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  max-height: 260px;
  padding: 4px 0;
  margin: 4px 0 0 0;
}

.iti__country {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.3;
}
.iti__flag-box { flex-shrink: 0; }

/* The country name needs an explicit colour — the library leaves it
   inheriting, which rendered white-on-white against the dark list. */
.iti__country-name {
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.iti__dial-code {
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.iti__country.iti__highlight,
.iti__country:hover { background-color: rgba(201,168,76,0.16); }
.iti__country.iti__active { background-color: rgba(201,168,76,0.10); }
.iti__country.iti__active .iti__country-name { color: var(--gold); }

.iti__divider {
  border-bottom: 1px solid var(--border-l);
  margin: 4px 0;
  padding: 0;
}

/* Scrollbar inside the list */
.iti__country-list::-webkit-scrollbar { width: 8px; }
.iti__country-list::-webkit-scrollbar-track { background: transparent; }
.iti__country-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
}

@media (max-width: 480px) {
  .iti__country-list { max-height: 220px; }
  .iti__country { padding: 10px 12px; }
}

/* ── Mobile: fullscreen country picker ─────────────
   Enabled by PHONE.init() adding `iti-mobile` to <body> and attaching
   the dropdown to document.body. Replaces the cramped inline list with
   a centred overlay — the normal phone pattern. */
.iti-mobile .iti--container {
  position: fixed;
  top: 24px;
  bottom: 24px;
  left: 16px;
  right: 16px;
  z-index: 1000;
}

/* Dim the page behind the picker so it reads as a modal */
.iti-mobile .iti--container::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: -1;
}

.iti-mobile .iti__country-list {
  width: 100%;
  max-width: none;
  max-height: 100%;
  border-radius: 14px;
  padding: 6px 0;
  margin: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  -webkit-overflow-scrolling: touch;
}

/* Bigger touch targets */
.iti-mobile .iti__country {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.4;
}

/* When the list is attached to body on desktop-width devices, the library
   positions it inline-styled; keep the dark theme applied there too. */
.iti--container .iti__country-list {
  background-color: #14141f;
  border: 1px solid var(--border-l);
}
