:root {
  color-scheme: dark;
  --bg: #081017;
  --bg-alt: #0d1822;
  --panel: rgba(10, 20, 31, 0.82);
  --panel-strong: rgba(13, 23, 35, 0.95);
  --line: rgba(148, 170, 190, 0.18);
  --line-strong: rgba(255, 122, 24, 0.28);
  --text: #eff5f7;
  --muted: #99aab8;
  --accent: #ff7a18;
  --accent-soft: #ffb066;
  --accent-cool: #4de2c5;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 122, 24, 0.20), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(77, 226, 197, 0.14), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 98, 89, 0.10), transparent 28%),
    linear-gradient(180deg, #061018 0%, #09141d 22%, #0b1219 55%, #060d13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

/* ── TOPBAR ── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 48px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #e85000 100%);
  flex-shrink: 0;
}

.brand-copy strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-copy span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

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

.nav a {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 20px;
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }

.nav .cta-nav {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 20px;
  margin-left: 4px;
}
.nav .cta-nav:hover { background: #ff8c3a; }

/* ── HERO ── */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 24px 0 72px;
}

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

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 460px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.15s;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}
.button-primary:hover { background: #ff8c3a; transform: translateY(-1px); }

.button-secondary {
  border: 1.5px solid var(--line-strong);
  color: var(--text);
}
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-points li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Hero Panel */

.hero-panel {
  background: var(--panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.panel-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}

.panel-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(77, 226, 197, 0.12);
  color: var(--accent-cool);
  border: 1px solid rgba(77, 226, 197, 0.25);
  flex-shrink: 0;
}

/* Profile card */

.profile-card {
  background: rgba(255, 122, 24, 0.07);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #e85000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 122, 24, 0.4);
}

.profile-info { flex: 1; min-width: 0; }

.profile-handle {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-rating-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.profile-rating {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tier-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 122, 24, 0.15);
  color: var(--accent-soft);
  border: 1px solid rgba(255, 122, 24, 0.28);
}

.profile-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Feed cards */

.feed-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 15px;
}

.feed-card.secondary { opacity: 0.75; }

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.avatar-sm.teal  { background: linear-gradient(135deg, #4de2c5 0%, #2ab8a0 100%); }
.avatar-sm.orange { background: linear-gradient(135deg, var(--accent) 0%, #e85000 100%); }

.feed-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
}

.feed-meta {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

.feed-body {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 10px;
}

.feed-reactions { display: flex; gap: 6px; }

.reaction {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 3px 9px;
  font-size: 0.72rem;
  color: var(--muted);
  transition: all 0.15s;
}

.reaction:hover,
.reaction.active {
  background: rgba(255, 122, 24, 0.12);
  border-color: rgba(255, 122, 24, 0.3);
  color: var(--accent-soft);
}

/* Callout strip */

.callout-strip {
  background: rgba(77, 226, 197, 0.06);
  border: 1px solid rgba(77, 226, 197, 0.2);
  border-radius: var(--radius-md);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--accent-cool);
}

.callout-tag { font-weight: 700; flex-shrink: 0; }

/* Waveform */

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.waveform span {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  animation: wave 1.5s ease-in-out infinite;
}

.waveform span:nth-child(1)  { height: 40%; animation-delay: 0.00s; }
.waveform span:nth-child(2)  { height: 70%; animation-delay: 0.10s; }
.waveform span:nth-child(3)  { height: 55%; animation-delay: 0.20s; }
.waveform span:nth-child(4)  { height: 90%; animation-delay: 0.30s; }
.waveform span:nth-child(5)  { height: 60%; animation-delay: 0.40s; }
.waveform span:nth-child(6)  { height: 100%; animation-delay: 0.50s; }
.waveform span:nth-child(7)  { height: 75%; animation-delay: 0.60s; }
.waveform span:nth-child(8)  { height: 45%; animation-delay: 0.70s; }
.waveform span:nth-child(9)  { height: 85%; animation-delay: 0.80s; }
.waveform span:nth-child(10) { height: 55%; animation-delay: 0.90s; }
.waveform span:nth-child(11) { height: 65%; animation-delay: 1.00s; }
.waveform span:nth-child(12) { height: 40%; animation-delay: 1.10s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.22; }
  50%       { transform: scaleY(1);   opacity: 0.55; }
}

/* ── SIGNAL STRIP ── */

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 88px;
}

.signal-strip article {
  background: var(--bg-alt);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signal-strip article > span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.signal-strip article strong {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.signal-strip article p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── SECTION SHARED ── */

.section { padding-bottom: 88px; }

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

.section-heading.narrow { max-width: 500px; }

.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 8px 0 0;
}

/* ── FEATURE GRID ── */

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: rgba(255, 122, 24, 0.38); }

.feature-card-accent {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.09) 0%, rgba(10, 20, 31, 0.95) 65%);
  border-color: var(--line-strong);
}

.feature-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ── HOW IT WORKS ── */

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}

.architecture-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: calc(16.67% + 22px);
  right: calc(16.67% + 22px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  pointer-events: none;
}

.architecture-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.architecture-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 122, 24, 0.10);
  border: 1.5px solid var(--line-strong);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 16px;
}

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

.architecture-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── CHALLENGE BOARD ── */

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.board-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 8px 0 16px;
}

.board-copy p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.board-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
}

.board-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-cool);
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(77, 226, 197, 0.08);
  border: 1px solid rgba(77, 226, 197, 0.2);
}

.meter {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: -10px;
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  border-radius: 3px;
  transition: width 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.board-callout {
  background: rgba(255, 122, 24, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.callout-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.board-callout p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── CTA / DEPLOY ── */

.deploy { padding-bottom: 72px; }

.deploy-panel {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.08) 0%, rgba(10, 20, 31, 0.9) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.deploy-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 8px 0 16px;
}

.deploy-panel > p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 36px;
}

.deploy-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #000;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.15s;
}

.store-button:hover { background: #fff; transform: translateY(-2px); }

.store-button-meta { text-align: left; }

.store-button-meta span {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.store-button-meta strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.microcopy {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ── FOOTER ── */

.footer {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer nav { display: flex; gap: 20px; }
.footer nav a:hover { color: var(--text); }

/* ── RESPONSIVE ── */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 56px;
  }

  .hero-panel { order: -1; }

  .signal-strip { grid-template-columns: 1fr; }

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

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

  .architecture-grid::before { display: none; }

  .board {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .deploy-panel { padding: 48px 24px; }

  .footer { flex-direction: column; text-align: center; }

  .topbar {
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 32px;
  }
}
