:root{
  --bg1:#071a33;
  --bg2:#0a5aa6;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --line: rgba(255,255,255,.14);
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{min-height:100%}

/* BODY BACKGROUND (SMOOTH GRADIENT) */
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  overflow-x:hidden;

  background: var(--bg1);  /* Update: this makes the background blue (no more white bordures) */
  position: relative;
}

/* FIX: This ensures when you click a link, the section doesn't hide behind the navbar */
html{
  scroll-behavior: smooth;
  scroll-padding-top: 80px; 
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;

  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg,
      var(--bg1) 0%,
      #083a73 45%,
      var(--bg2) 100%
    );
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .06;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

a{color:inherit}
.wrap{max-width:1100px; margin:0 auto; padding:22px}

/* --- NAV BAR FIXES --- */
.nav{
  position:sticky; 
  top:0; 
  z-index:1000; /* High Z-index ensures it stays above content */
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  background: rgba(4,12,24,.65); /* Slightly darker for better contrast */
  border-bottom:1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

/* Add a shadow when it sticks (optional visual improvement) */
.nav.is-stuck {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-inner{display:flex; gap:14px; align-items:center; justify-content:space-between}

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

.logo{
  width:42px;              
  height:42px;
  border-radius:50%;       
  object-fit: contain;     
  padding:4px;             
  border:1px solid var(--line);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  background: rgba(255,255,255,.08);
  display:block;
  transition: transform .2s ease, box-shadow .2s ease;
}

.logo:hover{
  transform: scale(1.05);
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
}

.nav-links{display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.nav-links a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
  font-weight:650;
  font-size:14px;
}
.nav-links a:hover{color:var(--text); border-color:var(--line); background: rgba(255,255,255,.05)}

.btn{
  display:inline-flex; gap:10px; align-items:center; justify-content:center;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:12px 14px;
  border-radius:999px;
  font-weight:800;
  text-decoration:none;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s ease;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.10)}
.btn.primary{
  background: linear-gradient(135deg, rgba(0,210,255,.35), rgba(0,120,255,.25));
  border-color: rgba(255,255,255,.18);
}

header.hero{padding:46px 0 14px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .nav-links{display:none}
}

.panel{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-left{padding:28px}

.kicker{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color:var(--muted);
  font-weight:750;
  font-size:13px;
  letter-spacing:.3px;
}

h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height:1.05;
  letter-spacing:-.6px;
}
.sub{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  max-width: 62ch;
}

.cta-row{display:flex; gap:12px; flex-wrap:wrap}
.hero-right{padding:22px; display:flex; flex-direction:column; gap:12px}

.mini-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  padding:14px;
}
.mini-title{font-weight:900; margin:0 0 6px}
.mini-text{margin:0; color:var(--muted); line-height:1.45; font-size:14px}

.section{padding:26px 0}
.section h2{
  margin:0 0 12px;
  font-size:26px;
  letter-spacing:-.2px;
}
.section p{color:var(--muted); margin:0 0 16px; line-height:1.7}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 900px){ .grid3{grid-template-columns:1fr} }

.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:16px;
}
.card strong{display:block; margin-bottom:6px}

.pill-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:8px}
.pill{
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  padding:8px 10px;
  border-radius:999px;
  font-weight:750;
  font-size:13px;
  color:var(--muted);
}

.toggle{
  display:flex; gap:8px; align-items:center;
  margin: 10px 0 0;
}

.switch{
  width:48px; height:28px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.07);
  position:relative; cursor:pointer; flex:0 0 auto;
}
.knob{
  position:absolute; top:3px; left:3px;
  width:22px; height:22px; border-radius:999px;
  background: rgba(255,255,255,.85);
  transition: transform .18s ease;
}
.switch.on .knob{transform: translateX(20px)}

.muted{color:var(--muted)}

.timeline{display:grid; gap:10px}
.step{
  display:flex; gap:12px; align-items:flex-start;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.badge{
  width:30px; height:30px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line);
  background: rgba(0,200,255,.18);
  font-weight:900;
}

.progress-wrap{
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow:hidden;
  height:14px;
}
.progress{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(0,210,255,.8), rgba(0,120,255,.7));
  transition: width .2s ease;
}

.checklist{display:grid; gap:10px; margin-top:10px}
label.chk{
  display:flex; gap:10px; align-items:center;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  cursor:pointer;
}
label.chk input{transform: scale(1.2)}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 900px){ .split{grid-template-columns:1fr} }

.form-row{display:flex; gap:10px; flex-wrap:wrap; width:100%;}

input[type="text"]{
  width:auto;
  flex: 1;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}
input::placeholder{color: rgba(255,255,255,.5)}

.wall{display:grid; gap:10px; margin-top:12px}
.pledge{
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  display:flex; justify-content:space-between; gap:10px;
}
.pledge small{color:var(--muted)}

.stat{
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
}
.stat .num{font-size:28px; font-weight:950; letter-spacing:-.4px}

footer{
  padding:26px 0 40px;
  border-top:1px solid var(--line);
  background: rgba(2,8,18,.25);
  margin-top:10px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

.toast{
  position:fixed; bottom:18px; left:50%;
  transform: translateX(-50%);
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.55);
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  opacity:0; pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  font-weight:750;
  z-index:80;
}
.toast.show{opacity:1; transform: translateX(-50%) translateY(-2px)}

.dot{
  position:fixed; width:8px; height:8px; border-radius:999px;
  background: rgba(255,255,255,.9);
  pointer-events:none; z-index:90;
  animation: fly 900ms ease-out forwards;
}
@keyframes fly{
  from{transform: translate(0,0) scale(1); opacity:1}
  to{transform: translate(var(--dx), var(--dy)) scale(.6); opacity:0}
}

.logo-link{
  display:flex;
  align-items:center;
  text-decoration:none;
}

/* Unicorn intro section */
.us-hero{
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.us-scene{
  height: calc(100% + 160px);
  transform: translateY(-80px);
}

.us-enter{
  position:absolute;
  left:50%;
  bottom:60px;
  transform:translateX(-50%);
  padding: 20px 42px;
  font-size: 22px;
  letter-spacing: 1px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  padding:12px 16px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
  backdrop-filter: blur(8px);
  z-index: 100;
  pointer-events: auto;
}

.us-enter:hover{
  background: rgba(0,0,0,.5);
}

#team .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 24px;
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 3px solid rgba(255,255,255,0.15);
  background-color: rgba(0,0,0,0.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Update: Team portraits: premium hover zoom */
.team-photo{
  transition: transform .25s ease, box-shadow .25s ease;
  transform: scale(1);
}

#team .card:hover .team-photo{
  transform: scale(1.07);
  box-shadow: 0 14px 28px rgba(0,0,0,0.45);
}

#team .card strong {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

#team .card:hover .team-photo{
  border-color: rgba(255,255,255,0.25);
}

#team .card:active .team-photo{           /* Team portraits: this is for zoom support on touchscreens */
  transform: scale(1.07);
}