:root {
  --bg: #050816;
  --bg-soft: rgba(13, 20, 43, 0.86);
  --panel: rgba(18, 28, 57, 0.82);
  --panel-light: rgba(229, 236, 255, 0.96);
  --text: #f8fbff;
  --muted: #aeb9d8;
  --ink: #10182f;
  --accent: #ffe066;
  --accent-dark: #c98700;
  --cyan: #65e4ff;
  --violet: #9b7cff;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(101, 228, 255, 0.2), transparent 20rem),
    radial-gradient(circle at 78% 8%, rgba(155, 124, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 68% 78%, rgba(255, 224, 102, 0.14), transparent 22rem),
    #050816;
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(#ffffff 0.8px, transparent 0.8px),
    radial-gradient(#65e4ff 0.7px, transparent 0.7px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 35px 45px;
  opacity: 0.45;
}

.stars::after {
  transform: rotate(8deg) scale(1.2);
  opacity: 0.22;
}

.hero,
.sub-hero {
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(5, 8, 22, 0.82), rgba(14, 20, 45, 0.62)),
    radial-gradient(circle at top left, rgba(255, 224, 102, 0.16), transparent 34rem);
}

.hero { min-height: 92vh; }
.sub-hero { min-height: 64vh; }

.nav {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #17120a;
  background: radial-gradient(circle, #fff7b0 0%, var(--accent) 52%, #d89000 100%);
  box-shadow: 0 0 30px rgba(255, 224, 102, 0.44);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--cyan); }

.hero-grid,
.sub-hero-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: center;
}
.hero-grid { min-height: calc(92vh - 92px); }
.sub-hero-grid { padding-top: 70px; padding-bottom: 70px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 880px;
  font-size: clamp(2.55rem, 6.8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 10px; }

.hero-text,
.section-heading p,
.split p,
.card p,
.prompt-card p,
.hero-panel p,
.book-card p,
.signal-card li { color: var(--muted); }
.hero-text { max-width: 680px; font-size: 1.18rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #151006;
  background: linear-gradient(135deg, #fff7a3, var(--accent));
  box-shadow: 0 0 28px rgba(255, 224, 102, 0.26);
}
.button.primary:hover { background: #fff7a3; }
.button.secondary {
  border: 1px solid rgba(101, 228, 255, 0.35);
  color: var(--text);
  background: rgba(101, 228, 255, 0.08);
}
.button.disabled { opacity: 0.72; pointer-events: none; }

.hero-panel,
.signal-card,
.card,
.prompt-card,
.saved-projects,
.project-form,
.steps,
.book-card,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero-panel { padding: 32px; }
.panel-label {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}
.section-heading { max-width: 760px; margin-bottom: 34px; }

.feature-band {
  border: 1px solid rgba(101, 228, 255, 0.18);
  border-radius: 34px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(101, 228, 255, 0.08), rgba(155, 124, 255, 0.08));
}
.signal-card { padding: 28px; }
.check-list { margin: 0; padding-left: 20px; }
.check-list li { margin-bottom: 10px; }
.check-list li::marker { color: var(--accent); }

.card-grid,
.prompt-grid,
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card,
.prompt-card { padding: 24px; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(101, 228, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(101, 228, 255, 0.1);
  font-size: 1.4rem;
}
.card-link a { color: var(--accent); font-weight: 900; }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}
.steps { margin: 0; padding: 24px 24px 24px 48px; }
.steps li { margin-bottom: 16px; color: var(--muted); }
.steps li::marker { color: var(--accent); font-weight: 900; }
.steps strong { color: var(--text); }

.tracker-section {
  border-radius: 34px;
  padding: 48px;
  background: var(--panel-light);
  color: var(--ink);
}
.tracker-section .eyebrow { color: var(--accent-dark); }
.tracker-section .section-heading p { color: #5b6475; }
.project-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  background: #f8fbff;
  border-color: rgba(23, 32, 51, 0.12);
  box-shadow: 0 16px 36px rgba(16, 24, 47, 0.16);
  backdrop-filter: none;
}
label { display: grid; gap: 7px; color: #2c3448; font-size: 0.86rem; font-weight: 800; }
input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}
.saved-projects {
  margin-top: 18px;
  padding: 18px;
  background: #f8fbff;
  border-color: rgba(23, 32, 51, 0.12);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(16, 24, 47, 0.16);
  backdrop-filter: none;
}
.saved-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.saved-header h3 { margin-bottom: 0; }
.text-button { border: 0; color: #8b5e00; background: transparent; font-weight: 900; cursor: pointer; }
.project-list { display: grid; gap: 12px; }
.project-item { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: white; border: 1px solid rgba(23, 32, 51, 0.1); }
.project-meta { color: #6a7283; font-size: 0.88rem; font-weight: 800; }
.empty-state { padding: 22px; border: 1px dashed rgba(23, 32, 51, 0.24); border-radius: 18px; color: #6a7283; background: rgba(255, 255, 255, 0.58); }

.book-card { overflow: hidden; }
.book-cover {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 900;
  text-align: center;
  padding: 24px;
}
.placeholder-cover {
  background:
    linear-gradient(145deg, rgba(101, 228, 255, 0.22), rgba(155, 124, 255, 0.18)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 14px);
}
.book-info { padding: 24px; }
.book-type { color: var(--cyan); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.wide-card { max-width: 860px; }

.chat-panel { padding: 18px; }
.chat-window {
  display: grid;
  gap: 12px;
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}
.chat-message {
  width: fit-content;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text);
}
.chat-message.bot { background: rgba(101, 228, 255, 0.12); border: 1px solid rgba(101, 228, 255, 0.2); }
.chat-message.user { justify-self: end; background: rgba(255, 224, 102, 0.16); border: 1px solid rgba(255, 224, 102, 0.24); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero-grid, .sub-hero-grid, .split, .project-form { grid-template-columns: 1fr; }
  .card-grid, .prompt-grid, .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracker-section, .feature-band { padding: 32px 18px; }
}

@media (max-width: 620px) {
  .hero, .sub-hero { padding: 18px; }
  .card-grid, .prompt-grid, .book-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .saved-header { align-items: flex-start; flex-direction: column; }
  .chat-form { grid-template-columns: 1fr; }
}
