@import url("https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@500;700&family=Heebo:wght@400;500;700;800&display=swap");

:root {
  --bg-main: #07090d;
  --bg-soft: #11151d;
  --surface: linear-gradient(145deg, rgba(18, 16, 12, 0.96) 0%, rgba(8, 9, 12, 0.98) 100%);
  --surface-plain: rgba(13, 15, 20, 0.88);
  --text-main: #f7f1df;
  --text-soft: #e7dbc0;
  --text-muted: #b7b0a1;
  --gold: #d5b26e;
  --gold-soft: #ecd7a4;
  --line: rgba(230, 210, 140, 0.16);
  --line-strong: rgba(230, 210, 140, 0.24);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.32);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Heebo", "Segoe UI", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top, rgba(213, 178, 110, 0.08), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(213, 178, 110, 0.06), transparent 24%),
    linear-gradient(180deg, #07090d 0%, #0a0d12 55%, #07090d 100%);
  overflow-x: hidden;
}

body.download-open {
  overflow: hidden;
}

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

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

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

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.page-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(88px);
  pointer-events: none;
  z-index: -3;
}

.orb-one {
  top: 80px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: rgba(213, 178, 110, 0.12);
}

.orb-two {
  bottom: 120px;
  left: -120px;
  width: 300px;
  height: 300px;
  background: rgba(127, 103, 67, 0.12);
}

.topbar,
.section-shell,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding-top: 14px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(230, 210, 140, 0.08);
  border-radius: 999px;
  background: rgba(5, 5, 9, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.topbar.is-scrolled .topbar-inner {
  background: rgba(5, 5, 9, 0.9);
  border-color: rgba(230, 210, 140, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(230, 210, 140, 0.2);
}

.nav-shell,
.topnav,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topnav a {
  color: var(--text-muted);
  font-size: 0.96rem;
  transition: color 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.chip-link:hover,
.chip-link:focus-visible {
  color: var(--text-main);
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.02);
}

.chip-link svg,
.button svg,
.footer-links a svg,
.footer-button svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.button,
.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.footer-button:hover,
.footer-button:focus-visible,
.chip-link:hover,
.chip-link:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #17120c;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  box-shadow: 0 14px 30px rgba(213, 178, 110, 0.22);
}

.button-secondary,
.footer-button {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.button-compact {
  padding: 10px 16px;
  font-size: 0.93rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(230, 210, 140, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: currentColor;
}

main {
  padding-bottom: 40px;
}

.section-shell {
  padding: 30px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: center;
  padding-top: 42px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(230, 210, 140, 0.12);
  background: rgba(230, 210, 140, 0.08);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.download-dialog-header h2 {
  margin: 0;
  font-family: "Frank Ruhl Libre", Georgia, serif;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  color: var(--gold);
  text-shadow:
    0 0 36px rgba(213, 178, 110, 0.18),
    0 0 72px rgba(213, 178, 110, 0.1);
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--text-main);
  font-size: 0.72em;
}

.hero-text,
.section-heading p,
.showcase-copy p,
.feature-card p,
.workflow-card p,
.faq-list p,
.hero-list li,
.download-strip p,
.site-footer p,
.download-block-head p,
.download-card-text,
.download-note,
.download-dialog-copy {
  color: var(--text-muted);
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

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

.hero-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.hero-list li,
.feature-card,
.showcase-card,
.workflow-card,
.download-strip,
.faq-list details,
.hero-frame,
.download-dialog,
.download-item-card,
.download-db-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.hero-list li {
  padding: 14px 16px;
}

.hero-stage {
  min-width: 0;
}

.hero-frame {
  padding: 18px;
}

.hero-frame-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(230, 210, 140, 0.2);
}

.hero-frame-label,
.showcase-label,
.download-card-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: var(--text-main);
}

.section-heading p {
  margin-top: 14px;
}

.feature-grid,
.workflow-grid,
.download-list-grid,
.download-db-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.workflow-card {
  padding: 22px;
}

.feature-icon,
.step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(213, 178, 110, 0.18), rgba(255, 255, 255, 0.03));
  color: var(--gold);
  font-weight: 800;
}

.feature-card h3,
.workflow-card h3,
.showcase-copy h3,
.download-strip strong,
.download-item-card h3,
.download-db-card h3,
.download-block h3 {
  margin: 16px 0 8px;
  color: var(--text-main);
  font-size: 1.28rem;
}

