:root {
  --bg: #0d0f14;
  --bg-soft: #141821;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f1e8;
  --muted: rgba(247, 241, 232, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ff8a3d;
  --accent-2: #6177ff;
  --green: #a6e22e;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  font-family:
    "Avenir Next",
    "SF Pro Display",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 138, 61, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(97, 119, 255, 0.24), transparent 32rem),
    linear-gradient(135deg, #0b0d12 0%, #151924 52%, #0d0f14 100%);
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(13, 15, 20, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

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

.brand img {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: 86px 0 72px;
}

.hero-copy,
.section-heading,
.workflow-section > div:first-child,
.download-section {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.hero-lede,
.workflow-section p,
.download-section p,
.feature-card p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 30px;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  color: #18120d;
  background: linear-gradient(135deg, #ffb45f, #ff7d32);
  box-shadow: 0 18px 48px rgba(255, 125, 50, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
}

.window-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.window-title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.editor-preview {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 430px;
}

.editor-preview aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.editor-preview aside strong {
  margin-bottom: 8px;
  color: rgba(247, 241, 232, 0.44);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.file {
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.file.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.code-panel {
  min-width: 0;
  background: #272822;
}

.tab-strip {
  display: flex;
  gap: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.tab-strip span {
  padding: 13px 18px;
  background: #34352f;
  color: rgba(247, 241, 232, 0.72);
  font-size: 0.85rem;
}

.tab-strip .tab-hint {
  margin-left: auto;
  color: rgba(247, 241, 232, 0.46);
  background: transparent;
}

pre {
  margin: 0;
  padding: 30px;
  overflow: hidden;
  color: #f8f8f2;
  font-family:
    "SF Mono",
    "JetBrains Mono",
    Menlo,
    monospace;
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  line-height: 1.8;
}

.token-purple {
  color: #ae81ff;
}

.token-blue {
  color: #66d9ef;
}

.token-green {
  color: #a6e22e;
}

.token-orange {
  color: #fd971f;
}

.floating-badge {
  position: absolute;
  right: -16px;
  bottom: -24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(20, 24, 33, 0.82);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  font-weight: 800;
}

.floating-badge img {
  border-radius: 16px;
}

.section {
  padding: 86px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.feature-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 61, 0.36);
  background: var(--card-strong);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 46px;
  border-radius: 14px;
  color: #1b120d;
  background: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.github-section {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 28px;
  align-items: stretch;
  margin: 4px 0 86px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(166, 226, 46, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(97, 119, 255, 0.14), rgba(255, 255, 255, 0.055));
}

.github-section p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.connection-card {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12)),
    rgba(0, 0, 0, 0.18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.connection-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 10px rgba(166, 226, 46, 0.12);
}

.connection-card strong {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  letter-spacing: -0.05em;
}

.connection-card p {
  margin: 0;
}

.workflow-section {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 38px;
  align-items: center;
  margin: 32px 0 90px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.07);
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shortcut-grid span {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--muted);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-right: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  font-family: inherit;
  font-weight: 900;
}

.download-section {
  margin: 0 auto 90px;
  padding: 56px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 0%, rgba(97, 119, 255, 0.28), transparent 28rem),
    rgba(255, 255, 255, 0.075);
  text-align: center;
  box-shadow: var(--shadow);
}

.download-section img {
  margin-bottom: 18px;
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.download-section p {
  margin-right: auto;
  margin-left: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .workflow-section,
  .github-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header,
  .nav-links,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    gap: 2px;
  }

  .nav-links a {
    width: 100%;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .editor-preview {
    grid-template-columns: 1fr;
  }

  .editor-preview aside {
    display: none;
  }

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

  .workflow-section,
  .github-section {
    padding: 24px;
  }

  .floating-badge {
    right: 14px;
    bottom: -28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
