:root {
  --bg0: #070b12;
  --bg1: #0d1420;
  --panel: rgba(18, 28, 44, 0.72);
  --panel-solid: #121c2c;
  --border: rgba(120, 160, 220, 0.18);
  --text: #eef4ff;
  --muted: #93a4bd;
  --teal: #2dd4a8;
  --blue: #5b9dff;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --rose: #fb7185;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(45, 212, 168, 0.14), transparent 55%),
    radial-gradient(900px 600px at 95% 5%, rgba(91, 157, 255, 0.16), transparent 50%),
    radial-gradient(800px 500px at 50% 110%, rgba(167, 139, 250, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #0a101a);
  overflow-x: hidden;
}

/* floating orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-a {
  width: 340px; height: 340px;
  background: #2dd4a8;
  top: 8%; left: -80px;
}
.orb-b {
  width: 420px; height: 420px;
  background: #3b82f6;
  top: 30%; right: -120px;
  animation-delay: -6s;
}
.orb-c {
  width: 280px; height: 280px;
  background: #8b5cf6;
  bottom: 5%; left: 35%;
  animation-delay: -11s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 40px) scale(1.08); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

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

.mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #041018;
  box-shadow: 0 10px 30px rgba(45, 212, 168, 0.25);
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 56px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 span {
  background: linear-gradient(120deg, #fff 10%, #9fd7ff 45%, #2dd4a8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 24px;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #2dd4a8, #22a6f2);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(45, 212, 168, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(91, 157, 255, 0.45);
  background: rgba(91, 157, 255, 0.08);
}

.hero-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.stat {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.stat b {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* section */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* project grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 168, 0.35);
}

.card.featured {
  grid-column: 1 / -1;
  min-height: 200px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(45, 212, 168, 0.1), rgba(59, 130, 246, 0.08)),
    var(--panel);
}

@media (max-width: 720px) {
  .card.featured { grid-template-columns: 1fr; }
}

.card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.badge.live {
  background: rgba(45, 212, 168, 0.15);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 168, 0.3);
}

.badge.soon {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.badge.wip {
  background: rgba(167, 139, 250, 0.12);
  color: var(--violet);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.tag {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(0, 0, 0, 0.18);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--teal);
  margin-top: auto;
}

.card.accent-blue .card-cta { color: var(--blue); }
.card.accent-violet .card-cta { color: var(--violet); }
.card.accent-amber .card-cta { color: var(--amber); }
.card.accent-rose .card-cta { color: var(--rose); }

.glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -40px;
  bottom: -50px;
  background: radial-gradient(circle, rgba(45, 212, 168, 0.25), transparent 70%);
  pointer-events: none;
}

.card.accent-blue .glow {
  background: radial-gradient(circle, rgba(91, 157, 255, 0.28), transparent 70%);
}

/* how to add */
.howto {
  margin-top: 48px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px dashed rgba(120, 160, 220, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.howto h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.howto p, .howto li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.howto code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 6px;
  color: #c7e0ff;
}

/* footer */
footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--text); }

.loading {
  color: var(--muted);
  padding: 28px;
  text-align: center;
}
