@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --bg-app: #07080c;
  --bg-surface: #0d0f15;
  --bg-raised: #151820;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5f8;
  --text-muted: #9aa3b4;
  --accent: #ff102f;
  --accent-hover: #ff3b54;
  --accent-dim: rgba(255, 16, 47, 0.16);
  --radius: 10px;
  --radius-lg: 18px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--font);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 16, 47, 0.18), transparent 32rem),
    linear-gradient(135deg, #050506 0%, #0d0f15 48%, #171016 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
  animation: grid-drift 22s linear infinite;
}

a {
  color: inherit;
}

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.animated-bg span {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 16, 47, 0.2);
  filter: blur(36px);
  opacity: 0.65;
  animation: orb-float 12s ease-in-out infinite alternate;
}

.animated-bg span:nth-child(1) {
  top: 10%;
  left: 8%;
}

.animated-bg span:nth-child(2) {
  right: 8%;
  top: 28%;
  width: 320px;
  height: 320px;
  background: rgba(255, 59, 84, 0.14);
  animation-delay: -4s;
}

.animated-bg span:nth-child(3) {
  left: 24%;
  bottom: 8%;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  animation-delay: -8s;
}

.animated-bg span:nth-child(4) {
  right: 30%;
  bottom: 16%;
  width: 140px;
  height: 140px;
  animation-delay: -2s;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.76);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3), var(--shadow);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--accent);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
}

.site-brand img {
  width: 44px;
  height: auto;
  filter: drop-shadow(3px 3px 0 #000);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.secondary-btn,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.site-nav a,
.secondary-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.site-nav a:hover,
.secondary-btn:hover {
  border-color: rgba(255, 16, 47, 0.36);
  background: var(--accent-dim);
}

.site-nav .nav-download,
.download-btn {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 36px rgba(255, 16, 47, 0.24), var(--shadow);
}

.site-nav .nav-download:hover,
.download-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(255, 16, 47, 0.34), var(--shadow);
}

.hero {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 16, 47, 0.055), rgba(255, 255, 255, 0.016)),
    rgba(9, 10, 14, 0.82);
  box-shadow: var(--shadow), 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.hero--home {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 42px;
  padding: clamp(34px, 6vw, 70px);
}

.hero-content {
  min-width: 0;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-copy,
.section-heading p,
.showcase-copy p,
.feature-card p,
.site-footer p,
.download-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 0;
  font-size: clamp(17px, 2.2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.launcher-preview {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #0a0c11;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), 0 0 60px rgba(255, 16, 47, 0.16);
  transform: rotate(1.5deg);
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.preview-brand,
.preview-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-brand {
  font-weight: 800;
}

.preview-brand span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.preview-controls i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 210px;
  min-height: 330px;
}

.instance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.instance-card,
.preview-panel,
.feature-card,
.mini-window,
.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.instance-card {
  min-height: 132px;
  padding: 16px;
}

.instance-card.active {
  border-color: rgba(255, 16, 47, 0.52);
  background: var(--accent-dim);
}

.instance-card p,
.preview-panel p {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.instance-card button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.preview-panel {
  padding: 18px;
  border-width: 0 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
}

.preview-input,
.meter {
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #07080c;
  color: var(--text-muted);
}

.meter {
  height: 38px;
  padding: 7px;
}

.meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.section {
  padding: clamp(70px, 10vw, 120px) 0 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(9, 10, 14, 0.78);
}

.feature-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 4px 4px 0 #000, 0 0 28px rgba(255, 16, 47, 0.34);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 6vw, 74px);
  align-items: center;
}

.showcase-copy .secondary-btn {
  margin-top: 12px;
}

.showcase-stack {
  position: relative;
  min-height: 360px;
}

.mini-window {
  position: absolute;
  width: min(420px, 86%);
  padding: 24px;
  background: rgba(12, 14, 20, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.mini-window span {
  display: block;
  height: 160px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--accent) 0 38%, transparent 38%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 32px),
    #08090d;
}

.mini-window strong {
  font-family: var(--display);
  font-size: 24px;
}

.window-one {
  top: 0;
  left: 0;
  transform: rotate(-3deg);
}

.window-two {
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
}

.download-page {
  display: grid;
  min-height: calc(100vh - 96px);
  place-items: center;
  padding: 42px 0;
}

.download-hero {
  width: min(760px, 100%);
  padding: clamp(34px, 7vw, 70px);
  text-align: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 22px);
  margin: 0;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(48px, 10vw, 86px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.78), 0 0 34px rgba(255, 16, 47, 0.42);
}

.hero-logo {
  display: block;
  width: clamp(86px, 16vw, 128px);
  height: auto;
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 18px 34px rgba(255, 16, 47, 0.32));
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
}

.download-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 20px;
}

.download-card p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 58px 0 30px;
  color: var(--text-muted);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 72px 72px;
  }
}

@keyframes orb-float {
  from {
    transform: translate3d(-24px, 18px, 0) scale(0.95);
  }

  to {
    transform: translate3d(28px, -24px, 0) scale(1.08);
  }
}

@media (max-width: 920px) {
  .hero--home,
  .showcase,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .launcher-preview {
    transform: none;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    border-width: 1px 0 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    position: static;
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    padding: 0 10px;
  }

  .hero--home {
    margin-top: 22px;
    padding: 28px;
  }

  .hero-actions,
  .download-card,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .download-btn,
  .secondary-btn {
    width: 100%;
  }

  .instance-grid {
    grid-template-columns: 1fr;
  }

  .showcase-stack {
    min-height: 440px;
  }

  .mini-window {
    width: 94%;
  }

  .brand-lockup {
    gap: 10px;
    font-size: clamp(38px, 13vw, 52px);
  }

  .hero-logo {
    width: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
