/* =====================================================
   GERMANIUM — Design System
   Fonts: DM Sans (body) + DM Mono (code/labels)
   Colors: Black primary · Green secondary · Yellow tertiary
   Theme: System default (light/dark via prefers-color-scheme)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ===== Tokens: Dark (default) ===== */
:root {
  --bg:            #0a0a0a;
  --bg-2:          #111111;
  --bg-3:          #1a1a1a;
  --border:        rgba(255, 255, 255, 0.08);
  --border-2:      rgba(255, 255, 255, 0.14);
  --text:          #f0f0f0;
  --text-dim:      #c0c0c0;
  --text-muted:    #707070;
  --green:         #22c55e;
  --green-dim:     rgba(34, 197, 94, 0.1);
  --green-border:  rgba(34, 197, 94, 0.25);
  --yellow:        #eab308;
  --yellow-dim:    rgba(234, 179, 8, 0.1);
  --yellow-border: rgba(234, 179, 8, 0.25);
  --red:           #ef4444;
  --red-dim:       rgba(239, 68, 68, 0.1);
  --red-border:    rgba(239, 68, 68, 0.25);
  --shadow:        0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --radius:        0.625rem;
  --radius-sm:     0.375rem;
  --radius-lg:     1rem;
  --max-w:         1100px;
}

/* ===== Tokens: Light ===== */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:            #f2f2f0;
    --bg-2:          #f8f8f5;
    --bg-3:          #eeeeea;
    --border:        rgba(0, 0, 0, 0.08);
    --border-2:      rgba(0, 0, 0, 0.14);
    --text:          #0a0a0a;
    --text-dim:      #333333;
    --text-muted:    #777777;
    --green:         #16a34a;
    --green-dim:     rgba(22, 163, 74, 0.08);
    --green-border:  rgba(22, 163, 74, 0.2);
    --yellow:        #b45309;
    --yellow-dim:    rgba(180, 83, 9, 0.08);
    --yellow-border: rgba(180, 83, 9, 0.2);
    --red:           #dc2626;
    --red-dim:       rgba(220, 38, 38, 0.08);
    --red-border:    rgba(220, 38, 38, 0.2);
    --shadow:        0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  }
}

:root[data-theme="light"] {
  --bg:            #f2f2f0;
  --bg-2:          #f8f8f5;
  --bg-3:          #eeeeea;
  --border:        rgba(0, 0, 0, 0.08);
  --border-2:      rgba(0, 0, 0, 0.14);
  --text:          #0a0a0a;
  --text-dim:      #333333;
  --text-muted:    #777777;
  --green:         #16a34a;
  --green-dim:     rgba(22, 163, 74, 0.08);
  --green-border:  rgba(22, 163, 74, 0.2);
  --yellow:        #b45309;
  --yellow-dim:    rgba(180, 83, 9, 0.08);
  --yellow-border: rgba(180, 83, 9, 0.2);
  --red:           #dc2626;
  --red-dim:       rgba(220, 38, 38, 0.08);
  --red-border:    rgba(220, 38, 38, 0.2);
  --shadow:        0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 100%; /* respects browser/user font size preference */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--text-dim); line-height: 1.7; }
section > .container > p,
.section-header p { max-width: 65ch; }
a { color: inherit; text-decoration: none; }

.mono { font-family: 'DM Mono', monospace; font-size: 0.85em; }
.green { color: var(--green); }
.yellow { color: var(--yellow); }
.muted { color: var(--text-muted); }

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

section { padding: 6rem 0; }

.divider { height: 1px; background: var(--border); }

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-mark {
  width: 0.44rem; height: 0.44rem;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

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

.nav-links a {
  padding: 0.44rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover { color: var(--text); background: var(--border); }
.nav-links a.active { color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
}

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

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn-primary:hover {
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  }
}

:root[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  background: var(--border);
}

.btn-sm { padding: 0.44rem 0.8rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }

/* ===== Tags ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag::before {
  content: '';
  width: 0.3rem; height: 0.3rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.tag-green {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.tag-yellow {
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-border);
  color: var(--yellow);
}

.tag-red {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  color: var(--red);
}

/* ===== Section eyebrow ===== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow::before {
  content: '';
  width: 1.125rem; height: 1px;
  background: var(--green);
}

/* ===== Code block ===== */
.code-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  overflow-x: auto;
}

