/* ============================================================
   REAL PEPPERS  Global Styles
   Aesthetic: Clean, bright, trustworthy, conversion focused
   Light mode first, warm whites, teal brand, high readability
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400;500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  /* Backgrounds */
  --bg-page:        #f8fafb;
  --bg-white:       #ffffff;
  --bg-surface:     #f1f5f8;
  --bg-elevated:    #e8eef3;
  --bg-hero:        #edf6f4;

  /* Borders */
  --border:         #e0e8ed;
  --border-dark:    #c8d6de;

  /* Text */
  --text-primary:   #0f1923;
  --text-secondary: #3d5468;
  --text-muted:     #7a92a4;
  --text-code:      #0a7a5e;

  /* Brand */
  --teal:           #0bbf98;
  --teal-dark:      #089478;
  --teal-light:     #e6f7f3;
  --teal-mid:       #b3e8dc;
  --blue:           #2c7be5;
  --blue-light:     #eaf0fc;
  --amber:          #d97706;
  --amber-light:    #fef3c7;
  --rose:           #e53e3e;
  --rose-light:     #fff5f5;
  --green:          #16a34a;
  --green-light:    #f0fdf4;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 8px 28px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --shadow-teal: 0 4px 20px rgba(11,191,152,.25);

  /* Radii */
  --radius-sm:  5px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }

::selection { background: rgba(11,191,152,0.15); color: var(--text-primary); }

/* ── Typography ── */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.9rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text-code);
  background: var(--teal-light);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal-mid);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 500;
}

/* ── Layout ── */

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }
.container--wide   { max-width: 1400px; }

.section    { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Cards ── */

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card--glow:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}

.card--surface { background: var(--bg-surface); }
.card--elevated { background: var(--bg-elevated); }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-teal);
}
.btn--primary:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(11,191,152,.35);
}

.btn--secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1.5px solid var(--border-dark);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-light);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}
.btn--ghost:hover { color: var(--text-primary); }

