/* Cosmic Design System — PAIR UP 2026 Redesign
   Shared tokens, typography, animations, and base components */

:root {
  --ink: #0E1530;
  --ink-2: #161E3D;
  --vermillion: #D4533A;
  --gold: #C9A24A;
  --parchment: #F4ECE0;
  --muted: rgba(244,236,224,.6);
  --line: rgba(244,236,224,.14);
  --serif: "Noto Serif TC", serif;
  --sans: "Noto Sans TC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---- Reset & base ---- */
.cosmic *, .cosmic *::before, .cosmic *::after { box-sizing: border-box; }
.cosmic { margin: 0; padding: 0; font-family: var(--sans); -webkit-font-smoothing: antialiased; background: var(--ink); color: var(--parchment); overflow-x: hidden; line-height: 1.6; }
.cosmic ::selection { background: var(--vermillion); color: var(--parchment); }
.cosmic a { color: inherit; text-decoration: none; }
.cosmic button { font-family: inherit; cursor: pointer; }
.cosmic ul { list-style: none; padding: 0; margin: 0; }
.cosmic h1, .cosmic h2, .cosmic h3 { margin: 0; }
.cosmic p { margin: 0; }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Layout ---- */
.cosmic-container { max-width: 1320px; margin: 0 auto; padding: 0 40px; position: relative; }

/* ---- Eyebrow label ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6;
}

/* ---- Section header row ---- */
.section-header {
  display: flex; align-items: baseline; gap: 18px; margin-bottom: 32px;
}
.section-header .section-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; flex-shrink: 0;
}
.section-header h2 {
  font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--parchment); flex-shrink: 0;
}
.section-header .section-rule {
  flex: 1; height: 1px; background: var(--line); margin-left: 8px;
}

/* ---- Breadcrumb ---- */
.breadcrumb-cosmic {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: .2em; text-transform: uppercase;
  display: flex; gap: 8px; margin-bottom: 24px;
}
.breadcrumb-cosmic .bc-active { color: var(--gold); }

/* ---- Stars SVG (background decoration) ---- */
.stars-field {
  position: absolute; inset: 0; pointer-events: none;
}

/* ---- Cosmic backdrop ---- */
.cosmic-backdrop {
  background:
    radial-gradient(900px 500px at 30% 0%, #2A1F4A 0%, transparent 60%),
    radial-gradient(800px 500px at 95% 30%, #3D1F2A 0%, transparent 55%),
    linear-gradient(180deg, #0E1530, #1A1638);
}

/* ---- Sticky nav ---- */
.cosmic-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(14,21,48,.7);
  border-bottom: 1px solid var(--line);
}
.cosmic-nav .nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; gap: 40px;
}
.cosmic-nav .nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.cosmic-nav .nav-logo-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vermillion), #8C2A1B);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 18px;
}
.cosmic-nav .nav-logo-text {
  display: flex; flex-direction: column; line-height: 1;
}
.cosmic-nav .nav-logo-text .brand { font-family: var(--serif); font-weight: 600; letter-spacing: .15em; }
.cosmic-nav .nav-logo-text .sub { font-family: var(--mono); font-size: 9px; opacity: .55; letter-spacing: .25em; margin-top: 3px; }
.cosmic-nav .nav-links {
  flex: 1; display: flex; justify-content: center; gap: 32px;
}
.cosmic-nav .nav-links a {
  font-size: 14px; font-weight: 500; color: var(--parchment); opacity: .78; padding: 6px 0;
  transition: opacity .2s;
}
.cosmic-nav .nav-links a:hover { opacity: 1; }
.cosmic-nav .nav-links a.active { color: var(--gold); opacity: 1; border-bottom: 1px solid var(--gold); }
.cosmic-nav .nav-cta {
  padding: 10px 20px; border-radius: 999px;
  background: var(--vermillion); color: #fff;
  font-size: 14px; font-weight: 600;
  border: none; transition: transform .2s;
}
.cosmic-nav .nav-cta:hover { transform: translateY(-2px); }

