@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: oklch(0.145 0.012 245);
  --bg-elevated: oklch(0.175 0.014 245);
  --surface: oklch(0.212 0.018 245);
  --surface-strong: oklch(0.258 0.024 245);
  --surface-light: oklch(0.944 0.01 95);
  --surface-light-strong: oklch(0.978 0.006 95);
  --line: oklch(0.34 0.015 245 / 0.72);
  --line-soft: oklch(0.42 0.012 245 / 0.32);
  --text: oklch(0.956 0.004 245);
  --text-muted: oklch(0.77 0.014 245);
  --text-soft: oklch(0.64 0.014 245);
  --text-dark: oklch(0.23 0.018 245);
  --text-dark-soft: oklch(0.4 0.016 245);
  --accent: oklch(0.79 0.103 164);
  --accent-strong: oklch(0.73 0.112 164);
  --accent-blue: oklch(0.76 0.07 230);
  --accent-warm: oklch(0.82 0.055 82);
  --shadow: 0 18px 54px rgba(5, 7, 14, 0.2);
  --shadow-soft: 0 10px 30px rgba(5, 7, 14, 0.14);
  --radius: 8px;
  --radius-shell: 18px;
  --page-width: min(1200px, calc(100vw - 40px));
  --transition-smooth: 760ms cubic-bezier(0.32, 0.72, 0, 1);
  --transition-fast: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 18rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.light-page {
  background: var(--surface-light);
  color: var(--text-dark);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.4) 0,
      rgba(255, 255, 255, 0.4) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  inset: 20px 0 auto;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.header-shell {
  width: min(1080px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  background: rgba(21, 24, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.light-page .header-shell {
  background: rgba(255, 252, 248, 0.88);
  border-color: rgba(19, 25, 34, 0.08);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  object-fit: cover;
}

.light-page .brand-mark {
  border-color: rgba(19, 25, 34, 0.08);
  background: rgba(19, 25, 34, 0.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: "Sora", sans-serif;
  font-size: 0.93rem;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.light-page .brand-subtitle {
  color: var(--text-dark-soft);
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.header-nav a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.light-page .header-nav a {
  color: var(--text-dark-soft);
}

.light-page .header-nav a:hover,
.light-page .header-nav a:focus-visible {
  color: var(--text-dark);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.985);
}

.button-primary {
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--accent) 92%, white 8%),
    color-mix(in oklch, var(--accent-strong) 88%, var(--accent-blue) 12%)
  );
  color: oklch(0.19 0.02 180);
  box-shadow: 0 12px 30px rgba(55, 200, 152, 0.18);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
}

.light-page .button-secondary {
  border-color: rgba(19, 25, 34, 0.1);
  background: rgba(19, 25, 34, 0.03);
}

.button-dark {
  background: oklch(0.19 0.018 245);
  color: var(--text);
}

.button-light {
  background: var(--surface-light-strong);
  border-color: rgba(19, 25, 34, 0.08);
  color: var(--text-dark);
}

.button-island {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.24);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.button-primary .button-island {
  background: rgba(22, 31, 24, 0.12);
}

.button-secondary .button-island,
.button-dark .button-island {
  background: rgba(255, 255, 255, 0.08);
}

.button-light .button-island {
  background: rgba(19, 25, 34, 0.06);
}

.button:hover .button-island,
.button:focus-visible .button-island {
  transform: translate(2px, -1px) scale(1.03);
}

.page {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100dvh;
  padding: 144px 0 56px;
  display: flex;
  align-items: flex-end;
}

.page-shell {
  width: var(--page-width);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  gap: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.light-page .eyebrow {
  border-color: rgba(19, 25, 34, 0.08);
  background: rgba(19, 25, 34, 0.03);
  color: var(--text-dark-soft);
}

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

.hero-title,
.page-title,
.section-title {
  margin: 18px 0 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7vw, 6.3rem);
}

.page-title {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
}

.section-title {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-subtitle,
.page-copy,
.section-copy {
  margin: 18px 0 0;
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--text-muted);
}

.light-page .page-copy,
.light-page .section-copy {
  color: var(--text-dark-soft);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.shell {
  padding: 10px;
  border-radius: var(--radius-shell);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.light-page .shell {
  border-color: rgba(19, 25, 34, 0.08);
  background: rgba(19, 25, 34, 0.03);
  box-shadow: 0 18px 54px rgba(24, 29, 36, 0.08);
}

.shell-inner {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 7, 14, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-shell {
  margin-top: 18px;
}

.product-shot {
  width: 100%;
  aspect-ratio: 1220 / 760;
  object-fit: cover;
  object-position: top center;
}

.release-strip {
  padding: 28px 0 0;
}

.release-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
}

.light-page .release-band {
  border-color: rgba(19, 25, 34, 0.08);
  background: rgba(19, 25, 34, 0.03);
}

.release-copy {
  display: grid;
  gap: 8px;
}

.release-label {
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.release-headline {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.release-subline {
  color: var(--text-muted);
  line-height: 1.6;
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.section {
  padding: 108px 0;
}

.section.light-surface {
  background: var(--surface-light);
  color: var(--text-dark);
}

.section.light-surface .section-title,
.section.light-surface .section-copy,
.section.light-surface .eyebrow,
.section.light-surface .release-label,
.section.light-surface .release-subline,
.section.light-surface .hero-chip,
.section.light-surface .muted {
  color: var(--text-dark-soft);
}

.section-head {
  display: grid;
  gap: 14px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
}

.section-intro {
  max-width: 60ch;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.workflow-card,
.release-panel,
.pricing-panel,
.support-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.light-page .workflow-card,
.light-page .release-panel,
.light-page .pricing-panel,
.light-page .support-card,
.section.light-surface .workflow-card,
.section.light-surface .release-panel,
.section.light-surface .pricing-panel,
.section.light-surface .support-card {
  border-color: rgba(19, 25, 34, 0.08);
  background: rgba(19, 25, 34, 0.03);
}

.workflow-card {
  padding: 22px;
}

.workflow-card h3,
.support-card h3,
.pricing-panel h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.3;
}

.workflow-card p,
.support-card p,
.pricing-panel p,
.release-panel p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.66;
}

.light-page .workflow-card p,
.light-page .support-card p,
.light-page .pricing-panel p,
.light-page .release-panel p,
.section.light-surface .workflow-card p,
.section.light-surface .support-card p,
.section.light-surface .pricing-panel p,
.section.light-surface .release-panel p {
  color: var(--text-dark-soft);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 20%, transparent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: center;
  margin-top: 36px;
}

.feature-shell {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.feature-panel {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-panel img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: top center;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.feature-row {
  padding: 18px 18px 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.feature-row h3,
.release-row h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 760;
}

.feature-row p,
.release-row p {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.light-page .feature-row,
.section.light-surface .feature-row {
  border-color: rgba(19, 25, 34, 0.08);
  background: rgba(19, 25, 34, 0.03);
}

.light-page .feature-row p,
.section.light-surface .feature-row p {
  color: var(--text-dark-soft);
}

.install-grid,
.support-grid,
.release-grid,
.legal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-grid {
  margin-top: 32px;
}

.release-panel,
.pricing-panel,
.support-card {
  padding: 24px;
}

.release-value {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.release-value strong,
.pricing-value strong {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 760;
  line-height: 1;
}

.release-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.pricing-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
  margin-top: 34px;
}

.pricing-panel {
  background: var(--surface-light-strong);
  border-color: rgba(19, 25, 34, 0.08);
  color: var(--text-dark);
  box-shadow: 0 18px 54px rgba(24, 29, 36, 0.08);
}

.pricing-panel p {
  color: var(--text-dark-soft);
}

.pricing-value {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
}

.pricing-notes {
  display: grid;
  gap: 14px;
}

.release-list,
.support-list,
.legal-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.release-list li,
.support-list li,
.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.release-list li::before,
.support-list li::before,
.legal-list li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.light-page .faq-item,
.section.light-surface .faq-item {
  border-color: rgba(19, 25, 34, 0.08);
  background: rgba(19, 25, 34, 0.03);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 740;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  line-height: 1.68;
}

.light-page .faq-answer,
.section.light-surface .faq-answer {
  color: var(--text-dark-soft);
}

.page-hero {
  padding: 168px 0 48px;
}

.page-card {
  margin-top: 30px;
}

.release-history,
.legal-prose {
  margin-top: 36px;
}

.release-entry {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.light-page .release-entry,
.section.light-surface .release-entry {
  border-top-color: rgba(19, 25, 34, 0.08);
}

.release-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.release-entry header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.release-entry h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 760;
}

.release-date {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 650;
}

.release-bullets {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.68;
}

.light-page .release-bullets {
  color: var(--text-dark-soft);
}

.legal-prose {
  display: grid;
  gap: 20px;
  max-width: 74ch;
}

.legal-prose section {
  display: grid;
  gap: 10px;
}

.legal-prose h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 780;
}

.legal-prose p,
.legal-prose li {
  color: var(--text-dark-soft);
  line-height: 1.7;
}

.legal-prose ul {
  margin: 0;
  padding-left: 18px;
}

.footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.light-page .footer {
  border-top-color: rgba(19, 25, 34, 0.08);
}

.footer-row {
  width: var(--page-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-soft);
}

.light-page .footer-links {
  color: var(--text-dark-soft);
}

.checkout-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 17, 22, 0.92);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.checkout-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.light-page .checkout-toast {
  border-color: rgba(19, 25, 34, 0.08);
  background: rgba(255, 252, 248, 0.94);
  color: var(--text-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--transition-smooth),
    transform var(--transition-smooth);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .header-shell {
    gap: 12px;
  }

  .header-nav {
    display: none;
  }

  .release-band,
  .feature-band,
  .pricing-band,
  .section-head,
  .install-grid,
  .support-grid,
  .release-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .release-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-top: 136px;
  }

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

  .feature-panel img {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-width: calc(100vw - 24px);
  }

  .site-header {
    inset: 12px 0 auto;
    padding: 0 12px;
  }

  .header-shell {
    width: calc(100vw - 24px);
    padding: 8px 10px 8px 12px;
  }

  .header-actions .button.secondary {
    display: none;
  }

  .hero,
  .page-hero {
    padding-top: 124px;
  }

  .section {
    padding: 78px 0;
  }

  .hero-title,
  .page-title {
    max-width: none;
  }

  .hero-actions,
  .page-actions,
  .release-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
    justify-content: space-between;
  }

  .release-band,
  .workflow-card,
  .release-panel,
  .support-card,
  .pricing-panel,
  .feature-row {
    padding-left: 18px;
    padding-right: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