.btn--sm { padding: 8px 16px; font-size: 0.82rem; }
.btn--lg { padding: 15px 36px; font-size: 1rem; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Badges ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--teal  { background: var(--teal-light); color: var(--teal-dark); border: 1px solid var(--teal-mid); }
.badge--blue  { background: var(--blue-light); color: var(--blue); border: 1px solid #bfd4f7; }
.badge--amber { background: var(--amber-light); color: var(--amber); border: 1px solid #fcd48a; }
.badge--rose  { background: var(--rose-light); color: var(--rose); border: 1px solid #fed7d7; }
.badge--muted { background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Disclaimer bar ── */

.disclaimer-bar {
  background: var(--amber-light);
  border-bottom: 1px solid #fcd48a;
  padding: 9px 0;
  text-align: center;
}

.disclaimer-bar p {
  font-size: 0.75rem;
  color: var(--amber);
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ── Navigation ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.nav__logo-mark {
  width: 30px;
  height: 30px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-mono);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__links a, .nav__links button {
  color: var(--text-secondary);
  font-size: 0.86rem;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 400;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.nav__links a:hover,
.nav__links button:hover,
.nav__links a.active,
.nav__links button.active {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.nav__mobile a, .nav__mobile button {
  color: var(--text-secondary);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  width: 100%;
}

.nav__mobile a:hover, .nav__mobile button:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav__mobile.open { display: flex; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Hero ── */

.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  background: linear-gradient(160deg, #edf8f5 0%, #f8fafb 50%, #eef4fb 100%);
  border-bottom: 1px solid var(--border);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 80% 30%, rgba(11,191,152,.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 70%, rgba(44,123,229,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,191,152,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,191,152,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
}

.hero__content { position: relative; max-width: 720px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-radius: 20px;
  padding: 6px 14px;
}

.hero__dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 { margin-bottom: 18px; color: var(--text-primary); }
.hero h1 em { font-style: italic; color: var(--teal-dark); }

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero__stat-num {
  font-family: var(--font-body);
  font-size: 1.7rem;
  color: var(--text-primary);
  font-weight: 700;
  display: block;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Section headers ── */

.section-header { margin-bottom: 44px; }
.section-header--center { text-align: center; max-width: 600px; margin: 0 auto 44px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { font-size: 1.02rem; }

/* ── Peptide cards ── */

.peptide-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: block;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.peptide-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
  color: inherit;
}

.peptide-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.peptide-card__abbr {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal-dark);
  margin-bottom: 3px;
  font-weight: 500;
}

.peptide-card h4 { color: var(--text-primary); margin-bottom: 7px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; }
.peptide-card p  { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 12px; }
.peptide-card__tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ── Peptide detail ── */

.peptide-detail { display: none; }
.peptide-detail.active { display: block; }

.peptide-header {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-hero) 0%, var(--bg-white) 100%);
  position: relative;
  overflow: hidden;
}

.peptide-header__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(11,191,152,.07) 0%, transparent 60%);
  pointer-events: none;
}

.peptide-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.peptide-header h1 { margin-bottom: 12px; }
.peptide-header__desc { font-size: 1.05rem; max-width: 680px; }

.peptide-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  padding: 44px 0;
}

@media (max-width: 900px) { .peptide-body { grid-template-columns: 1fr; } }

.peptide-section { margin-bottom: 32px; }

.peptide-section h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
}

.peptide-section h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: var(--teal);
  border-radius: 2px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 7px;
  overflow: hidden;
  background: var(--bg-white);
}

.faq-question {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: background var(--transition);
  user-select: none;
}

.faq-question:hover { background: var(--bg-surface); }

.faq-question .faq-icon {
  font-size: 1.1rem;
  color: var(--teal);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }

.faq-answer__inner {
  padding: 4px 18px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.faq-item.open .faq-question { background: var(--teal-light); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 400px; }

.peptide-sidebar > * + * { margin-top: 18px; }

.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.info-card h5 {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
  font-family: var(--font-body);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.info-row:last-child { border-bottom: none; }
.ir-lbl { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; font-family: var(--font-mono); }
.ir-val { font-size: 0.82rem; color: var(--text-primary); text-align: right; font-weight: 500; }

.research-areas { display: flex; flex-direction: column; gap: 7px; }

.research-area {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  color: var(--teal-dark);
  font-weight: 500;
}

.research-area::before {
  content: '→';
  color: var(--teal);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ── Forum ── */

.forum-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; }

@media (max-width: 768px) {
  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar { display: none; }
}

.forum-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.86rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  margin-bottom: 3px;
}

.forum-nav-item:hover { background: var(--bg-surface); color: var(--text-primary); }

.forum-nav-item.active {
  background: var(--teal-light);
  border-color: var(--teal-mid);
  color: var(--teal-dark);
  font-weight: 500;
}

.forum-nav-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 2px 7px;
  border-radius: 10px;
}

.forum-post {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.forum-post:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.forum-post__header { display: flex; align-items: flex-start; gap: 12px; }

.forum-post__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--blue-light));
  border: 2px solid var(--teal-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-dark);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.forum-post__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.forum-post__author { font-size: 0.84rem; font-weight: 600; color: var(--text-primary); }
.forum-post__time   { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.forum-post__title  { font-size: 0.94rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.forum-post__preview { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 10px; }

.forum-post__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Academy ── */

.academy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; }

@media (max-width: 900px) { .academy-layout { grid-template-columns: 1fr; } }

.module-nav { position: sticky; top: 80px; height: fit-content; }

.module-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.module-item:hover { background: var(--bg-surface); }

.module-item.active {
  background: var(--teal-light);
  border-color: var(--teal-mid);
}

.module-item__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
  font-weight: 600;
}

.module-item.active .module-item__num {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.module-item__label { font-size: 0.86rem; color: var(--text-secondary); }
.module-item.active .module-item__label { color: var(--teal-dark); font-weight: 500; }

.module-content { display: none; }
.module-content.active { display: block; animation: fadeIn 0.3s ease; }

.module-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
  padding: 20px;
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.module-block { margin-bottom: 24px; }

.module-block h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.module-block ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.module-block ul li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  line-height: 1.6;
}

.module-block ul li::before {
  content: '✓';
  color: var(--teal);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 3px;
  font-weight: 700;
}

.module-nav-btns {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── News ── */

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

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

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-card__img {
  height: 130px;
  background: linear-gradient(135deg, var(--teal-light), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.news-card__img-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(11,191,152,.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(44,123,229,.10) 0%, transparent 50%);
}

.news-card__icon { font-size: 1.8rem; position: relative; z-index: 1; }
.news-card__body { padding: 18px; }

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.news-card__date { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.news-card h4    { font-size: 0.9rem; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; font-family: var(--font-display); font-weight: 400; }
.news-card p     { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Article ── */

.article-header { padding: 56px 0 36px; background: linear-gradient(160deg, var(--bg-hero), var(--bg-white)); border-bottom: 1px solid var(--border); }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 800px; margin-bottom: 18px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.article-body { display: grid; grid-template-columns: 1fr 260px; gap: 44px; padding: 44px 0 72px; }

@media (max-width: 900px) {
  .article-body { grid-template-columns: 1fr; }
  .article-toc  { display: none; }
}

.prose { max-width: 700px; }

.prose h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-top: 28px;
  border-top: 2px solid var(--teal-light);
  color: var(--text-primary);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3             { font-size: 1.1rem; margin-top: 24px; margin-bottom: 10px; }
.prose p              { margin-bottom: 16px; line-height: 1.8; font-size: 0.96rem; color: var(--text-secondary); }

.prose .callout {
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  margin: 20px 0;
}

.prose .callout p { color: var(--teal-dark); margin: 0; font-size: 0.9rem; font-weight: 500; }

.prose .callout.warning {
  background: var(--amber-light);
  border-color: #fcd48a;
  border-left-color: var(--amber);
}

.prose .callout.warning p { color: #92400e; }

.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }

.prose li { color: var(--text-secondary); margin-bottom: 5px; font-size: 0.93rem; line-height: 1.7; }

.prose .references {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.prose .references h3 { font-size: 0.8rem; margin-bottom: 12px; font-family: var(--font-mono); letter-spacing: .05em; color: var(--text-muted); font-weight: 400; }
.prose .references ol  { padding-left: 18px; }
.prose .references li  { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; font-family: var(--font-mono); }

.article-toc { position: sticky; top: 82px; height: fit-content; }

.article-toc h5 {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
}

.toc-item {
  display: block;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  margin-bottom: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.toc-item:hover, .toc-item.active {
  color: var(--teal-dark);
  border-left-color: var(--teal);
}

/* ── Tools ── */

.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 600px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}

.tool-card__icon {
  width: 44px;
  height: 44px;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.tool-card h4 { color: var(--text-primary); margin-bottom: 6px; font-size: 0.92rem; font-weight: 600; font-family: var(--font-body); }
.tool-card p  { font-size: 0.84rem; margin-bottom: 16px; }
.coming-soon  { font-family: var(--font-mono); font-size: 0.7rem; color: var(--amber); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.comparison-table th { padding: 10px 14px; text-align: left; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--teal-light); font-weight: 500; background: var(--bg-surface); }
.comparison-table td { padding: 11px 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border); vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--teal-light); }
.comparison-table td:first-child { font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); font-size: 0.8rem; }

/* Glossary */
.glossary-search { position: relative; margin-bottom: 22px; }

.glossary-search input {
  width: 100%;
  background: var(--bg-white);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 12px 18px 12px 44px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.glossary-search input::placeholder { color: var(--text-muted); }
.glossary-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,191,152,.1); }
.glossary-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; }

.glossary-term { padding: 13px 0; border-bottom: 1px solid var(--border); }
.glossary-term dt { font-weight: 700; color: var(--text-primary); margin-bottom: 3px; font-family: var(--font-mono); font-size: 0.86rem; }
.glossary-term dd { font-size: 0.84rem; color: var(--text-secondary); }

/* ── Membership ── */

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pricing-card--premium {
  border-color: var(--teal);
  background: linear-gradient(160deg, var(--teal-light), var(--bg-white));
  box-shadow: var(--shadow-teal);
}

.pricing-card--premium::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card__tier { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; font-weight: 600; }
.pricing-card__price { font-family: var(--font-display); font-size: 2.8rem; color: var(--text-primary); margin-bottom: 4px; line-height: 1; }
.pricing-card__price span { font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }
.pricing-card__desc { font-size: 0.86rem; color: var(--text-secondary); margin-bottom: 22px; margin-top: 7px; }

.pricing-features { list-style: none; margin-bottom: 24px; }

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: '✓';
  color: var(--teal);
  font-size: 0.8rem;
  flex-shrink: 0;
  font-weight: 700;
}

.pricing-features li.disabled { color: var(--text-muted); text-decoration: line-through; }
.pricing-features li.disabled::before { content: '✗'; color: var(--text-muted); }

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--bg-white);
}

.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand p { font-size: 0.86rem; margin-top: 10px; max-width: 260px; color: var(--text-muted); }

.footer__col h6 {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 13px;
  font-weight: 600;
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 7px; }

.footer__links a, .footer__links button {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  padding: 0;
}

.footer__links a:hover, .footer__links button:hover { color: var(--teal-dark); }

.footer__disclaimer {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--amber-light);
  border: 1px solid #fcd48a;
  border-radius: var(--radius-md);
}

