* {
  box-sizing: border-box;
}

:root {
  --bg: #060607;
  --surface: #171719;
  --surface-2: #202023;
  --surface-3: #111113;
  --text: #f4f4f5;
  --muted: #b8b8bd;
  --soft: #85858c;
  --red: #9d0000;
  --red-bright: #e11111;
  --red-dark: #520000;
  --green: #007c13;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.54);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -8%, rgba(177, 0, 0, 0.38), transparent 28rem),
    linear-gradient(180deg, #080809 0%, #101012 46%, #070708 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.75), transparent 72%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.36);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover {
  color: white;
}

.hero {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.72fr);
  align-items: center;
  gap: 72px;
  padding: 54px 0 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 6.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.pulse-headline span {
  display: inline;
  margin-right: 0.08em;
  color: #f4f4f5;
  animation: headlinePulse 4.5s infinite;
}

.pulse-headline span:last-child {
  margin-right: 0;
}

.pulse-headline span:nth-child(1) { animation-delay: 0s; }
.pulse-headline span:nth-child(2) { animation-delay: 0.75s; }
.pulse-headline span:nth-child(3) { animation-delay: 1.5s; }
.pulse-headline span:nth-child(4) { animation-delay: 2.25s; }
.pulse-headline span:nth-child(5) { animation-delay: 3s; }
.pulse-headline span:nth-child(6) { animation-delay: 3.75s; }

@keyframes headlinePulse {
  0%, 19%, 100% {
    color: #f4f4f5;
    text-shadow: none;
  }
  8% {
    color: #ff3b3b;
    text-shadow: 0 0 22px rgba(225, 17, 17, 0.28);
  }
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.7;
}

.hero-status {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 10px;
  margin-top: 24px;
}

.hero-status span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: #eeeeef;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.022)),
    rgba(0,0,0,0.18);
  border: 1px solid var(--line-soft);
  font-size: 0.84rem;
  font-weight: 900;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 9px;
  font-weight: 900;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 14px 32px rgba(0,0,0,0.28);
}

.button.primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: white;
  border-color: rgba(255,255,255,0.18);
}

.button.secondary {
  background: linear-gradient(180deg, #242427, #171719);
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 700px;
}

.hero-metrics div {
  padding: 13px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.018)),
    rgba(0,0,0,0.2);
  border: 1px solid var(--line-soft);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 0.94rem;
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.app-preview {
  position: relative;
  min-height: 650px;
}

.preview-main,
.preview-side {
  position: absolute;
  display: block;
  border-radius: 9px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 34px 90px rgba(0,0,0,0.62);
}

.preview-main {
  width: min(280px, 31vw);
  right: 24px;
  top: 18px;
  z-index: 2;
}

.preview-side {
  width: min(255px, 28vw);
  left: 6px;
  bottom: 28px;
  opacity: 0.74;
  transform: scale(0.9);
  transform-origin: bottom left;
  filter: saturate(0.86);
}

.section {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
  scroll-margin-top: 56px;
}

.section-panel {
  padding: 42px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.01)),
    rgba(255,255,255,0.012);
  border: 1px solid rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

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

.feature-section .section-heading {
  margin-bottom: 0;
}

.section-heading p:not(.eyebrow),
.split-section p,
.download p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid {
  counter-reset: feature;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-grid article {
  counter-increment: feature;
  position: relative;
  min-height: 164px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.feature-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.024)),
    var(--surface);
}

.feature-grid article::before {
  content: "0" counter(feature);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(157,0,0,0.32);
  border: 1px solid rgba(225,17,17,0.45);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-visual {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: end;
  gap: 5px;
  height: 34px;
  opacity: 0.68;
}

.feature-visual span {
  display: block;
  border-radius: 3px;
  background: #4e4e52;
  border: 1px solid rgba(255,255,255,0.05);
}

.visual-sections span {
  width: 26px;
  height: 8px;
}

.visual-sections span:first-child,
.visual-subdivision span:nth-child(1),
.visual-poly span:nth-child(1),
.visual-speed span:last-child,
.visual-window span:nth-child(2) {
  background: var(--red-bright);
}

.visual-subdivision span {
  width: 10px;
  height: 26px;
}

.visual-subdivision span:nth-child(3) {
  height: 18px;
}

.visual-custom span {
  width: 9px;
  height: 22px;
}

.visual-custom span:nth-child(2),
.visual-custom span:nth-child(5) {
  height: 9px;
  background: #2d2d30;
}

.visual-poly {
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 5px;
}

.visual-poly span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.visual-poly span:nth-child(4),
.visual-poly span:nth-child(6) {
  background: var(--red);
}

.visual-speed span {
  width: 13px;
  height: 10px;
}

.visual-speed span:nth-child(2) { height: 16px; }
.visual-speed span:nth-child(3) { height: 23px; }
.visual-speed span:nth-child(4) { height: 31px; }

.visual-window {
  align-items: center;
}

.visual-window span {
  width: 24px;
  height: 18px;
  border-radius: 4px;
}

.feature-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.split-section,
.download {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  background:
    linear-gradient(135deg, rgba(157, 0, 0, 0.18), rgba(255,255,255,0.035)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px;
  margin-top: 28px;
  margin-bottom: 38px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 24px 80px rgba(0,0,0,0.22);
}

.split-section > div:first-child,
.download > div:first-child {
  max-width: 780px;
}

.workflow-list {
  display: grid;
  gap: 10px;
  min-width: 390px;
}

.workflow-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 6px 12px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(0,0,0,0.26);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.workflow-list strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--red-dark);
  border: 1px solid rgba(255,255,255,0.14);
}

