/* ============================================================
   WALE — Public homepage
   Extends the token set + .bg / .brand / .stats system already
   defined in auth.css. This file only adds nav, feature grid,
   CTA band and footer styles specific to the landing page.
   ============================================================ */

/* 00 · Light (non-hero) pages -------------------------------------- */
body.light-page { background: #f7f9fc; min-height: 100vh; }

body.light-page .site-nav {
  background: var(--navy-900);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

/* 01 · Nav ----------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 19, 46, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.nav-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #2ee27a, #12a85a);
  box-shadow: 0 8px 20px rgba(23, 190, 105, .4);
  flex: none;
}

.nav-brand-logo img { max-width: 38px; max-height: 38px; border-radius: 10px; }

.nav-brand-logo svg { width: 22px; height: 22px; }

.nav-brand span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(220, 233, 252, .88);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.btn-nav-signin {
  padding: 10px 18px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.btn-nav-signin:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }

.btn-nav-cta {
  padding: 10px 20px;
  border-radius: 9px;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(90deg, #1566e2 0%, #1a7cd8 46%, #1fae9f 80%, #23c78c 100%);
  box-shadow: var(--shadow-btn);
  transition: transform var(--t), box-shadow var(--t), filter var(--t);
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
  filter: saturate(1.15) brightness(1.06);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

/* 02 · Hero ------------------------------------------------------ */
.home-hero {
  position: relative;
  z-index: 1;
  padding: 96px 32px 108px;
  text-align: center;
}

.hero-inner { max-width: 880px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: rgba(220, 233, 252, .9);
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bd4a4;
  box-shadow: 0 0 0 3px rgba(43, 212, 164, .25);
}

.home-hero h1 {
  margin: 0 0 22px;
  font-size: 56px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -1.4px;
}

.home-hero .sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 19px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: var(--r-md);
  border: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #1566e2 0%, #1a7cd8 46%, #1fae9f 80%, #23c78c 100%);
  box-shadow: var(--shadow-btn);
  transition: transform var(--t), box-shadow var(--t), filter var(--t);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  filter: saturate(1.15) brightness(1.06);
  color: #fff;
}

.btn-hero-primary svg { width: 20px; height: 20px; }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 17px 28px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255, 255, 255, .22);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.btn-hero-secondary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }

.hero-note {
  font-size: 14px;
  color: rgba(186, 210, 242, .72);
}

.home-hero .stats {
  margin: 64px auto 0;
  max-width: 900px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .home-hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 03 · Features (light section) ---------------------------------- */
.section-light {
  position: relative;
  z-index: 1;
  background: #f7f9fc;
  color: var(--ink-900);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 32px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  background: rgba(31, 111, 234, .08);
  border-color: rgba(31, 111, 234, .18);
  color: var(--blue-500);
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--ink-900);
}

.section-head p {
  margin: 0;
  font-size: 17px;
  color: var(--ink-500);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 30px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 20px 44px rgba(15, 23, 42, .1);
}

.feature-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
  background: linear-gradient(150deg, #4f8bff, #2f5ce0);
  box-shadow: 0 10px 22px rgba(47, 92, 224, .35);
}

.feature-card:nth-child(2) .feature-ico { background: linear-gradient(150deg, #34d97f, #12a05c); box-shadow: 0 10px 22px rgba(18, 160, 92, .35); }
.feature-card:nth-child(3) .feature-ico { background: linear-gradient(150deg, #a874ff, #7b3ff0); box-shadow: 0 10px 22px rgba(123, 63, 240, .35); }
.feature-card:nth-child(4) .feature-ico { background: linear-gradient(150deg, #ffb454, #f4801f); box-shadow: 0 10px 22px rgba(244, 128, 31, .35); }
.feature-card:nth-child(5) .feature-ico { background: linear-gradient(150deg, #26c6f4, #128c9e); box-shadow: 0 10px 22px rgba(18, 140, 158, .35); }
.feature-card:nth-child(6) .feature-ico { background: linear-gradient(150deg, #ff6b9d, #e0316b); box-shadow: 0 10px 22px rgba(224, 49, 107, .35); }

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-500);
}

/* 03b · Static content pages (About, Privacy, Terms, ...) --------- */
.static-page .section-inner { max-width: 820px; padding-top: 72px; }

.static-page-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.static-page-head h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--ink-900);
}

.static-page-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-700);
}

/* 04 · CTA band ---------------------------------------------------- */
.cta-band {
  position: relative;
  z-index: 1;
  padding: 88px 32px;
  text-align: center;
  background: linear-gradient(135deg, #04122c 0%, #0a2a5e 62%, #0e3f86 100%);
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.cta-band p {
  margin: 0 0 32px;
  font-size: 17px;
  color: rgba(198, 219, 248, .85);
}

/* 05 · Footer -------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: #f7f9fc;
  border-top: 1px solid var(--line);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  font-weight: 700;
  text-decoration: none;
}

.footer-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #2ee27a, #12a85a);
  flex: none;
}

.footer-brand-logo svg { width: 17px; height: 17px; }

.footer-tagline {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-500);
}

.footer-links {
  margin-top: 10px;
  font-size: 13px;
}

.footer-links a {
  color: var(--ink-500);
  text-decoration: none;
}

.footer-links a:hover { color: var(--blue-500); text-decoration: underline; }

.footer-links-sep {
  margin: 0 8px;
  color: var(--line);
}

.footer-copy {
  font-size: 14px;
  color: var(--ink-500);
}

/* 06 · Responsive nav -------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .home-hero h1 { font-size: 40px; }
  .home-hero .sub { font-size: 17px; }
  .section-inner { padding: 72px 24px; }
  .cta-band { padding: 64px 24px; }
}

.nav-links.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px 18px;
  background: rgba(5, 19, 46, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* Below ~480px the Sign in + Get Started buttons no longer both fit next to
   the logo and hamburger — drop the standalone Sign in button and surface
   it as the last item in the mobile dropdown instead. */
.nav-link-signin { display: none; }

@media (max-width: 480px) {
  .btn-nav-signin { display: none; }
  .nav-link-signin { display: block; }
  .nav-brand span { font-size: 15px; }
  .nav-inner { padding: 14px 16px; gap: 10px; }
  .btn-nav-cta { padding: 9px 14px; font-size: 14px; }
  /* Two stat cards per row no longer leave room for icon + text once padding
     is subtracted at these widths — stack to one column instead. */
  .home-hero .stats { grid-template-columns: 1fr; }
}
