/* Pearl website — dark iridescent theme, no dependencies */

:root {
  --bg: #06090f;
  --bg-alt: #0a0f18;
  --card: #0d1420;
  --card-border: rgba(148, 197, 255, 0.12);
  --text: #e8eef7;
  --muted: #93a1b8;
  --accent: #6fd3ff;
  --accent-2: #c9a7ff;
  --accent-3: #7dffd4;
  --gradient: linear-gradient(120deg, #6fd3ff, #c9a7ff 55%, #7dffd4);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }

a { color: var(--accent); }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(111, 211, 255, 0.1); padding: 0.15em 0.4em; border-radius: 6px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 44rem; }
.section-lede { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 46rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background: var(--gradient);
  color: #04121a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(111, 211, 255, 0.35); }
.btn-ghost {
  border-color: var(--card-border);
  color: var(--text);
  background: rgba(13, 20, 32, 0.6);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { font-size: 1.5rem; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 550; }
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero */
.hero { position: relative; padding: 6rem 0 5rem; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 15% 10%, rgba(111, 211, 255, 0.16), transparent 60%),
    radial-gradient(700px 380px at 85% 25%, rgba(201, 167, 255, 0.14), transparent 60%),
    radial-gradient(500px 300px at 50% 100%, rgba(125, 255, 212, 0.08), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 3rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.stat-value { font-weight: 700; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card { min-width: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(111, 211, 255, 0.35); }
.card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.card p { color: var(--muted); overflow-wrap: anywhere; }
.card-links { display: flex; gap: 1rem; margin-top: 0.5rem; }
.card-links a, .card > a { font-weight: 650; text-decoration: none; }
.card-links a:hover, .card > a:hover { text-decoration: underline; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.steps { padding-left: 1.25rem; color: var(--muted); }
.steps li { margin-bottom: 0.75rem; }
.steps strong { color: var(--text); }

.code-card {
  min-width: 0;
  background: #04070c;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--card-border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3648; }
.code-title { margin-left: 0.5rem; font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }
.code-card pre { margin: 0; padding: 1.25rem; overflow-x: auto; }
.code-card code { background: none; padding: 0; color: #c8d6ea; font-size: 0.85rem; }

/* Donate */
.donate-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.address-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.25rem 0 0.5rem;
}
.address {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: #04070c;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  word-break: break-all;
  max-width: 100%;
  color: var(--accent-3);
}
.social-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* Footer */
.footer { border-top: 1px solid var(--card-border); padding: 2.5rem 0 2rem; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 550; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--card-border); }
.address-inline { word-break: break-all; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.5rem;
    gap: 0.9rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav .btn-small { display: none; }
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gradient);
  color: #04121c;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  vertical-align: middle;
}

/* Keyboard focus: a visible ring in this app's accent on every interactive element (fleet focus-visible pass). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Skip link: the first Tab stop on the page — parked off-screen until keyboard focus reveals it (fleet skip-link pass). */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 1000; padding: 10px 16px; border: 2px solid var(--accent); border-radius: 8px; background: #0b0e14; color: var(--accent); font-weight: 700; text-decoration: none; transition: top .15s ease; }
.skip-link:focus-visible { top: 12px; }
main:focus { outline: none; }

/* Reduced motion: when the OS asks for reduced motion, animations and transitions finish near-instantly and scrolling is not smoothed (fleet reduced-motion pass). Near-zero durations — not animation: none — so fade-ins still land on their end state and no content can be stranded invisible. Extends this page's targeted reduced-motion rules above. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
