/* Core layout and typography */
:root {
  --accent: #316a70;
  --text-primary: #1f2023;
  --text-muted: #4a4d57;
  --surface: #ffffff;
  --border: #e6e9ed;
  --font-family: 'Inter', 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: #000000;
  background-image: radial-gradient(circle at center, #3a9a8c 0%, #1d6664 45%, #0c3e40 75%, #041f20 100%);
  color: var(--text-primary);
  line-height: 1.6;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 1.5rem;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  background: transparent;
  border: none;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-1.5rem);
}

.site-header.is-hidden .nav {
  pointer-events: none;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(90vw, 960px);
  margin: 0 auto;
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 24px 60px -30px rgba(4, 31, 32, 0.65);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav__brand-text {
  line-height: 1;
}

.nav__logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.875rem;
  box-shadow: 0 6px 18px -12px rgba(49, 106, 112, 0.9);
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link,
.nav__dropdown-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link:focus,
.nav__dropdown-link:hover,
.nav__dropdown-link:focus {
  color: var(--accent);
}

.nav__item {
  position: relative;
}

.nav__item--dropdown > .nav__link::after {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 16rem;
  padding: 0.75rem 0.5rem;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px -24px rgba(31, 32, 35, 0.45);
  z-index: 20;
}

.nav__dropdown-link {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  line-height: 1.4;
}

.nav__dropdown-link:focus,
.nav__dropdown-link:hover {
  background: rgba(49, 106, 112, 0.08);
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  display: flex;
}

/* Hero */
.hero {
  --text-primary: #f2fbf9;
  --text-muted: rgba(226, 244, 241, 0.82);
  --border: rgba(226, 244, 241, 0.2);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  color: var(--text-primary);
}

.hero__content {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
}

.hero__copy {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.hero__details {
  display: grid;
  gap: 2rem;
  justify-items: center;
}

.hero__logo {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px -18px rgba(49, 106, 112, 0.8);
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero__description {
  color: var(--text-muted);
  margin: 0;
  max-width: 540px;
}

.hero .feature-card {
  --text-primary: #1f2023;
  --text-muted: #4a4d57;
  --border: #e6e9ed;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.96);
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input[type='email'] {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form input[type='email']:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(49, 106, 112, 0.15);
}

.waitlist-form button {
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  border: none;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form button:hover,
.waitlist-form button:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -12px rgba(49, 106, 112, 0.6);
}

.form-message {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.form-message--error {
  color: #b3261e;
}

/* Supporting sections */
.supporting {
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.supporting--alt {
  background: transparent;
}

.supporting--alt .supporting__content {
  color: rgba(226, 244, 241, 0.85);
}

.supporting--alt .supporting__content h2 {
  color: #f7fffd;
}

.supporting--alt .supporting__content a {
  color: #d6f4f0;
}

.supporting__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
}

.supporting__content h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero__features-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
}

.hero__features-intro h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  gap: 1.75rem;
  margin: 0 auto;
  max-width: min(100%, 960px);
  padding: 0;
  justify-items: stretch;
  grid-template-columns: 1fr;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  text-align: left;
  box-shadow: 0 18px 36px -30px rgba(31, 32, 35, 0.5);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(49, 106, 112, 0.12);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

/* Features page layout */
.page {
  flex: 1;
  padding: 5rem 1.5rem 4rem;
}

.page--features {
  --text-primary: #f2fbf9;
  --text-muted: rgba(226, 244, 241, 0.8);
  --border: rgba(226, 244, 241, 0.18);
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(49, 106, 112, 0.08) 0%, rgba(4, 31, 32, 0) 45%);
}

.page--features a {
  color: inherit;
}

.page-header {
  max-width: 740px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

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

.page-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.page-header p {
  color: var(--text-muted);
  margin: 0 auto;
}

.feature-sections {
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

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

.feature-section__media,
.feature-section__content {
  flex: 1;
}

.feature-section__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-illustration {
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(49, 106, 112, 0.2), rgba(49, 106, 112, 0.05));
  box-shadow: 0 24px 48px -32px rgba(31, 32, 35, 0.4);
  position: relative;
  overflow: hidden;
}

.feature-illustration::after {
  content: '';
  position: absolute;
  inset: 12% 18%;
  border-radius: 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.75);
}

.feature-illustration--automation {
  background: linear-gradient(140deg, rgba(49, 106, 112, 0.75), rgba(27, 129, 117, 0.45));
}

.feature-illustration--payroll {
  background: linear-gradient(140deg, rgba(23, 63, 142, 0.7), rgba(88, 139, 208, 0.5));
}

.feature-illustration--security {
  background: linear-gradient(140deg, rgba(34, 45, 82, 0.75), rgba(94, 101, 163, 0.45));
}

.feature-illustration--insights {
  background: linear-gradient(140deg, rgba(141, 64, 161, 0.75), rgba(205, 123, 222, 0.45));
}

.feature-section__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.feature-section__content h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.feature-section__list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
  display: grid;
  gap: 0.5rem;
}

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

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive adjustments */
@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (min-width: 640px) {
  .feature-section__content {
    align-items: flex-start;
  }

  .waitlist-form {
    flex-direction: row;
    align-items: center;
  }

  .waitlist-form input[type='email'] {
    flex: 1;
  }

  .waitlist-form button {
    flex-shrink: 0;
  }

  .form-message {
    text-align: left;
    margin-left: 1rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 2.5rem 4.5rem;
  }

  .hero__content {
    gap: 3rem;
  }

  .hero__details {
    gap: 2.25rem;
  }
}

@media (min-width: 900px) {
  .feature-section {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .feature-section:nth-of-type(even) {
    flex-direction: row-reverse;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 7rem 4rem 6rem;
  }

  .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 3.5rem;
    text-align: left;
  }

  .hero__copy {
    justify-items: start;
    text-align: left;
    gap: 1.5rem;
    max-width: 520px;
  }

  .hero__details {
    justify-items: stretch;
    gap: 2.5rem;
  }

  .hero__features-intro {
    text-align: left;
    margin: 0;
  }

  .features-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .waitlist-form {
    margin: 0;
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 1rem;
    padding: 0 1rem;
  }

  .nav {
    width: 100%;
    border-radius: 1.25rem;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .nav__links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .hero__description,
  .hero__features-intro p {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}
