:root {
  --bg: #020617;
  --bg-deep: #030712;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.18), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #030712 48%, #020617 100%);
  line-height: 1.6;
  min-width: 320px;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  border-color: var(--line);
}

.nav {
  width: min(100% - 40px, var(--max-width));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.icon {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.28);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease;
}

.section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding-top: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(3.35rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.tagline {
  margin: 22px 0 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-description {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 1.08rem;
}

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

.page-hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  padding-top: 88px;
}

.page-hero-copy {
  max-width: 860px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.3);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.66);
}

.button.secondary:hover {
  border-color: rgba(59, 130, 246, 0.48);
  background: rgba(30, 41, 59, 0.72);
}

.hero-visual,
.screenshot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-visual {
  min-height: 460px;
  isolation: isolate;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-visual img.is-missing,
.screenshot-card img.is-missing {
  display: none;
}

.mockup-shell {
  position: absolute;
  inset: 30px;
  z-index: 2;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(20px);
}

.mockup-topbar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.mockup-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.mockup-content {
  padding: 28px;
}

.mockup-content small {
  color: var(--muted);
  font-weight: 700;
}

.mockup-content strong {
  display: block;
  margin-top: 4px;
  font-size: 4rem;
  line-height: 1;
}

.progress-stack {
  display: grid;
  gap: 12px;
  margin: 34px 0;
}

.progress-stack span {
  height: 12px;
  width: var(--width);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(96, 165, 250, 0.28));
}

.mockup-list {
  display: grid;
  gap: 10px;
  color: var(--soft);
  font-size: 0.94rem;
}

.mockup-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.64);
}

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

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

.feature-card,
.why-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.feature-card {
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.step-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(59, 130, 246, 0.36);
  border-radius: 8px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.44);
  background: var(--panel-strong);
}

.feature-card p,
.why-grid p,
.premium-grid p,
.download-card p,
.footer p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.screenshot-card {
  margin: 0;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.screenshot-card::before,
.hero-visual::before {
  content: attr(data-placeholder);
}

.screenshot-card::after,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}

.screenshot-card img {
  width: 100%;
  height: 286px;
  object-fit: cover;
}

.screenshot-card figcaption {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  font-weight: 800;
}

.image-placeholder {
  min-height: 286px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--soft);
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.3), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.92));
  text-align: center;
  font-weight: 800;
}

.why-panel,
.download-card,
.premium-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.86));
  box-shadow: var(--shadow);
}

.why-panel {
  padding: 34px;
}

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

.why-grid div {
  padding: 22px;
}

.download-card {
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
}

.download-card h2 {
  margin-bottom: 14px;
}

.download-card .button {
  margin-top: 28px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-email {
  margin-top: 14px !important;
  color: var(--soft) !important;
  font-weight: 800;
}

.premium-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.guide-list {
  margin: 0;
  padding-left: 22px;
  color: var(--soft);
  font-weight: 700;
}

.guide-list li + li {
  margin-top: 10px;
}

.back-section {
  padding-top: 0;
  text-align: center;
}

.footer {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 44px 0 54px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer .brand {
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--soft);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

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

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

@media (max-width: 1040px) {
  .hero-grid,
  .premium-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 410px;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: rgba(15, 23, 42, 0.9);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .section {
    width: min(100% - 28px, var(--max-width));
    padding: 72px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .page-hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .feature-grid,
  .why-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .screenshot-card {
    min-height: 320px;
  }

  .mockup-shell {
    inset: 16px;
  }

  .mockup-content {
    padding: 20px;
  }

  .mockup-content strong {
    font-size: 3rem;
  }

  .footer {
    width: min(100% - 28px, var(--max-width));
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
