/* ─── theBlocks Sleek Dark Theme Stylesheet ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Signature "Midnight" Palette */
  --bg-main: #141715;
  --bg-secondary: #1a1e1b;
  --bg-card: #1f2521;
  --bg-card-hover: #262d29;
  --bg-glass: rgba(20, 23, 21, 0.85);

  --border-color: #2c3530;
  --border-subtle: #222924;
  --border-accent: rgba(161, 211, 154, 0.35);

  --text-primary: #f3f9f3;
  --text-secondary: #cbd5cb;
  --text-muted: #889689;

  /* Game Accents */
  --accent-primary: #a1d39a;
  --accent-hover: #b8e6b2;
  --accent-glow: rgba(161, 211, 154, 0.2);
  --accent-surface: rgba(161, 211, 154, 0.1);
  --accent-ice: #a0cfd4;
  --accent-gold: #f6c85f;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(161, 211, 154, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(161, 211, 154, 0.08) 0%, rgba(20, 23, 21, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.2s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(161, 211, 154, 0.25);
  border: 1px solid var(--border-accent);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease, background 0.15s ease;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

.nav-link.active {
  color: var(--accent-primary);
  background: var(--accent-surface);
  font-weight: 600;
}

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
  width: 100%;
  padding: 64px 0 56px;
  text-align: center;
}

.hero-icon-wrapper {
  margin-bottom: 24px;
  display: inline-block;
  position: relative;
}

.hero-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
}

.hero-app-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(161, 211, 154, 0.2);
  border: 1.5px solid var(--border-accent);
  display: block;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-surface);
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-ice);
  margin-bottom: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 38px;
  line-height: 1.65;
}

/* Store Download Buttons */
.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  box-shadow: var(--shadow-md);
}

.btn-store:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(161, 211, 154, 0.15);
  color: var(--text-primary);
}

.btn-store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-store-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 2px;
}

.btn-store-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ─── Interactive Mechanics Visual / Concept ─────────────────────────────── */
.mechanics-section {
  padding: 60px 0 70px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

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

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.mechanic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.mechanic-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), 0 0 24px rgba(161, 211, 154, 0.08);
}

.mechanic-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-ice);
  background: rgba(160, 207, 212, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  width: fit-content;
}

.mechanic-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.mechanic-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mini Visual Demo Inside Mechanic Card */
.visual-demo-box {
  margin-top: 20px;
  background: #141715;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

/* ─── Features Grid ──────────────────────────────────────────────────────── */
.features-section {
  padding: 70px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-surface);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Solvability Callout Banner ─────────────────────────────────────────── */
.manifesto-section {
  padding: 20px 0 80px;
}

.manifesto-box {
  background: linear-gradient(135deg, rgba(31, 37, 33, 0.9) 0%, rgba(20, 23, 21, 0.9) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 44px;
  position: relative;
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.manifesto-box h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.manifesto-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.manifesto-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* ─── Privacy Policy Page ────────────────────────────────────────────────── */
.privacy-header {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.privacy-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.privacy-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

.privacy-body {
  padding: 50px 0 80px;
}

.privacy-article {
  max-width: 860px;
  margin: 0 auto;
}

.privacy-article section {
  margin-bottom: 44px;
}

.privacy-article h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.015em;
}

.privacy-article h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 24px 0 10px;
}

.privacy-article p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.7;
}

.privacy-article ul, .privacy-article ol {
  margin: 12px 0 16px 24px;
  color: var(--text-secondary);
}

.privacy-article li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.privacy-callout {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 22px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.privacy-table-wrapper {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.privacy-table th, .privacy-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-color);
}

.privacy-table th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.privacy-table tr:last-child td {
  border-bottom: none;
}

.privacy-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.privacy-table td {
  color: var(--text-secondary);
}

/* ─── Responsive Media Queries ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .mechanics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .navbar {
    height: 64px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .store-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-store {
    width: 100%;
    justify-content: center;
  }
  .manifesto-box {
    padding: 28px 20px;
  }
  .manifesto-stats {
    gap: 20px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .privacy-title {
    font-size: 2.1rem;
  }
}