.footer__disclaimer p { font-size: 0.74rem; color: #92400e; margin: 0; font-family: var(--font-mono); line-height: 1.6; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p { font-size: 0.74rem; color: var(--text-muted); font-family: var(--font-mono); margin: 0; }

/* ── Page transitions ── */

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Toast ── */

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-size: 0.86rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 300px;
  font-weight: 500;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ── Modals ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,25,35,0.5);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 460px;
  width: 100%;
  animation: fadeIn 0.22s ease;
  box-shadow: var(--shadow-lg);
}

.modal h3 { margin-bottom: 7px; }
.modal p  { font-size: 0.88rem; margin-bottom: 20px; }

input[type="email"],
input[type="text"],
input[type="password"],
textarea,
select {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition);
  width: 100%;
  margin-bottom: 10px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--teal);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(11,191,152,.1);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

/* ── Progress bar ── */

.progress-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.progress-bar__fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: 3px; transition: width 0.6s ease; }

/* ── Inline forum cards ── */

.pcard { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; cursor: pointer; transition: all var(--transition); display: block; text-decoration: none; box-shadow: var(--shadow-sm); }
.pcard:hover { border-color: var(--teal); box-shadow: var(--shadow-teal); transform: translateY(-2px); }
.pcard-abbr  { font-family: var(--font-mono); font-size: .7rem; color: var(--teal-dark); margin-bottom: 3px; font-weight: 600; }
.pcard h4    { color: var(--text-primary); margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; font-size: .93rem; }
.pcard p     { font-size: .82rem; color: var(--text-secondary); margin-bottom: 11px; }
.pcard-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.card-glow:hover { border-color: var(--teal); box-shadow: var(--shadow-teal); }

