:root {
  color-scheme: dark;
  --bg: #11110f;
  --bg-raised: #171714;
  --panel: #1b1b18;
  --panel-soft: #20201c;
  --line: rgba(245, 242, 232, 0.1);
  --line-strong: rgba(245, 242, 232, 0.16);
  --text: #f4f1e9;
  --text-soft: #aaa9a1;
  --text-faint: #77776f;
  --green: #8abf94;
  --green-deep: #50845b;
  --warm: #d8cbb1;
  --orange: #d79055;
  --max-width: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 6%, rgba(128, 144, 109, 0.09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.page-shell {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  position: relative;
  display: block;
  width: 21px;
  height: 19px;
}

.brand-mark span {
  position: absolute;
  top: 2px;
  width: 6px;
  height: 16px;
  border-radius: 2px;
  background: var(--text);
  transform: skew(14deg);
}

.brand-mark span:first-child {
  left: 3px;
}

.brand-mark span:last-child {
  right: 3px;
  transform: skew(-14deg);
}

.alpha-badge {
  padding: 3px 5px 2px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-soft);
  font-size: 13px;
}

.site-nav a {
  transition: color 180ms ease;
}

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

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.github-link svg,
.text-link svg,
.button-secondary svg,
.arrow-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(370px, 0.82fr) minmax(570px, 1.18fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  min-height: 720px;
  padding: 94px 0 112px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(138, 191, 148, 0.1);
}

.hero h1 {
  max-width: 590px;
  margin: 25px 0 20px;
  font-size: clamp(58px, 6vw, 86px);
  font-weight: 540;
  line-height: 0.96;
  letter-spacing: -0.064em;
}

.hero-summary {
  max-width: 500px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.012em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 620;
  transition:
    transform 220ms var(--ease),
    background 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  min-width: 178px;
  background: var(--text);
  color: #161613;
}

.button-primary:hover {
  background: #fffdf6;
}

.button-primary > svg:first-child {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.button-primary span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.1;
}

.button-primary small {
  margin-bottom: 2px;
  color: rgba(22, 22, 19, 0.63);
  font-size: 9px;
  font-weight: 580;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text);
}

.release-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 2px 0;
  color: var(--text-faint);
  font-size: 10.5px;
}

.app-stage {
  position: relative;
  width: 730px;
  max-width: none;
}

.app-glow {
  position: absolute;
  inset: 8% 4% -6% 8%;
  border-radius: 40%;
  background: rgba(143, 163, 127, 0.16);
  filter: blur(80px);
}

.app-window {
  position: relative;
  overflow: hidden;
  width: 730px;
  height: 510px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #171715;
  box-shadow:
    0 45px 100px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.04);
  transform: perspective(1600px) rotateY(-4deg) rotateX(1.2deg);
  transform-origin: left center;
}

.window-bar {
  height: 43px;
  display: grid;
  grid-template-columns: 124px 1fr auto auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  padding: 0 13px;
  background: #191917;
  color: #8c8c85;
  font-size: 9.5px;
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic-lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4d4c48;
}

.window-title {
  color: #e1dfd7;
  font-size: 10.5px;
  font-weight: 620;
}

