:root {
  --bg: #020202;
  --surface: #0d0d0f;
  --surface-soft: #19191d;
  --surface-border: rgba(255, 255, 255, 0.16);
  --text: #f8f8f7;
  --muted: #d6d0c6;
  --muted-2: rgba(255, 255, 255, 0.72);
  --brand-blue: #1dbff9;
  --brand-violet: #3e57ff;
  --brand-pink: #c70ff5;
  --header-height: 88px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  --font-ui: "Aptos", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
}

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

.page-shell {
  width: min(1720px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 38px;
}

.download-icon svg,
.caret svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.download-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 20px 10px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1;
  color: #fff;
  background: linear-gradient(90deg, #1ca8ff 0%, #2b82ff 52%, #cc16f4 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%, 0 0);
  box-shadow: 0 8px 18px rgba(76, 61, 255, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 22px rgba(87, 42, 254, 0.28);
}

.hero {
  padding-top: 88px;
  padding-bottom: 110px;
}

.hero-copy {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-family: "Euclid Circular B Semibold", "Euclid Circular B", "Euclid Circular A", var(--font-ui);
  font-size: clamp(2.8rem, 5.6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #1ca8ff 0%, #2b82ff 52%, #cc16f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise-in 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  font-family: "Euclid Circular B Semibold", "Euclid Circular B", "Euclid Circular A", var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.title-primary {
  font-size: clamp(4rem, 10.8vw, 9.3rem);
  font-weight: 600;
  color: #f8f8f8;
  animation: rise-in 850ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.title-accent {
  font-size: clamp(3.2rem, 7.8vw, 6.9rem);
  font-weight: 600;
  background: linear-gradient(90deg, #1ca8ff 0%, #2b82ff 52%, #cc16f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise-in 950ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms both;
}

.hero-text {
  max-width: 850px;
  margin: 42px auto 0;
  font-size: clamp(1.28rem, 2.4vw, 2.05rem);
  line-height: 1.35;
  color: var(--muted);
  animation: rise-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms both;
}

.download-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
  animation: rise-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 260ms both;
}

.download-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 165px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(7, 7, 10, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(12, 12, 17, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 28px rgba(0, 0, 0, 0.26);
}

.download-card-disabled {
  pointer-events: none;
  opacity: 0.42;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 7, 10, 0.45);
  box-shadow: none;
}

.download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f1f1f1;
}

.download-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.download-copy small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.58);
}

.download-copy strong {
  font-size: 1.08rem;
  font-weight: 500;
}

.caret {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.92);
}

.caret svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-wrap {
  position: relative;
  margin-top: 94px;
  animation: reveal-preview 1200ms cubic-bezier(0.18, 0.8, 0.22, 1) 320ms both;
}

.preview-glow {
  position: absolute;
  inset: auto 8% -4% 8%;
  height: 120px;
  background: linear-gradient(90deg, rgba(29, 191, 249, 0.12), rgba(199, 15, 245, 0.15));
  filter: blur(50px);
}

.preview-frame {
  position: relative;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.preview-frame::before,
.preview-frame::after {
  content: none;
}

.preview-video {
  display: block;
  width: 100%;
  border-radius: 0;
  background: #0b0b0f;
  object-fit: cover;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-preview {
  from {
    opacity: 0;
    transform: translateY(52px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 32px, 1000px);
  }

  .site-header {
    gap: 14px;
    grid-template-columns: auto 1fr;
  }

  .header-actions .icon-link {
    display: none;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 90px;
  }

  .hero-text {
    margin-top: 28px;
  }

  .hero-eyebrow {
    margin-bottom: 14px;
  }

  .preview-video {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .cta-button {
    min-height: 38px;
    padding: 10px 18px 10px 16px;
    font-size: 0.92rem;
  }

  .download-card {
    width: 100%;
    justify-content: flex-start;
  }

  .preview-video {
    min-height: 220px;
  }
}
