:root {
  color-scheme: dark;
  --bg: #090711;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f9f5ff;
  --muted: #b9abc9;
  --line: rgba(255, 255, 255, 0.16);
  --pink: #ff79c6;
  --violet: #a78bfa;
  --gold: #ffd166;
  --green: #60d394;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 121, 198, 0.22), transparent 34rem),
    radial-gradient(circle at 75% 10%, rgba(167, 139, 250, 0.24), transparent 32rem),
    linear-gradient(135deg, #090711 0%, #130d24 52%, #090711 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.orb { position: fixed; border-radius: 999px; filter: blur(8px); opacity: .55; pointer-events: none; z-index: -1; }
.orb-one { width: 22rem; height: 22rem; background: rgba(255, 121, 198, .14); right: -8rem; top: 18rem; }
.orb-two { width: 18rem; height: 18rem; background: rgba(96, 211, 148, .12); left: -6rem; bottom: 8rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 7, 17, 0.72);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: .8rem;
  color: #180b22;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  box-shadow: 0 10px 35px rgba(255, 121, 198, .35);
}
.nav { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .94rem; }
.nav a { padding: .7rem .9rem; border-radius: 999px; transition: .2s ease; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.nav-button { border: 1px solid var(--line); color: var(--text) !important; }

main { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 5rem 0 3rem;
}
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; margin: 0 0 1rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: .95; letter-spacing: -.055em; }
h1 { font-size: clamp(3.4rem, 10vw, 7.8rem); max-width: 8.5ch; margin-bottom: 1.25rem; }
h2 { font-size: clamp(2.3rem, 5vw, 4.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.08rem; margin-bottom: .55rem; }
p { color: var(--muted); line-height: 1.7; }
.hero-lede { max-width: 44rem; font-size: clamp(1.05rem, 2vw, 1.32rem); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .85rem 1.2rem; border-radius: 999px;
  font-weight: 800; border: 1px solid var(--line); transition: .2s ease;
}
.button.primary { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; border-color: transparent; box-shadow: 0 18px 45px rgba(167, 139, 250, .28); }
.button.secondary { background: rgba(255,255,255,.06); }
.button:hover { transform: translateY(-2px); }
.hero-card, .project-card, .system-list article, .add-project {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.115), rgba(255,255,255,.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-card { border-radius: 2rem; padding: 1.25rem; min-height: 22rem; display: flex; flex-direction: column; justify-content: space-between; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; padding: .55rem .8rem; border-radius: 999px; background: rgba(96,211,148,.12); color: #b8ffd4; font-weight: 800; font-size: .85rem; }
.status-pill span { width: .55rem; height: .55rem; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 6px rgba(96,211,148,.12); }
.metric-grid { display: grid; gap: .8rem; }
.metric-grid div { padding: 1rem; border-radius: 1.2rem; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.09); }
.metric-grid strong { display: block; font-size: 1.45rem; margin-bottom: .2rem; }
.metric-grid span { color: var(--muted); font-size: .9rem; }
.section { padding: 5rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading p { max-width: 34rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.project-card { border-radius: 1.6rem; padding: 1.2rem; display: flex; flex-direction: column; min-height: 25rem; }
.project-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.project-icon { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 1.1rem; background: linear-gradient(135deg, rgba(255,209,102,.95), rgba(255,121,198,.85)); color: #221222; font-weight: 900; }
.badge { padding: .38rem .65rem; border-radius: 999px; background: rgba(167,139,250,.18); border: 1px solid rgba(167,139,250,.3); color: #ded4ff; font-size: .78rem; font-weight: 800; }
.project-card h3 { font-size: 1.45rem; }
.tags { display: flex; gap: .45rem; flex-wrap: wrap; margin: auto 0 1.2rem; padding-top: 1rem; }
.tags span { color: var(--muted); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); border-radius: 999px; padding: .35rem .6rem; font-size: .78rem; }
.project-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.project-links a { flex: 1; text-align: center; padding: .75rem .8rem; border-radius: .9rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-weight: 800; }
.project-links a:first-child { background: rgba(255,121,198,.18); border-color: rgba(255,121,198,.32); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.system-list { display: grid; gap: 1rem; }
.system-list article { border-radius: 1.3rem; padding: 1.1rem; }
.system-list span { color: var(--pink); font-weight: 900; }
.add-project { border-radius: 1.8rem; padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; }
.steps { margin: 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.8; }
code { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: .12rem .35rem; border-radius: .4rem; }
.footer { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.footer a { color: #fff; font-weight: 800; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  .nav { display: none; }
  .hero, .split, .add-project { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 4rem; }
  .section-heading { display: block; }
  .footer { flex-direction: column; }
}
