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

:root {
  --bg: #080808;
  --bg2: #0d0d0d;
  --card: #111111;
  --card2: #161616;
  --accent: #00d084;
  --accent-dim: rgba(0, 208, 132, 0.1);
  --accent-border: rgba(0, 208, 132, 0.22);
  --text: #f0f0f0;
  --text2: #8a8a8a;
  --text3: #4a4a4a;
  --border: #1c1c1c;
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.8; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text2); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-wa {
  background: var(--accent); color: #000 !important;
  padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  transition: opacity .2s, transform .2s;
}
.nav-wa:hover { opacity: .88 !important; transform: translateY(-1px); }

/* ─── HERO ─── */
#hero {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,208,132,.055) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-content { max-width: 680px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  color: var(--accent); padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 500; margin-bottom: 28px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.4; transform:scale(.75); }
}
.hero-title {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -2.5px; margin-bottom: 20px;
}
.hero-title .green { color: var(--accent); }
.hero-sub {
  font-size: 17px; color: var(--text2);
  margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #000;
  font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 10px;
  transition: transform .2s, opacity .2s;
}
.hero-cta:hover { opacity: .9 !important; transform: translateY(-2px); }
.hero-cta svg { width: 20px; height: 20px; }

/* ─── CALCULATOR ─── */
#calculator {
  padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center;
}
.section-label {
  color: var(--accent); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
  text-align: center;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; letter-spacing: -1px;
  text-align: center; margin-bottom: 48px;
}
.calc-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  width: 100%; max-width: 500px;
}
.rates-display {
  display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap;
}
.rate-item {
  flex: 1; min-width: 130px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; text-align: center;
}
.rate-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.rate-value { font-size: 20px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

.rate-status {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 12px; color: var(--text3); margin-bottom: 24px;
}
.rate-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; animation: blink 2s infinite; }
.rate-dot.offline { background: #ef4444; animation: none; }

.calc-inputs { display: flex; flex-direction: column; gap: 12px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; }
.input-wrapper { position: relative; }
.input-wrapper input {
  width: 100%; background: var(--card2); border: 1px solid var(--border);
  color: var(--text); font-size: 24px; font-weight: 600;
  padding: 14px 72px 14px 16px; border-radius: 10px;
  outline: none; transition: border-color .2s;
  font-variant-numeric: tabular-nums;
}
.input-wrapper input:focus { border-color: var(--accent-border); }
.input-currency {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 700; color: var(--text3);
}

.swap-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--card2); border: 1px solid var(--border);
  color: var(--accent); width: 42px; height: 42px; border-radius: 50%;
  margin: 0 auto; cursor: pointer;
  transition: background .2s, transform .3s;
}
.swap-btn:hover { background: var(--accent-dim); transform: rotate(180deg); }
.swap-btn svg { width: 18px; height: 18px; }

.calc-commission {
  margin-top: 20px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text2);
}
.calc-commission input[type=range] { flex: 1; accent-color: var(--accent); }
.commission-val { color: var(--accent); font-weight: 700; min-width: 36px; text-align: right; }

.effective-rate {
  margin-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: 10px; font-size: 14px; color: var(--text2);
}
.effective-rate span:last-child { font-weight: 700; color: var(--accent); font-size: 15px; }

.rate-disclaimer {
  margin-top: 12px; font-size: 12px; color: var(--text3); text-align: center; line-height: 1.5;
}
.rate-disclaimer a { color: var(--text3); text-decoration: underline; }
.rate-disclaimer a:hover { color: var(--accent); opacity: 1; }

/* ─── CURRENCIES ─── */
#currencies { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.section-sub { font-size: 15px; color: var(--text2); margin-top: -28px; margin-bottom: 48px; line-height: 1.6; }

.currency-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.currency-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 20px;
  transition: border-color .2s, transform .2s;
}
.currency-card:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.currency-card--cta { border-color: var(--accent-border); background: var(--accent-dim); }
.currency-pair {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px;
}
.currency-pair span { color: var(--accent); }
.currency-note { font-size: 13px; color: var(--text2); }
.currency-note a { color: var(--accent); }

/* ─── FEATURES ─── */
#features { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 48px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.feature-icon {
  width: 46px; height: 46px; background: var(--accent-dim);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text2); line-height: 1.55; }

/* ─── HOW TO ─── */
#howto {
  padding: 80px 24px;
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.howto-inner { max-width: 780px; margin: 0 auto; }
.steps { display: flex; flex-direction: column; margin-top: 48px; }
.step { display: flex; gap: 24px; padding-bottom: 40px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step-line {
  position: absolute; left: 21px; top: 44px; bottom: 0;
  width: 1px; background: var(--border);
}
.step:last-child .step-line { display: none; }
.step-num {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--accent); color: #000;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; position: relative; z-index: 1;
}
.step-content { padding-top: 8px; }
.step-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.step-desc { font-size: 14px; color: var(--text2); }

/* ─── CONTACT ─── */
#contact { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px;
}
.contact-icon {
  width: 42px; height: 42px; background: var(--accent-dim);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-detail-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.contact-detail-value { font-size: 15px; font-weight: 500; color: var(--text); }
.contact-detail-value a { color: var(--text); }
.contact-detail-value a:hover { color: var(--accent); opacity: 1; }
.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: #fff !important;
  font-weight: 700; font-size: 16px;
  padding: 16px 24px; border-radius: 12px; margin-top: 4px;
  transition: opacity .2s, transform .2s;
}
.wa-btn:hover { opacity: .9 !important; transform: translateY(-2px); }
.map-container {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); min-height: 340px;
}
.map-container iframe {
  width: 100%; height: 100%; min-height: 340px; border: none;
  filter: invert(92%) hue-rotate(180deg) saturate(0.9);
}

/* ─── FAQ ─── */
#faq { padding: 80px 24px; max-width: 780px; margin: 0 auto; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--accent-border); }
.faq-q { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.faq-a { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 36px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-logo { font-size: 17px; font-weight: 800; color: var(--text); }
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text3); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text3); transition: color .2s; }
.footer-links a:hover { color: var(--text); opacity: 1; }

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 560px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  z-index: 999; box-shadow: 0 24px 64px rgba(0,0,0,.6);
  flex-wrap: wrap;
}
#cookie-banner p { flex: 1; font-size: 13px; color: var(--text2); min-width: 200px; }
#cookie-banner a { color: var(--accent); }
.cookie-accept {
  background: var(--accent); color: #000;
  font-weight: 700; font-size: 13px;
  padding: 8px 22px; border-radius: 8px; border: none;
  cursor: pointer; transition: opacity .2s; white-space: nowrap;
}
.cookie-accept:hover { opacity: .85; }

/* ─── LEGAL PAGES ─── */
.legal-page { max-width: 720px; margin: 60px auto; padding: 0 24px 80px; }
.legal-page h1 { font-size: 32px; font-weight: 700; letter-spacing: -1px; margin-bottom: 32px; }
.legal-page h2 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; color: var(--text); }
.legal-page p, .legal-page li { font-size: 15px; color: var(--text2); line-height: 1.7; }
.legal-page ul { padding-left: 20px; margin: 8px 0; }
.legal-page li { margin-bottom: 4px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; margin-bottom: 32px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .calc-card { padding: 24px 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-title { letter-spacing: -1.5px; }
}