.showcase-stack {
  display: grid;
  gap: 18px;
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  padding: 22px;
  align-items: center;
}

.showcase-card:nth-child(even) .showcase-copy {
  order: 2;
}

.showcase-card:nth-child(even) .comparison {
  order: 1;
}

.showcase-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.28fr) minmax(240px, 0.72fr);
}

.comparison {
  --split: 50%;
  position: relative;
  direction: ltr;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(230, 210, 140, 0.14);
  background: #06070a;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1575 / 827;
}

.comparison-hero {
  aspect-ratio: 1440 / 1200;
}

.comparison-base,
.comparison-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-overlay {
  position: absolute;
  inset: 0;
  overflow: clip;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.comparison-overlay img {
  position: absolute;
  inset: 0;
  max-width: none;
}

.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.comparison-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
  box-shadow: 0 0 18px rgba(213, 178, 110, 0.34);
}

.comparison-handle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #18130d;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.comparison-handle svg {
  width: 22px;
  height: 22px;
}

.comparison-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 22px 24px;
}

.download-strip strong {
  display: block;
  margin: 0;
}

.download-strip p {
  margin: 4px 0 0;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text-main);
  font-weight: 700;
}

.faq-list p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 48px;
  border-top: 1px solid rgba(230, 210, 140, 0.1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--gold-soft);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-note {
  white-space: nowrap;
}

.site-hit-pixel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.download-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), 1040px);
  max-height: min(88vh, 920px);
  margin: 6vh auto;
  padding: 28px;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(213, 178, 110, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(12, 13, 18, 0.98), rgba(8, 9, 12, 0.98));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
}

.download-close {
  position: sticky;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.download-dialog-header {
  margin-top: 8px;
}

.download-dialog-header h2 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.download-dialog-copy {
  margin: 10px 0 0;
}

.download-block {
  margin-top: 24px;
}

.download-block-head {
  margin-bottom: 14px;
}

.download-block-head h3 {
  margin: 0;
}

.download-block-head p {
  margin: 4px 0 0;
}

.download-primary-row,
.download-bundle-row,
.download-card-actions,
.download-aux-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-bundle-row {
  margin-top: 12px;
}

.download-list-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.download-db-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-detected,
.download-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(230, 210, 140, 0.18);
  background: rgba(230, 210, 140, 0.08);
  color: var(--gold-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.download-item-card,
.download-db-card {
  padding: 20px;
}

.download-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.download-card-label {
  margin-bottom: 0;
}

.download-card-text,
.download-note {
  margin: 0;
}

.download-card-actions {
  margin-top: 16px;
}

.download-aux-links {
  margin-top: 12px;
}

.download-aux-links a {
  color: var(--gold-soft);
  font-size: 0.92rem;
}

.download-empty {
  padding: 18px;
  border: 1px dashed rgba(230, 210, 140, 0.18);
  border-radius: 18px;
  color: var(--text-muted);
}

.loading-line {
  display: inline-flex;
  width: min(320px, 100%);
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(230, 210, 140, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

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

@media (max-width: 1080px) {
  .hero,
  .feature-grid,
  .workflow-grid,
  .download-list-grid.compact,
  .download-db-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    align-items: start;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-shell {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(230, 210, 140, 0.14);
    border-radius: 26px;
    background: rgba(6, 7, 11, 0.96);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
  }

  .topbar.menu-open .nav-shell {
    display: flex;
  }

  .topnav,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .feature-grid,
  .showcase-card,
  .workflow-grid,
  .download-list-grid.compact,
  .download-db-grid,
  .download-strip {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-width: 0;
  }

  .showcase-card,
  .download-strip {
    display: grid;
  }

  .showcase-card:nth-child(even) .showcase-copy,
  .showcase-card:nth-child(even) .comparison {
    order: initial;
  }

  .download-strip {
    justify-content: stretch;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-dialog {
    margin: 4vh auto;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .topbar,
  .section-shell,
  .site-footer {
    width: min(calc(100% - 20px), var(--container));
  }

  .topbar-inner,
  .hero-frame,
  .feature-card,
  .showcase-card,
  .workflow-card,
  .download-strip,
  .download-item-card,
  .download-db-card,
  .download-dialog {
    padding: 16px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 14vw, 4.1rem);
  }

  .section-heading h2,
  .download-dialog-header h2 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  .comparison-handle {
    font-size: 0.72rem;
  }
}

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

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