.workflow-list span {
  color: #e6e6e8;
  font-weight: 800;
}

.workflow-list small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
}

.download {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
}

.download-panel {
  display: grid;
  gap: 12px;
}

.download-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.26);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.platform-mark {
  grid-row: span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f3f3f4;
}

.platform-mark svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.platform-windows {
  color: #f3f7ff;
  background: linear-gradient(180deg, rgba(0,120,215,0.22), rgba(0,65,120,0.18));
  border-color: rgba(70,155,235,0.42);
}

.platform-android {
  color: #8cefae;
  background: linear-gradient(180deg, rgba(61,220,132,0.18), rgba(20,92,52,0.17));
  border-color: rgba(80,220,132,0.38);
}

.download-card strong {
  color: #ffffff;
  font-size: 1rem;
}

.download-card span {
  color: var(--muted);
  line-height: 1.45;
}

.download-panel .download-actions {
  margin-top: 4px;
}

.screenshots {
  padding-top: 58px;
}

.screenshots .section-heading {
  margin-bottom: 24px;
}

.screenshot-viewer {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  grid-template-areas:
    "main copy"
    "main thumbs";
  gap: 18px 22px;
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.3);
}

.screenshot-main {
  grid-area: main;
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #101011;
  cursor: zoom-in;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.screenshot-main img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  background: #111;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.screenshot-copy {
  grid-area: copy;
  padding-top: 4px;
}

.screenshot-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  letter-spacing: -0.035em;
}

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

.screenshot-copy small {
  color: var(--soft);
  font-weight: 800;
}

.screenshot-viewer.switching .screenshot-main img {
  opacity: 0.35;
  transform: scale(0.985);
}

.screenshot-thumbs {
  grid-area: thumbs;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.screenshot-thumb {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.screenshot-thumb:hover,
.screenshot-thumb.active {
  color: white;
  border-color: rgba(225,17,17,0.72);
  background: rgba(157,0,0,0.22);
}

.screenshot-thumb img {
  display: block;
  width: 100%;
  height: 166px;
  object-fit: contain;
  border-radius: 7px;
  background: #111;
  margin-bottom: 7px;
}

.screenshot-thumb span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 900;
}

figure {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(0,0,0,0.24);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
  background: #111;
}

figcaption {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 10px 4px 2px;
  font-size: 0.84rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,0.84);
  backdrop-filter: blur(10px);
}

.lightbox[aria-hidden="false"] {
  display: grid;
}

.lightbox img {
  max-width: min(94vw, 760px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 100px rgba(0,0,0,0.7);
  background: #111;
}

.lightbox p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

footer {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

footer a {
  color: white;
}

@media (max-width: 980px) {
  .hero,
  .feature-section,
  .split-section,
  .download {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
    gap: 36px;
  }

  .app-preview {
    min-height: 610px;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .preview-main {
    right: 50%;
    transform: translateX(50%);
  }

  .preview-side {
    display: none;
  }

  .section-panel {
    padding: 28px;
  }

  .feature-section .section-heading {
    margin-bottom: 6px;
  }

  .screenshot-viewer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "main"
      "thumbs";
    max-width: 560px;
    margin: 0 auto;
  }

  .screenshot-main {
    max-width: 320px;
    justify-self: center;
  }

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

  .screenshot-thumb img {
    height: 158px;
  }

  .workflow-list {
    min-width: 0;
  }

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

  .download-panel {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-header,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 18px;
    width: min(100% - 24px, 1240px);
  }

  .hero-status {
    grid-template-columns: 1fr;
  }

  .hero-status span {
    justify-content: center;
  }

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

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section-panel {
    width: min(100% - 24px, 1240px);
    padding: 22px;
    border-radius: 18px;
  }

  .screenshot-viewer {
    padding: 12px;
    max-width: 420px;
  }

  .screenshot-main {
    max-width: min(280px, 82vw);
  }

  .screenshot-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .screenshot-thumb {
    flex: 0 0 96px;
    scroll-snap-align: start;
  }

  .screenshot-thumb img {
    height: 150px;
  }

  .screenshot-thumb span {
    font-size: 0.72rem;
  }

  .app-preview {
    min-height: 580px;
    border-radius: 14px;
  }

  .preview-main {
    width: min(245px, 68vw);
    right: 50%;
    top: 24px;
  }

  .preview-side {
    width: min(220px, 62vw);
    opacity: 0.34;
    bottom: 0;
  }

  .split-section,
  .download {
    padding: 24px;
  }

  .download-actions {
    width: 100%;
  }

  .download-actions .button {
    flex: 1 1 160px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }
}

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