/* SwaptIQ — shared site theme
   Palette pulled from Swaptiq/Views/BrandTheme.swift:
   ink #0E1116, green #00E676, cyan #2EA6FF */

:root {
  --ink: #0e1116;
  --ink-2: #141920;
  --ink-3: #1b212a;
  --line: #262d38;
  --text: #eef1f5;
  --text-dim: #9aa4b2;
  --green: #00e676;
  --cyan: #2ea6ff;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand img {
  height: 26px;
  width: auto;
  display: block;
}

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

.nav-links a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-links a.cta {
  color: var(--ink);
  background: linear-gradient(90deg, var(--green), var(--cyan));
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-links a.cta:hover { opacity: .9; text-decoration: none; }

.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
  background-image:
    radial-gradient(60% 60% at 50% 0%, rgba(0,230,118,0.10) 0%, rgba(0,230,118,0) 70%),
    url("aurora-dark.webp");
  background-size: cover;
  background-position: top center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0,230,118,0.35);
  background: rgba(0,230,118,0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero p.sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: var(--ink);
}
.btn-primary:hover { text-decoration: none; opacity: .92; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover { text-decoration: none; border-color: var(--cyan); }

.hero-note {
  color: var(--text-dim);
  font-size: 14px;
}

/* Sections */
section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0,230,118,0.18), rgba(46,166,255,0.18));
  border: 1px solid rgba(0,230,118,0.25);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* How it works / steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(90deg, var(--green), var(--cyan));
  margin-bottom: 16px;
}

.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* Trust band */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.trust .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.trust-item {
  color: var(--text-dim);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item strong { color: var(--text); }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 16px;
  font-weight: 800;
}

.cta-band p { color: var(--text-dim); margin: 0 0 32px; }

/* Legal / content pages */
.content-page .hero {
  padding: 64px 0 40px;
  background-image: none;
  text-align: left;
}

.content-page .hero .wrap { max-width: 780px; }

.content-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.legal .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 40px 0 14px;
  font-weight: 700;
}

.legal h2:first-of-type { margin-top: 0; }

.legal h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.legal p, .legal li {
  color: #c4cbd4;
  font-size: 15.5px;
}

.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

.legal a { color: var(--cyan); }

.callout {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: #c4cbd4;
}

/* Support page */
.faq-item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 14px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.faq-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

.contact-card {
  background: linear-gradient(135deg, rgba(0,230,118,0.10), rgba(46,166,255,0.10));
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}

.contact-card h2 { margin: 0 0 10px; }
.contact-card p { color: var(--text-dim); margin: 0 0 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-brand img { height: 18px; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 14px;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  text-align: center;
  color: #5c6472;
  font-size: 13px;
  margin-top: 24px;
}

/* Mobile */
@media (max-width: 820px) {
  .grid-3, .steps, .grid-2 { grid-template-columns: 1fr; }

  .nav-links { display: none; }

  .site-footer .wrap { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