/* ---- Footer ---- */
.cosmic-footer {
  background: #0A1024; padding: 50px 40px 30px; border-top: 1px solid var(--line);
}
.cosmic-footer .footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
}
.cosmic-footer .footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.cosmic-footer .footer-logo-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vermillion), #8C2A1B);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 16px;
}
.cosmic-footer .footer-copyright {
  font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .15em;
}
.cosmic-footer .footer-links {
  display: flex; gap: 24px; font-size: 13px; color: var(--muted); align-items: center;
}
.cosmic-footer .footer-links a:hover { color: var(--parchment); }
.cosmic-footer .footer-links .app-link { color: var(--gold); }

/* ==================================================
   Membership page
   ================================================== */

/* Hero */
.membership-hero {
  position: relative; overflow: hidden; padding: 72px 40px 80px;
}
.membership-hero .hero-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center;
}
.membership-hero h1 {
  font-family: var(--serif); font-size: 88px; font-weight: 600;
  margin: 16px 0 20px; line-height: 1; letter-spacing: .02em;
}
.membership-hero h1 .gold { color: var(--gold); }
.membership-hero .hero-subtitle {
  font-size: 17px; line-height: 1.85; color: var(--muted); max-width: 580px;
}
.membership-hero .hero-actions {
  display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap;
}

/* Google Play badge */
.gplay-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 12px;
  background: var(--parchment); color: var(--ink);
  font-weight: 600; font-size: 14px; transition: transform .2s;
}
.gplay-badge, .gplay-badge:hover, .gplay-badge:visited { transform: translateY(-2px); color: var(--ink); }
.gplay-badge .gplay-label { line-height: 1.1; text-align: left; }
.gplay-badge .gplay-label small {
  display: block; font-size: 10px; font-family: var(--mono); letter-spacing: .15em; opacity: .6;
}
.gplay-badge .gplay-label span {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
}

/* Ghost button */
.btn-ghost {
  padding: 14px 22px; border-radius: 12px;
  border: 1px solid rgba(244,236,224,.3); background: transparent;
  color: var(--parchment); font-size: 14px; font-weight: 500;
  transition: border-color .2s;
}
.btn-ghost:hover { border-color: rgba(244,236,224,.5); }

/* Astronaut */
.astronaut { animation: float 4s ease-in-out infinite; }

