/* ────────────────────────────────────────────
   Synterran · synterran.systems
   ──────────────────────────────────────────── */

:root {
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --teal-600:  #0891b2;
  --teal-700:  #0e7490;
  --teal-800:  #155e75;
  --teal-900:  #164e63;

  --amber-600: #d97706;
  --amber-700: #b45309;

  --green-700: #15803d;

  --red-800:   #991b1b;

  --bg:        var(--stone-50);
  --panel:     rgba(255, 255, 255, 0.72);
  --border:    rgba(168, 162, 158, 0.35);
  --shadow:    0 1px 3px rgba(28, 25, 23, 0.04), 0 12px 40px rgba(28, 25, 23, 0.05);
  --radius:    12px;
  --max-w:     1080px;
  --narrow:    720px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--stone-800);
  font-family: 'DM Sans', 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── Skip link ── */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--stone-900); color: var(--stone-50);
  padding: 0.6rem 1rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 500; z-index: 200;
}
.skip-link:focus { top: 1rem; }

/* ── Layout ── */
.container {
  width: min(calc(100% - 2.5rem), var(--max-w));
  margin: 0 auto;
}
.narrow { max-width: var(--narrow); }

.section { padding: 5.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  background: rgba(250, 250, 249, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.75rem; gap: 1.5rem;
}

.wordmark {
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--stone-900);
}

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  font-size: 0.88rem; color: var(--stone-500);
  font-weight: 500; letter-spacing: 0.01em;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--stone-900); }

/* ── Typography ── */
h1, h2, h3 {
  color: var(--stone-900);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.15rem;
  color: var(--stone-600);
}
p:last-child { margin-bottom: 0; }

.kicker {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal-700);
  margin-bottom: 0.75rem;
}

/* ── Hero ── */
.hero { padding: 5rem 0 4rem; }

.hero h1 { margin-bottom: 2rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-lede {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--stone-600);
  max-width: 52ch;
}

.hero-proof {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem; padding: 0.55rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--stone-700);
}

.hero-proof .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--teal-700);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.hero-figure {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero-figure img {
  width: 100%; height: auto;
  border-radius: 8px;
}

.hero-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--stone-400);
}

/* ── Cards ── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Approach — grid with diagram ── */
.approach-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: end;
}

.approach-copy p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.approach-figure {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.approach-figure img {
  width: 100%; height: auto;
  border-radius: 8px;
}

/* ── Approach — feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.feature-card {
  padding: 1.5rem;
}

.feature-card .feature-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.feature-card .feature-label.label-power  { color: var(--red-800); }
.feature-card .feature-label.label-carbon { color: var(--amber-700); }
.feature-card .feature-label.label-compute { color: var(--green-700); }

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; }

/* ── Cycle section with second diagram ── */
.cycle-block {
  margin-top: 3rem;
}

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

.cycle-figure {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cycle-figure img {
  width: 100%; height: auto;
  border-radius: 8px;
}

.cycle-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--stone-400);
}

.cycle-copy { padding-top: 0.5rem; }
.cycle-copy p { font-size: 1rem; }

/* ── Full-width diagram ── */
.diagram-full {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-top: 2rem;
}

.diagram-full img {
  width: 100%; height: auto;
  border-radius: 8px;
}

.diagram-full figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--stone-400);
}

/* ── Deployment rows ── */
.deployment-rows {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.deployment-row {
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

.deployment-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-700);
  min-width: 7rem;
  padding-top: 1.5rem;
  flex-shrink: 0;
}

.deployment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  flex: 1;
}

.timeline-card {
  padding: 1.5rem;
  position: relative;
}

.tile-step {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 999px;
  background: var(--stone-100);
  border: 1px solid var(--border);
  font-size: 0.7rem; font-weight: 700;
  color: var(--stone-400);
}

.timeline-card h3 { margin-bottom: 0.5rem; }
.timeline-card p { font-size: 0.92rem; }

/* ── IP section ── */
.ip-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.ip-copy p { max-width: 52ch; }

.scope-card {
  padding: 1.5rem;
}

.scope-card h3 { margin-bottom: 1rem; }

.scope-list {
  list-style: none;
  display: grid; gap: 0.6rem;
}

.scope-list li {
  padding: 0.7rem 1rem;
  background: var(--stone-100);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--stone-700);
}

/* ── Compute / Inquiries ── */
.inquiries-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.inquiry-card {
  padding: 1.5rem;
}

.inquiry-card h3 { margin-bottom: 0.75rem; }

.inquiry-actions {
  display: flex; flex-direction: column;
  gap: 0.6rem; margin-top: 1.25rem;
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.92rem; font-weight: 600;
  text-align: center;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.08);
}

.button-primary {
  background: var(--stone-900); color: var(--stone-50);
}
.button-primary:hover { background: var(--stone-800); }

.button-secondary {
  background: var(--stone-100);
  border: 1px solid var(--border);
  color: var(--stone-800);
}
.button-secondary:hover { background: var(--stone-200); }

.inquiry-email {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--stone-500);
  font-weight: 500;
}

.inquiries-note {
  font-size: 0.88rem;
  color: var(--stone-500);
  font-style: italic;
}

/* ── Founder ── */
.founder-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.founder-copy p { max-width: 52ch; }

.founder-copy .button {
  margin-top: 1rem;
}

.founder-photo img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.footer-inner {
  display: flex; justify-content: space-between;
  align-items: baseline; flex-wrap: wrap; gap: 1rem;
}

.footer-brand {
  font-weight: 700; font-size: 0.92rem;
  color: var(--stone-700); letter-spacing: 0.02em;
}

.footer-left { font-size: 0.85rem; color: var(--stone-500); }
.footer-left a { color: var(--stone-600); transition: color 0.15s; }
.footer-left a:hover { color: var(--stone-900); }

.footer-right {
  font-size: 0.82rem; color: var(--stone-400);
  text-align: right;
}

/* ── Focus ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-700);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid,
  .cycle-grid,
  .ip-grid,
  .inquiries-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy { order: 1; }
  .hero-figure { order: 2; }

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

  .deployment-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .deployment-label { min-width: auto; padding-top: 0; }

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

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .container { width: calc(100% - 2rem); }

  .header-inner {
    flex-direction: column; align-items: flex-start;
    padding: 0.75rem 0; gap: 0.5rem;
  }

  .site-nav { gap: 1rem; }

  h1 { font-size: 1.9rem; }

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

  .button { width: 100%; }

  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
