:root {
  color-scheme: dark;
  --bg: #26374f;
  --text: #f1f5ff;
  --muted: rgba(241, 245, 255, 0.75);
  --line: rgba(241, 245, 255, 0.12);
  --accent: #ff3490;
  --accent-soft: rgba(255, 52, 144, 0.28);
  font-size: clamp(15px, 1.1vw, 16px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding: 2rem clamp(1.5rem, 4vw, 4rem) 2rem;
  position: relative;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent);
}

.glow {
  display: none;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.brand-wordmark {
  height: 20px;
  display: block;
}

.version-badge {
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.ghost-link {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text) !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ghost-link:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.1;
  margin: 0.5rem 0 1.25rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.eyebrow,
.label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-btn {
  background: var(--accent);
  color: #0c0c12;
}

.primary-btn:hover {
  transform: translateY(-2px);
  color: #0c0c12;
}

.secondary-btn {
  border-color: var(--line);
  color: var(--text);
}

.primary-btn svg,
.secondary-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.micro-copy {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.screenshot-section {
  max-width: 1200px;
  margin: 4rem auto 0;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.05), transparent 35%),
    #0f1725;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.panel-card {
  width: 100%;
  max-width: 360px;
  padding: 1.8rem;
  border-radius: 1.4rem;
  background: rgba(17, 26, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panel-head img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.panel-head strong {
  display: block;
  font-size: 1.2rem;
}

.status {
  margin-left: auto;
  color: #42ffbe;
  font-weight: 600;
}

.panel-card ul {
  list-style: none;
  padding: 1.5rem 0 1rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.panel-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  color: var(--muted);
}

.panel-card li strong {
  color: var(--text);
}

.panel-button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(90deg, var(--accent), #ff8e53);
  cursor: pointer;
}

.feature-grid {
  margin: 4rem auto;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-grid article {
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 2;
}

.feature-grid h2 {
  margin: 0.8rem 0 0.6rem;
}

.feature-grid p {
  color: var(--muted);
}

.workflow {
  max-width: 1100px;
  margin: 0 auto 4rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 1fr);
}

.workflow-card {
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.workflow-card h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-top: 0.3rem;
}

.workflow-card ol {
  margin: 1.5rem 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.workflow-card li {
  margin-bottom: 1rem;
}

.workflow-card strong {
  display: block;
  color: var(--text);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.workflow-blurb {
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.workflow-blurb ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.workflow-blurb li {
  padding: 0.4rem 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.workflow-blurb li svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 2;
  flex-shrink: 0;
}

.worktree-callout {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 37, 0.75);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

.worktree-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(66, 255, 190, 0.12);
  color: #42ffbe;
}

.worktree-callout p {
  margin: 0.1rem 0;
  color: var(--muted);
}

.worktree-callout .label {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.brand-inline img {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.faq {
  max-width: 800px;
  margin: 3rem auto 3rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(255, 52, 144, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding: 0 1.8rem 1.5rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.changelog {
  max-width: 900px;
  margin: 2.5rem auto 2.5rem;
}

.changelog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.changelog-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.changelog-header .lead {
  margin: 0;
}

.changelog-header .changelog-link {
  align-self: center;
  white-space: nowrap;
  font-weight: 600;
  color: var(--accent);
}

.changelog-header .changelog-link:hover {
  color: #fff;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.changelog-list .loading,
.changelog-list .error {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.changelog-list .error {
  color: var(--accent);
}

.changelog-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.changelog-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(255, 52, 144, 0.15);
}

.changelog-header-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.changelog-header-btn:hover {
  color: var(--accent);
}

.changelog-version-info h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.changelog-date {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.changelog-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.changelog-item.active .changelog-icon {
  transform: rotate(180deg);
}

.changelog-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.changelog-section {
  padding: 0 1.5rem 1.1rem;
}

.changelog-section:first-child {
  padding-top: 0.35rem;
}

.changelog-section h4 {
  margin: 0.6rem 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.changelog-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-section li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
}

.changelog-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.changelog-footer-link {
  text-align: right;
  margin-top: 0.75rem;
}

.changelog-footer-link a {
  color: var(--accent);
  font-weight: 600;
}

.changelog-footer-link a:hover {
  color: #fff;
}

.changelog-hero {
  max-width: 840px;
  margin: 1rem auto 2rem;
}

.changelog-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin: 0.2rem 0 0.5rem;
}

.changelog-hero .lead {
  margin: 0.25rem 0 0;
}

.policy-main {
  max-width: 1100px;
  margin: 0 auto;
}

.policy-hero {
  max-width: 840px;
  margin: 1rem auto 2.5rem;
}

.policy-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin: 0.25rem 0 0.75rem;
}

.policy-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.policy-meta {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.85rem;
  margin-top: 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.policy-body {
  max-width: 900px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.policy-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
}

.policy-card h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.1rem;
}

.policy-card p {
  color: var(--muted);
  line-height: 1.7;
}

.policy-card ul,
.policy-card ol {
  color: var(--muted);
  padding-left: 1.2rem;
  line-height: 1.65;
  margin: 0.5rem 0 0;
}

.policy-card li + li {
  margin-top: 0.35rem;
}

.policy-toc {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.policy-toc a {
  color: var(--text);
}

.policy-toc a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  body {
    padding: 2.5rem 1.25rem 2rem;
  }

  .site-header {
    flex-direction: column;
    gap: 1.2rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero {
    margin-top: 1rem;
  }

  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .changelog-header .changelog-link {
    align-self: flex-start;
  }

  .policy-hero {
    margin: 0.5rem auto 1.8rem;
  }

  .policy-card {
    padding: 1.4rem 1.25rem;
  }
}
