/* NovaBridge — static demo, nginx-ready */

:root {
  --bg: #07080d;
  --bg-elevated: #0e1018;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.075);
  --text: #f0f1f5;
  --muted: #8c919d;
  --accent: #c4b5fd;
  --accent-hot: #a78bfa;
  --accent-dim: #6d28d9;
  --accent-cyan: #22d3ee;
  --accent-glow: rgba(167, 139, 250, 0.38);
  --mint: #5eead4;
  --gold: #fcd34d;
  --silver: #a1a8b8;
  --bronze: #fb923c;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 15% -10%, rgba(167, 139, 250, 0.09), transparent 50%),
    radial-gradient(ellipse 80% 50% at 95% 20%, rgba(34, 211, 238, 0.06), transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  max-width: 720px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-cyan));
  color: #0a0a0f;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 13, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: #fff;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-hot) 0%, var(--accent-cyan) 100%);
  box-shadow: 0 0 28px var(--accent-glow), 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.logo-mark.sm {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  margin-left: 1rem;
  flex: 1;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
}

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

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (min-width: 960px) {
  .nav,
  .header-actions {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-hot) 0%, #7c3aed 55%, var(--accent-cyan) 160%);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent-hot);
  color: var(--accent);
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}

.btn-light {
  background: linear-gradient(180deg, #fafafa 0%, #e8e8ed 100%);
  color: #0c0c12;
}

.btn-light:hover {
  filter: brightness(1.05);
}

.btn-block {
  width: 100%;
}

.btn-text {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.btn-text:hover {
  text-decoration: underline;
}

/* Pills */
.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1.2;
}

.pill-mint {
  background: rgba(94, 234, 212, 0.12);
  color: var(--mint);
  border: 1px solid rgba(94, 234, 212, 0.32);
}

.pill-soft {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -25%, rgba(167, 139, 250, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 35%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 75%, rgba(124, 58, 237, 0.1), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 380px;
    align-items: center;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-cyan));
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.6rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}

.stat-suffix {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1.05rem;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
}

.stat-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  color: rgba(139, 149, 168, 0.85);
}

