/* ============================================
   Velara — Premium Fintech Landing
   ============================================ */

:root {
  --bg: #000000;
  --bg-elevated: #111010;
  --border: #222323;
  --border-soft: rgba(255, 255, 255, 0.1);
  --text: #fffffe;
  --text-muted: #767677;
  --text-dim: rgba(255, 255, 255, 0.4);
  --accent: #a955f6;
  --accent-soft: rgba(169, 85, 246, 0.2);
  --accent-border: rgba(169, 85, 246, 0.3);
  --danger: #df2810;
  --gold: #ffdf01;
  --green: #22c55e;

  --font: "Inter", system-ui, sans-serif;
  --container: 1350px;
  --pad-x: 24px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

@media (min-width: 768px) {
  :root { --pad-x: 60px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--light {
  background: var(--text);
  color: var(--bg-elevated);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.btn--light:hover {
  background: #f4f5f5;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--full {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.nav-desktop {
  display: none;
  gap: 28px;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--text);
}

.header__actions {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (min-width: 900px) {
  .nav-desktop,
  .header__actions {
    display: flex;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px var(--pad-x) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  font-weight: 600;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .nav-mobile { display: none !important; }
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-title--md {
  font-size: clamp(32px, 4vw, 44px);
  max-width: 16ch;
}

.section-lead {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 48ch;
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section {
  padding-block: clamp(72px, 10vw, 110px);
  position: relative;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(80px, 14vw, 140px) 0 clamp(72px, 10vw, 110px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: rgba(169, 85, 246, 0.08);
  filter: blur(120px);
  pointer-events: none;
}

.hero__glow--a { top: -10%; left: -5%; }
.hero__glow--b { bottom: -15%; right: -5%; background: rgba(255, 255, 255, 0.05); }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

.hero__title {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero__lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.hero-stat__value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.hero-stat__label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Features (Velara Features03) ---------- */

.features {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  background: var(--bg);
}

.features__glow {
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(120px);
  pointer-events: none;
}

.features__glow--a { top: -10%; left: -10%; }
.features__glow--b { bottom: -10%; right: -10%; }

.features__row {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

@media (min-width: 1024px) {
  .features__row {
    flex-direction: row;
    gap: 80px;
    align-items: center;
  }
}

.features__map {
  width: 100%;
}

@media (min-width: 1024px) {
  .features__map { width: 55%; }
  .features__copy { width: 45%; }
}

.map-stage {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .map-stage { padding: 48px; }
}

.map-stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
}

.map-pin {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 4px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

.map-pin--1 { top: 20%; right: 12%; }
.map-pin--2 { bottom: 25%; right: 30%; }

.map-pin__flag {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.map-pin__flag--cn {
  background: var(--danger);
  color: var(--gold);
  font-size: 14px;
}

.map-pin__flag--pe span {
  flex: 1;
  height: 100%;
}

.map-pin__flag--pe span:nth-child(1),
.map-pin__flag--pe span:nth-child(3) {
  background: #d81022;
}

.map-pin__flag--pe span:nth-child(2) {
  background: #fff;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 30;
}

.glass-card--primary {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  width: min(300px, calc(100% - 48px));
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .glass-card--primary { left: 48px; }
}

.glass-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.glass-card__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.glass-card__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.glass-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 24px;
}

.transfer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.transfer-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.transfer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.transfer-avatar--us {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  border-color: transparent;
  outline: 2px solid var(--border-soft);
  outline-offset: 2px;
}

.transfer-avatar--cn {
  background: var(--danger);
  color: var(--gold);
  font-size: 8px;
  border-color: transparent;
  outline: 2px solid var(--border-soft);
  outline-offset: 2px;
}

.transfer-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.transfer-path {
  flex: 1;
  padding: 0 16px;
  position: relative;
}

.transfer-path__line {
  display: block;
  width: 100%;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.transfer-path__arrow {
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 12px;
  color: var(--accent);
  animation: transfer-slide 4s ease-in-out infinite;
}

.glass-card__muted {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.glass-card__amount {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-top: 4px;
}

.glass-card__secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}

.pulse-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pulse-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}

.glass-card--rate {
  display: none;
  position: absolute;
  bottom: 32px;
  right: 48px;
  width: 220px;
  border-radius: 16px;
  padding: 16px;
}

@media (min-width: 1280px) {
  .glass-card--rate { display: block; }
}

.rate-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
}

.rate-card__up {
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
}

.rate-card__value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.rate-card__bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}

.rate-card__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width 1.5s var(--ease);
}

.rate-card__fill.is-on {
  width: 70%;
}

.features__copy .section-title {
  margin-bottom: 24px;
}

.features__copy .section-lead {
  margin-top: 0;
  margin-bottom: 32px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.check-list svg {
  flex-shrink: 0;
}

.check-list span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Benefits ---------- */

.benefits {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.benefits__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

.benefit {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.benefit__index {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.benefit__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.benefit__text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 32ch;
}

/* ---------- Rates ---------- */

.rates {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rates__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .rates__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.rates__table {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.rates__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 12px;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.rates__row--head {
  border-top: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.rates__row .up { color: var(--accent); }
.rates__row .down { color: #f87171; }

/* ---------- Voices ---------- */

.voices {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050505;
}

.voices__stage {
  max-width: 820px;
  position: relative;
  min-height: 220px;
}

.voice {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease), visibility 0.5s;
}

.voice.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.voice p {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.voice footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice cite {
  font-style: normal;
  font-weight: 700;
}

.voice span {
  font-size: 14px;
  color: var(--text-muted);
}

.voices__dots {
  display: flex;
  gap: 8px;
  margin-top: 36px;
}

.voice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, transform 0.25s ease;
}

.voice-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(169, 85, 246, 0.12), transparent 55%),
    #000;
}

.contact__grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
}

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fffffe' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 28px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form-status {
  font-size: 14px;
  color: var(--accent);
}

.form-status.is-error {
  color: #f87171;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
}

.footer__inner {
  display: grid;
  gap: 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer__nav {
    justify-content: center;
  }
}
