/* ЭРА — лендинг. Токены из дизайн-канваса кошелька:
   фон #07090F, текст #F5F6F8, бирюза #3EE0D2, синий #6FA8FF. */

:root {
  --bg: #07090f;
  --ink: #f5f6f8;
  --dim: rgba(245, 246, 248, 0.68);
  --mute: rgba(245, 246, 248, 0.45);
  --hair: rgba(245, 246, 248, 0.09);
  --accent: #3ee0d2;
  --blue: #6fa8ff;
  --surface: rgba(255, 255, 255, 0.035);
  --grad: linear-gradient(100deg, #6fa8ff 0%, #3ee0d2 100%);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.num { font-variant-numeric: tabular-nums; }

/* --- живой фон --- */
#flow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 2; }

/* --- навигация --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.85), rgba(7, 9, 15, 0));
  backdrop-filter: blur(2px);
}

.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}
.wordmark.sm { font-size: 17px; }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* --- кнопки --- */
.btn {
  display: inline-block;
  border-radius: 14px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: 12px; }
.btn-accent {
  background: var(--accent);
  color: #06231f;
  box-shadow: 0 6px 28px rgba(62, 224, 210, 0.28);
}
.btn-accent:hover { box-shadow: 0 8px 36px rgba(62, 224, 210, 0.45); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--hair);
  background: var(--surface);
}
.btn-ghost:hover { border-color: rgba(245, 246, 248, 0.25); }
.btn-dark {
  background: #07090f;
  color: var(--ink);
}
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* --- hero --- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: 120px clamp(20px, 6vw, 84px) 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: 17px;
  color: var(--dim);
}

.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.stat b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; display: block; }
.stat span { font-size: 12.5px; color: var(--mute); }
.hair { width: 1px; height: 34px; background: var(--hair); }

/* hero visual */
.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: min(300px, 72vw);
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03) 40%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 120px rgba(62, 224, 210, 0.10);
  transform-style: preserve-3d;
  will-change: transform;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 34px;
}

.float-card {
  position: absolute;
  left: -6%;
  bottom: 14%;
  width: 268px;
  border-radius: 20px;
  padding: 15px 17px 13px;
  color: #f2fbfa;
  background: url("assets/era-card-bg.png") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.fc-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: rgba(242, 251, 250, 0.62);
}
.fc-amount {
  margin-top: 11px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fc-dec { font-size: 15px; font-weight: 700; color: rgba(242, 251, 250, 0.62); }
.fc-bottom { margin-top: 11px; font-size: 11px; }

.float-icon {
  position: absolute;
  will-change: transform;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
}
.fi-usdt { width: 108px; top: 6%; right: 2%; }
.fi-travel { width: 92px; bottom: 4%; right: 10%; }

/* --- секции --- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) clamp(20px, 5vw, 64px);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2, .security-copy h2, .cta-band h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.section-head p { margin-top: 14px; color: var(--dim); font-size: 16.5px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  border-radius: 22px;
  padding: 28px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--hair);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 224, 210, 0.32);
  background: rgba(255, 255, 255, 0.05);
}
.card img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 16px; }
.card h3 { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--dim); }

/* --- шаги --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.step {
  border-radius: 22px;
  padding: 28px 26px;
  border: 1px solid var(--hair);
  background: var(--surface);
}
.step-n {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; font-weight: 750; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--dim); }

/* --- безопасность --- */
.security {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  border-radius: 28px;
  border: 1px solid var(--hair);
  background: var(--surface);
  padding: clamp(28px, 5vw, 56px);
}
.security-copy ul { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.security-copy li {
  padding-left: 26px;
  position: relative;
  color: var(--dim);
  font-size: 15px;
}
.security-copy li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grad);
}
.security-copy li b { color: var(--ink); }
.security-visual { display: flex; justify-content: center; }
.security-visual img {
  width: min(280px, 60vw);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.5));
}

/* --- CTA --- */
.cta-band {
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: #f2fbfa;
  background: url("assets/era-card-bg.png") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(10, 88, 120, 0.35);
}
.cta-band p {
  margin: 14px auto 30px;
  max-width: 480px;
  color: rgba(242, 251, 250, 0.75);
}

/* --- footer --- */
.footer { border-top: 1px solid var(--hair); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-note { font-size: 12.5px; color: var(--mute); flex: 1; min-width: 240px; }
.footer-copy { font-size: 12.5px; color: var(--mute); }

/* --- reveal (управляется GSAP) --- */
.reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
}

/* --- мобильная раскладка --- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav > .btn { margin-left: auto; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 104px;
    text-align: left;
  }
  .hero-visual { min-height: 480px; margin-top: 10px; }
  .float-card { left: 0; bottom: 6%; }
  .fi-usdt { width: 84px; top: 0; right: 0; }
  .fi-travel { display: none; }
  .security { grid-template-columns: 1fr; }
  .security-visual { order: -1; }
}
