/* COGNT — Site Styles */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Light-mode primary (investor/attorney audience) */
  --bg-primary: #FFFFFF;
  --bg-surface: #F6F8FA;
  --bg-highlight: #F0F2F5;
  --text-primary: #1F2328;
  --text-secondary: #656D76;
  --text-muted: #8B949E;
  --border: #D0D7DE;
  --link: #58A6FF;
  --accent: #F0883E;
  --success: #3FB950;
  --danger: #F85149;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* ---- Layout ---- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

/* ---- Hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  min-height: 70vh;
}

.hero__logo {
  width: 360px;
  height: 360px;
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__descriptor {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ---- Section ---- */
.section {
  padding: 4rem 0;
}

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

.section__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 560px;
}

/* ---- Stats Row ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ---- Primitives Grid ---- */
.primitives {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  padding: 1rem 0;
}

.primitive {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  text-align: center;
}

/* ---- About Page ---- */
.prose {
  max-width: 640px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.prose p.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.prose ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.prose strong {
  font-weight: 600;
}

.prose .highlight {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-highlight);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---- Contact Form ---- */
.form {
  max-width: 480px;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--link);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__button {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--text-primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form__button:hover {
  opacity: 0.85;
}

/* ---- Footer ---- */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero__title {
    font-size: 2.4rem;
  }

  .hero__tagline {
    font-size: 1.1rem;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero__logo {
    width: 260px;
    height: 260px;
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
  }

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