.glass {
  background: rgba(14, 16, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hero-card {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-card-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: url(#ring-grad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 104.5;
}

.progress-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
}

.mini-stats div {
  text-align: center;
}

.mini-stats dt {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.mini-stats dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-card-note {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.25rem 0;
}

.trust-inner {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .trust-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.trust-icon {
  color: var(--accent-cyan);
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head.center {
  text-align: center;
}

.section-head.row-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .section-head.row-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 65ch;
}

.section-head.center .section-sub {
  margin-inline: auto;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
}

.link-arrow::after {
  content: " →";
}

/* Exam structure */
.exam-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .exam-grid--quad {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .exam-grid--quad {
    grid-template-columns: repeat(4, 1fr);
  }
}

.exam-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exam-card header h3 {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.exam-part {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.exam-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.exam-tasks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exam-tasks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.exam-tasks li:last-child {
  border-bottom: 0;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.14);
  color: var(--accent);
  flex-shrink: 0;
}

.exam-tip {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

/* Question type filter + grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.chip.is-active {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(34, 211, 238, 0.08));
  border-color: rgba(167, 139, 250, 0.45);
  color: var(--text);
}

.q-type-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .q-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .q-type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.q-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: opacity 0.25s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.q-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.q-card.is-hidden {
  display: none;
}

.q-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.q-card p {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.q-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.q-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Path timeline */
.path-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 800px;
  margin-inline: auto;
  counter-reset: path;
}

.path-timeline > li {
  position: relative;
  padding-left: 7.5rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--border);
  margin-left: 0.6rem;
}

.path-timeline > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.path-week {
  position: absolute;
  left: 0;
  top: 0;
  width: 5.5rem;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  transform: translateX(-100%);
  padding-right: 1rem;
}

.path-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.path-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.path-body p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.path-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.path-tags li {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 600px) {
  .path-timeline > li {
    padding-left: 0;
    border-left: 0;
    margin-left: 0;
  }

  .path-week {
    position: static;
    display: block;
    width: auto;
    text-align: left;
    transform: none;
    padding: 0 0 0.5rem;
  }
}

/* Tabs + leaderboard */
.tablist {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.tab {
  padding: 0.4rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab.is-active {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.28), rgba(34, 211, 238, 0.12));
  color: var(--text);
}

.lb-panels {
  margin-top: 0.5rem;
}

.lb-panel[hidden] {
  display: none;
}

.leaderboard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.lb-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-list li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.lb-list li:last-child {
  border-bottom: 0;
}

.lb-rank {
  grid-row: span 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  text-align: center;
  align-self: center;
}

.lb-rank.gold {
  color: var(--gold);
}

.lb-rank.silver {
  color: var(--silver);
}

.lb-rank.bronze {
  color: var(--bronze);
}

.lb-name {
  font-weight: 600;
  grid-column: 2;
}

.lb-detail {
  grid-column: 2;
  font-size: 0.8rem;
  color: var(--muted);
}

.lb-val {
  grid-column: 3;
  grid-row: span 2;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  align-self: center;
}

@media (max-width: 520px) {
  .lb-list li {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto auto;
  }

  .lb-val {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }
}

/* Two column + announcements + centers */
.two-col {
  display: grid;
  gap: 2.5rem;
}

.two-col.wide-gap {
  gap: 3rem;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.announce-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.announce-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.announce-list li:last-child {
  border-bottom: 0;
}

.announce-list.rich li {
  padding: 1.15rem 0;
}

.announce-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.announce-list time {
  font-size: 0.8rem;
  color: var(--muted);
}

.announce-list strong {
  font-size: 1rem;
}

.announce-list span:last-child {
  font-size: 0.9rem;
  color: var(--muted);
}

.center-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.center-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.center-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.2rem 1.15rem;
}

.center-card header h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.star {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.15);
}

.star.on {
  color: var(--gold);
}

.star.half {
  background: linear-gradient(90deg, var(--gold) 50%, rgba(255, 255, 255, 0.15) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.star.off {
  color: rgba(255, 255, 255, 0.12);
}

.star-meta {
  margin-left: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.center-addr {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.center-bars {
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.center-bars > div {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  gap: 0.5rem;
}

.center-bars dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.center-bars dd {
  margin: 0;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.center-bars .bar {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  max-width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}

.center-note {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}

/* Resource grid */
.resource-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.resource-card {
  position: relative;
  display: block;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.resource-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.rc-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.2);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.rc-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.resource-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Pricing */
.price-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 800px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 20px 56px rgba(0, 0, 0, 0.35);
}

.price-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 0 var(--radius) 0 var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-dim));
  color: #fff;
}

@media (min-width: 800px) {
  .price-ribbon {
    top: 0.85rem;
    right: -2.25rem;
    border-radius: 0;
    transform: rotate(38deg);
    padding: 0.35rem 2.5rem;
  }
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.price-amount {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.price-amount small {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.85;
}

.price-desc {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.price-features {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  flex: 1;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item p code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

/* CTA band */
.cta-band {
  background: linear-gradient(
    125deg,
    rgba(167, 139, 250, 0.14) 0%,
    rgba(34, 211, 238, 0.08) 48%,
    rgba(124, 58, 237, 0.1) 100%
  );
  border-block: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.cta-inner p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.footer-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 28ch;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 720px) {
  .footer-copy {
    text-align: left;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 0.75rem 1.25rem;
  max-width: min(90%, 420px);
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease;
  z-index: 200;
}

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

/* Mobile nav open */
@media (max-width: 959px) {
  body.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 1.5rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 99;
    overflow-y: auto;
  }

  body.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 2rem;
    left: 1rem;
    right: 1rem;
    margin: 0;
    z-index: 99;
  }

  body.nav-open .header-actions .btn {
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }
}
