/* ==========================================================================
   Base — tokens, reset, typography, buttons, navigation, hero, footer
   ========================================================================== */

@property --announce-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --announce-x { syntax: "<length>"; inherits: false; initial-value: 20px; }

:root {
  --grey-50: #e6e6e6;
  --grey-100: #cdcece;
  --grey-200: #9c9c9d;
  --grey-300: #6a6b6c;
  --grey-400: #434345;
  --grey-500: #2f3031;
  --grey-600: #1b1c1e;
  --grey-700: #111214;
  --grey-800: #0c0d0f;
  --grey-900: #07080a;
  --red: #ff6363;
  --blue: #56c2ff;
  --green: #59d499;
  --yellow: #ffc533;

  --text-loud: #fff;
  --text-default: var(--grey-200);
  --text-muted: var(--grey-300);
  --card-bg: linear-gradient(137deg, #111214 4.87%, #0c0d0f 75.88%);
  --card-border: rgba(255, 255, 255, 0.06);
  --separator: rgba(255, 255, 255, 0.1);

  --sp-0-5: 4px; --sp-1: 8px; --sp-1-5: 12px; --sp-2: 16px; --sp-2-5: 20px; --sp-3: 24px;
  --sp-4: 32px; --sp-5: 40px; --sp-6: 48px; --sp-7: 56px; --sp-8: 64px; --sp-9: 80px;
  --sp-10: 96px; --sp-11: 112px; --sp-12: 168px; --sp-13: 224px;
  --r-xs: 4px; --r-sm: 6px; --r: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-xxl: 24px;

  --container: 1204px;
  --nav-h: 76px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  --mono-alt: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", var(--font);
  --ease-out: cubic-bezier(.215, .61, .355, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  min-height: 100vh;
  background: var(--grey-900);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
img, svg, canvas { display: block; }
::selection { background: rgba(255, 99, 99, 0.35); color: #fff; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; border-radius: 4px; }

.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;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: 36px;
  padding: var(--sp-1) var(--sp-1-5);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: background-color .2s, box-shadow .2s ease-in-out, transform .1s ease-in-out;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }
.btn-light {
  color: var(--grey-500);
  background: var(--grey-50);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 255, 255, 0.19),
    inset 0 -1px 0.4px rgba(0, 0, 0, 0.2), inset 0 1px 0.4px #fff;
}
.btn-light:hover { background: #fff; }
.btn-light:active { background: var(--grey-100); }
.btn-dark {
  color: #fff;
  background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 -1px rgba(0, 0, 0, 0.2);
}
.btn-dark:hover { box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 -1px rgba(0, 0, 0, 0.2); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-default);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.3px;
  transition: color .3s;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .3s; }
.arrow-link:hover { color: #fff; }
.arrow-link:hover svg { transform: translateX(2px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip-red { background: rgba(255, 99, 99, 0.14); color: #ffd9d9; box-shadow: inset 0 0 0 1px rgba(255, 99, 99, 0.2); }
.chip-red svg { color: var(--red); }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: text-bottom;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  animation: caret-blink 1.1s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Sections & titles
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  max-width: 100vw;
  padding: var(--sp-13) var(--sp-3);
  overflow-x: clip;
}
.section-title h2,
.section-title p {
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.2px;
}
.section-title h2 { color: var(--text-loud); }
.section-title p { color: var(--text-muted); }
.section-title.center { text-align: center; }

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--mono-alt);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 1.44px;
  text-transform: uppercase;
}

/* Scroll reveal (only when JS runs) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: var(--sp-2) var(--sp-2) 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--container);
  height: var(--nav-h);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  background: linear-gradient(137deg, rgba(17, 18, 20, 0.75) 4.87%, rgba(12, 13, 15, 0.9) 75.88%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: height .3s;
}
.nav-logo {
  position: absolute;
  top: 50%;
  left: var(--sp-4);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  transform: translateY(-50%);
  transition: transform .2s;
}
.nav-logo:hover { transform: translateY(-50%) scale(1.04); }
.nav-logo-mark { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(255, 99, 99, 0.25)); }
.nav-logo-word { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -0.2px; }
.nav-links { display: flex; align-items: center; gap: var(--sp-2); }
.nav-links a {
  display: block;
  padding: 6px 8px;
  color: var(--grey-200);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-actions {
  position: absolute;
  top: 50%;
  right: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transform: translateY(-50%);
}
.nav-login { color: var(--grey-200); font-size: 14px; font-weight: 500; letter-spacing: 0.2px; transition: color .2s; }
.nav-login:hover { color: #fff; }
.nav-toggle { display: none; position: relative; width: 24px; height: 16px; }
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform .4s, opacity .25s, top .4s;
}
.nav-toggle span:nth-child(1) { top: 10%; }
.nav-toggle span:nth-child(2) { top: 50%; }
.nav-toggle span:nth-child(3) { top: 90%; }
.nav.is-open .nav-toggle span:nth-child(1) { top: 50%; transform: rotate(-45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { top: 50%; transform: rotate(45deg); }

@media (max-width: 1063px) {
  .nav-logo-word, .nav-download { display: none; }
}
@media (max-width: 879px) {
  .nav { height: 64px; justify-content: space-between; padding: var(--sp-2) var(--sp-3); flex-wrap: wrap; align-content: flex-start; overflow: hidden; }
  .nav-logo, .nav-actions { position: static; transform: none; }
  .nav-logo:hover { transform: scale(1.04); }
  .nav-logo-word { display: inline; }
  .nav-toggle { display: block; }
  .nav-links, .nav-actions { display: none; }
  .nav.is-open { height: calc(100vh - 32px); align-content: flex-start; }
  .nav.is-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; padding: 40px 0 24px; order: 3; }
  .nav.is-open .nav-links a { font-size: 18px; padding: 10px 0; color: #fff; }
  .nav.is-open .nav-actions { display: flex; width: 100%; order: 4; padding-top: 24px; border-top: 1px solid var(--separator); justify-content: space-between; }
  .nav.is-open .nav-download { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--sp-13);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--grey-900);
  overflow: hidden;
}
.hero-bg canvas { width: 100%; height: 100%; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 8, 10, 0.12) 0%, rgba(7, 8, 10, 0.12) 90%, var(--grey-900) 100%),
    linear-gradient(to left, rgba(7, 8, 10, 0), var(--grey-900)) left top / 5% 100% no-repeat,
    linear-gradient(to right, rgba(7, 8, 10, 0), var(--grey-900)) right top / 5% 100% no-repeat;
  pointer-events: none;
}
.hero-bg.is-fallback canvas { display: none; }
.hero-bg.is-fallback {
  background:
    radial-gradient(40% 35% at 50% 45%, rgba(255, 60, 80, 0.35), transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 36px, rgba(214, 24, 52, 0.55) 36px 78px, transparent 78px 96px),
    var(--grey-900);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000 40%, transparent 100%);
  mask-image: radial-gradient(60% 55% at 50% 45%, #000 40%, transparent 100%);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 818px;
  padding: 370px var(--sp-2) 212px;
}
.hero-text h1 {
  max-width: 540px;
  color: #fff;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  font-feature-settings: "ss02", "ss08", "liga" 0;
}
.hero-text p {
  color: #fff;
  font-size: 18px;
  line-height: normal;
  letter-spacing: 0.2px;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  max-width: 560px;
}

.download-info { display: flex; flex-direction: column; align-items: center; }
.download-req {
  margin-top: var(--sp-2);
  color: #fff;
  opacity: 0.4;
  mix-blend-mode: plus-lighter;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}
.download-sub {
  display: flex;
  gap: 25px;
  margin-top: var(--sp-1);
  color: var(--text-default);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}
.download-sub > * { position: relative; font-family: inherit; font-size: inherit; letter-spacing: inherit; transition: color .2s; }
.download-sub > *:hover { color: #fff; }
.download-sub > :not(:first-child)::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -13px;
  height: 10px;
  border-right: 1px solid var(--grey-200);
}

.announce-wrap { display: flex; justify-content: center; padding-top: var(--sp-5); }
.announce-outer {
  display: block;
  padding: 1px;
  border-radius: 43px;
  background: conic-gradient(from calc(var(--announce-angle) - 80deg) at var(--announce-x) 15px, transparent 0%, #eca5a7 20%, transparent 25%), #452324;
  box-shadow: 0 0 20px rgba(245, 48, 107, 0.1);
  animation: announce-angle 3s linear -0.64s infinite, announce-x 3s linear -0.64s infinite;
  transition: box-shadow .2s, background-color .2s;
}
.announce-outer:hover { box-shadow: 0 0 20px 3px rgba(245, 49, 108, 0.25); }
.announce {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  height: 30px;
  padding: 4px 12px;
  border-radius: 1000px;
  background: #130d0e;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.announce-muted { display: flex; color: var(--grey-200); }
.announce-muted svg { width: 16px; height: 16px; transition: transform .3s; }
.announce-outer:hover .announce-muted svg { transform: translateX(2px); }
@keyframes announce-angle {
  0%, 32.8% { --announce-angle: 0deg; }
  50%, 82.8% { --announce-angle: 180deg; }
  100% { --announce-angle: 360deg; }
}
@keyframes announce-x {
  0% { --announce-x: 20px; }
  32.8%, 50% { --announce-x: 190px; }
  82.8%, 100% { --announce-x: 20px; }
}

.fade-in-up { opacity: 0; transform: translateY(20px); animation: fade-in-up 1s ease forwards; }
.fade-in-up-late { opacity: 0; transform: translateY(20px); animation: fade-in-up 1s ease 1s forwards; }
@keyframes fade-in-up { to { opacity: 1; transform: none; } }

@media (max-width: 719px) {
  .section { padding: var(--sp-12) var(--sp-3); }
  .section-title h2, .section-title p { font-size: 18px; line-height: 1.6; }
  .hero { margin-bottom: var(--sp-10); }
  .hero-text { padding: 260px var(--sp-2) 137px; }
  .hero-text h1 { font-size: 48px; max-width: 440px; }
  .hero-text p { font-size: 14px; }
  .download-req, .download-sub { display: none; }
  .announce-wrap { padding-top: var(--sp-3); }
}
@media (max-width: 419px) {
  .hero-text h1 { font-size: 36px; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  isolation: isolate;
  padding: 140px var(--sp-3) 48px;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  z-index: -1;
  top: -260px;
  left: 50%;
  width: min(1100px, 140vw);
  height: 520px;
  transform: translateX(-50%);
  background-position: center;
  background-size: cover;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(50% 45% at 50% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(50% 45% at 50% 50%, #000 20%, transparent 100%);
  filter: saturate(1.2);
}
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px 24px; }
.footer-col h4 { margin-bottom: 20px; font-size: 14px; font-weight: 500; letter-spacing: 0.2px; }
.footer-col li + li { margin-top: 12px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--grey-200);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.2px;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-col a.ext::after {
  content: "";
  width: 10px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7;
}
.footer-news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 88px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-news h4 { font-size: 14px; font-weight: 500; }
.footer-news-text p { max-width: 240px; margin-top: 6px; color: var(--grey-200); font-size: 14px; line-height: 1.5; }
.footer-form-row { display: flex; gap: 8px; }
.footer-form input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.footer-form input::placeholder { color: var(--grey-300); }
.footer-form input:focus { border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }
.footer-form.is-error input { border-color: rgba(255, 99, 99, 0.6); }
.footer-legal { margin-top: 12px; color: var(--grey-300); font-size: 12px; line-height: 1.6; }
.footer-legal.is-ok { color: var(--green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  color: var(--grey-300);
  font-size: 12px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--grey-200); font-weight: 600; font-size: 13px; }
.footer-brand svg { width: 16px; height: 16px; color: var(--red); }

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-news { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
}

/* Small toast used by "copy" buttons */
.toast-copy {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(20, 21, 24, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast-copy.is-shown { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