/* Detail page classes used by JS */
.pdetail-header { padding: 52px 0 32px; border-bottom: 1px solid var(--border); background: linear-gradient(160deg, var(--bg-hero), var(--bg-white)); position: relative; overflow: hidden; }
.pdetail-bg     { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(11,191,152,.07) 0%, transparent 60%); pointer-events: none; }
.pdetail-body   { display: grid; grid-template-columns: 1fr 290px; gap: 32px; padding: 40px 0; }
@media (max-width: 780px) { .pdetail-body { grid-template-columns: 1fr; } }
.psection       { margin-bottom: 28px; }
.psection h3    { font-size: 1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--teal-light); display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; color: var(--text-primary); }
.psection h3::before { content: ''; display: block; width: 3px; height: 16px; background: var(--teal); border-radius: 2px; }
.faq-item  { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 6px; overflow: hidden; background: var(--bg-white); }
.faq-q     { padding: 13px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--text-primary); font-size: .87rem; transition: background var(--transition); user-select: none; }
.faq-q:hover { background: var(--bg-surface); }
.faq-icon  { color: var(--teal); font-size: 1.1rem; transition: transform .25s; flex-shrink: 0; }
.faq-ans   { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-ans-inner { padding: 4px 16px 14px; color: var(--text-secondary); font-size: .84rem; line-height: 1.7; }
.faq-item.open .faq-q    { background: var(--teal-light); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-ans  { max-height: 400px; }
.info-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.info-card h5 { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 11px; font-weight: 600; }
.info-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.info-row:last-child { border-bottom: none; }
.ir-lbl { font-size: .74rem; color: var(--text-muted); font-family: var(--font-mono); }
.ir-val { font-size: .8rem; color: var(--text-primary); text-align: right; font-weight: 600; }
.ra { display: flex; flex-direction: column; gap: 6px; }
.ra-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--teal-light); border-radius: var(--radius-md); font-size: .84rem; color: var(--teal-dark); font-weight: 500; }
.ra-item::before { content: '→'; color: var(--teal); font-family: var(--font-mono); flex-shrink: 0; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.b-teal  { background: var(--teal-light); color: var(--teal-dark); border: 1px solid var(--teal-mid); }
.b-blue  { background: var(--blue-light); color: var(--blue); border: 1px solid #bfcff7; }
.b-amber { background: var(--amber-light); color: var(--amber); border: 1px solid #fcd48a; }
.b-rose  { background: var(--rose-light); color: var(--rose); border: 1px solid #fed7d7; }
.b-muted { background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border); }

/* Forum inline classes */
.forum-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; }
@media (max-width: 700px) { .forum-layout { grid-template-columns: 1fr; } .forum-sidebar { display: none; } }
.fnav-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-md); cursor: pointer; font-size: .84rem; color: var(--text-secondary); border: 1px solid transparent; transition: all .2s; margin-bottom: 3px; }
.fnav-item:hover { background: var(--bg-surface); color: var(--text-primary); }
.fnav-item.active { background: var(--teal-light); border-color: var(--teal-mid); color: var(--teal-dark); font-weight: 500; }
.fnav-count { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; color: var(--text-muted); background: var(--bg-surface); padding: 2px 6px; border-radius: 8px; }
.fpost { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 9px; cursor: pointer; transition: all .2s; box-shadow: var(--shadow-sm); }
.fpost:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.fpost-header { display: flex; align-items: flex-start; gap: 11px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-light), var(--blue-light)); border: 2px solid var(--teal-mid); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: var(--teal-dark); flex-shrink: 0; font-family: var(--font-mono); }
.fpost-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.fpost-author { font-size: .82rem; font-weight: 700; color: var(--text-primary); }
.fpost-time   { font-size: .7rem; color: var(--text-muted); font-family: var(--font-mono); }
.fpost-title  { font-size: .92rem; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.fpost-prev   { font-size: .81rem; color: var(--text-muted); margin-bottom: 9px; }
.fpost-foot   { display: flex; gap: 13px; font-size: .74rem; color: var(--text-muted); font-family: var(--font-mono); }

/* Academy inline */
.academy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
@media (max-width: 780px) { .academy-layout { grid-template-columns: 1fr; } }
.mod-nav  { position: sticky; top: 74px; height: fit-content; }
.mod-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-md); cursor: pointer; transition: all .2s; border: 1px solid transparent; margin-bottom: 4px; }
.mod-item:hover { background: var(--bg-surface); }
.mod-item.active { background: var(--teal-light); border-color: var(--teal-mid); }
.mod-num  { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-surface); border: 1.5px solid var(--border-dark); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-family: var(--font-mono); color: var(--text-muted); flex-shrink: 0; transition: all .2s; font-weight: 700; }
.mod-item.active .mod-num { background: var(--teal); color: #fff; border-color: var(--teal); }
.mod-lbl { font-size: .84rem; color: var(--text-secondary); }
.mod-item.active .mod-lbl { color: var(--teal-dark); font-weight: 500; }
.mod-content { display: none; }
.mod-content.active { display: block; animation: fadeIn .3s ease; }
.mod-intro { font-size: .98rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; padding: 18px; background: var(--teal-light); border-left: 3px solid var(--teal); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.mod-block { margin-bottom: 20px; }
.mod-block h4 { color: var(--text-primary); margin-bottom: 9px; font-size: .9rem; font-weight: 700; }
.mod-block ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.mod-block ul li { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--text-secondary); padding: 9px 13px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-md); line-height: 1.6; }
.mod-block ul li::before { content: '✓'; color: var(--teal); font-size: .72rem; flex-shrink: 0; margin-top: 3px; font-weight: 700; }
.mod-nav-btns { display: flex; gap: 9px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }

/* Article page */
.article-header { padding: 52px 0 32px; background: linear-gradient(160deg, var(--bg-hero), var(--bg-white)); border-bottom: 1px solid var(--border); }
.article-body { display: grid; grid-template-columns: 1fr 250px; gap: 40px; padding: 40px 0 64px; }
@media (max-width: 780px) { .article-body { grid-template-columns: 1fr; } .article-toc { display: none; } }
.prose h2 { font-size: 1.35rem; margin-top: 32px; margin-bottom: 12px; padding-top: 26px; border-top: 2px solid var(--teal-light); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose p  { margin-bottom: 14px; line-height: 1.8; font-size: .94rem; color: var(--text-secondary); }
.callout  { background: var(--teal-light); border: 1px solid var(--teal-mid); border-left: 3px solid var(--teal); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 13px 16px; margin: 18px 0; }
.callout p { color: var(--teal-dark); margin: 0; font-size: .88rem; font-weight: 500; }
.callout.warn { background: var(--amber-light); border-color: #fcd48a; border-left-color: var(--amber); }
.callout.warn p { color: #92400e; }
.refs { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.refs h3 { font-size: .78rem; margin-bottom: 11px; font-family: var(--font-mono); letter-spacing: .05em; color: var(--text-muted); font-weight: 400; }
.refs ol { padding-left: 17px; }
.refs li { font-size: .76rem; color: var(--text-muted); margin-bottom: 5px; font-family: var(--font-mono); }
.article-toc { position: sticky; top: 80px; height: fit-content; }
.article-toc h5 { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 11px; font-family: var(--font-mono); font-weight: 400; }
.toc-item { display: block; padding: 5px 10px; font-size: .78rem; color: var(--text-muted); border-left: 2px solid var(--border); margin-bottom: 2px; cursor: pointer; transition: all .15s; }
.toc-item:hover { color: var(--teal-dark); border-left-color: var(--teal); }

/* News card inline */
.ncard { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all .2s; box-shadow: var(--shadow-sm); }
.ncard:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ncard-img { height: 126px; background: linear-gradient(135deg, var(--teal-light), var(--blue-light)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ncard-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(11,191,152,.15) 0%, transparent 50%), radial-gradient(circle at 70% 30%, rgba(44,123,229,.1) 0%, transparent 50%); }
.ncard-icon { font-size: 1.7rem; position: relative; z-index: 1; }
.ncard-body { padding: 16px; }
.ncard-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; flex-wrap: wrap; }
.ncard-date { font-size: .7rem; color: var(--text-muted); font-family: var(--font-mono); }
.ncard h4   { font-size: .88rem; color: var(--text-primary); margin-bottom: 7px; line-height: 1.4; font-family: var(--font-display); font-weight: 400; }
.ncard p    { font-size: .8rem; color: var(--text-muted); margin-bottom: 9px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-footer { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); }

/* Comparison table inline */
.cmp-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.cmp-table th { padding: 10px 13px; text-align: left; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--teal-light); font-weight: 500; background: var(--bg-surface); }
.cmp-table td { padding: 10px 13px; color: var(--text-secondary); border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table tr:hover td { background: var(--teal-light); }
.cmp-table td:first-child { font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); font-size: .77rem; }

/* Glossary inline */
.gloss-search { position: relative; margin-bottom: 20px; }
.gloss-search input { width: 100%; background: var(--bg-white); border: 1.5px solid var(--border-dark); border-radius: var(--radius-md); padding: 11px 16px 11px 42px; color: var(--text-primary); font-size: .88rem; font-family: var(--font-body); outline: none; transition: border-color .2s; }
.gloss-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,191,152,.1); }
.gloss-search input::placeholder { color: var(--text-muted); }
.gloss-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .95rem; }
.gterm { padding: 12px 0; border-bottom: 1px solid var(--border); }
.gterm dt { font-weight: 700; color: var(--text-primary); margin-bottom: 3px; font-family: var(--font-mono); font-size: .83rem; }
.gterm dd { font-size: .82rem; color: var(--text-secondary); }

