:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(13, 16, 28, 0.72);
  --panel-strong: rgba(19, 23, 37, 0.88);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f8fbff;
  --muted: #a5adbd;
  --quiet: #747b8d;
  --blue: #21b7ff;
  --violet: #7b5cff;
  --pink: #ff39ba;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(33, 183, 255, 0.13), transparent 28rem),
    radial-gradient(circle at 78% 10%, rgba(255, 57, 186, 0.13), transparent 32rem),
    linear-gradient(135deg, #05070d 0%, #080b13 52%, #0c0714 100%);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.page-shell::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  opacity: 0.46;
  background-image:
    radial-gradient(circle, rgba(74, 151, 255, 0.75) 0 1px, transparent 1.6px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-position: 0 0, center center, center center;
  background-size: 148px 148px, 54px 54px, 54px 54px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.62) 56%, transparent 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1140px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

.brand span {
  font-size: 25px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: rgba(248, 251, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
}

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

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

.hero {
  position: relative;
  display: grid;
  min-height: clamp(640px, 78svh, 780px);
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.98) 0%, rgba(5, 7, 13, 0.84) 38%, rgba(5, 7, 13, 0.42) 70%, rgba(5, 7, 13, 0.92) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.32) 0%, rgba(5, 7, 13, 0.88) 100%),
    url("/assets/happ-bg.png") center right / cover no-repeat;
  filter: saturate(1.05);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 44%;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--bg) 82%);
}

.hero-inner {
  width: min(760px, calc(100% - 36px));
  padding: clamp(42px, 6vw, 66px) 0 clamp(28px, 4vw, 42px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 40px;
  gap: 9px;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b7d8ff;
  background: rgba(15, 18, 24, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.spark {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: #90d8ff;
  background:
    linear-gradient(#90d8ff, #90d8ff) center / 2px 100% no-repeat,
    linear-gradient(90deg, #90d8ff, #90d8ff) center / 100% 2px no-repeat;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(144, 216, 255, 0.52));
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  margin-top: 22px;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-titleline {
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-titleline span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), #4d8dff 54%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 600;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 54px;
  padding: 0 25px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #3479ff 0%, #8660ff 100%);
  box-shadow: 0 18px 46px rgba(61, 125, 255, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 19, 23, 0.82);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(30, 33, 42, 0.9);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(520px, 100%);
  margin: 30px auto 0;
  gap: 18px;
}

.metrics div {
  min-width: 0;
}

.metrics dt {
  color: #6879ff;
  font-size: clamp(27px, 4vw, 34px);
  font-weight: 950;
  line-height: 1;
}

.metrics dd {
  margin-top: 12px;
  color: var(--quiet);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.section {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 92px) 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  color: #89ccff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-top: 12px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.strip-text p:last-child {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.5;
}

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

.feature-card {
  min-height: 238px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(122, 191, 255, 0.25);
  border-radius: 8px;
  background: rgba(25, 53, 91, 0.28);
}

.icon::before {
  display: block;
  width: 23px;
  height: 23px;
  content: "";
  background: #9fdcff;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.feature-speed::before {
  -webkit-mask-image: url("/assets/icons/speed.svg");
  mask-image: url("/assets/icons/speed.svg");
}

.feature-server::before {
  -webkit-mask-image: url("/assets/icons/server.svg");
  mask-image: url("/assets/icons/server.svg");
}

.feature-devices::before {
  -webkit-mask-image: url("/assets/icons/devices.svg");
  mask-image: url("/assets/icons/devices.svg");
}

h3 {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.feature-card p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.download-section {
  padding-bottom: clamp(72px, 9vw, 112px);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.download-card {
  display: grid;
  min-height: 252px;
  align-content: center;
  justify-items: center;
  padding: 26px 16px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 58%),
    rgba(17, 19, 27, 0.82);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.platform-icon {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  background: #dfe8ff;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.platform-windows {
  background: #7db7ff;
  -webkit-mask-image: url("/assets/icons/windows.svg");
  mask-image: url("/assets/icons/windows.svg");
}

.platform-macos {
  background: #f3f6ff;
  -webkit-mask-image: url("/assets/icons/macos.svg");
  mask-image: url("/assets/icons/macos.svg");
}

.platform-ios {
  background: #38bdf8;
  -webkit-mask-image: url("/assets/icons/ios.svg");
  mask-image: url("/assets/icons/ios.svg");
}

.platform-android {
  background: #a3e635;
  -webkit-mask-image: url("/assets/icons/android.svg");
  mask-image: url("/assets/icons/android.svg");
}

.platform-linux {
  background: #facc15;
  -webkit-mask-image: url("/assets/icons/linux.svg");
  mask-image: url("/assets/icons/linux.svg");
}

.download-card h3 {
  margin-top: 0;
  font-size: 20px;
}

.download-card p {
  min-height: 40px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(135deg, #3479ff 0%, #825dff 100%);
  box-shadow: 0 14px 34px rgba(75, 112, 255, 0.25);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(75, 112, 255, 0.34);
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 28px, 560px);
    min-height: 68px;
  }

  .nav-links {
    gap: 14px;
    font-size: 12px;
  }

  .nav-links a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 7, 13, 0.78) 0%, rgba(5, 7, 13, 0.91) 72%, #05070d 100%),
      url("/assets/happ-bg.png") 61% center / cover no-repeat;
  }

  .hero-inner {
    width: min(100% - 28px, 560px);
    padding-top: 42px;
  }

  .eyebrow {
    font-size: 13px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .button {
    width: 100%;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 340px);
    margin-top: 34px;
    gap: 8px;
  }

  .metrics div {
    min-height: 86px;
    padding: 13px 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(8, 10, 18, 0.55);
  }

  .metrics dt {
    font-size: 24px;
  }

  .metrics dd {
    margin-top: 8px;
    font-size: 11px;
    text-align: center;
  }

  .section {
    width: min(100% - 28px, 560px);
    padding: 54px 0;
  }

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

  .feature-card {
    min-height: 0;
  }

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

  .download-card {
    min-height: 232px;
  }
}

@media (max-width: 430px) {
  .nav-links a:nth-child(1) {
    display: none;
  }

  h1 {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.05;
  }

  .hero-titleline {
    font-size: clamp(31px, 11vw, 42px);
  }

  .download-grid {
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    margin-inline: auto;
  }
}

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