:root{
  --bg: #f7f8fb;
  --ink: #0f172a;
  --muted: rgba(15, 23, 42, 0.68);
  --card: rgba(255,255,255,0.75);
  --stroke: rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  --shadow2: 0 10px 30px rgba(15, 23, 42, 0.10);

  --brandA: #a78bfa;
  --brandB: #22d3ee;
  --brandC: #34d399;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(167,139,250,0.18), transparent 60%),
    radial-gradient(900px 520px at 80% 18%, rgba(34,211,238,0.16), transparent 60%),
    radial-gradient(900px 520px at 60% 85%, rgba(52,211,153,0.14), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg));
}

/* NAV */
.nav-glass{
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  transition: all .25s ease;
}

#mainNav.navbar-shrink{
  background: rgba(255,255,255,0.85);
  box-shadow: var(--shadow2);
}

.navbar-toggler-icon{
  filter: invert(0);
  opacity: .75;
}

.brand{
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink) !important;
}

#mainNav .nav-link{
  color: rgba(15,23,42,0.70);
  font-weight: 600;
  transition: transform .15s ease, color .15s ease, opacity .15s ease;
}
#mainNav .nav-link:hover{
  color: rgba(15,23,42,0.92);
  transform: translateY(-1px);
}

/* BUTTONS */
.btn-pill{ border-radius: 999px !important; font-weight: 700; }
.btn-primary{
  border: 0 !important;
  background: linear-gradient(135deg, var(--brandA), var(--brandB)) !important;
  box-shadow: 0 12px 30px rgba(167,139,250,0.22);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 44px rgba(34,211,238,0.20), 0 16px 44px rgba(167,139,250,0.18);
}
.btn-outline-dark{
  border-color: rgba(15,23,42,0.18) !important;
}
.btn-outline-dark:hover{
  background: rgba(15,23,42,0.06) !important;
}

/* HERO */
.hero{
  padding: 120px 0 70px;
}
.hero-wrap{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.pill{
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.08);
  color: rgba(15,23,42,0.72);
  font-weight: 650;
}

.headline{
  margin: 16px 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.subhead{
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 56ch;
}

.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hint{
  margin-top: 18px;
  color: rgba(15,23,42,0.45);
  font-weight: 600;
  letter-spacing: .1px;
}

/* HERO FRAME */
.frame{
  position: relative;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(167,139,250,0.60),
    rgba(34,211,238,0.55),
    rgba(52,211,153,0.45)
  );
  box-shadow: var(--shadow);
  transform: translateZ(0);
}
.frame-inner{
  border-radius: 21px;
  padding: 26px 22px;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(15,23,42,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.frame:hover .frame-inner{
  transform: translateY(-3px);
}

.glow{
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(420px 220px at 40% 20%, rgba(167,139,250,0.16), transparent 60%),
    radial-gradient(420px 220px at 70% 70%, rgba(34,211,238,0.14), transparent 60%);
  filter: blur(16px);
  opacity: .9;
  pointer-events: none;
}

.avatar{
  width: 192px;
  height: 192px;
  display: block;
  margin: 0 auto 14px;
  opacity: .95;
}

.mini{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.70);
  padding: 14px;
}
.mini-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.mini-actions{
  display: flex;
  gap: 10px;
}
.mini-btn{
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: rgba(15,23,42,0.92);
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(15,23,42,0.10);
  transition: transform .15s ease, background .15s ease;
}
.mini-btn:hover{
  transform: translateY(-1px);
  background: rgba(15,23,42,0.07);
}

/* SECTIONS */
.section{
  padding: 70px 0;
}

.section-soft{
  background: rgba(255,255,255,0.50);
  border-top: 1px solid rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.section-head h2{
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 74ch;
}

/* TILES */
.tiles{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tile{
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15,23,42,0.10);
}
.tile-kicker{
  font-weight: 800;
  opacity: .55;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
.tile-title{
  margin-top: 6px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.tile-body{
  margin-top: 6px;
  color: var(--muted);
}

/* LINKS */
.links-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.link-card{
  text-decoration: none;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
  color: var(--ink);
}
.link-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15,23,42,0.10);
}
.link-title{
  font-weight: 850;
  letter-spacing: -0.02em;
}
.link-sub{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 650;
}

.fineprint{
  margin-top: 16px;
  color: rgba(15,23,42,0.50);
  font-weight: 600;
}

/* FOOTER */
.footerx{
  padding: 26px 0;
}
.footer-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(15,23,42,0.55);
  font-weight: 650;
}
.footer-right a{
  color: rgba(15,23,42,0.60);
  text-decoration: none;
  border-bottom: 1px solid rgba(15,23,42,0.20);
}
.footer-right a:hover{
  color: rgba(15,23,42,0.80);
  border-bottom-color: rgba(15,23,42,0.35);
}

/* RESPONSIVE */
@media (max-width: 991.98px){
  .hero{ padding-top: 110px; }
  .hero-wrap{ grid-template-columns: 1fr; }
  .tiles{ grid-template-columns: 1fr; }
  .links-grid{ grid-template-columns: 1fr; }
  .mini-actions{ flex-direction: column; }
}