/* Pricing inline */
.pricing-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 28px; position: relative; box-shadow: var(--shadow-sm); }
.pricing-card.premium { border-color: var(--teal); background: linear-gradient(160deg, var(--teal-light), var(--bg-white)); box-shadow: var(--shadow-teal); }
.pricing-card.premium::before { content: 'Most Popular'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: .65rem; font-weight: 700; font-family: var(--font-mono); padding: 3px 10px; border-radius: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tier { font-family: var(--font-mono); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; font-weight: 600; }
.price { font-family: var(--font-display); font-size: 2.7rem; color: var(--text-primary); margin-bottom: 4px; line-height: 1; }
.price span { font-size: .88rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }
.price-desc { font-size: .83rem; color: var(--text-secondary); margin-bottom: 20px; margin-top: 6px; }
.pfeats { list-style: none; margin-bottom: 20px; }
.pfeats li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .84rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.pfeats li:last-child { border-bottom: none; }
.pfeats li::before { content: '✓'; color: var(--teal); font-size: .76rem; flex-shrink: 0; font-weight: 700; }
.pfeats li.dis { color: var(--text-muted); text-decoration: line-through; }
.pfeats li.dis::before { content: '✗'; color: var(--text-muted); }

/* Footer inline */
.footer { border-top: 1px solid var(--border); padding: 48px 0 26px; background: var(--bg-white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h6 { font-size: .65rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 11px; font-weight: 600; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links button { background: none; border: none; cursor: pointer; font-size: .83rem; color: var(--text-secondary); text-align: left; padding: 0; transition: color .15s; font-family: var(--font-body); }
.footer-links button:hover { color: var(--teal-dark); }
.footer-disc { background: var(--amber-light); border: 1px solid #fcd48a; border-radius: var(--radius-md); padding: 12px 15px; margin-top: 18px; }
.footer-disc p { font-size: .72rem; color: #92400e; margin: 0; font-family: var(--font-mono); line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); margin: 0; }

/* Modal inline */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,25,35,.5); backdrop-filter: blur(8px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; max-width: 440px; width: 100%; position: relative; animation: fadeIn .22s ease; box-shadow: var(--shadow-lg); }

/* Toast inline */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--bg-white); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: var(--radius-md); padding: 12px 16px; font-size: .84rem; color: var(--text-primary); z-index: 999; transform: translateY(80px); opacity: 0; transition: all .3s; max-width: 280px; font-weight: 500; box-shadow: var(--shadow-lg); }
.toast.show { transform: translateY(0); opacity: 1; }

/* Utils */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-teal   { color: var(--teal-dark); }
.text-amber  { color: var(--amber); }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 36px; }
.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 20px; }
.mb-lg { margin-bottom: 36px; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 7px; }
.gap-md { gap: 14px; }
.gap-lg { gap: 22px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.surf { background: var(--bg-surface); }

/* Nav inline */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text-primary); font-family: var(--font-body); font-size: .96rem; font-weight: 700; cursor: pointer; letter-spacing: -.01em; }
.logo-mark { width: 28px; height: 28px; background: var(--teal); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .75rem; color: #fff; font-weight: 800; font-family: var(--font-mono); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links button { background: none; border: none; cursor: pointer; color: var(--text-secondary); font-size: .83rem; padding: 5px 10px; border-radius: var(--radius-sm); transition: all .2s; font-family: var(--font-body); }
.nav-links button:hover, .nav-links button.active { color: var(--text-primary); background: var(--bg-surface); }
.nav-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.btn-p { background: var(--teal); color: #fff; font-weight: 700; box-shadow: var(--shadow-teal); }
.btn-p:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-s { background: var(--bg-white); color: var(--text-primary); border: 1.5px solid var(--border-dark); }
.btn-s:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); }
.btn-g { background: transparent; color: var(--text-secondary); padding: 6px 13px; font-size: .8rem; border: none; }
.btn-g:hover { color: var(--text-primary); }
.btn-sm { padding: 6px 13px; font-size: .78rem; }

