:root {
  --bg: #F4F6F4;
  --surface: #FFFFFF;
  --surface-high: #EFF3F0;
  --line: #D5DDD7;
  --line-soft: #E3E9E5;
  --ink: #161B18;
  --ink-dim: #526058;
  --ink-faint: #8E9C94;
  --green: #206E46;
  --green-dim: #32855A;
  --gold: #BA8826;
  --gold-bright: #D49B28;
  --shadow: rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
  --bg: #0A0D0B;
  --surface: #131A16;
  --surface-high: #1A241E;
  --line: #243029;
  --line-soft: #1C2620;
  --ink: #E8EDE9;
  --ink-dim: #8DA096;
  --ink-faint: #55645C;
  --green: #4DBE8A;
  --green-dim: #2C6B4E;
  --gold: #D9A94E;
  --gold-bright: #F0C36A;
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  padding: 16px 0;
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.spade-icon {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--green);
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 4px;
}

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

.theme-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.github-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.github-btn:hover {
  border-color: var(--green);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-high);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letterSpacing: 1.5px;
  color: var(--green);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(32, 110, 70, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(32, 110, 70, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(32, 110, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(32, 110, 70, 0); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 660px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;

}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--green);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(32, 110, 70, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--green-dim);
}

.btn-ghost {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-dim);
}

.hero-footnote {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* Hero Mockup Card */
.hero-mockup-card {
  max-width: 440px;
  margin: 48px auto 0;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 32px var(--shadow);
  text-align: left;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-faint);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.mockup-pot {
  text-align: center;
  margin-bottom: 20px;
}

.pot-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--ink-faint);
}

.pot-amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--gold-bright);
  font-family: var(--font-sans);
}

.mockup-ring {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-high);
  border: 1px solid var(--line-soft);
}

.player-pill.active {
  border-color: var(--green);
  background: var(--bg);
}

.player-pill.folded {
  opacity: 0.4;
}

.p-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.p-stack { font-weight: 700; font-size: 14px; color: var(--ink-dim); }
.p-action { font-size: 11px; font-weight: 800; color: var(--green); }

/* Features */
.features-section {
  padding: 80px 0;
  background: var(--surface-high);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--ink-dim);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.5;
}

/* How Section */
.how-section {
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}

.step-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--ink-dim);
  font-size: 14px;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: 2px;
}

.footer-text {
  font-size: 13px;
  color: var(--ink-dim);
}

.footer-text a {
  color: var(--green);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

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

@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; text-align: center; }
}
