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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  color-scheme: dark;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
  background-image: radial-gradient(ellipse 75% 420px at 50% 0%, rgba(24, 183, 128, 0.07), transparent 72%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

picture {
  display: block;
}

.sprite-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent-emerald-light);
  outline-offset: 3px;
}

/* Layout Primitives */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent-emerald-light);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--amber {
  color: var(--accent-amber);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.18;
}

.section-title--md {
  font-size: 1.95rem;
}

.section-lead {
  max-width: 640px;
  margin: 0.8rem auto 0;
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.65;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.9;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 28px;
}

.brand__mark img,
.brand__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.brand__micro {
  font-weight: 500;
  color: #ffffff;
}

.brand__vibes {
  font-weight: 700;
  color: var(--brand-vibes);
}

.brand__tagline {
  margin-top: 0.24rem;
  padding-left: 0.04em;
  color: var(--brand-tagline);
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text-primary);
}

.nav-link[aria-current="page"] {
  color: var(--accent-emerald-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn svg {
  flex-shrink: 0;
}

.btn--primary {
  background-color: var(--accent-emerald-strong);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn--primary:hover {
  background-color: var(--accent-emerald);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--secondary {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.btn--outline {
  background-color: var(--accent-emerald-tint);
  border-color: var(--border-emerald);
  color: var(--accent-emerald-light);
}

.btn--outline:hover {
  background-color: rgba(24, 183, 128, 0.18);
  border-color: var(--accent-emerald-light);
  color: #fff;
}

.btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
}

.btn--lg {
  padding: 0.8rem 1.45rem;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2rem;
  background: var(--bg-drawer);
  border-top: 1px solid var(--border-subtle);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.85rem, 3vw, 3.25rem);
}

.footer-col__heading {
  margin-bottom: 0.9rem;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Shared Responsive Rules */
@media (max-width: 1024px) {
  html {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    max-width: 100%;
    overflow-x: clip;
    padding-top: var(--header-height);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.15rem 1.5rem;
    background: var(--bg-drawer);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.65rem 0.5rem;
    border-radius: var(--radius-xs);
    font-size: 0.96rem;
  }

  .section {
    padding: 4.25rem 0;
  }

  .footer-col a {
    display: inline-block;
    padding: 0.3rem 0;
  }
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: 2.25rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.15rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-header {
    margin-bottom: 2.15rem;
  }

  .section-title,
  .section-title--md {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .section-lead {
    font-size: 0.96rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .site-footer {
    padding: 3rem 0 1.75rem;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.85rem 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 0.48rem;
  }

  .brand__mark {
    width: 42px;
    height: 23px;
  }

  .brand__wordmark {
    font-size: 1.1rem;
  }

  .brand__tagline {
    margin-top: 0.16rem;
    font-size: 0.43rem;
    letter-spacing: 0.2em;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn--sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
