:root {
  --bg: #f4efe7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffaf4;
  --text: #17212b;
  --muted: #5e6a72;
  --line: rgba(23, 33, 43, 0.12);
  --accent: #0b6e69;
  --accent-2: #eb7d3c;
  --shadow: 0 24px 80px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 110, 105, 0.22), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(235, 125, 60, 0.18), transparent 26%),
    linear-gradient(180deg, #f8f3eb 0%, #efe6da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
}

.page-shell {
  width: min(1600px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.nav a,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-text span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
}

.hero,
.feature-section,
.contact-section {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.feature-section,
.contact-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero {
  grid-template-columns: minmax(0, 1fr);
}

.hero {
  padding: 2rem 0 1.25rem;
}

.hero-copy {
  display: block;
}

.hero-copy,
.panel,
.stack-card,
.result-card,
.contact-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 2rem;
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 6.8rem);
  line-height: 0.95;
  max-width: 100%;
}

.lead {
  max-width: 72ch;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 1.35rem 0 0;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

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

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.section {
  padding-top: 5rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.panel,
.stack-card,
.result-card,
.contact-panel {
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.panel p,
.feature-copy p,
.result-card p,
.contact-copy p,
.contact-panel p,
.stack-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 110, 105, 0.12);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

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

.result-card strong,
.accent-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.accent-card {
  background: linear-gradient(135deg, rgba(11, 110, 105, 0.94), rgba(23, 33, 43, 0.96));
  color: white;
}

.accent-card .eyebrow,
.accent-card p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-panel {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  background: linear-gradient(180deg, rgba(235, 125, 60, 0.1), rgba(255, 255, 255, 0.78));
}

.contact-details {
  margin-top: 1.25rem;
}

.contact-panel a {
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(11, 110, 105, 0.22);
  border-color: rgba(11, 110, 105, 0.45);
}

.form-notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  font-weight: 700;
}

.form-notice-success {
  background: rgba(11, 110, 105, 0.12);
  color: var(--accent);
}

.form-notice-error {
  background: rgba(186, 52, 41, 0.12);
  color: #8d2c25;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .feature-section,
  .contact-section,
  .about-grid,
  .three-up,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (min-width: 981px) {
  .hero-copy {
    min-height: 62vh;
    padding: clamp(2.5rem, 4.2vw, 4.5rem);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1180px);
  }

  .hero-copy,
  .panel,
  .stack-card,
  .result-card,
  .contact-panel {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.9rem, 16vw, 5rem);
  }

  .nav {
    gap: 0.8rem 1rem;
  }
}
