/* ============================================================
   SoftNex — Layout (header, nav, mobile nav, hero, footer)
   ============================================================ */

/* ---- Utility topbar ---- */

.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: var(--topbar-h);
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  transition: transform var(--t) var(--ease);
}

.site-topbar.is-hidden {
  transform: translateY(-100%);
}

.site-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.site-topbar__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.site-topbar a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-topbar a:hover {
  color: #fff;
}

.site-topbar a i {
  color: #60a5fa;
  font-size: 0.75rem;
}

.site-topbar__social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-topbar__social a {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease);
}

.site-topbar__social a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-topbar__social a i {
  color: #94a3b8;
}

.site-topbar__social a:hover i {
  color: #fff;
}

/* ---- Site header / nav ---- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: var(--topbar-h);
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  transition:
    top var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease);
}

.site-header.is-scrolled {
  top: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-logo--footer {
  height: 46px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}

.mobile-nav__brand {
  margin-bottom: var(--sp-2);
  padding: 0 var(--sp-1);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  flex-shrink: 0;
}

.brand-mark svg,
.brand-mark img {
  width: 22px;
  height: 22px;
}

.brand-word {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-word .brand-name {
  font-weight: 800;
}

.brand-word .brand-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition:
    color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.nav-links a:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.nav-links a.is-active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0 10px;
  transition: background var(--t-fast) var(--ease);
}

.hamburger:hover {
  background: var(--bg-alt);
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform var(--t) var(--ease),
    opacity var(--t) var(--ease);
}

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

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

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

/* ---- Mobile nav (off-canvas drawer) ---- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: #fff;
  border-left: 1px solid var(--border);
  padding: calc(var(--header-h) + 8px) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transform: translateX(102%);
  transition: transform var(--t-slow) var(--ease);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  transition: all var(--t-fast) var(--ease);
}

.mobile-nav__link:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.mobile-nav__link.is-active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.mobile-nav__link i {
  width: 20px;
  text-align: center;
  color: var(--brand-500);
}

.mobile-nav__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(48px, 6vw, 88px);
  background:
    radial-gradient(ellipse 70% 55% at 78% 0%, rgba(37, 99, 235, 0.07), transparent),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: var(--sp-6);
}

.hero__content h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-block: var(--sp-3) var(--sp-4);
  max-width: 560px;
}

.hero__content > p {
  color: var(--text-2);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 540px;
  margin-bottom: var(--sp-5);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__signin {
  margin-top: var(--sp-3);
  font-size: 0.9rem;
  color: var(--text-3);
}

.hero__signin a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.hero__stat .num {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--ink);
  display: block;
  line-height: 1.15;
}

.hero__stat .lbl {
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ---- Stats band (solid navy counters) ---- */

.stats-band {
  background: #0f172a;
  color: #fff;
  padding-block: clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(37, 99, 235, 0.3), transparent 45%),
    radial-gradient(circle at 88% 50%, rgba(14, 165, 233, 0.22), transparent 45%);
  pointer-events: none;
}

.stats-band__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  text-align: center;
}

.stats-band__item {
  padding: var(--sp-2);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-band__item:last-child {
  border-right: none;
}

.stats-band__item i {
  font-size: 1.5rem;
  color: #60a5fa;
  display: block;
  margin-bottom: 10px;
}

.stats-band .num {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stats-band .lbl {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__shot {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #fff;
}

.hero__shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.hero__float-card .icon-tile {
  width: 42px;
  height: 42px;
  font-size: 1rem;
  border-radius: 10px;
}

.hero__float-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ink);
}

.hero__float-card span {
  font-size: 0.72rem;
  color: var(--text-3);
}

.hero__float-card--1 { top: -18px; right: -10px; }
.hero__float-card--2 { bottom: -18px; left: -12px; }

/* ---- Trust strip ---- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}

.trust-strip__item {
  font-weight: 700;
  font-size: 1rem;
  color: var(--faint-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color var(--t) var(--ease);
  opacity: 0.85;
}

.trust-strip__item:hover {
  color: var(--text-2);
}

.trust-strip__item img {
  height: 22px;
  width: auto;
  opacity: 0.75;
  transition: opacity var(--t) var(--ease);
}

.trust-strip__item:hover img {
  opacity: 1;
}

.trust-strip__item i {
  color: var(--brand-500);
}

/* ---- Inner page hero ---- */

.page-hero {
  position: relative;
  padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(48px, 6vw, 88px));
  padding-bottom: clamp(40px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% -20%, rgba(37, 99, 235, 0.08), transparent),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.page-hero h1 {
  font-size: var(--fs-h1);
  margin-block: var(--sp-3);
}

.page-hero p {
  color: var(--text-2);
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

/* ---- CTA band ---- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--grad);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.3);
}

.cta-band h2 {
  color: #fff;
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-3);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto var(--sp-4);
}

.cta-band .btn--secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-band .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.cta-band .btn--white {
  background: #fff;
  color: var(--brand-700);
  font-weight: 700;
}

.cta-band .btn--white:hover {
  color: var(--brand-800);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.cta-band__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-band__orb--1 { width: 300px; height: 300px; background: rgba(255,255,255,0.12); top: -120px; left: -80px; }
.cta-band__orb--2 { width: 260px; height: 260px; background: rgba(255,255,255,0.1); bottom: -110px; right: -60px; }

/* ---- Footer ---- */

.site-footer {
  position: relative;
  background: #0f172a;
  color: #cbd5e1;
  padding-top: var(--sp-6);
  margin-top: var(--sp-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: var(--sp-3);
  max-width: 300px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand:hover {
  color: #fff;
}

.site-footer .brand-sub {
  color: #93c5fd;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
  margin-bottom: var(--sp-3);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-contact i {
  color: #60a5fa;
  margin-top: 4px;
  width: 16px;
  text-align: center;
}

.footer-contact a {
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: var(--sp-3);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  transition: all var(--t) var(--ease);
}

.footer-social a:hover {
  color: #fff;
  background: var(--brand-600);
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-bottom nav {
  display: flex;
  gap: var(--sp-3);
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---- Back to top ---- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--t) var(--ease);
}

.back-to-top:hover {
  background: var(--brand-700);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