/* Tiers */
.tiers-section {
  padding: 80px 40px 60px;
  background: linear-gradient(180deg, #1A1638 0%, #0E1530 60%);
  position: relative;
}
.tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tier-card {
  position: relative; padding: 40px 32px 36px; border-radius: 18px;
  background: rgba(244,236,224,.03);
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.tier-card:nth-child(1) { animation: fadeUp .4s ease 0ms both; }
.tier-card:nth-child(2) { animation: fadeUp .4s ease 100ms both; }
.tier-card:nth-child(3) { animation: fadeUp .4s ease 200ms both; }
.tier-card:hover {
  transform: translateY(-4px);
}

/* Tier accent colors via data attribute */
.tier-card[data-accent="parchment"]:hover { border-color: var(--parchment); box-shadow: 0 30px 60px -20px rgba(244,236,224,.15); }
.tier-card[data-accent="gold"] { background: linear-gradient(180deg, rgba(201,162,74,.10), rgba(244,236,224,.03)); border-color: var(--gold); }
.tier-card[data-accent="gold"]:hover { box-shadow: 0 30px 60px -20px rgba(201,162,74,.3); }
.tier-card[data-accent="vermillion"]:hover { border-color: var(--vermillion); box-shadow: 0 30px 60px -20px rgba(212,83,58,.3); }

.tier-card .badge-popular {
  position: absolute; top: -12px; left: 24px;
  padding: 5px 12px; background: var(--gold); color: var(--ink);
  border-radius: 999px; font-family: var(--mono); font-size: 10px;
  font-weight: 600; letter-spacing: .2em;
}
.tier-card .tier-level {
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; margin-bottom: 12px;
}
.tier-card[data-accent="parchment"] .tier-level { color: var(--parchment); }
.tier-card[data-accent="gold"] .tier-level { color: var(--gold); }
.tier-card[data-accent="vermillion"] .tier-level { color: var(--vermillion); }

.tier-card .tier-name {
  font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--parchment); margin-bottom: 4px;
}
.tier-card .tier-headline {
  font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.6;
}
.tier-card .tier-price {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px;
}
.tier-card .tier-price .amount {
  font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1;
}
.tier-card[data-accent="parchment"] .tier-price .amount { color: var(--parchment); }
.tier-card[data-accent="gold"] .tier-price .amount { color: var(--gold); }
.tier-card[data-accent="vermillion"] .tier-price .amount { color: var(--vermillion); }
.tier-card .tier-price .period {
  font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .15em;
}
.tier-card .tier-promo {
  font-size: 12px; color: var(--vermillion); margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(212,83,58,.12);
  border: 1px dashed rgba(212,83,58,.4);
  border-radius: 6px; display: inline-block;
}
.tier-card .tier-desc {
  font-size: 14px; color: var(--parchment); opacity: .85;
  margin: 20px 0 24px; line-height: 1.7;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.tier-card .tier-perks { flex: 1; margin-bottom: 32px; }
.tier-card .tier-perks li {
  display: flex; gap: 10px; padding: 8px 0;
  font-size: 13.5px; color: var(--parchment); opacity: .92; line-height: 1.55;
}
.tier-card .tier-perks .check {
  flex-shrink: 0; margin-top: 2px; font-family: var(--mono); font-size: 13px;
}
.tier-card[data-accent="parchment"] .tier-perks .check { color: var(--parchment); }
.tier-card[data-accent="gold"] .tier-perks .check { color: var(--gold); }
.tier-card[data-accent="vermillion"] .tier-perks .check { color: var(--vermillion); }

.tier-cta {
  display: block; text-align: center; padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .05em;
  border: none; transition: transform .2s, box-shadow .2s;
}
.tier-cta:hover { transform: translateY(-2px); }
.tier-cta.cta-ghost { background: transparent; color: var(--parchment); border: 1px solid rgba(244,236,224,.3); }
.tier-cta.cta-gold { background: var(--gold); color: var(--ink); }
.tier-cta.cta-gold:hover { color: var(--ink); }
.tier-cta.cta-vermillion { background: var(--vermillion); color: #fff; }

/* Plan graphic */
.plan-graphic-section {
  padding: 60px 40px; background: var(--ink); position: relative;
}
.plan-graphic-section .plan-desc {
  font-size: 14px; color: var(--muted); max-width: 720px; margin: 0 0 32px; line-height: 1.7;
}
.plan-graphic-frame {
  padding: 20px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(244,236,224,.04), rgba(244,236,224,.02));
  border: 1px solid var(--line);
}
.plan-graphic-frame img {
  width: 100%; display: block; border-radius: 10px;
}
.plan-graphic-cta {
  display: flex; justify-content: center; margin-top: 40px;
}
.btn-vermillion-pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px; border-radius: 999px;
  background: var(--vermillion); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .05em;
  box-shadow: 0 16px 32px -12px rgba(212,83,58,.5);
  border: none; transition: transform .2s;
}
.btn-vermillion-pill:hover { transform: translateY(-2px); color: #fff; }

/* FAQ */
.faq-section {
  padding: 60px 40px 100px; background: var(--ink);
}
.faq-section .faq-inner { max-width: 980px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  color: var(--parchment); padding: 22px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-index {
  font-family: var(--mono); color: var(--gold); margin-right: 12px; font-size: 13px;
}
.faq-item summary .faq-toggle {
  color: var(--gold); font-family: var(--mono); transition: transform .25s;
}
.faq-item[open] summary .faq-toggle { transform: rotate(45deg); }
.faq-item .faq-answer {
  margin: 0 0 16px 36px; font-size: 14px; color: var(--muted); line-height: 1.85;
}

/* ==================================================
   Home page
   ================================================== */
.home-hero { position: relative; overflow: hidden; padding-bottom: 120px; }
.home-hero .hero-inner {
  max-width: 1320px; margin: 0 auto; padding: 100px 40px 0;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center;
  position: relative; z-index: 2;
}
.home-hero h1 { font-family: var(--serif); font-size: 76px; font-weight: 600; line-height: 1.05; margin: 20px 0 24px; }
.home-hero h1 .gold { color: var(--gold); }
.home-hero h1 .verm { color: var(--vermillion); }
.home-hero h1 .dim { opacity: .4; }
.home-hero .hero-desc { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 480px; margin-bottom: 32px; }
.home-hero .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.home-hero .store-badges { display: flex; gap: 12px; align-items: center; }
.trust-strip {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.trust-strip .num { font-family: var(--serif); font-size: 32px; color: var(--gold); font-weight: 600; }
.trust-strip .label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: none; border-radius: 999px;
  background: var(--vermillion); color: #fff; font-weight: 600; font-size: 15px;
  letter-spacing: .05em; box-shadow: 0 8px 24px -8px rgba(212,83,58,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-primary-gold { background: var(--gold); box-shadow: 0 8px 24px -8px rgba(201,162,74,.45); }
.btn-ghost-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border: 1px solid rgba(244,236,224,.3);
  border-radius: 999px; background: transparent;
  color: inherit; font-weight: 500; font-size: 14px; letter-spacing: .05em;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--parchment); padding: 10px 18px;
  border-radius: 12px; border: 1px solid rgba(244,236,224,.2); min-width: 168px;
}
.store-badge .store-label { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .store-label small { font-size: 9px; opacity: .7; letter-spacing: .1em; font-family: var(--mono); }
.store-badge .store-label span { font-size: 16px; font-weight: 600; margin-top: 2px; }

/* Master section */
.master-section { background: linear-gradient(180deg, #0E1530 0%, #1A1638 100%); padding: 120px 40px; position: relative; overflow: hidden; }
.master-section .master-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.master-card {
  background: linear-gradient(145deg, rgba(244,236,224,.05), rgba(244,236,224,.02));
  border: 1px solid var(--line); border-radius: 24px; padding: 40px; position: relative;
}
.master-card .portrait {
  width: 110px; height: 110px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, rgba(244,236,224,.08) 0 8px, rgba(244,236,224,.02) 8px 16px);
  border: 2px solid var(--gold); display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px; color: var(--muted); text-align: center; line-height: 1.3;
}
.timeline { border-left: 2px solid var(--gold); padding-left: 28px; margin-bottom: 32px; }
.timeline-item { position: relative; padding: 14px 0; }
.timeline-item .dot {
  position: absolute; left: -34px; top: 18px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,74,.18);
}
.timeline-item .year { font-family: var(--mono); font-size: 13px; color: var(--gold); margin-bottom: 4px; }
.timeline-item .desc { font-size: 14px; color: var(--parchment); line-height: 1.6; opacity: .85; }

/* Why section */
.why-section {
  background: linear-gradient(180deg, #1A1638 0%, #2A1F4A 50%, #1A1638 100%);
  padding: 140px 40px; position: relative; overflow: hidden;
}
.why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.why-card {
  padding: 24px 22px; border-radius: 14px;
  background: rgba(244,236,224,.04); border: 1px solid var(--line);
}
.why-card h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* Ten stems home section */
.stems-home-section { background: linear-gradient(180deg, #1A1638, #0E1530); padding: 140px 40px; position: relative; }
.stems-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stem-cell {
  aspect-ratio: 1; border-radius: 12px;
  background: linear-gradient(160deg, rgba(244,236,224,.06), rgba(244,236,224,.02));
  border: 1px solid var(--line); padding: 20px; position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s ease, border-color .3s ease;
}
.stem-cell:hover { transform: translateY(-4px); }

/* Calculator */
.calc-section {
  background: radial-gradient(800px 500px at 50% 0%, #2A1F4A 0%, #0E1530 70%);
  padding: 140px 40px;
}
.calc-form {
  background: linear-gradient(160deg, rgba(244,236,224,.05), rgba(244,236,224,.01));
  border: 1px solid var(--line); border-radius: 24px; padding: 40px;
}
.calc-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; margin-bottom: 28px; }
.calc-fields label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.calc-fields select, .contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; background: rgba(244,236,224,.04);
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--parchment); font-family: var(--sans); font-size: 14px; outline: none;
}
.calc-fields select option, .contact-form select option { background: var(--ink); color: var(--parchment); }
.gender-btns { display: flex; gap: 16px; justify-content: center; margin-bottom: 28px; }
.gender-btn {
  padding: 10px 24px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: var(--parchment); font-size: 14px; font-weight: 500;
}
.gender-btn.active { border-color: var(--gold); background: rgba(201,162,74,.12); color: var(--gold); }

/* Oracle / 求籤 */
.oracle-section {
  background: linear-gradient(180deg, #0E1530 0%, #2A1A24 100%);
  padding: 140px 40px; position: relative; overflow: hidden;
}
.oracle-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.oracle-steps li {
  display: flex; gap: 18px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--parchment); opacity: .9; line-height: 1.7;
}
.oracle-steps .step-num {
  font-family: var(--mono); color: var(--vermillion);
  font-size: 12px; letter-spacing: .1em; flex-shrink: 0; padding-top: 2px;
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, #2A1A24 0%, #0E1530 100%);
  padding: 120px 40px;
}
.contact-form {
  background: linear-gradient(160deg, rgba(244,236,224,.05), rgba(244,236,224,.01));
  border: 1px solid var(--line); border-radius: 24px; padding: 40px;
  display: grid; gap: 20px;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .form-label {
  display: block; font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 6px;
}

/* ==================================================
   News page
   ================================================== */
.news-hero { position: relative; overflow: hidden; padding: 72px 40px 56px; }
.news-hero .hero-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.news-hero h1 { font-family: var(--serif); font-size: 88px; font-weight: 600; margin: 16px 0 16px; line-height: 1; letter-spacing: .02em; }
.news-hero h1 .gold { color: var(--gold); }
.news-hero .hero-desc { font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 600px; }
.news-counters { display: flex; gap: 28px; align-items: flex-end; }
.news-counters .counter-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .2em; }
.news-counters .counter-num { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; }

.featured-card {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--line); padding: 44px 48px; margin-bottom: 32px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.featured-card .badge-featured {
  padding: 5px 12px; border-radius: 999px; color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; font-weight: 600;
}
.featured-card h2 { font-family: var(--serif); font-size: 44px; font-weight: 600; margin: 0 0 18px; line-height: 1.15; }
.featured-card .agenda { background: rgba(14,21,48,.55); border: 1px solid rgba(244,236,224,.12); border-radius: 16px; padding: 24px; }
.featured-card .agenda-label { font-family: var(--mono); font-size: 10px; letter-spacing: .25em; margin-bottom: 14px; }

.news-row {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; align-items: center;
  padding: 32px; background: rgba(244,236,224,.02); border: 1px solid var(--line);
  border-radius: 16px; margin-bottom: 14px; transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.news-row:hover { background: rgba(244,236,224,.05); transform: translateY(-2px); }
.news-row .type-pill {
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .15em;
}
.news-row .arrow-circle {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--parchment); transition: all .25s ease;
}
.news-row:hover .arrow-circle { border-color: currentColor; }

.newsletter-cta {
  padding: 100px 40px; background: linear-gradient(180deg, #0E1530 0%, #2A1F4A 100%);
  position: relative; overflow: hidden; text-align: center;
}
.newsletter-cta h2 { font-family: var(--serif); font-size: 48px; font-weight: 600; margin: 16px 0 16px; }
.newsletter-cta h2 .gold { color: var(--gold); }
.newsletter-form {
  display: flex; gap: 8px; max-width: 460px; margin: 0 auto;
  background: rgba(244,236,224,.05); border: 1px solid var(--line); border-radius: 999px; padding: 6px;
}
.newsletter-form input {
  flex: 1; padding: 12px 18px; background: transparent; border: none;
  color: var(--parchment); font-size: 14px; outline: none; font-family: var(--sans);
}
.newsletter-form button {
  padding: 12px 22px; border-radius: 999px; background: var(--vermillion); color: #fff;
  border: none; font-weight: 600; font-size: 14px;
}

/* ==================================================
   Events page
   ================================================== */
.events-hero { position: relative; overflow: hidden; padding: 72px 40px 56px; }
.events-hero h1 { font-family: var(--serif); font-size: 88px; font-weight: 600; margin: 16px 0 16px; line-height: 1; letter-spacing: .02em; }
.events-hero h1 .gold { color: var(--gold); }
.events-hero .hero-desc { font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 600px; }

.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 80px; }
.event-banner {
  position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer; display: block; text-align: left;
}
.event-banner:hover { transform: translateY(-4px); }
.event-banner .banner-inner { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.event-banner .type-pill {
  display: inline-block; padding: 4px 10px; background: rgba(14,21,48,.55);
  border: 1px solid rgba(244,236,224,.2); border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
}
.event-banner .banner-caption { margin-top: 14px; padding-right: 20px; }
.event-banner .banner-caption .date { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .15em; }
.event-banner .banner-caption .title { font-size: 14px; color: var(--parchment); margin-top: 4px; line-height: 1.5; }

.event-detail { padding: 72px 40px 140px; position: relative; overflow: hidden; }
.event-detail .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.event-detail .poster {
  position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
}
.event-detail .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }
.event-detail .meta-cell {
  padding: 16px; border-radius: 10px; background: rgba(244,236,224,.04); border: 1px solid var(--line);
}
.event-detail .meta-cell .meta-label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; margin-bottom: 6px; }
.event-detail .meta-cell .meta-value { font-family: var(--serif); font-size: 15px; line-height: 1.5; }
.event-detail .schedule-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 16px; }
.event-detail .schedule-row { display: grid; grid-template-columns: 80px 1fr; }
.event-detail .schedule-row + .schedule-row { border-top: 1px solid var(--line); }
.event-detail .schedule-row:nth-child(odd) { background: rgba(244,236,224,.03); }
.event-detail .schedule-date { padding: 12px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .15em; border-right: 1px solid var(--line); }
.event-detail .schedule-items { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }

.btn-back {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--parchment); padding: 8px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em;
  margin-bottom: 32px; display: inline-flex; align-items: center; gap: 8px;
}

/* ==================================================
   Ten Stems page
   ================================================== */
.stems-hero { position: relative; overflow: hidden; padding: 80px 40px 60px; }
.stems-hero h1 { font-family: var(--serif); font-size: 88px; font-weight: 600; margin: 16px 0 20px; line-height: 1; letter-spacing: .02em; }
.stems-hero h1 .gold { color: var(--gold); }

.stems-listing {
  background: linear-gradient(180deg, #1A1638 0%, #0E1530 100%);
  padding: 100px 40px 140px; position: relative;
}
.stem-group { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding: 44px 0; }
.stem-group + .stem-group { border-top: 1px solid var(--line); }
.stem-group .group-label { position: sticky; top: 100px; }
.stem-group .group-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .15em;
}
.stem-group .group-name { font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 16px 0 8px; }
.stem-group .group-desc { font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.stem-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stem-card {
  text-align: left; padding: 26px; background: linear-gradient(160deg, rgba(244,236,224,.05), rgba(244,236,224,.01));
  border: 1px solid var(--line); border-radius: 18px; color: inherit; cursor: pointer;
  position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease;
  display: block;
}
.stem-card:hover { transform: translateY(-3px); }
.stem-card .stem-glyph {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--parchment);
  box-shadow: inset 0 -6px 10px rgba(0,0,0,.25);
}

.stem-detail { padding: 80px 40px 140px; position: relative; overflow: hidden; }
.stem-detail .detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.stem-detail .hero-card {
  position: relative; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 24px; padding: 44px 40px; overflow: hidden;
}
.stem-detail .hero-card .big-glyph {
  font-family: var(--serif); font-size: 280px; line-height: .9; font-weight: 500;
  color: var(--parchment); text-align: center; margin: 24px 0; letter-spacing: -.02em;
}
.stem-detail .hero-card .meta-row {
  display: flex; justify-content: space-between; padding-top: 20px;
  border-top: 1px solid rgba(244,236,224,.15);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted);
}
.stem-detail .hero-card .meta-row .meta-val { color: var(--parchment); font-family: var(--serif); font-size: 18px; letter-spacing: 0; }

.stem-nav-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.stem-nav-btn {
  padding: 20px 24px; background: rgba(244,236,224,.04); border: 1px solid var(--line);
  border-radius: 14px; color: inherit; cursor: pointer; transition: border-color .25s ease;
}
.stem-nav-btn:hover { border-color: var(--gold); background: rgba(244,236,224,.07); }
.stem-nav-btn .nav-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .2em; margin-bottom: 6px; }
.stem-nav-btn .nav-title { font-family: var(--serif); font-size: 22px; font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .tiers-grid { gap: 18px; }
  .tier-card .tier-name { font-size: 30px; }
  .tier-card .tier-price .amount { font-size: 36px; }
}

