:root {
  --bg: #F7F4ED;
  --bg-surface: #fcf9f2;
  --bg-card: #F4F1EA;
  --text: #1c1c18;
  --text-muted: #46464b;
  --text-secondary: #5c5e66;
  --primary: #090a11;
  --btn-bg: #202128;
  --border: #ECE7DD;
  --border-variant: #c7c6cb;
  --outline: #77767c;
  --chip-border: #75777F;
  --google-blue: #4285f4;
  --google-green: #34a853;
  --google-red: #ea4335;
  --max-width: 1280px;
  --gutter: 2rem;
  --margin: 2rem;
  --section-padding: clamp(4rem, 10vw, 6rem);
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 9999px;
  --font-heading: "IBM Plex Sans Condensed", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-height: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(200, 200, 200, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 200, 200, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--google-blue);
  outline-offset: 2px;
}

.container {
  width: min(100% - var(--margin) * 2, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border-variant);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--primary);
}

.logo:hover {
  opacity: 1;
  color: var(--primary);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  color: #fff;
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-header {
  padding: 0.5rem 1rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Main layout */

main {
  padding-top: var(--nav-height);
}

.section {
  padding: var(--section-padding) 0;
  border-top: 1px solid rgba(199, 198, 203, 0.3);
}

.section:first-of-type {
  border-top: none;
}

/* Hero */

.hero {
  padding: clamp(3rem, 8vw, 4rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  align-items: center;
  min-height: min(716px, auto);
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--primary);
}

.hero-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .hero-visual {
    min-height: 400px;
    height: 100%;
    max-height: 500px;
  }
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vision */

.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .vision-grid {
    grid-template-columns: 1fr 2fr;
    gap: var(--gutter);
  }
}

.vision-grid h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
  color: var(--primary);
}

.vision-body {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .vision-body {
    padding-left: 3rem;
  }
}

/* Playground process */

.playground-header {
  margin-bottom: 4rem;
  text-align: center;
}

.playground-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
  color: var(--primary);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  position: relative;
}

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

  .process-grid::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(199, 198, 203, 0.5);
    z-index: 0;
  }
}

.process-card {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}

.process-num {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid var(--border-variant);
  background: var(--bg-surface);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
}

.process-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.33;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--primary);
}

.process-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--text-muted);
}

/* Capabilities */

.capabilities h2 {
  margin: 0 0 3rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
  color: var(--primary);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--chip-border);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--primary);
}

/* CTA */

.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin: 0 auto 1.5rem;
  max-width: 48rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
  color: var(--primary);
}

.cta-section p {
  margin: 0 auto 2.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(199, 198, 203, 0.3);
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-wordmark {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
}

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

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

.footer-links a.footer-email {
  color: var(--primary);
  text-decoration: underline;
}

/* Legal pages (privacy / terms — shared styles) */

.legal-page {
  padding: calc(var(--nav-height) + 3rem) 0 5rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
}

.legal-meta {
  margin: 0 0 2.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--google-blue);
}

.legal-content a:hover {
  color: var(--primary);
}
