:root {
  --bg: #12080c;
  --panel: rgba(30, 12, 18, 0.94);
  --panel-soft: rgba(43, 17, 24, 0.84);
  --line: rgba(192, 109, 71, 0.45);
  --line-soft: rgba(255, 223, 186, 0.16);
  --text: #f3ece2;
  --muted: #d5c3b0;
  --accent: #f4c182;
  --accent-strong: #d46c39;
  --success: #dbca87;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(124, 48, 34, 0.3), transparent 42%),
    linear-gradient(180deg, #1d0b11 0%, #12070b 100%);
}

body.lightbox-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 240, 226, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 240, 226, 0.022) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

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

.panel,
.panel-subtle,
.feature-card,
.stat-card,
.screenshot-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.panel {
  background: var(--panel);
}

.panel-subtle,
.feature-card,
.stat-card,
.screenshot-card {
  background: var(--panel-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
  padding: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker,
.preview-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 12px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lead,
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lead {
  max-width: 60ch;
  margin-top: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-primary,
.cta-secondary,
.lang-button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.cta-primary:hover,
.cta-secondary:hover,
.lang-button:hover {
  transform: translateY(-1px);
}

.cta-primary {
  color: #2a120d;
  background: linear-gradient(180deg, #f4eadc, #dfd3c2);
  box-shadow: 0 10px 28px rgba(212, 108, 57, 0.22);
}

.cta-secondary,
.lang-button {
  color: var(--text);
  background: rgba(255, 244, 232, 0.06);
  border: 1px solid rgba(255, 235, 214, 0.12);
}

.language-switch {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.lang-button.is-active {
  color: #2a120d;
  background: linear-gradient(180deg, #f7eee2, #e2d2bd);
}

.hero-preview {
  padding: 18px;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.preview-head-hero {
  margin-bottom: 14px;
}

.preview-title {
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: 700;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(219, 202, 135, 0.12);
  color: var(--success);
  border: 1px solid rgba(219, 202, 135, 0.28);
  font-size: 0.92rem;
  white-space: nowrap;
}

.hero-shot-shell {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.hero-shot {
  display: block;
  width: 100%;
  height: auto;
}

.preview-note {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.module-pills,
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-pills {
  margin-top: 14px;
}

.module-pill,
.tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--accent);
  background: rgba(244, 193, 130, 0.09);
  border: 1px solid rgba(244, 193, 130, 0.18);
}

.section {
  margin-top: 28px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-head.left {
  margin-bottom: 28px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

.stat-grid,
.feature-grid,
.workflow-grid,
.screenshot-grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.stat-card,
.feature-card,
.workflow-step,
.screenshot-card {
  padding: 20px;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-card .label,
.workflow-step p,
.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 108, 57, 0.2), transparent 72%);
}

.feature-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 244, 232, 0.06);
  border: 1px solid rgba(255, 235, 214, 0.12);
}

.feature-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.feature-card h3,
.workflow-step h3 {
  margin-top: 16px;
  font-size: 1.14rem;
}

.feature-tags {
  margin-top: 16px;
}

.screenshot-card {
  padding: 14px;
}

.shot-frame {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.shot-button {
  display: block;
  width: 100%;
  cursor: zoom-in;
  transition: transform 140ms ease, border-color 140ms ease;
}

.shot-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.screenshot-image {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-copy {
  padding: 16px 6px 6px;
}

.screenshot-copy h3 {
  font-size: 1.14rem;
}

.screenshot-copy p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.workflow {
  padding: 28px;
}

.workflow-step {
  border-radius: 18px;
  background: rgba(255, 244, 232, 0.035);
  border: 1px solid rgba(255, 235, 214, 0.08);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(244, 193, 130, 0.14);
  color: var(--accent);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 3, 5, 0.84);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  max-height: calc(100vh - 48px);
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(32, 11, 16, 0.96);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 235, 214, 0.14);
  border-radius: 999px;
  background: rgba(255, 244, 232, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-meta {
  padding-right: 56px;
}

.lightbox-title {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.lightbox-frame {
  margin-top: 16px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

.lightbox-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .hero,
  .stat-grid,
  .feature-grid,
  .workflow-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 24px, 960px);
    padding-top: 12px;
  }

  .hero {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .cta-row,
  .language-switch,
  .preview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-dialog {
    padding: 14px;
  }
}
