:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --green: #3fb950;
  --green-hover: #2ea043;
  --orange: #d29922;
  --blue: #58a6ff;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono", "Consolas", "Liberation Mono", monospace;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 20px;
  --font-size-xl: 28px;
  --font-size-hero: clamp(28px, 5vw, 44px);
  --line-height: 1.6;
  --max-width: 1100px;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--green);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAV ── */

.nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.nav-brand {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
}

.nav-brand:hover {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.nav-links a:hover {
  color: var(--green);
}

/* ── HERO ── */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: var(--font-size-hero);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero h1 .accent {
  color: var(--green);
}

.hero .subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero .price-tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}

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

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

.btn-outline:hover {
  background: var(--green);
  color: var(--bg);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ── SECTION ── */

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.section-label::before {
  content: "// ";
  color: var(--green);
}

/* ── PRODUCT GRID ── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}

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

.product-card.featured {
  border-color: var(--green);
}

.product-card .badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.badge-available {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}

.badge-soon {
  background: rgba(210, 153, 34, 0.15);
  color: var(--orange);
}

.product-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 0.5rem;
}

.product-card h3 a {
  color: var(--text);
}

.product-card h3 a:hover {
  color: var(--green);
}

.product-card .one-liner {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-card .meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-card .price {
  color: var(--orange);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

/* ── MANIFESTO ── */

.manifesto {
  max-width: 720px;
}

.manifesto p {
  margin-bottom: 1.25rem;
  font-size: var(--font-size-base);
  color: var(--text-muted);
}

.manifesto p:first-of-type {
  color: var(--text);
  font-size: var(--font-size-lg);
}

.manifesto .highlight {
  color: var(--green);
  font-weight: 600;
}

/* ── PRODUCT PAGE ── */

.product-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.product-header .back-link {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.product-header .back-link:hover {
  color: var(--green);
}

.product-header h1 {
  font-size: var(--font-size-xl);
  margin-bottom: 0.75rem;
}

.product-header .product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.product-header .product-meta .price {
  color: var(--orange);
  font-weight: 700;
}

.product-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.product-section h2 {
  font-size: var(--font-size-lg);
  margin-bottom: 1.25rem;
  color: var(--text);
}

.product-section h2::before {
  content: "$ ";
  color: var(--green);
}

.product-section ul {
  list-style: none;
  padding: 0;
}

.product-section li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.product-section li::before {
  content: "> ";
  color: var(--green);
}

.feature-list li::before {
  content: "+ ";
  color: var(--green);
}

.check-list li::before {
  content: "* ";
  color: var(--green);
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

code {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
}

/* ── FAQ ── */

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item .question {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.faq-item .question::before {
  content: "Q: ";
  color: var(--green);
}

.faq-item .answer {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.faq-item .answer::before {
  content: "A: ";
  color: var(--text-muted);
}

/* ── FOOTER ── */

.footer {
  padding: 2.5rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

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

.footer .footer-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer .footer-note .explain {
  color: var(--text-muted);
  font-style: italic;
}

/* ── CLI MOCKUP ── */

.cli-mockup {
  background: #0a0e14;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.cli-prompt {
  color: var(--green);
  font-weight: 700;
}

.cli-cmd {
  color: var(--text);
}

.cli-info {
  color: var(--blue);
}

.cli-ok {
  color: var(--green);
}

.cli-bar {
  color: var(--orange);
}

/* ── FEATURES GRID ── */

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

.feature-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}

.feature-block h3 {
  font-size: var(--font-size-base);
  margin-bottom: 0.5rem;
  color: var(--green);
}

.feature-block p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── SPECS TABLE ── */

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table td {
  padding: 0.6rem 0;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border);
}

.specs-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  padding-right: 1rem;
}

.specs-table td:last-child {
  color: var(--text);
}

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

/* ── PRICING BOX ── */

.pricing-box {
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 2rem;
  max-width: 480px;
}

.pricing-amount {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.pricing-detail {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pricing-box .check-list {
  margin-bottom: 1.5rem;
}

/* ── SECTION DESC ── */

.section-desc {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 1.25rem;
  max-width: 720px;
}

/* ── ABOUT PAGE ── */

.about-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.about-hero h1 {
  font-size: var(--font-size-hero);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.about-hero .accent {
  color: var(--green);
}

.about-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.5;
}

.about-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.about-content {
  max-width: 720px;
}

.about-content h2 {
  font-size: var(--font-size-lg);
  margin-bottom: 1.25rem;
  color: var(--text);
}

.about-content h2::before {
  content: "// ";
  color: var(--green);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.about-principles {
  list-style: none;
  padding: 0;
}

.about-principles li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.about-principles li:last-child {
  border-bottom: none;
}

.about-principles li strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--font-size-base);
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero .subtitle {
    font-size: var(--font-size-base);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  .nav-links {
    gap: 1rem;
  }

  .product-header .product-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .specs-table td:first-child {
    width: 45%;
  }

  .about-hero {
    padding: 3rem 0 2rem;
  }

  .about-section {
    padding: 2rem 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 12px;
  }
}
