/* Page chrome: header, hero, footer and the two-column section layouts. */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(11, 15, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(11, 15, 23, 0.88); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 36px; height: 36px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 26px; }
.site-nav__list a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.site-nav__list a:hover, .site-nav__list a.is-active { color: var(--text); }
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav__list a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .site-nav__list a::after { display: none; }
  .site-nav__cta { margin-top: 12px; width: 100%; }
}

/* Hero: full-height photo with dark overlay and the particle network on top. */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--bg) url("../images/home-bg-1.jpg") center / cover no-repeat;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 50% 40%, rgba(242, 179, 26, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(11, 15, 23, 0.78) 0%, rgba(11, 15, 23, 0.72) 60%, var(--bg) 100%);
}
.hero__particles { position: absolute; inset: 0; }
.hero__particles canvas { display: block; width: 100%; height: 100%; }
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}
.hero__title {
  margin-top: 26px;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero__lead {
  margin-top: 24px;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 640px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero__proof strong { color: var(--text); font-weight: 600; }

/* Two-column sections */
.about, .contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { padding-block: 40px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.site-footer .brand__mark { width: 28px; height: 28px; }
.site-footer .brand__name { font-size: 1rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--text-muted); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__copy { width: 100%; font-size: 0.85rem; color: var(--text-faint); }
