@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --black:    #0a0a0a;
  --surface:  #111111;
  --surface2: #161616;
  --border:   #1e1e1e;
  --border2:  #2a2a2a;
  --stone:    #3a3a38;
  --text:     #f0ede6;
  --muted:    #6b6866;
  --subtle:   #3d3d3b;
  --green:    #7a9a82;
  --green-lt: #b5c9b8;
  --green-dk: #4a6b52;
  --cream:    #f0ede6;
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'Plus Jakarta Sans', system-ui, sans-serif;
  --radius:   12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg {
  width: 14px;
  height: 14px;
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border2);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--subtle);
  background: var(--surface);
}

.btn-primary {
  background: var(--green);
  color: var(--black);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--green-lt);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green-dk);
}

.btn-outline:hover {
  background: rgba(122,154,130,0.08);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 14px;
  border-radius: 12px;
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 100px 0;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}

h1, .h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
}

h2, .h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}

h3, .h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}

.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}

.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.text-subtle { color: var(--subtle); }
.italic { font-style: italic; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,154,130,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  padding: 0 48px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.hero-tag span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.hero h1 {
  margin-bottom: 28px;
}

.hero h1 em {
  color: var(--green);
  font-style: italic;
}

.hero .lead {
  max-width: 520px;
  margin-bottom: 48px;
}

/* ── WAITLIST FORM ───────────────────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
}

.waitlist-form input[type="email"],
.waitlist-form input[type="text"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.waitlist-form input:focus {
  border-color: var(--green-dk);
}

.waitlist-form input::placeholder {
  color: var(--subtle);
}

.waitlist-form .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.form-note {
  font-size: 11px;
  color: var(--subtle);
  margin-top: 12px;
  letter-spacing: 0.3px;
}

.waitlist-success {
  display: none;
  background: rgba(122,154,130,0.08);
  border: 1px solid var(--green-dk);
  border-radius: 10px;
  padding: 16px 20px;
  max-width: 440px;
}

.waitlist-success.show { display: block; }
.waitlist-form.hide { display: none; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--border2);
}

.card-sm {
  padding: 24px;
  border-radius: var(--radius);
}

/* ── GRID ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── BADGE / TAG ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(122,154,130,0.12);
  color: var(--green-lt);
}

.badge-stone {
  background: rgba(60,60,58,0.5);
  color: var(--muted);
}

.badge-amber {
  background: rgba(180,140,60,0.12);
  color: #c8a84b;
}

/* ── OUT OF STOCK BANNER ─────────────────────────────────── */
.oos-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.oos-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8a84b;
  display: inline-block;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── STEP ────────────────────────────────────────────────── */
.step {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--subtle);
  min-width: 32px;
  padding-top: 4px;
}

.step-content { flex: 1; }

.step-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── ARTICLE CARD ────────────────────────────────────────── */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.article-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.article-img {
  height: 200px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body {
  padding: 28px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.article-read {
  font-size: 11px;
  color: var(--subtle);
}

/* ── DASHBOARD MOCKUP ────────────────────────────────────── */
.dashboard-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dash-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border2);
}

.dash-body {
  padding: 24px;
}

.dash-score {
  text-align: center;
  padding: 32px;
  position: relative;
}

.dash-score-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
}

.dash-score-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--subtle);
  margin-top: 6px;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.dash-metric {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.dash-metric-label {
  font-size: 10px;
  color: var(--subtle);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.dash-metric-val {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
}

.dash-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
}

/* ── STREAK ──────────────────────────────────────────────── */
.streak-row {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}

.streak-day {
  flex: 1;
  height: 32px;
  border-radius: 5px;
  background: var(--border);
}

.streak-day.done {
  background: var(--green-dk);
}

.streak-day.today {
  background: var(--green);
  box-shadow: 0 0 8px rgba(122,154,130,0.3);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 2px;
}

.footer-note {
  font-size: 11px;
  color: var(--subtle);
  max-width: 360px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  padding: 140px 0 80px;
}

/* ── COMMUNITY TEASER ────────────────────────────────────── */
.teaser-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
}

/* ── FORUM PREVIEW ───────────────────────────────────────── */
.forum-thread {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.5;
  filter: blur(1.5px);
  pointer-events: none;
}

.forum-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
}

/* ── WAITLIST PAGE ───────────────────────────────────────── */
.waitlist-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.waitlist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }

  .container, .container-sm { padding: 0 20px; }

  .hero-inner { padding: 0 20px; }

  section { padding: 64px 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .waitlist-form { flex-direction: column; }

  footer { flex-direction: column; gap: 32px; padding: 32px 20px; }

  .oos-banner { flex-direction: column; align-items: flex-start; }

  .dash-metrics { grid-template-columns: 1fr 1fr; }

  .waitlist-card { padding: 32px 24px; }

  .teaser-block { padding: 40px 24px; }

  h1, .h1 { font-size: 38px; }
  h2, .h2 { font-size: 28px; }
}
