:root {
  --bg: #1e1e2e;
  --base: #11111b;
  --surface: #313244;
  --overlay: #45475a;
  
  --text: #cdd6f4;
  --subtext: #a6adc8;
  --dim: #6c7086;
  
  --green: #a6e3a1;
  --pink: #f5c2e7;
  --mauve: #cba6f7;
  --blue: #89b4fa;
  --teal: #94e2d5;
  --yellow: #f9e2af;
  --red: #f38ba8;
  --lavender: #b4befe;

  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--base);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.glow--1 {
  width: 600px;
  height: 600px;
  background: var(--mauve);
  top: -200px;
  left: -100px;
  opacity: 0.15;
}

.glow--2 {
  width: 500px;
  height: 500px;
  background: var(--blue);
  bottom: -150px;
  right: -100px;
  opacity: 0.12;
}

.shell {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  z-index: 1;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 40px;
}

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

.brand__icon {
  font-size: 24px;
  color: var(--green);
}

.brand__text {
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--pink), var(--mauve), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  color: var(--subtext);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav__github {
  display: flex;
  align-items: center;
  padding: 8px !important;
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 0 50px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.hero__line {
  display: block;
}

.hero__plus {
  display: block;
  color: var(--mauve);
  font-size: 0.6em;
  margin: 8px 0;
}

.hero__sub {
  font-size: 18px;
  color: var(--subtext);
  margin: 0 0 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--overlay);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn:hover {
  border-color: var(--subtext);
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--teal));
  border: none;
  color: var(--base);
}

.btn--primary:hover {
  filter: brightness(1.1);
}

/* Terminal Preview */
.terminal-preview {
  padding: 20px 0 40px;
}

.terminal {
  border-radius: 16px;
  overflow: hidden;
  background: var(--base);
  border: 1px solid var(--overlay);
  box-shadow: 
    0 0 0 1px rgba(0,0,0,0.3),
    0 20px 50px -10px rgba(0,0,0,0.5),
    0 0 100px -20px var(--mauve);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--overlay);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dim);
}

.terminal__dot--red { background: var(--red); }
.terminal__dot--yellow { background: var(--yellow); }
.terminal__dot--green { background: var(--green); }

.terminal__title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  font-family: var(--mono);
}

.terminal__body {
  padding: 0;
}

/* TUI Mockup */
.tui {
  font-family: var(--mono);
  font-size: 13px;
}

.tui__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--overlay);
}

.tui__logo {
  color: var(--green);
}

.tui__name {
  background: linear-gradient(90deg, var(--pink), var(--mauve), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.tui__dim {
  color: var(--dim);
  margin-left: auto;
}

.tui__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
}

@media (max-width: 700px) {
  .tui__content {
    grid-template-columns: 1fr;
  }
  .tui__preview {
    display: none;
  }
}

.tui__list {
  padding: 12px 0;
  border-right: 1px solid var(--overlay);
}

.tui__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  color: var(--subtext);
}

.tui__item--selected {
  background: var(--surface);
  color: var(--mauve);
  font-weight: 500;
}

.tui__item--orphan {
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-top: 4px;
  padding-left: 20px;
}

.tui__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tui__dot--green { background: var(--green); }
.tui__dot--yellow { background: var(--yellow); }
.tui__dot--dim { background: var(--dim); }

.tui__branch {
  margin-left: auto;
  color: var(--dim);
}

.tui__session {
  color: var(--green);
}

.tui__separator {
  height: 1px;
  background: var(--overlay);
  margin: 8px 20px;
}

.tui__orphan-name {
  color: var(--yellow);
  padding-left: 20px;
}

.tui__orphan-label {
  margin-left: auto;
  color: var(--dim);
}

.tui__item--header {
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.tui__header-dim {
  color: var(--dim);
  margin-left: 8px;
}

.tui__recent-name {
  color: var(--mauve);
  padding-left: 20px;
}

.tui__recent-label {
  margin-left: auto;
  color: var(--dim);
}

.tui__preview {
  padding: 16px 20px;
  color: var(--subtext);
}

.tui__section {
  color: var(--blue);
  margin-bottom: 16px;
  font-weight: 500;
}

.tui__preview-text {
  color: var(--dim);
  margin-bottom: 12px;
}

.tui__step {
  padding: 4px 0;
}

.tui__step span {
  color: var(--mauve);
  margin-right: 8px;
}

.tui__footer {
  display: flex;
  gap: 20px;
  padding: 12px 20px;
  border-top: 1px solid var(--overlay);
  color: var(--dim);
  font-size: 12px;
}

.tui__footer kbd {
  color: var(--teal);
  margin-right: 4px;
}

/* Install */
.install {
  padding: 0 0 50px;
}

.install__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 12px;
}

.install__code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  overflow-x: auto;
}

.install__copy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--overlay);
  border: none;
  border-radius: 8px;
  color: var(--subtext);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

.install__copy:hover {
  background: var(--dim);
  color: var(--text);
}

.install__alt {
  margin-top: 16px;
  color: var(--subtext);
  font-size: 14px;
}

.install__alt a {
  color: var(--mauve);
  text-decoration: none;
}

.install__alt a:hover {
  text-decoration: underline;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 0 50px;
}

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

.feature {
  padding: 24px;
  background: linear-gradient(135deg, var(--surface), transparent);
  border: 1px solid var(--overlay);
  border-radius: 16px;
  transition: all 0.3s var(--ease);
}

.feature:hover {
  border-color: var(--mauve);
  transform: translateY(-4px);
}

.feature__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--subtext);
  font-size: 14px;
}

.feature kbd {
  padding: 2px 6px;
  background: var(--overlay);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
}

/* Flow */
.flow {
  padding: 0 0 50px;
}

.flow__title {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 24px;
}

.flow__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flow__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 12px;
}

.flow__num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--mauve);
  color: var(--base);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.flow__text {
  color: var(--subtext);
  font-size: 14px;
}

.flow__arrow {
  color: var(--dim);
  font-size: 20px;
}

@media (max-width: 800px) {
  .flow__arrow { display: none; }
  .flow__steps {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--overlay);
  color: var(--dim);
  font-size: 13px;
}

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

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-on {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s var(--ease);
}
