/* =========================================================
   tree — Design Tokens
   ========================================================= */

:root {
  --bg:           #09090b;
  --surface:      #18181b;
  --elevated:     #27272a;
  --border:       #27272a;
  --border-hover: #3f3f46;
  --text-1:       #fafafa;
  --text-2:       #a1a1aa;
  --text-3:       #71717a;
  --green:        #10b981;
  --green-hover:  #059669;
  --green-dim:    rgba(16, 185, 129, 0.08);
  --radius:       8px;
  --ease:         150ms ease;
  --max-w:        1120px;
}


/* =========================================================
   Reset
   ========================================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   Layout
   ========================================================= */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}


/* =========================================================
   Nav
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background var(--ease), border-color var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.nav-logo-mark {
  width: 22px;
  height: 22px;
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--ease);
}

.nav-links a:hover {
  color: var(--text-1);
}

.nav-github svg {
  width: 20px;
  height: 20px;
  display: block;
}


/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform 100ms ease, box-shadow var(--ease);
  text-decoration: none;
}

.btn-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-hover);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--elevated);
  color: var(--text-1);
  border-color: var(--border-hover);
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 144px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-entrance {
  opacity: 0;
  animation: heroIn 600ms ease forwards;
  animation-delay: 100ms;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-version {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 6px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}


/* =========================================================
   Mock Launcher Preview
   ========================================================= */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  animation: heroIn 600ms ease forwards;
  animation-delay: 300ms;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -48px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mock {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03);
  background: var(--surface);
  width: 100%;
  max-width: 480px;
}

.mock-chrome {
  height: 36px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--elevated);
}

.mock-app-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.mock-body {
  display: flex;
  min-height: 264px;
}

.mock-sidebar {
  width: 112px;
  background: rgba(9, 9, 11, 0.6);
  border-right: 1px solid var(--border);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.mock-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px;
}

.mock-nav-item {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding: 6px 10px;
  border-radius: 5px;
  cursor: default;
  user-select: none;
}

.mock-nav-item.active {
  color: var(--text-1);
  background: var(--elevated);
}

.mock-user {
  margin-top: auto;
  padding: 10px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--elevated);
  flex-shrink: 0;
}

.mock-user span {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

.mock-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-instance {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.mock-instance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mock-instance-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.mock-instance-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-instance-status {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.mock-launch {
  display: block;
  width: 100%;
  padding: 7px 0;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  cursor: default;
  user-select: none;
}

.mock-instance-alt {
  opacity: 0.55;
}

.mock-instance-alt .mock-instance-status {
  margin-bottom: 0;
}


/* =========================================================
   Features
   ========================================================= */

.features {
  padding: 80px 0 88px;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 64px;
}

.feature {
  max-width: 460px;
}

.feature-icon {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-bottom: 16px;
}

.feature h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin-bottom: 10px;
}

.feature p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}


/* =========================================================
   Download
   ========================================================= */

.download {
  padding: 88px 0 96px;
  border-top: 1px solid var(--border);
}

.download-content {
  max-width: 480px;
}

.download-content h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 8px;
}

.download-sub {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 32px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.download-meta {
  font-size: 13px;
  color: var(--text-3);
}

.download-soon {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
}


/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color var(--ease);
}

.footer-links a:hover {
  color: var(--text-2);
}

.footer-note {
  font-size: 12px;
  color: var(--text-3);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .mock {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 56px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 40px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features,
  .download {
    padding: 64px 0;
  }

  .nav-links a:not(.nav-github) {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .download-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .mock-sidebar {
    width: 88px;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
