@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&display=swap");

:root {
  --bg: #f5efe3;
  --surface: #efe8d6;
  --surface-border: #d3c9b5;
  --surface-border-strong: #bfb39a;
  --surface-border-dark: #ebe4d2;
  --fg: #1a1714;
  --fg-soft: #3d362e;
  --muted: #6b6359;
  --label: #6b6359;
  --accent: #1a1714;
  --accent-green: #2d8442;
  --accent-blue: #3a5c75;
  --accent-tan: #6b5a43;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
}

main {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 2rem;
}

.container--narrow {
  max-width: 640px;
}

.container--reading {
  max-width: 720px;
}

/* Header */

.site-header {
  padding: 2.25rem 0 0;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Language menu — shadcn-style dropdown */

.lang-menu {
  position: relative;
}

.lang-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 0.3125rem 0.5rem 0.3125rem 0.625rem;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.lang-menu__trigger:hover {
  border-color: var(--surface-border-strong);
  background: var(--surface);
}

.lang-menu__trigger:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.lang-menu__chevron {
  color: var(--muted);
  transition: transform 0.18s ease;
}

.lang-menu[data-open="true"] .lang-menu__chevron {
  transform: rotate(180deg);
}

.lang-menu__content {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 8rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 20;
}

.lang-menu[data-open="true"] .lang-menu__content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu__item {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.625rem;
  border-radius: 4px;
  color: var(--fg-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.lang-menu__item:hover {
  background: var(--bg);
  color: var(--fg);
}

.lang-menu__item--active {
  color: var(--fg);
}

.wordmark {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--fg-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--fg);
}

html {
  scroll-behavior: smooth;
}

/* Hero */

.hero {
  padding: 11rem 0 13rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.hero h1 em {
  font-style: normal;
}

.hero p {
  color: var(--fg-soft);
  font-size: 1.0625rem;
  max-width: 44ch;
  line-height: 1.5;
}

/* Signup form — shared between hero and end-of-page */

.signup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  max-width: 440px;
  padding: 0.3125rem 0.3125rem 0.3125rem 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  transition: border-color 0.2s ease;
}

.signup:focus-within {
  border-color: var(--surface-border-strong);
}

.signup__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 0.5rem 0;
  letter-spacing: -0.005em;
}

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

.signup__button {
  appearance: none;
  border: none;
  background: var(--fg);
  color: var(--bg);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.signup__button:hover {
  background: var(--fg-soft);
}

.signup__button:active {
  background: var(--muted);
}

.signup--center {
  margin-left: auto;
  margin-right: auto;
}

.signup-feedback {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.signup-feedback--success {
  color: var(--fg);
}

.signup-feedback--error {
  color: var(--muted);
}

.signup-feedback--center {
  text-align: center;
}

/* Signup section (closing CTA) */

.signup-section {
  padding: 7.5rem 0 8rem;
  border-top: 1px solid var(--surface-border-dark);
  box-shadow: inset 0 1px 0 var(--surface-border);
  text-align: center;
}

.signup-section__prompt {
  display: block;
  font-size: 1rem;
  color: var(--fg-soft);
  margin-bottom: 1.25rem;
  letter-spacing: -0.005em;
}

.signup-section .signup {
  margin-top: 0;
}

/* Section label (small-caps editorial marker) */

.section-label {
  display: block;
  text-align: center;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

/* Thesis section — three value propositions under the hero */

.thesis {
  padding: 8.5rem 0 9rem;
  border-top: 1px solid var(--surface-border-dark);
  box-shadow: inset 0 1px 0 var(--surface-border);
}

.thesis__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
}

.thesis__item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.thesis__kicker {
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 600;
}

.thesis__title {
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--fg);
}

.thesis__body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg-soft);
}

.thesis__body code {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menolo, monospace;
  font-size: 0.875em;
  color: var(--fg);
  background: rgba(26, 23, 20, 0.07);
  padding: 0.08em 0.35em;
  border-radius: 4px;
  letter-spacing: -0.01em;
}

/* Audience section */

.audience {
  padding: 9rem 0 9.5rem;
  border-top: 1px solid var(--surface-border-dark);
  box-shadow: inset 0 1px 0 var(--surface-border);
}

.audience__header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.audience__kicker {
  display: block;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 600;
  margin-bottom: 1rem;
}

.audience__title {
  font-size: clamp(1.875rem, 4.5vw, 2.625rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.125rem;
}

.audience__title em {
  font-style: normal;
}

.audience__lede {
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.audience--content .audience__kicker,
.audience--content .feature__index {
  color: var(--accent-blue);
}

.audience--dev .audience__kicker,
.audience--dev .feature__index {
  color: var(--accent-tan);
}

/* Feature grid — bento layout on desktop */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature--hero {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .feature {
    grid-column: span 2;
  }

  .feature--hero {
    grid-column: span 2;
    grid-row: span 2;
    padding: 1.875rem 1.75rem 1.75rem;
    gap: 0.875rem;
  }

  .feature--hero .feature__title {
    font-size: 1.375rem;
    line-height: 1.25;
  }
}

.feature {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  border-radius: 10px;
  padding: 1.625rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.feature__index {
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.feature__title {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--fg);
}

.feature__body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg-soft);
}

.feature__body code {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menolo, monospace;
  font-size: 0.875em;
  color: var(--fg);
  background: rgba(26, 23, 20, 0.07);
  padding: 0.08em 0.35em;
  border-radius: 4px;
  letter-spacing: -0.01em;
}

/* Vision section — closing manifesto */

.vision {
  padding: 10rem 0 10.5rem;
  border-top: 1px solid var(--surface-border-dark);
  box-shadow: inset 0 1px 0 var(--surface-border);
}

.vision__kicker {
  display: block;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.vision__title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 2.75rem;
}

.vision__title em {
  font-style: normal;
}

.vision__body {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.vision__body p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-soft);
}

.vision__pivot {
  color: var(--fg) !important;
  font-size: 1.0625rem !important;
  letter-spacing: -0.005em;
}

.vision__body code {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menolo, monospace;
  font-size: 0.875em;
  color: var(--fg);
  background: rgba(26, 23, 20, 0.07);
  padding: 0.08em 0.35em;
  border-radius: 4px;
  letter-spacing: -0.01em;
}

/* Footer */

.site-footer {
  padding: 4rem 0 3rem;
  margin-top: auto;
  border-top: 1px solid var(--surface-border-dark);
  box-shadow: inset 0 1px 0 var(--surface-border);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer small {
  color: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-footer__social-link:hover {
  color: var(--fg);
}


/* Responsive */

@media (max-width: 760px) {
  .container {
    padding-inline: 1.25rem;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 6rem 0 7rem;
  }

  .thesis {
    padding: 4rem 0 4.5rem;
  }

  .thesis__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .audience {
    padding: 4.5rem 0 5rem;
  }

  .vision {
    padding: 5rem 0 5.5rem;
  }

  .vision__title {
    margin-bottom: 2rem;
  }

  .signup {
    margin-top: 1.75rem;
  }

  .signup__button {
    padding: 0.625rem 0.875rem;
  }

  .signup-section {
    padding: 4rem 0 4.5rem;
  }

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