:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --panel: #161616;
  --panel-strong: #202020;
  --text: #f7f4e8;
  --muted: #a9a9a9;
  --line: #303030;
  --yellow: #ffd400;
  --yellow-soft: #ffe568;
  --green: #45c46a;
  --blue: #76a9ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Kanit", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

.site-bg,
.hero-glow,
.hero-aurora-layer,
.hero-overlay {
  position: fixed;
  pointer-events: none;
}

.site-bg {
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 212, 0, 0.08), transparent 34%),
    #090909;
}

.hero-glow {
  inset: -18%;
  z-index: 0;
  opacity: 0.86;
  filter: blur(58px);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 212, 0, 0.2), transparent 34%),
    radial-gradient(circle at 14% 74%, rgba(255, 178, 0, 0.13), transparent 36%),
    radial-gradient(circle at 86% 70%, rgba(255, 242, 112, 0.1), transparent 34%);
  animation: glow-breathe 8s ease-in-out infinite alternate;
}

.hero-aurora-layer {
  inset: -14% -10% 0;
  z-index: 1;
  opacity: 0.94;
  mix-blend-mode: screen;
  filter: saturate(130%);
}

.aurora-container {
  position: absolute;
  inset: 0;
  transform: scale(1.08);
}

.aurora-container canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.aurora-band {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 150vw;
  height: 34vh;
  border-radius: 999px;
  transform-origin: center;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 212, 0, 0.02) 20%,
      rgba(255, 212, 0, 0.2) 46%,
      rgba(255, 245, 150, 0.12) 56%,
      transparent 78%
  );
  filter: blur(24px);
  opacity: 0.24;
}

.aurora-band-1 {
  animation: aurora-sweep-1 14s ease-in-out infinite alternate;
}

.aurora-band-2 {
  height: 26vh;
  opacity: 0.22;
  filter: blur(32px);
  animation: aurora-sweep-2 15s ease-in-out infinite alternate;
}

.aurora-band-3 {
  height: 18vh;
  opacity: 0.18;
  filter: blur(18px);
  animation: aurora-sweep-3 10s ease-in-out infinite alternate;
}

.hero-overlay {
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(9, 9, 9, 0.16), rgba(9, 9, 9, 0.04) 18%, transparent 34% 58%, rgba(9, 9, 9, 0.76)),
    radial-gradient(circle at 50% 22%, transparent 0 18%, rgba(9, 9, 9, 0.34) 62%, #090909 100%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

@keyframes glow-breathe {
  to {
    opacity: 0.92;
    transform: scale(1.04);
  }
}

@keyframes aurora-sweep-1 {
  from {
    transform: translate3d(-55%, -32%, 0) rotate(-18deg);
  }

  to {
    transform: translate3d(-45%, -48%, 0) rotate(-11deg);
  }
}

@keyframes aurora-sweep-2 {
  from {
    transform: translate3d(-48%, -6%, 0) rotate(16deg);
  }

  to {
    transform: translate3d(-58%, -22%, 0) rotate(7deg);
  }
}

@keyframes aurora-sweep-3 {
  from {
    transform: translate3d(-63%, 18%, 0) rotate(-5deg);
  }

  to {
    transform: translate3d(-40%, 4%, 0) rotate(-17deg);
  }
}

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(20px) saturate(118%);
  -webkit-backdrop-filter: blur(20px) saturate(118%);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.brand img {
  width: 40px;
  height: 40px;
}

.brand span {
  font-size: 24px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: var(--muted);
  font-size: 16px;
}

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

.header-download,
.primary-button,
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.header-download,
.primary-button {
  background: var(--yellow);
  color: #0c0c0c;
}

.header-download {
  padding: 0 18px;
  border-radius: 10px;
}

.primary-button {
  padding: 0 24px;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0 22px;
}

.header-download:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.header-download:hover,
.primary-button:hover {
  background: var(--yellow-soft);
}

.secondary-button:hover {
  border-color: var(--yellow);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 46px;
  align-items: center;
  padding: 128px 0 118px;
  text-align: center;
}

.hero-copy {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(74px, 12vw, 150px);
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 780px;
  color: #d9d2b8;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.22;
  margin: 0 auto 28px;
}

.hero-actions {
  display: grid;
  justify-content: center;
  justify-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.compatibility .section-head {
  max-width: 780px;
}

.service-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-item {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.service-item img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.service-item h3 {
  margin: 0;
  font-size: 23px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.band {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: 0;
}

.browser-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.browser-list article,
.service-item,
.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.browser-list article {
  padding: 22px;
}

.browser-list span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.browser-list h3,
.steps h3 {
  margin: 8px 0 8px;
  font-size: 24px;
}

.browser-list p,
.steps p,
.security p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.install {
  border-top: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
}

.steps li > span {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--yellow);
  color: #101010;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
}

.security {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--muted);
}

.site-footer span {
  color: var(--text);
  font-weight: 800;
}

.site-footer p {
  max-width: 820px;
  margin: 8px 0 0;
  color: #8f8f8f;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 58px 0 82px;
  }

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

  .browser-list,
  .security {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    gap: 12px;
  }

  .brand span {
    font-size: 20px;
  }

  .header-download {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .service-stack {
    grid-template-columns: 1fr;
  }

  .service-item {
    gap: 12px;
    min-height: 78px;
  }

  .service-item img {
    width: 46px;
    height: 46px;
  }

  .site-footer {
    display: grid;
    gap: 10px;
  }
}
