/* ── Reset & Base ────────────────────────────────────── */

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

:root {
  --white: #ffffff;
  --grey: #f7f7f8;
  --border: #e8e8ea;
  --text: #111111;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --accent: #6c5ce7;
  --accent-hover: #5a4bd6;
  --max-width: 1060px;
  --reading-width: 640px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

ul, ol {
  list-style: none;
}

/* ── Typography ──────────────────────────────────────── */

h1 {
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Container ───────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navigation ──────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__logo span {
  color: var(--accent);
}

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

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  padding: 160px 0 120px;
  text-align: center;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto;
}

.hero__tagline {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--text-tertiary);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.3s ease;
}

.hero__cta:hover {
  gap: 0.75rem;
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.hero__image {
  width: 100%;
  max-width: var(--max-width);
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.hero__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .hero__image img {
    height: 240px;
  }
}

/* ── Sections ────────────────────────────────────────── */

.section {
  padding: 100px 0;
}

.section--grey {
  background: var(--grey);
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__heading {
  margin-bottom: 1rem;
}

.section__subheading {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 520px;
  margin-bottom: 3.5rem;
}

.section__subheading--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__heading--center {
  text-align: center;
}

.section__image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .section__image {
    height: 200px;
  }
}

/* ── Cards Grid ──────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.card {
  background: var(--white);
  padding: 2rem;
  transition: background 0.2s ease;
}

.card:hover {
  background: var(--grey);
}

.card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.card h3 {
  margin-bottom: 0.625rem;
}

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

/* ── Feature Cards (alternate layout) ────────────────── */

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

.feature {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.25rem;
  transition: border-color 0.2s ease;
}

.feature:hover {
  border-color: var(--accent);
}

.feature__number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.625rem;
}

.feature p {
  font-size: 0.9375rem;
}

/* ── Blog List ───────────────────────────────────────── */

.blog-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.blog-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s ease;
}

.blog-item:hover {
  padding-left: 0.5rem;
}

.blog-item__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-item__meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.blog-item__excerpt {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: -0.5rem;
  max-width: 560px;
}

/* ── Blog Grid (home page) ───────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.blog-card:hover {
  border-color: var(--accent);
}

.blog-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.blog-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* ── Article ─────────────────────────────────────────── */

.article-header {
  padding: 140px 0 60px;
  text-align: center;
}

.article-header__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.article-header h1 {
  font-size: 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.article-header__meta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.article-header__image {
  width: 100%;
  max-width: var(--reading-width);
  margin: 2rem auto 0;
  border-radius: 4px;
  height: 320px;
  object-fit: cover;
}

.article-body {
  padding: 0 0 100px;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2.75rem 0 1rem;
}

.article-body h3 {
  font-size: 1.1875rem;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.article-body strong {
  font-weight: 600;
  color: var(--text);
}

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.article-body th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.article-body td {
  color: var(--text-secondary);
}

.article-nav {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 1rem;
}

.article-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.article-nav a:hover {
  opacity: 0.7;
}

/* ── CTA Section ─────────────────────────────────────── */

.cta {
  text-align: center;
  padding: 100px 0;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.0625rem;
  max-width: 440px;
  margin: 0 auto 2rem;
}

.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  background: var(--text);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.cta__button:hover {
  background: var(--accent);
}

/* ── Contact Form ────────────────────────────────────── */

.contact-form {
  max-width: 480px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--text);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.form-submit:hover {
  background: var(--accent);
}

.contact-info {
  margin-bottom: 2.5rem;
}

.contact-info p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.contact-info a {
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.contact-info a:hover {
  opacity: 0.7;
}

/* ── Page Header ─────────────────────────────────────── */

.page-header {
  padding: 140px 0 60px;
}

.page-header h1 {
  font-size: 2.5rem;
}

.page-header p {
  margin-top: 1rem;
  font-size: 1.0625rem;
  max-width: 520px;
}

.page-header--center {
  text-align: center;
}

.page-header--center p {
  margin-left: auto;
  margin-right: auto;
}

/* ── Legal / Prose ───────────────────────────────────── */

.prose {
  padding: 0 0 100px;
}

.prose h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.125rem;
  margin: 2rem 0 0.625rem;
}

.prose p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

/* ── About Content ───────────────────────────────────── */

.about-content {
  padding-bottom: 100px;
}

.about-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 3rem;
}

.about-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.about-values {
  margin-top: 3rem;
}

.about-values h2 {
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
}

.value-item h3 {
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.9375rem;
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
  background: var(--grey);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .section {
    padding: 64px 0;
  }

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

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

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

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

  .blog-item {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }

  .blog-item__excerpt {
    margin-top: 0;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__mobile-toggle {
    display: block;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.875rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .container--narrow {
    padding: 0 1.25rem;
  }

  .nav__inner {
    padding: 0 1.25rem;
  }
}