@media (max-width: 720px) {
  .cosmic-container { padding: 0 20px; }
  .membership-hero { padding: 48px 20px 60px; }
  .membership-hero .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .membership-hero h1, .news-hero h1, .events-hero h1, .stems-hero h1 { font-size: 56px; }
  .tiers-section { padding: 60px 20px 40px; }
  .tiers-grid { grid-template-columns: 1fr; gap: 20px; }
  .plan-graphic-section { padding: 40px 20px; }
  .faq-section { padding: 40px 20px 60px; }
  .cosmic-nav .nav-inner { padding: 14px 20px; gap: 20px; }
  .cosmic-nav .nav-links { gap: 16px; }
  .cosmic-footer { padding: 30px 20px 20px; }
  .section-header h2 { font-size: 30px; }
  .home-hero .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px 0; }
  .home-hero h1 { font-size: 56px; }
  .master-section { padding: 80px 20px; }
  .master-section .master-grid { grid-template-columns: 1fr; }
  .why-section { padding: 80px 20px; }
  .why-cards { grid-template-columns: 1fr; }
  .stems-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .calc-fields { grid-template-columns: 1fr 1fr; }
  .oracle-grid { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; padding: 28px; }
  .news-row { grid-template-columns: 1fr; gap: 16px; }
  .events-grid { grid-template-columns: 1fr; gap: 20px; }
  .event-detail .detail-grid { grid-template-columns: 1fr; }
  .stem-group { grid-template-columns: 1fr; gap: 24px; }
  .stem-group .group-label { position: static; }
  .stem-detail .detail-grid { grid-template-columns: 1fr; }
  .stem-detail .hero-card .big-glyph { font-size: 160px; }
}

@media (max-width: 480px) {
  .membership-hero h1, .news-hero h1, .events-hero h1, .stems-hero h1, .home-hero h1 { font-size: 40px; }
  .cosmic-nav .nav-links { display: none; }
  .tier-card { padding: 32px 20px 28px; }
  .stems-grid-5 { grid-template-columns: 1fr; }
  .stem-cards { grid-template-columns: 1fr; }
  .stem-nav-btns { grid-template-columns: 1fr; }
  .featured-card h2 { font-size: 30px; }
}
