:root {
  --bg: #06060f;
  --bg-soft: #0b0b1c;
  --ink: #e8e6f2;
  --muted: #a39fc0;
  --accent: #7aa2ff;
  --accent-2: #b388ff;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: radial-gradient(ellipse at 50% 20%, #141438 0%, var(--bg) 60%);
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 80% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #cdd6ff, transparent),
    radial-gradient(1px 1px at 65% 45%, #fff, transparent),
    radial-gradient(1px 1px at 15% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 75%, #cdd6ff, transparent),
    radial-gradient(1px 1px at 50% 10%, #fff, transparent),
    radial-gradient(1px 1px at 30% 55%, #fff, transparent);
  opacity: 0.6;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0a0a18;
}

.btn-primary:hover { box-shadow: 0 8px 30px rgba(122, 162, 255, 0.35); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* ---------- SECTIONS ---------- */
section {
  max-width: 980px;
  margin: 0 auto;
  padding: 5rem 1.5rem 1rem;
}

.section-head { margin-bottom: 2.5rem; }

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sub { color: var(--muted); max-width: 560px; }

/* ---------- FEATURED ---------- */
.sim-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sim-frame iframe {
  display: block;
  width: 100%;
  height: 60vh;
  min-height: 380px;
  border: none;
}

.sim-cta { text-align: center; margin-top: 1.5rem; }

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

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover { border-color: rgba(122, 162, 255, 0.35); transform: translateY(-2px); }

.card h3 { font-size: 1.15rem; }

.card p { color: var(--muted); font-size: 0.95rem; }

.card-link {
  margin-top: auto;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.card-link:hover { text-decoration: underline; }

.pending-note { font-size: 0.85rem !important; color: #8f8ab0 !important; }

.tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag-live {
  color: #9ef0b0;
  border-color: rgba(158, 240, 176, 0.3);
  background: rgba(158, 240, 176, 0.08);
}

.tag-lab {
  color: #ffd59e;
  border-color: rgba(255, 213, 158, 0.3);
  background: rgba(255, 213, 158, 0.07);
}

/* ---------- HOUSE ---------- */
.house-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.house-list li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.house-list strong { color: var(--ink); }

/* ---------- ABOUT ---------- */
.about p {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  color: #6a668a;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}
