/* Mermaid landing — theme from mermaid_app/docs/DESIGN_SYSTEM.md (AppColors) */
:root {
  --bg: #060e1a;
  --surface: #0f1e2e;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
  --teal: #00c4b4;
  --teal-dark: #009e92;
  --gold: #f5a623;
  --ocean: #4da8da;
  --white: #f0f4f8;
  --muted: #7a8fa6;
  --navy: #0a1628;
  --navy-light: #0d1e35;
  --radius-16: 16px;
  --radius-12: 12px;
  --radius-20: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.55;
}

h1, h2, h3, .wordmark, strong { font-family: 'Syne', sans-serif; }

/* ---- AIS map background ---- */
#ais-map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.map-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(6, 14, 26, 0) 0%, rgba(6, 14, 26, 0.55) 60%, rgba(6, 14, 26, 0.92) 100%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.35) 0%, rgba(6, 14, 26, 0.12) 30%, rgba(6, 14, 26, 0.12) 70%, rgba(6, 14, 26, 0.9) 100%);
}

/* ---- Top bar ---- */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--white);
  text-decoration: none;
}

.logo { width: auto; height: 58px; display: block; }

.topbar nav { display: flex; gap: 28px; }

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar nav a:hover { color: var(--teal); }

/* ---- Sections ---- */
main { position: relative; z-index: 2; }

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 32px;
}

.section h2 {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  color: var(--white);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 12px 0 48px;
  font-size: 16px;
}

/* ---- Hero ---- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 84px);
}

.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
}

.hero h1 .accent { color: var(--teal); }

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  margin: 24px 0 36px;
  max-width: 480px;
}

.hero-note { color: var(--muted); font-size: 13px; margin-top: 18px; }

.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-art img {
  width: min(380px, 100%);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 196, 180, 0.18));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
}

/* ---- Store buttons ---- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-12);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.store-btn:hover {
  border-color: rgba(0, 196, 180, 0.5);
  box-shadow: 0 0 24px rgba(0, 196, 180, 0.18);
  transform: translateY(-2px);
}

.store-icon { width: 30px; height: 30px; }

.store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }

.store-text small { color: var(--muted); font-size: 11px; font-family: 'DM Sans', sans-serif; }

.store-text strong { font-size: 16px; font-weight: 700; color: var(--white); }

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-16);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(0, 196, 180, 0.35);
  transform: translateY(-4px);
}

.feature-card svg { width: 36px; height: 36px; margin-bottom: 18px; }

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--white); }

.feature-card p { color: var(--muted); font-size: 14px; }

/* ---- Why band ---- */
.band {
  background: linear-gradient(135deg, rgba(0, 196, 180, 0.07), rgba(10, 22, 40, 0.6));
  border-radius: var(--radius-16);
  border: 1px solid rgba(0, 196, 180, 0.15);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin-top: 48px;
}

.pillar strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}

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

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--card-border);
  padding: 28px 32px;
  text-align: center;
}

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

footer a { color: var(--teal); text-decoration: none; }

footer a:hover { text-decoration: underline; }

/* ---- Toast ---- */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--white);
  border: 1px solid rgba(0, 196, 180, 0.35);
  border-radius: var(--radius-20);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 10;
  white-space: nowrap;
}

#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding-top: 40px;
  }

  /* Headline → phone image → subtext + buttons: the image stays in view
     without scrolling past the store buttons. */
  .hero-copy { display: contents; }

  .hero-head { order: 0; }

  .hero-art { order: 1; }

  .hero-tail { order: 2; }

  .hero h1 { font-size: 40px; }

  .hero-sub { margin-left: auto; margin-right: auto; }

  .store-buttons { justify-content: center; }

  .hero-art img { width: min(280px, 78%); }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .pillar-grid { grid-template-columns: 1fr; }

  .topbar nav { display: none; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 32px; }

  .section { padding: 64px 20px; }
}
