:root {
  --sky-top: #3f8fe8;
  --sky-mid: #79b8f5;
  --sky-low: #cfe7ff;
  --navy: #0b1f4b;
  --navy-soft: #2b4677;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.75);
  --accent: #1f6fe0;
  --radius: 28px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 38%, var(--sky-low) 75%, #f2f8ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Gradient wave (drawn by gradient-wave.js) ---------- */
.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(20, 60, 130, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 18px;
}

/* Wordmark where the logo stands in for the "A" of "Ascent" */
.brand-lockup { align-items: baseline; gap: 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.brand-lockup .brand-a { height: 1.06em; width: auto; margin-right: 0.03em; transform: translateY(0.025em); }

.nav-links { display: flex; gap: 22px; margin-left: 12px; font-weight: 500; color: var(--navy-soft); }
.nav-links a:hover { color: var(--navy); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
/* hidden while user-menu.js checks a saved sign-in, so the buttons don't flash */
.maybe-signed-in .nav-actions { visibility: hidden; }

/* ---------- Signed-in menu (user-menu.js) ---------- */
.user-menu { position: relative; }
.um-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy-soft);
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.um-button:hover, .um-button[aria-expanded="true"] { background: #fff; box-shadow: 0 6px 16px rgba(20, 70, 150, 0.14); }
.um-button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(31, 111, 224, 0.25); }
.um-chev { width: 16px; height: 16px; transition: transform .2s ease; }
.um-button[aria-expanded="true"] .um-chev { transform: rotate(180deg); }
.um-avatar {
  width: 36px; height: 36px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  object-fit: cover;
  color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(140deg, #38bdf8, #6366f1 60%, #0b1f4b);
}
.um-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(20, 60, 130, 0.22);
  animation: um-in .16s ease-out;
}
.um-list[hidden] { display: none; }
@keyframes um-in { from { opacity: 0; transform: translateY(-6px); } }
.um-who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(11, 31, 75, 0.08);
}
.um-who div { display: grid; min-width: 0; line-height: 1.3; }
.um-who strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-who span { font-size: 13px; color: var(--navy-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.um-item svg { width: 18px; height: 18px; color: var(--navy-soft); flex: none; }
.um-item:hover, .um-item:focus-visible { outline: none; background: rgba(31, 111, 224, 0.08); }
#um-signout, #um-signout svg { color: #be123c; }
#um-signout:hover, #um-signout:focus-visible { background: rgba(225, 29, 72, 0.08); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(11, 31, 75, 0.3);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(11, 31, 75, 0.38); }

.btn-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost { padding: 10px 14px; font-size: 14px; color: var(--navy-soft); background: transparent; border: 0; font-family: inherit; cursor: pointer; }
.btn-ghost:hover { color: var(--navy); transform: none; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }

section { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding-top: 72px;
  padding-bottom: 120px;
}

.hero-logo {
  position: relative;
  width: 190px;
  height: 180px;
  margin: 0 auto 28px;
  animation: float 6s ease-in-out infinite;
}
.hero-logo img { position: relative; width: 100%; height: 100%; }
.halo {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(255,255,255,.35) 40%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero h1 {
  margin: 14px auto 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--navy);
}
.hero h1 span { color: var(--white); text-shadow: 0 4px 24px rgba(20, 70, 150, 0.35); }

.lede {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy-soft);
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Steps ---------- */
.steps { padding-bottom: 120px; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2, .why h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 800;
}

.step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  padding: 34px 28px 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(20, 70, 150, 0.14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(20, 70, 150, 0.2); }

.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: rgba(31, 111, 224, 0.12);
}

.step-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky-top), #5aa6f2);
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(31, 111, 224, 0.35);
}
.step-icon svg { width: 26px; height: 26px; }

.step h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { color: var(--navy-soft); line-height: 1.6; font-size: 15.5px; }

/* ---------- Why ---------- */
.why { padding-bottom: 110px; }

.why-card {
  text-align: center;
  padding: 60px 32px;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(20, 70, 150, 0.14);
}
.why-card h2 { max-width: 720px; margin: 0 auto 16px; }
.why-card > p { max-width: 620px; margin: 0 auto; line-height: 1.65; color: var(--navy-soft); font-size: 17px; }

.perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 28px 0 32px;
  font-weight: 600;
}
.perks span { color: var(--accent); margin-right: 6px; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 16px 0;
  color: var(--navy-soft);
  font-size: 14px;
  border-top: 1px solid rgba(11, 31, 75, 0.1);
}
.footer a { transition: color .15s ease; }
.footer a:hover { color: var(--accent); }

.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px 64px; align-items: start; }
.footer-about { display: grid; gap: 18px; justify-items: start; }
.footer .brand-lockup { font-size: 20px; color: var(--navy); }
.footer-about p { max-width: 34ch; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.6); color: var(--navy);
  border: 1px solid rgba(11, 31, 75, 0.08);
}
.footer-social a:hover { background: #5865f2; color: #fff; }
.footer-social svg { width: 20px; height: 20px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols h3 { margin: 0 0 16px; font-size: 15px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 500; }

.footer-bottom {
  margin-top: 40px;
  padding: 24px 0 36px;
  border-top: 1px solid rgba(11, 31, 75, 0.1);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  font-size: 13px; font-weight: 500;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 860px) {
  .footer { padding-top: 44px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .step-list { grid-template-columns: 1fr; gap: 18px; }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .nav { margin: 12px 12px 0; top: 12px; gap: 10px; }
  .brand span { font-size: 16px; }
  .brand-lockup { font-size: 19px; }
  .brand-lockup span { font-size: inherit; }
  .btn-ghost { padding: 10px 8px; }
  .hero { padding-top: 48px; padding-bottom: 80px; }
  .hero-logo { width: 150px; height: 142px; }
  .lede { font-size: 16.5px; }
  .why-card { padding: 44px 20px; }
}
