/* CSS variables */
:root {
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-text: #f5f5f5;
  --color-text-muted: rgba(245, 245, 245, 0.45);
  --color-text-soft: rgba(245, 245, 245, 0.72);
  --color-accent: #ffffff;
  --color-glow: rgba(255, 255, 255, 0.08);
  --color-glow-strong: rgba(255, 255, 255, 0.14);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: hidden;
}

@media (max-height: 520px) {
  body {
    overflow-y: auto;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* Screen-reader-only copy (search/assistive tech; keeps layout unchanged) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Full-page static background */
.darke-page-with-starfield {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #000000;
}

.darke-page-with-starfield::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #000000;
  background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    url("images/darke-bg2.png");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  pointer-events: none;
}

body > .darke-page-with-starfield {
  min-height: 100vh;
  min-height: 100dvh;
}

.darke-page-with-starfield__content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  box-sizing: border-box;
  /* Offset for fixed ticker (matches .ticker-segment vertical size + border) */
  padding-top: calc(1.1rem + 1.35 * clamp(0.875rem, 1.85vw, 1.0625rem) + 1px);
}

/* Top promo ticker (marquee, right → left) — fixed below browser chrome */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #161616;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 1;
  color: #ffffff;
}

.ticker-track {
  --ticker-copies: 6;
  display: flex;
  width: max-content;
  animation: ticker-marquee 55s linear infinite;
  opacity: 1;
  color: #ffffff;
}

.ticker-segment {
  flex-shrink: 0;
  padding: 0.55rem 0;
  font-size: clamp(0.875rem, 1.85vw, 1.0625rem);
  font-weight: 300;
  font-synthesis: none;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #ffffff;
  white-space: nowrap;
  opacity: 1;
  text-shadow: none;
  filter: none;
}

.ticker-dot {
  color: #27ae60;
  font-weight: 300;
  font-synthesis: none;
  opacity: 1;
  text-shadow: none;
  filter: none;
}

@keyframes ticker-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / var(--ticker-copies, 6)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
  }

  .ticker-segment {
    white-space: normal;
    text-align: center;
    text-wrap: balance;
  }

  .ticker-segment ~ .ticker-segment {
    display: none;
  }
}

/* Edge vignette (inside hero stack: above glow, below copy) */
.hero .vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 120px 40px rgba(0, 0, 0, 0.55),
    inset 0 0 220px 80px rgba(0, 0, 0, 0.35);
}

/* Hero */
.hero {
  position: relative;
  z-index: 0;
  flex: 1;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero-glow {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  width: min(90vw, 640px);
  height: min(70vh, 520px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    var(--color-glow-strong) 0%,
    var(--color-glow) 35%,
    transparent 70%
  );
  opacity: 0.55;
  pointer-events: none;
  filter: blur(2px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 36rem;
  animation: hero-enter 1.35s var(--ease-out) both;
}

@keyframes hero-enter {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-heading {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-weight: inherit;
  line-height: 0;
}

.hero-logo {
  width: 100%;
  max-width: 504px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.hero-tagline {
  margin: 8px 0 clamp(1.25rem, 3vw, 1.75rem);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
}

.hero-cta-wrap .cta {
  margin-top: 0;
}

.cta-security-box {
  margin: 0.875rem 0 0;
  max-width: min(24rem, 100%);
  padding: 2px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
}

.cta-security-note {
  margin: 0;
  padding: 0.625rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.015em;
  text-align: center;
  color: rgba(245, 245, 245, 0.92);
  background: rgba(4, 4, 6, 0.94);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cta-security-note strong {
  font-weight: 600;
  color: #ffffff;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--color-bg);
  background: var(--color-accent);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    filter 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}

.cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.22), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.cta:focus {
  outline: none;
}

.cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 28px rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .hero-logo {
    max-width: 312px;
  }

  .hero .vignette {
    box-shadow: inset 0 0 80px 28px rgba(0, 0, 0, 0.6),
      inset 0 0 140px 50px rgba(0, 0, 0, 0.4);
  }

  .hero-cta-wrap {
    width: 100%;
    max-width: 20rem;
  }

  .hero-cta-wrap .cta {
    width: 100%;
    max-width: none;
  }

  .hero-cta-wrap .cta-security-box {
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
