:root {
  color-scheme: dark;
  --text: #f7f9fc;
  --muted: #9aa6ba;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #4f8cff;
  --blue-soft: #66d9ff;
  --radius: 8px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 140, 255, 0.2), transparent 31rem),
    radial-gradient(circle at 82% 32%, rgba(102, 217, 255, 0.12), transparent 24rem),
    linear-gradient(160deg, #07090f 0%, #0e1728 48%, #080b10 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(102, 217, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 217, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.22));
}

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

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

.inline-link {
  color: var(--blue-soft);
  font-weight: 800;
}

.inline-link:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.header-actions {
  gap: 8px;
}

.lang-button,
.ghost-button,
.primary-button,
.secondary-button,
.plan-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.lang-button {
  width: 44px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lang-button.active {
  border-color: rgba(79, 140, 255, 0.68);
  background: rgba(79, 140, 255, 0.14);
  color: var(--text);
}

.ghost-button,
.secondary-button,
.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.panel-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.panel-button:disabled:hover {
  transform: none;
  border-color: var(--line);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  color: #06101f;
  font-weight: 800;
}

.lang-button:hover,
.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.plan-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.25fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100vh - 76px);
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) clamp(18px, 6vw, 86px) 34px;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

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

.hero-text,
.section-heading p,
.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 28px;
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  max-width: 520px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  padding: 18px 12px 0 0;
}

.hero-stats dt {
  font-size: 26px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, rgba(21, 27, 41, 0.96), rgba(9, 13, 20, 0.98));
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.hero-video {
  display: grid;
  width: calc(100% + clamp(80px, 10vw, 220px));
  transform: translateX(clamp(18px, 2vw, 38px));
  background: #060a12;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(calc(100% - 36px), 1080px);
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.trust-strip span {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.trusted-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 6vw, 86px) 0;
  text-align: center;
}

.trusted-marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.trusted-marquee.is-dragging {
  cursor: grabbing;
}

.trusted-marquee::before,
.trusted-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 90px;
  pointer-events: none;
  content: "";
}

.trusted-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 9, 15, 0.96), transparent);
}

.trusted-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 9, 15, 0.96), transparent);
}

.trusted-track {
  display: flex;
  width: max-content;
  transform: translate3d(var(--trusted-offset, 0px), 0, 0);
  will-change: transform;
}

.trusted-set {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding-right: 14px;
}

.server-logo {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 10px;
  min-width: 160px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(10, 16, 27, 0.78);
  text-align: center;
}

.server-logo img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  object-fit: contain;
}

.server-logo strong {
  color: var(--text);
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.section {
  padding: clamp(68px, 8vw, 112px) clamp(18px, 6vw, 86px);
}

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

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
}

.pricing-grid {
  max-width: 1320px;
}

.feature-card,
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
}

.feature-card {
  padding: 16px;
  text-align: center;
}

.gif-preview {
  position: relative;
  overflow: hidden;
  height: 230px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #0b1019;
}

.gif-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.dark-section {
  background: rgba(0, 0, 0, 0.24);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 24px;
}

.plan {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  display: flex;
  margin-bottom: 12px;
}

.price span {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding: 0;
  color: var(--text);
  list-style: none;
}

.price-card li::before {
  margin-right: 9px;
  color: var(--blue-soft);
  content: "+";
}

.plan-button {
  width: 100%;
  margin-top: auto;
}

.site-footer {
  display: grid;
  gap: 14px;
  padding: 28px clamp(18px, 6vw, 86px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  justify-items: center;
  text-align: center;
}

.footer-main {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-disclaimer {
  max-width: 980px;
  margin: 0 auto;
  color: rgba(154, 166, 186, 0.78);
  font-size: 12px;
  line-height: 1.65;
}

.error-page {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: clamp(48px, 8vw, 96px) 18px;
}

.error-card {
  width: min(100%, 780px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
  text-align: center;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.error-card h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 86px);
}

.error-card p:not(.eyebrow) {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.7;
}

.error-actions {
  justify-content: center;
  margin-bottom: 0;
}

.download-page {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: clamp(34px, 7vw, 72px) 18px;
}

.download-card {
  width: min(100%, 560px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
  text-align: center;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.download-card h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1;
}

.download-card .eyebrow {
  margin-bottom: 8px;
}

.download-status {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.download-status[data-state="error"] {
  color: #ff8c9a;
}

.file-name {
  margin: 0 auto 8px;
  max-width: 460px;
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.file-size {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.download-actions {
  display: flex;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 16px;
}

.download-button {
  min-width: 148px;
  padding: 0 22px;
}

.download-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.downloaded-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
}

.download-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .hero-video {
    width: 100%;
    transform: none;
  }

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

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .nav-links {
    justify-content: center;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  h1 {
    font-size: clamp(42px, 12vw, 72px);
    line-height: 0.95;
  }

  h2 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.05;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions a {
    flex: 1 1 180px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-video {
    aspect-ratio: 16 / 9;
  }

  .trusted-section,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .trusted-marquee::before,
  .trusted-marquee::after {
    width: 44px;
  }

  .server-logo {
    min-width: 136px;
  }

  .price-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .brand {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr);
  }

  .ghost-button {
    width: 100%;
  }

  .nav-links {
    order: 2;
  }

  .hero {
    padding: 34px 18px 28px;
  }

  .hero-actions {
    margin-bottom: 26px;
  }

  .trust-strip,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 0 auto;
  }

  .hero-stats div {
    padding-right: 0;
    text-align: center;
  }

  .site-footer {
    gap: 12px;
  }

  .footer-main {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    font-size: 13px;
  }

  .hero-actions a {
    flex-basis: 100%;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stats div {
    padding-top: 14px;
  }

  .gif-preview {
    height: 210px;
  }

  .price-card {
    padding: 20px;
  }
}
