:root {
  --bg: #faf9f6;
  --bg-alt: #f0ede7;
  --text: #1a1a1a;
  --text-muted: #6b6560;
  --accent: #ae861d;
  --border: #ddd8d0;
  --card: #ffffff;
  --radius: 6px;
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

section {
  padding: 4rem 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.muted {
  color: var(--text-muted);
}

.label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---- Nav ---- */

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
}

.site-nav-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav-logo:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 6rem 0 6rem;
  background-color: var(--bg-alt);
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px;
  background-position: 0 0, 10px 10px;
  background-repeat: repeat, repeat;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-desc {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
}

.hero-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.hero-img img {
  width: 100%;
  border-radius: var(--radius);
}

/* ---- Steps ---- */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.step {
  text-align: center;
}

.step-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 20rem;
  margin: 0 auto;
}

.step-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* ---- Use Cases ---- */

.use-cases-section {
  border-top: 1px solid var(--border);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.use-case {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.use-case-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.use-case figcaption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .use-cases-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ideas-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border);
}

.ideas-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ideas-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.ideas-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 600px) {
  .ideas-list {
    grid-template-columns: 1fr;
  }
}

/* ---- Modules ---- */

.modules-section {
  border-top: 1px solid var(--border);
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.category-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
}

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

.module-card {
  overflow: hidden;
  transition: border-color 0.15s;
}

.module-card:hover {
  border-color: #c0bbb3;
}

.module-img {
  height: 200px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
}

.module-img img {
  width: 100%;
  height: auto;
  opacity: 0.9;
}

.module-info {
  padding: .5rem .5rem 1rem .5rem;
  background: transparent;
}

.module-info h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.module-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.module-pill-live {
  background: var(--bg-alt);
  color: var(--text);
}

.module-pill-local {
  background: transparent;
  color: var(--text-muted);
}

.module-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Software ---- */

.software-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.software-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.software-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.software-left h2 {
  margin-bottom: 0;
}

.software-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.software-features li {
  list-style: none;
  font-size: 0.9375rem;
  padding-left: 1.5rem;
  position: relative;
}

.software-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.software-embed {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #F5F2E9;
}

.software-embed iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
  background: #F5F2E9;
}

/* ---- Build ---- */

.build-section {
  border-top: 1px solid var(--border);
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.build-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ---- Details (specs + in the box) ---- */

.details-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.details-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

.spec-columns {
  max-width: 32rem;
  margin: 1rem auto 0;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.625rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9375rem;
}

.spec-list .spec-label {
  color: var(--text-muted);
}

.spec-list .spec-value {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  text-align: right;
}

.box-list {
  list-style: none;
}

.box-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  border-bottom: 1px dashed var(--border);
}

.box-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ---- FAQ ---- */

.faq-section {
  border-top: 1px solid var(--border);
  text-align: center;
}

.faq-section .faq-list {
  text-align: left;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  padding: 1rem 2rem 1rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9375rem;
  list-style: none;
  position: relative;
  user-select: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  color: var(--accent);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.125rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '\2212';
}

.faq-list details p {
  padding: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 36rem;
}

/* ---- CTA ---- */

.cta-section {
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 640px) {
  .cta-inner {
    grid-template-columns: 1.5fr 1fr;
  }
}

.tally-embed iframe {
  width: 100%;
  border: none;
  display: block;
}

.cta-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0.5rem 0;
}

.cta-note {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--text);
  color: var(--bg);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--text);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.cta-button:hover {
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

/* ---- Footer ---- */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-inner a {
  color: var(--text-muted);
}

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

/* ---- Responsive ---- */

@media (min-width: 640px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .details-columns {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .build-grid {
    grid-template-columns: repeat(4, 1fr);
    border-radius: var(--radius);
  }
}

@media (min-width: 960px) {
  section {
    padding: 5rem 0;
  }

  .modules-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .module-img {
    height: 240px;
  }
}