:root {
  --bg: #0a0d12;
  --bg-elevated: #121820;
  --bg-card: #161d28;
  --border: #2a3444;
  --text: #e8ecf4;
  --muted: #8b97ab;
  --accent: #4c85ff;
  --accent-soft: rgba(76, 133, 255, 0.14);
  --buy: #24c484;
  --buy-soft: rgba(36, 196, 132, 0.14);
  --warn: #ff7c48;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: Consolas, "SF Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 18, 0.82);
  border-bottom: 1px solid rgba(42, 52, 68, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #2f5fd1);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--buy), #1ea86d);
  color: #04140d;
  box-shadow: 0 10px 30px rgba(36, 196, 132, 0.25);
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(76, 133, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-preview {
  background: linear-gradient(180deg, #121820 0%, #0d1118 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 13px;
  color: var(--muted);
}

.panel-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--buy-soft);
  color: var(--buy);
}

.panel-screen {
  border-radius: 12px;
  background: #0e1218;
  border: 1px solid #243041;
  padding: 16px;
  min-height: 360px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  background: #141b25;
  border: 1px solid #243041;
  border-radius: 10px;
  padding: 10px;
}

.metric-label {
  font-size: 11px;
  color: var(--muted);
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.panel-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.panel-btn {
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-weight: 700;
}

.panel-btn.buy {
  background: rgba(36, 196, 132, 0.18);
  color: var(--buy);
  border: 1px solid rgba(36, 196, 132, 0.35);
}

.panel-btn.sell {
  background: rgba(255, 99, 110, 0.16);
  color: #ff6370;
  border: 1px solid rgba(255, 99, 110, 0.35);
}

.panel-list {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.panel-list strong {
  color: var(--text);
}

section {
  padding: 72px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.features-grid,
.steps-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.step-card,
.price-card,
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card h3,
.step-card h3,
.price-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p,
.step-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.steps-grid {
  grid-template-columns: repeat(4, 1fr);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.price-card.featured {
  border-color: rgba(36, 196, 132, 0.45);
  box-shadow: 0 0 0 1px rgba(36, 196, 132, 0.12), var(--shadow);
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card .plan-buy-btn,
.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.plan-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.plan-desc {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.price-tag {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0;
}

.price-tag small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-picker {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0;
  display: grid;
  gap: 8px;
}

.plan-picker legend {
  padding: 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d131c;
  cursor: pointer;
}

.plan-option:has(input:checked) {
  border-color: rgba(36, 196, 132, 0.55);
  background: rgba(36, 196, 132, 0.08);
}

.plan-option input {
  margin: 0;
  width: auto;
  flex-shrink: 0;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

.plan-option span {
  color: var(--text);
  font-size: 14px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 10px;
}

.price-list li {
  color: var(--muted);
  font-size: 14px;
}

.price-list li::before {
  content: "✓";
  color: var(--buy);
  margin-right: 8px;
}

.crypto-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.crypto-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #101722;
  border: 1px solid var(--border);
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.cta-band {
  margin: 0 0 72px;
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(76, 133, 255, 0.12), rgba(36, 196, 132, 0.08));
  border: 1px solid rgba(76, 133, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 0 0 8px;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal h3 {
  margin: 0 0 8px;
}

.modal p {
  color: var(--muted);
  margin: 0 0 18px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: #0d1219;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.wallet-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wallet-row code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #0d1219;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.notice {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .pricing-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .features-grid,
  .steps-grid,
  .pricing-grid,
  .pricing-grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}
