:root {
  color-scheme: dark;
  --bg: #06111f;
  --bg-2: #0c1729;
  --panel: rgba(11, 23, 40, 0.86);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e5eefc;
  --muted: #94a3b8;
  --soft: #c7d2fe;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.16);
  --violet: #8b5cf6;
  --blue: #38bdf8;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.22), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.16), transparent 24%),
    linear-gradient(180deg, #071120 0%, #081322 42%, #050b15 100%);
  color: var(--text);
}

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

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

main,
section,
header,
footer,
article,
aside,
nav {
  position: relative;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(8, 17, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.22);
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.header-actions,
.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, #7c3aed, #22c55e);
  border-color: transparent;
  color: white;
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.18);
}

.button.ghost {
  background: rgba(15, 23, 42, 0.62);
  color: var(--soft);
}

.button.large {
  min-height: 50px;
  padding: 0 22px;
}

.download-button {
  position: relative;
  min-height: 52px;
  padding: 10px 18px 10px 52px;
  border-color: rgba(99, 102, 241, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 16, 29, 0.96));
  color: var(--text);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.26);
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.download-button-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #c4b5fd;
}

.download-button-icon svg {
  width: 100%;
  height: 100%;
}

.download-button-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-button:hover,
.download-button:focus-visible {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, rgba(18, 29, 50, 0.98), rgba(10, 16, 29, 0.98));
  box-shadow: 0 22px 42px rgba(2, 6, 23, 0.34);
}

.download-button-large {
  min-height: 58px;
  padding-right: 22px;
}

.download-button-label {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.download-button-meta {
  display: block;
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 42px;
  align-items: center;
  padding: 40px 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8fb4ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-section h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.97;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  max-width: 13ch;
}

.hero-text,
.section-heading p,
.config-copy > p,
.audience-grid p,
.faq-list p,
.timeline p,
.feature-card p,
.stats-strip span,
.site-footer p,
.terminal-note {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.hero-text {
  max-width: 58ch;
  margin: 20px 0 24px;
  font-size: 1.08rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.hero-points li,
.status-chip,
.progress-pill,
.card-action,
.history-row span {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.74);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-panel {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.panel-glow {
  position: absolute;
  inset: 10% 4% auto;
  height: 78%;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.34), rgba(56, 189, 248, 0.06) 54%, transparent 72%);
  filter: blur(26px);
}

.hero-shot {
  width: min(100%, 250px);
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.5);
}

.hero-placeholder {
  padding: 28px;
}

.device-frame,
.screenshot-card,
.terminal-card,
.stats-strip article,
.feature-card,
.timeline article,
.audience-grid article,
.faq-item,
.cta-section,
.config-panel,
.config-copy,
.feature-section,
.workflow-section,
.config-section,
.screenshots-section,
.audience-section,
.faq-section {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.device-frame {
  position: relative;
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(10, 15, 27, 0.94));
}

.device-bar,
.terminal-top {
  display: flex;
  gap: 8px;
  padding-bottom: 14px;
}

.device-bar span,
.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.device-content {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 16, 30, 0.92), rgba(6, 11, 21, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.device-header,
.history-header,
.history-row,
.app-card,
.stats-strip,
.config-section,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.device-label,
.app-meta,
.history-header,
.history-row.subdued,
.terminal-note {
  margin: 0;
  color: var(--muted);
}

.device-header h2,
.app-name,
.feature-card h3,
.timeline h3,
.audience-grid h3,
.config-copy h2,
.terminal-card code,
.cta-section h2,
.section-heading h2 {
  margin: 0;
}

.device-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.device-header h2 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.status-chip.online,
.progress-pill,
.feature-icon {
  background: var(--green-soft);
  border-color: rgba(34, 197, 94, 0.26);
  color: #86efac;
}

.app-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.app-card.highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(34, 197, 94, 0.12));
  border-color: rgba(139, 92, 246, 0.24);
}

.app-card.muted {
  opacity: 0.86;
}

.app-name {
  font-size: 1rem;
  font-weight: 700;
}

.app-meta {
  font-size: 0.9rem;
}

.card-action.secondary {
  color: #c4b5fd;
}

.history-preview {
  padding: 14px;
  border-radius: 18px;
  background: rgba(6, 11, 21, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.history-header,
.history-row {
  font-size: 0.9rem;
}

.history-header {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.history-row {
  padding-top: 10px;
}

.history-row + .history-row {
  margin-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.stats-strip {
  margin: 18px 0 56px;
}

.stats-strip article {
  flex: 1 1 0;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.stats-strip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-section,
.workflow-section,
.screenshots-section,
.audience-section,
.faq-section {
  padding: 32px;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
}

.config-section,
.cta-section {
  padding: 32px;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.narrow {
  max-width: 680px;
}

.section-heading h2,
.config-copy h2,
.cta-section h2 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

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

.feature-grid,
.screenshot-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-card,
.feature-card,
.audience-grid article,
.timeline article {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.screenshot-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 9 / 19.5;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.82));
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: opacity 240ms ease, transform 380ms ease;
}

.screenshot-frame:hover img,
.screenshot-frame:focus-within img {
  transform: scale(1.02);
}

.screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(8, 15, 27, 0.9), rgba(4, 9, 17, 0.96));
}

.screenshot-placeholder strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.screenshot-placeholder span {
  color: var(--muted);
  line-height: 1.6;
}

.screenshot-frame:not(.placeholder) .screenshot-placeholder {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.screenshot-frame.placeholder img {
  opacity: 0;
}

.feature-icon,
.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-weight: 700;
}

.feature-card h3,
.timeline h3,
.audience-grid h3 {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.workflow-section .timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.config-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.check-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.check-list div {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.check-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.check-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.config-panel {
  padding: 18px;
  border-radius: 24px;
}

.config-copy {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.terminal-card {
  height: 100%;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.98), rgba(10, 16, 29, 0.96));
}

.terminal-card pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.terminal-card code {
  font-family: "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #dbeafe;
}

.terminal-note {
  margin-top: 14px;
}

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

.faq-item {
  padding: 20px 22px;
  border-radius: 20px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  font: inherit;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #c4b5fd;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, opacity 220ms ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
  opacity: 0;
}

.faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 280ms ease, opacity 220ms ease;
}

.faq-answer-inner {
  padding-top: 14px;
}

.faq-list p {
  margin: 0;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 15, 27, 0.98));
}

.site-footer {
  padding: 18px 4px 4px;
  color: var(--muted);
}

.site-footer div {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .site-header,
  .hero,
  .config-section,
  .cta-section,
  .stats-strip,
  .site-footer,
  .workflow-section .timeline,
  .feature-grid,
  .screenshot-grid,
  .audience-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 12px;
  }

  .site-header,
  .feature-section,
  .workflow-section,
  .config-section,
  .audience-section,
  .faq-section,
  .cta-section {
    padding: 22px;
    border-radius: 22px;
  }

  .hero {
    gap: 24px;
    padding-top: 12px;
  }

  .hero h1 {
    max-width: none;
  }

  .header-actions,
  .hero-actions,
  .cta-actions,
  .site-nav,
  .hero-points {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .device-frame {
    padding: 14px;
    border-radius: 26px;
  }

  .device-content,
  .screenshot-card,
  .feature-card,
  .timeline article,
  .audience-grid article,
  .stats-strip article {
    padding: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
