:root {
  --bg: #0b0f12;
  --bg-2: #10171b;
  --surface: #151e23;
  --surface-2: #1b272d;
  --line: #27363d;
  --line-2: #38505a;
  --text: #eef6f3;
  --muted: #92a7a8;
  --faint: #64797b;
  --primary: #27d6b3;
  --primary-soft: rgba(39, 214, 179, 0.12);
  --blue: #4da3ff;
  --amber: #f2b84b;
  --green: #63df82;
  --red: #ff647c;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(39, 214, 179, 0.04), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 18, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.ticker {
  height: 32px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}

.ticker span {
  white-space: nowrap;
}

.ticker strong {
  color: var(--text);
  font-weight: 700;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.nav {
  max-width: 1180px;
  height: 62px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #07100e;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(39, 214, 179, 0.25);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.btn-primary {
  background: var(--primary);
  color: #06110f;
  box-shadow: 0 12px 30px rgba(39, 214, 179, 0.24);
}

.btn-primary:hover {
  background: #53e7ca;
}

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 28px 76px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 6px 12px;
  border: 1px solid rgba(39, 214, 179, 0.24);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  max-width: 640px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 16px;
}

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

.terminal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d1316;
  box-shadow: var(--shadow);
}

.terminal-top {
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-2);
}

.dashboard {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.metric {
  min-height: 90px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.metric .label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.metric .value {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
}

.chart-panel {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    var(--surface);
  background-size: 100% 48px, 54px 100%, auto;
  padding: 18px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-family: var(--mono);
}

.chart-head strong {
  font-size: 14px;
}

.chart-head span {
  font-size: 12px;
  color: var(--green);
}

.market-svg {
  width: 100%;
  height: 170px;
  display: block;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 28px;
}

.section.compact {
  padding-top: 0;
}

.section-head {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-head h2::before {
  content: attr(data-num);
  margin-right: 10px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 12px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.tabs {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.tab {
  min-height: 34px;
  padding: 8px 13px;
  border: 0;
  border-right: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tab:last-child {
  border-right: 0;
}

.tab.active {
  background: var(--primary);
  color: #06110f;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 930px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

th {
  background: rgba(0, 0, 0, 0.18);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: rgba(39, 214, 179, 0.035);
}

.rank {
  color: var(--primary);
  font-family: var(--mono);
  font-weight: 800;
}

.provider {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.provider-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #06110f;
  background: var(--primary);
  font-family: var(--mono);
  font-weight: 900;
}

.mono {
  font-family: var(--mono);
}

.muted {
  color: var(--muted);
}

.spark {
  width: 92px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}

.features,
.about-stats,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature,
.stat,
.service-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
}

.feature:hover,
.service-card:hover {
  border-color: rgba(39, 214, 179, 0.42);
}

.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border: 1px solid rgba(39, 214, 179, 0.2);
  color: var(--primary);
}

.feature h3,
.service-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p,
.service-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.markets-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.market-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}

.rates-list {
  display: grid;
  gap: 10px;
}

.rate-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.rate-card strong,
.rate-card span {
  font-family: var(--mono);
}

.rate-card small {
  display: block;
  color: var(--faint);
  font-size: 11px;
}

.about-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 78px 28px 42px;
  text-align: center;
}

.about-hero h1,
.legal h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.about-hero p,
.legal .lead {
  margin: 0 auto;
  color: var(--muted);
  max-width: 690px;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: 26px;
}

.stat span {
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.timeline-item {
  border-left: 3px solid var(--primary);
}

.timeline-item .year {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: 76px 28px 100px;
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 20px;
}

.legal h2::before {
  content: attr(data-n);
  margin-right: 10px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 11px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 14px;
}

.legal ul {
  padding-left: 20px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #070b0d;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 28px 26px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.footer p,
.footer a,
.footer li {
  color: var(--muted);
  font-size: 13px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.notice {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: rgba(39, 214, 179, 0.035);
}

.notice div {
  max-width: 1180px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 8, 0.86);
  backdrop-filter: blur(10px);
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}

.modal-card h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.modal-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 26px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  padding: 11px 12px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.success {
  display: none;
  text-align: center;
  padding: 20px 8px 4px;
}

.success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #06110f;
  font-size: 30px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero,
  .market-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .metric-grid,
  .features,
  .service-grid,
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .ticker,
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav,
  .section,
  .hero,
  .about-hero,
  .legal {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .metric-grid,
  .features,
  .service-grid,
  .about-stats,
  .timeline,
  .footer-inner,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-head h2 {
    font-size: 23px;
  }
}