@media (prefers-color-scheme: light) {
  .code-block { background: var(--bg-3); }
}

.ck { color: var(--green); }     /* keyword */
.cv { color: var(--yellow); }    /* value   */
.cc { color: var(--text-muted); }/* comment */
.ce { color: var(--red); }       /* error   */

/* ===== Forms ===== */
.form-row { display: flex; gap: 0.5rem; }

.input {
  flex: 1;
  padding: 0.69rem 0.94rem;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.form-note {
  margin-top: 0.625rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.success-msg {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.69rem 0.94rem;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
}

.success-msg.show { display: flex; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.75rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Layout utilities ===== */
.text-center { text-align: center; }
.section-header { margin-bottom: 2.5rem; }

/* ===== Hero ===== */
.hero {
  padding: 8rem 0 4rem;
}

.hero-sub {
  max-width: 65ch;
  margin: 1.25rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Dot grid visualization ===== */
.dot-grid-wrap {
  max-width: 28rem;
  margin: 3rem auto 0;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 0.5rem;
  justify-items: center;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border-2);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.dot--green {
  background: var(--green);
  box-shadow: 0 0 0.375rem var(--green-dim);
}

.dot--dim {
  background: var(--text-muted);
  opacity: 0.35;
}

.dot--red {
  background: var(--red);
  box-shadow: 0 0 0.5rem var(--red-dim);
}

.bug-callout {
  background: #1a0a0a;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem auto 0;
  text-align: left;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .bug-callout {
    background: #fff5f5;
    border-color: rgba(220, 38, 38, 0.15);
  }
}

:root[data-theme="light"] .bug-callout {
  background: #fff5f5;
  border-color: rgba(220, 38, 38, 0.15);
}

:root[data-theme="dark"] .bug-callout {
  background: #1a0a0a;
  border-color: rgba(239, 68, 68, 0.2);
}

.bug-callout.visible {
  opacity: 1;
  transform: none;
}

/* ===== Stats row ===== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ===== CTA section ===== */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section p {
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Card system ===== */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card h3 { margin-bottom: 0.625rem; }
.card p { font-size: 0.95rem; }

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'DM Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green);
}

.team-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.team-bio {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Product page: Feature list ===== */
.feature-list {
  list-style: none;
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

/* ===== Product page: Process steps ===== */
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.process-step {
  text-align: center;
  min-width: 4.5rem;
}

.process-step-icon {
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 0.375rem;
  line-height: 1;
}

.process-step-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.4;
}

.process-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  align-self: center;
  margin-top: -0.75rem;
}

/* ===== Product page: Budget bars ===== */
.budget-bars { margin-top: 1rem; }

.budget-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.budget-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  min-width: 8rem;
  flex-shrink: 0;
}

.budget-bar {
  height: 0.375rem;
  background: var(--bg-3);
  border-radius: 100px;
  flex: 1;
  overflow: hidden;
}

.budget-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  transition: width 0.6s ease;
}

.budget-pct {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: right;
}

/* ===== Product page: Finding card ===== */
.finding-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.finding-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== Product page: Specs grid ===== */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.spec-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.375rem;
}

.spec-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.spec-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== Product page: Feedback loop ===== */
.loop-inner {
  display: grid;
  gap: 2rem;
}

/* loop-inner is single-column; loop-copy + step list stack vertically */

.loop-copy {
  max-width: 52ch;
}

.feedback-loop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.loop-step {
  text-align: center;
  padding: 1rem 0;
}

.loop-step-icon {
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 0.375rem;
}

.loop-step h4 { margin-bottom: 0.25rem; }
.loop-step p { font-size: 0.875rem; }

.loop-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* ===== Mobile hamburger ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 1.125rem;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Theme toggle ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.theme-toggle button {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle button:hover {
  color: var(--text-dim);
}

.theme-toggle button.active {
  color: var(--text);
  border-color: var(--border-2);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .form-row { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .container { padding: 0 1.25rem; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 3.75rem;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }

  /* Hero */
  .hero { padding: 6rem 0 3rem; }

  /* Grids */
  .card-grid--2,
  .card-grid--3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  /* Process steps */
  .process-steps { gap: 0.5rem; }
  .process-step { min-width: 3.5rem; }
  .process-arrow { font-size: 1rem; }

  /* Stats */
  .stats-row { gap: 2rem; }

  /* Budget bars */
  .budget-label { min-width: 6rem; font-size: 0.7rem; }
}
