/* ── Design tokens ── */
:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(220, 25%, 10%);
  --primary: hsl(220, 65%, 38%);
  --primary-foreground: hsl(0, 0%, 100%);
  --muted-foreground: hsl(220, 10%, 46%);
  --border: hsl(220, 14%, 88%);
  --card: hsl(0, 0%, 100%);
  --input: hsl(220, 14%, 88%);
  --ring: hsl(220, 65%, 38%);
  --geo-line: hsl(220, 14%, 85%);
  --geo-accent: hsl(220, 65%, 38%);
  --radius: 0.375rem;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* ── Page wrapper ── */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* ── Architectural background shapes ── */
.shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(hsla(220, 14%, 85%, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, hsla(220, 14%, 85%, 0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}

.grid-overlay-fine {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(hsla(220, 14%, 85%, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, hsla(220, 14%, 85%, 0.25) 1px, transparent 1px);
  background-size: 20px 20px;
}

.shape-circles {
  position: absolute;
  top: -128px;
  right: -128px;
  width: 520px;
  height: 520px;
  opacity: 0.07;
}

.shape-spiral {
  position: absolute;
  bottom: -64px;
  left: -64px;
  width: 400px;
  height: 400px;
  opacity: 0.06;
}

.accent-line {
  position: absolute;
  height: 1px;
}

.accent-line-right {
  top: 45%;
  right: 0;
  width: 40%;
  background: linear-gradient(to left, transparent, var(--border), transparent);
}

.accent-line-left {
  top: 30%;
  left: 0;
  width: 25%;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.shape-hex {
  position: absolute;
  top: 55%;
  right: 8%;
  width: 112px;
  height: 112px;
  opacity: 0.06;
  display: none;
}

.dot-grid {
  position: absolute;
  top: 80px;
  right: 20%;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.dot-grid::before {
  content: '';
  display: block;
}

/* Generate 25 dots with a pseudo-element trick — using background instead */
.dot-grid {
  width: 76px;
  height: 76px;
  background-image: radial-gradient(circle, hsla(220, 10%, 46%, 0.4) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.3;
}

@media (min-width: 768px) {
  .shape-hex { display: block; }
  .dot-grid { display: block; }
}

/* ── Header / Nav ── */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--foreground);
  font-weight: 600;
}

.logo-accent {
  color: var(--primary);
  font-weight: 700;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  height: 2.75rem;
  padding: 0 2rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: hsl(220, 65%, 33%);
  border-color: hsl(220, 65%, 33%);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--input);
}

.btn-outline:hover {
  background-color: hsl(220, 14%, 95%);
}

.btn-full {
  width: 100%;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 10;
  padding: 4rem 1.5rem 5rem;
}

.hero-inner {
  max-width: 48rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
}

.icon-primary {
  color: var(--primary);
}

.heading {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.text-primary {
  color: var(--primary);
}

.subheading {
  font-family: var(--font-body);
  color: var(--muted-foreground);
  font-size: 1rem;
  max-width: 32rem;
  line-height: 1.625;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Pillars ── */
.pillars {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.pillar {
  padding: 2rem 1.5rem;
}

.pillar + .pillar {
  border-top: 1px solid var(--border);
}

.pillar-icon {
  color: var(--primary);
  margin-bottom: 0.75rem;
  transition: transform 0.2s;
}

.pillar:hover .pillar-icon {
  transform: scale(1.1);
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.pillar-desc {
  font-family: var(--font-body);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}


/* ── Responsive ── */

/* sm: 640px */
@media (min-width: 640px) {
  .hero {
    padding-top: 6rem;
  }

  .heading {
    font-size: 3rem;
  }

  .subheading {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: row;
  }

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

  .pillar + .pillar {
    border-top: none;
  }

  .pillar {
    border-left: 1px solid var(--border);
  }

  .pillar:first-child,
  .pillar:nth-child(2n + 1) {
    border-left: none;
  }

  .pillar:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

/* md: 768px */
@media (min-width: 768px) {
  .header {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .hero {
    padding: 8rem 4rem;
  }

  .heading {
    font-size: 3.75rem;
  }

  .footer {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .pillar {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pillar:nth-child(n + 3) {
    border-top: none;
  }

  .pillar:nth-child(2n + 1) {
    border-left: 1px solid var(--border);
  }

  .pillar:first-child {
    border-left: none;
  }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .heading {
    font-size: 4.5rem;
  }
}
