/* ============================================================
   Layout — shell, navbar, container, sections, footer
   ============================================================ */
.wrap-x { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--tight { padding-block: clamp(1.75rem, 3vw, 2.75rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border-2); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.sec-head p { margin-top: 6px; max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 700;
  font-size: .8rem; letter-spacing: .04em; color: var(--primary-700); background: var(--primary-050);
  border: 1px solid var(--primary-100); padding: 6px 14px; border-radius: var(--r-pill);
}

/* ---------- navbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
}
.topbar.is-stuck { border-bottom-color: var(--border-2); box-shadow: 0 6px 24px rgba(6, 46, 43, .06); }
.topbar__in { display: flex; align-items: center; gap: var(--sp-4); height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--primary), #22D3EE 70%, var(--accent));
  box-shadow: var(--sh-btn);
}
.brand__mark .ic { width: 24px; height: 24px; stroke-width: 2; }
.brand__t { display: flex; flex-direction: column; line-height: 1.15; }
.brand__t b { font-family: var(--f-head); font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.brand__t span { font-size: .72rem; color: var(--fg-3); }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-md);
  font-weight: 600; font-size: .95rem; color: var(--fg-2); transition: all var(--t-fast);
}
.nav a:hover { background: var(--primary-050); color: var(--primary-700); }
.nav a.is-active { background: var(--primary); color: #fff; box-shadow: var(--sh-btn); }
.topbar__act { display: flex; align-items: center; gap: 10px; flex: none; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 62vw; height: 62vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle at 60% 40%, rgba(34, 211, 238, .30), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: auto auto -40% -15%; width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle at 40% 60%, rgba(22, 163, 74, .20), transparent 64%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--sp-5); }
.hero__stats { display: flex; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap; margin-top: var(--sp-6); }
.hero__stats b { display: block; font-family: var(--f-head); font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--primary-700); }
.hero__stats span { font-size: .84rem; color: var(--fg-3); }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #CFE9E6; margin-top: var(--sp-7); }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-5); padding-block: var(--sp-7) var(--sp-5); }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: var(--sp-3); }
.footer a { color: #A9CFCB; font-size: .92rem; display: block; padding-block: 5px; }
.footer a:hover { color: #fff; }
.footer .brand__t b { color: #fff; }
.footer .brand__t span { color: #9DC4C0; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-block: var(--sp-4);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-size: .84rem; color: #9DC4C0;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; inset-inline-start: 20px; bottom: 24px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transition: all var(--t-med);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--primary); transform: translateY(-3px); }

@media (max-width: 1080px) {
  .footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .burger { display: grid; }
  .topbar__act .btn span.lbl { display: none; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
}
