:root {
  --bg: #ffffff;
  --section-bg: #f7f8fa;
  --dark-bg: #0f1720;
  --text: #111827;
  --muted: #6b7280;
  --accent: #1f3a5f;
  --border: #e5e7eb;
  --surface: #ffffff;

  --radius: 8px;
  --max-width: 1200px;
}

/* RESET */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINERS */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.narrow {
  max-width: 820px;
}

/* TYPOGRAPHY */
h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px 0;
  color: var(--muted);
}

.section-title {
  text-align: left;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* HERO */
.hero {
  padding: 120px 0;
  background: var(--bg);
}

.hero-dark {
  background: var(--dark-bg);
  color: #fff;
}

.hero-dark p {
  color: #cbd5e1;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 720px;
}

.hero-description {
  max-width: 600px;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #162c46;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  margin-left: 12px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* SECTIONS */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--section-bg);
}

/* SURFACE */
.surface {
  background: var(--surface);
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* CARD GRID */
.card-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* CARD */
.card,
.case {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.card:hover,
.case:hover {
  transform: translateY(-4px);
  border-color: #d1d5db;
}

.card-icon {
  margin-bottom: 16px;
  color: var(--accent);
}

/* CASE META TAGS */
.meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta span {
  font-size: 0.75rem;
  background: #eef2f7;
  padding: 6px 10px;
  border-radius: 4px;
  color: #334155;
}

/* STACK GRID */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

/* ORDERED STEPS */
.steps {
  padding-left: 20px;
}

.steps li {
  margin-bottom: 20px;
}

/* FOOTER */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 20px;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding: 80px 0;
  }

  .section {
    padding: 70px 0;
  }

  .surface {
    padding: 32px;
  }
}
