:root{
  --bg: #07070d;
  --ink: #F3F4F8;
  --muted: #A8AEC0;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --coral: #FF8A65;
  --glass-1: rgba(255,255,255,0.09);
  --glass-2: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.16);
  --max: 900px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

h1, h2{ font-family: 'Space Grotesk', sans-serif; }

a{ color: inherit; }

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- ambient liquid background ---------- */

.field{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.blob.b1{
  width: 46vw; height: 46vw;
  top: -12vw; left: -10vw;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  animation: drift1 32s ease-in-out infinite alternate;
}
.blob.b2{
  width: 40vw; height: 40vw;
  bottom: -14vw; right: -8vw;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  animation: drift2 38s ease-in-out infinite alternate;
}
.blob.b3{
  width: 30vw; height: 30vw;
  top: 30vh; right: 12vw;
  background: radial-gradient(circle, var(--coral), transparent 70%);
  opacity: 0.35;
  animation: drift3 26s ease-in-out infinite alternate;
}

@keyframes drift1{
  from{ transform: translate(0,0) scale(1); }
  to{ transform: translate(6vw, 8vh) scale(1.12); }
}
@keyframes drift2{
  from{ transform: translate(0,0) scale(1); }
  to{ transform: translate(-7vw, -6vh) scale(1.08); }
}
@keyframes drift3{
  from{ transform: translate(0,0) scale(1); }
  to{ transform: translate(-5vw, 5vh) scale(0.9); }
}

@media (prefers-reduced-motion: reduce){
  .blob{ animation: none !important; }
}

/* ---------- layout ---------- */

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 0;
}

.nav a{
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav a.brand{
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav a:hover, .nav a:focus-visible{ color: var(--cyan); }

/* ---------- glass base ---------- */

.glass{
  position: relative;
  background: linear-gradient(155deg, var(--glass-1), var(--glass-2));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.22);
  overflow: hidden;
}

.glass::after{
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(75deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: translateX(-120%) rotate(8deg);
  transition: transform 0.9s ease;
  pointer-events: none;
}

.glass:hover::after, .glass:focus-within::after{
  transform: translateX(320%) rotate(8deg);
}

/* ---------- hero ---------- */

.hero{
  padding: clamp(28px, 6vw, 64px) 0 40px;
}

.kicker{
  display: inline-block;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero h1{
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  background: linear-gradient(100deg, #ffffff 20%, var(--cyan) 60%, var(--violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p{
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 46ch;
  margin: 0 0 32px;
}

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink);
}

.chip-link{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.chip-link:hover, .chip-link:focus-visible{
  color: var(--cyan);
  border-color: rgba(34,211,238,0.5);
}

/* ---------- prose (about-style pages) ---------- */

.prose{
  padding: 8px 0 40px;
}

.prose h2{
  font-weight: 600;
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  margin: 36px 0 14px;
}
.prose h2:first-child{ margin-top: 0; }

.prose p{
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 62ch;
  margin: 0 0 18px;
}

.prose a{
  color: var(--cyan);
}

/* ---------- drops ---------- */

.drops{
  padding: 56px 0 40px;
}

.drops h2{
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 28px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card{
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.32);
}

.card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.badge{
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(34,211,238,0.35));
  border: 1px solid rgba(255,255,255,0.2);
}

.index-no{
  font-size: 0.78rem;
  color: var(--muted);
}

.card h3{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.card p{
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 20px;
  flex-grow: 1;
}

.card-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status{
  font-size: 0.75rem;
  color: #6EE7B7;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6EE7B7;
  box-shadow: 0 0 8px #6EE7B7;
}

.open-btn{
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.card:hover .open-btn{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
}

.card.placeholder{
  border-style: dashed;
  background: rgba(255,255,255,0.02);
  box-shadow: none;
}
.card.placeholder h3, .card.placeholder p{ color: var(--muted); }
.card.placeholder .badge{
  background: transparent;
  border-style: dashed;
}

/* ---------- reach ---------- */

.reach{
  margin: 0 0 32px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.reach img{
  width: 74px;
  height: 74px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
}

.reach div p{
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.reach div p:first-child{
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2px;
}

/* ---------- download CTA + feature list (project pages) ---------- */

.download-btn{
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: linear-gradient(135deg, rgba(139,92,246,0.55), rgba(34,211,238,0.4));
  margin: 8px 0 10px;
}

.dl-note{
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 4px;
}

.features{
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.features li{
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
}

.features li::before{
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.back-link{
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover, .back-link:focus-visible{ color: var(--cyan); }

/* ---------- footer ---------- */

footer{
  margin: 40px 0 64px;
  padding: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a{
  color: var(--cyan);
  text-decoration: none;
}
footer a:hover, footer a:focus-visible{ text-decoration: underline; }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference){
  .hero .kicker, .hero h1, .hero p, .hero .chips{
    opacity: 0;
    animation: rise 0.7s ease forwards;
  }
  .hero .kicker{ animation-delay: 0.05s; }
  .hero h1{ animation-delay: 0.16s; }
  .hero p{ animation-delay: 0.30s; }
  .hero .chips{ animation-delay: 0.42s; }

  .prose > *{
    opacity: 0;
    animation: rise 0.6s ease forwards;
    animation-delay: 0.1s;
  }

  @keyframes rise{
    from{ opacity: 0; transform: translateY(14px); }
    to{ opacity: 1; transform: translateY(0); }
  }
}
