/* ─── Body ─── */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 16px;
  line-height: 1.6;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ─── Section ─── */
.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 6px 24px rgba(10, 132, 255, 0.45);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

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

.btn-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: opacity 0.15s;
}

.btn-link:hover {
  opacity: 0.75;
}

/* ─── Tags ─── */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 3px 10px;
  background: var(--color-border-light);
  color: var(--color-text-secondary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

/* ─── Accent ─── */
.accent {
  color: var(--color-accent);
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.nav__logo span {
  color: var(--color-accent);
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__logo-img--footer {
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text-primary);
  background: rgba(0,0,0,0.04);
}

.nav__link--cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.3);
}

.nav__link--cta:hover {
  background: var(--color-accent-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Footer ─── */
.footer {
  background: var(--color-dark);
  padding: var(--space-8) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer .nav__logo {
  color: #fff;
}

.footer .nav__logo-img {
  filter: brightness(0) invert(1);
  height: 32px;
}

.footer__copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}

.footer__top {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.footer__top:hover {
  color: #fff;
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Mobile nav overlay ─── */
@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(245, 245, 247, 0.97);
    backdrop-filter: blur(16px);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__link {
    padding: 10px 14px;
    font-size: 1rem;
  }

  .nav__link--cta {
    text-align: center;
    margin-top: 4px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
}