.window-title em {
  margin-left: 4px;
  color: #5f5f5a;
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.window-project {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-project svg {
  width: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.window-body {
  display: grid;
  grid-template-columns: 154px 1fr;
  height: calc(100% - 43px);
}

.app-sidebar {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.065);
  padding: 13px 10px;
  background: #181816;
  color: #75756f;
  font-size: 8.5px;
}

.sidebar-search {
  display: flex;
  height: 27px;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 0 6px;
}

.sidebar-search svg {
  width: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.sidebar-search kbd {
  margin-left: auto;
  color: #4f4f4a;
  font-family: inherit;
  font-size: 7px;
}

.sidebar-label {
  margin: 0 6px 8px;
  color: #4f4f4a;
  font-size: 6.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project {
  display: flex;
  height: 25px;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  padding: 0 6px;
  color: #aaa9a2;
  font-weight: 620;
}

.project.active {
  background: #21211e;
}

.folder-icon {
  width: 10px;
  height: 7px;
  border: 1px solid #63635e;
  border-radius: 1px;
}

.project-muted {
  margin-top: 12px;
}

.thread {
  display: flex;
  height: 24px;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 0 6px;
  color: #676761;
}

.thread span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.thread.active {
  color: #bab9b1;
}

.thread i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: 50%;
  background: #7aa3de;
}

.sidebar-settings {
  position: absolute;
  bottom: 14px;
  left: 17px;
  color: #5d5d57;
}

.conversation {
  position: relative;
  background: #171715;
}

.conversation-inner {
  width: 74%;
  margin: 0 auto;
  padding-top: 32px;
}

.user-message {
  width: fit-content;
  max-width: 80%;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 13px;
  background: #21211f;
  color: #cfcdc5;
  font-size: 9px;
  line-height: 1.45;
}

.activity-group {
  margin-top: 36px;
}

.activity-heading,
.activity-command {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: #a7a69f;
  font-size: 9.5px;
  font-weight: 580;
}

.activity-command {
  grid-template-columns: 18px 1fr auto;
  margin-top: 17px;
  padding-left: 8px;
  color: #777770;
}

.prompt-mark {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.activity-command code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5px;
}

.status-check {
  color: #5fac76;
  font-weight: 700;
}

.active-activity {
  margin-top: 25px;
}

.status-ring {
  width: 10px;
  height: 10px;
  border: 1.5px solid #44443f;
  border-top-color: #a4a39c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.pulse-text {
  position: relative;
  overflow: hidden;
}

.pulse-text::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  content: "";
  transform: translateX(-110%);
  animation: sweep 2.1s ease-in-out infinite;
}

.assistant-copy {
  margin: 30px 0 0;
  color: #a3a29b;
  font-size: 9.5px;
  line-height: 1.7;
}

.composer {
  position: absolute;
  right: 13%;
  bottom: 22px;
  left: 13%;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px;
  background: #1b1b19;
  color: #595953;
  font-size: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.composer-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  color: #71716a;
}

.composer-row button {
  width: 21px;
  height: 21px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: #4c5872;
  color: #dfe5f2;
  font-size: 12px;
}

.principles {
  padding: 130px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 55px;
}

.section-heading h2,
.install-copy h2,
.final-cta h2 {
  margin: 16px 0 0;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 275px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 52%),
    var(--bg-raised);
}

.feature-card h3 {
  margin: 26px 0 9px;
  font-size: 18px;
  font-weight: 590;
  letter-spacing: -0.025em;
}

.feature-card p {
  max-width: 480px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #b8b6ae;
}

.feature-icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.mini-projects {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.mini-projects span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 9px;
  color: #8e8d86;
  font-size: 9px;
}

.mini-projects i {
  width: 9px;
  height: 7px;
  border: 1px solid #5d5d57;
  border-radius: 1px;
}

.bridge-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  margin-top: 30px;
}

.bridge-line > i {
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--line-strong));
}

.bridge-node {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: #cbc9c0;
  font-size: 12px;
  font-weight: 700;
}

.bridge-chat {
  border-radius: 50%;
}

.bridge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(108, 157, 117, 0.22);
  border-radius: 999px;
  padding: 6px 9px;
  color: #8fad95;
  font-size: 8.5px;
}

.bridge-status b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.install-section {
  padding: 40px 0 130px;
}

.install-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 85px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 74px);
  background:
    radial-gradient(circle at 10% 10%, rgba(142, 164, 126, 0.11), transparent 22rem),
    var(--bg-raised);
}

.install-copy h2 {
  font-size: clamp(40px, 4.2vw, 58px);
}

.install-copy > p:not(.section-kicker) {
  margin: 22px 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 600;
}

.install-steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 17px;
  padding: 22px 0;
}

.install-steps li:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.install-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-soft);
  font-size: 10px;
}

.install-steps h3 {
  margin: 1px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.install-steps p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.final-cta {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  font-size: clamp(40px, 5vw, 66px);
}

.final-cta .button-primary {
  min-width: 164px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 110px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 10px;
}

footer p {
  margin: 0;
}

footer p a:hover,
footer > div a:hover {
  color: var(--text);
}

footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.footer-brand {
  color: var(--text-soft);
  font-size: 12px;
}

.footer-brand .brand-mark {
  transform: scale(0.72);
  transform-origin: left center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes sweep {
  55%, 100% { transform: translateX(110%); }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .app-stage {
    width: 100%;
  }

  .app-window {
    width: 100%;
    transform: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    height: 66px;
  }

  .site-nav > a:not(.github-link) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 85px;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 72px);
  }

  .hero-summary {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .release-line {
    flex-wrap: wrap;
  }

  .app-window {
    height: 420px;
    border-radius: 10px;
  }

  .window-bar {
    grid-template-columns: 72px 1fr auto;
  }

  .window-project {
    display: none;
  }

  .window-body {
    grid-template-columns: 112px 1fr;
  }

  .app-sidebar {
    padding: 10px 6px;
  }

  .conversation-inner {
    width: 84%;
  }

  .composer {
    right: 8%;
    left: 8%;
  }

  .principles {
    padding: 95px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 250px;
    padding: 26px;
  }

  .mini-projects {
    overflow: hidden;
  }

  .install-section {
    padding-bottom: 95px;
  }

  .install-card {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 34px 26px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    padding: 75px 0;
  }

  .final-cta .button {
    width: auto;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 470px) {
  .app-stage {
    width: 640px;
    transform: scale(0.57);
    transform-origin: top left;
    margin-bottom: -180px;
  }

  .app-window {
    width: 640px;
    height: 480px;
  }

  .mini-projects span:last-child {
    display: none;
  }

  footer > div a:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
