:root {
  --bg-dark: #0a0c10;
  --bg-card: #12161f;
  --bg-card-hover: #181d28;
  --border-subtle: #232a3b;
  --border-gold: #d4a72c;
  --gold-primary: #ffd83d;
  --gold-secondary: #f5c518;
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --text-primary: #f0f3f8;
  --text-secondary: #9aa5b8;
  --text-muted: #647087;
  --font-mono: 'Consolas', 'Menlo', 'DejaVu Sans Mono', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 16, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-primary);
  display: inline-block;
}

.brand-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: rgba(255, 216, 61, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 216, 61, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--gold-primary);
}

.nav-btn {
  background: linear-gradient(135deg, #252e42, #181d2b);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.nav-btn:hover {
  border-color: var(--gold-secondary);
  color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.15);
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 216, 61, 0.08);
  border: 1px solid rgba(255, 216, 61, 0.25);
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, #ffd83d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-primary);
  font-family: var(--font-mono);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f5c518, #d4a72c);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.35);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

/* Video Stage */
.video-wrapper {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 197, 24, 0.15);
  border: 2px solid rgba(255, 216, 61, 0.35);
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.video-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.video-audio-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 0.2s;
}

.video-audio-badge:hover {
  background: rgba(245, 197, 24, 0.25);
  border-color: var(--gold-primary);
}

/* Code & Architecture Section */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.pipeline-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Code snippet box */
.code-box {
  background: #080a0f;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cfd8dc;
  overflow-x: auto;
  line-height: 1.6;
}

.code-box .comment { color: var(--gold-secondary); }
.code-box .keyword { color: #80cbc4; }

/* =======================================================
   PROMOTION SECTION: pennyBook Ledger
   ======================================================= */
.promo-section {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(10, 12, 16, 0.95) 100%);
  border-top: 1px solid rgba(16, 185, 129, 0.25);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5rem 0;
  position: relative;
}

.promo-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .promo-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.promo-app-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--emerald-glow);
  border: 2px solid rgba(16, 185, 129, 0.4);
}

.promo-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
}

.promo-title span {
  color: #34d399;
}

.promo-tagline {
  font-size: 1.1rem;
  color: #a7f3d0;
  font-style: italic;
  margin-bottom: 1rem;
}

.promo-lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.promo-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

@media (max-width: 550px) {
  .promo-features {
    grid-template-columns: 1fr;
  }
}

.promo-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(18, 22, 31, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
}

.promo-feat-icon {
  color: #34d399;
  font-size: 1.1rem;
  line-height: 1;
}

.promo-feat-text strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
}

.promo-feat-text span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.promo-cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-playstore {
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.btn-playstore:hover {
  transform: translateY(-2px);
  background: #f3f4f6;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.playstore-icon {
  width: 24px;
  height: 24px;
}

.playstore-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.playstore-copy small {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #4b5563;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.playstore-copy strong {
  font-size: 0.95rem;
  line-height: 1.1;
  color: #111827;
}

.promo-visual {
  position: relative;
  text-align: center;
}

.promo-preview-img {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--emerald-glow);
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: #080a0d;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--gold-primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