/* Disc bar */
.disc-bar { background: var(--amber-light); border-bottom: 1px solid #fcd48a; padding: 8px 0; text-align: center; }
.disc-bar p { font-size: .72rem; color: var(--amber); margin: 0; font-family: var(--font-mono); font-weight: 500; }

/* Badge inline */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 20px; font-size: .68rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }

/* Hero inline */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; background: linear-gradient(160deg, #edf8f5 0%, #f8fafb 50%, #eef4fb 100%); border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 55% at 80% 30%, rgba(11,191,152,.09) 0%, transparent 60%), radial-gradient(ellipse 40% 40% at 15% 70%, rgba(44,123,229,.06) 0%, transparent 60%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(11,191,152,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(11,191,152,.07) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%); }
.hero-content { position: relative; max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; background: var(--teal-light); border: 1px solid var(--teal-mid); border-radius: 20px; padding: 5px 13px; }
.dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.hero-sub { font-size: 1.06rem; color: var(--text-secondary); max-width: 560px; line-height: 1.75; margin-bottom: 28px; }
.btn-grp { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-num { font-family: var(--font-body); font-size: 1.6rem; color: var(--text-primary); font-weight: 800; display: block; }
.stat-lbl { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

/* Section headers */
.sec-head { margin-bottom: 36px; }
.sec-head h2 { margin-bottom: 8px; }

/* Grid */
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 780px) { .g3, .g4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
