:root {
  --bg: #000;
  --panel: #0c0c0c;
  --panel-2: #101010;
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --muted: #9a9a9a;
  --dim: #555;
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, transparent 45%, rgba(0, 0, 0, 0.7) 100%);
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 24px 64px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 56px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.3em;
  font-size: 20px;
  color: var(--text);
}

.hero {
  text-align: center;
  margin-bottom: 60px;
}

.eclipse {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 44px;
  animation: breathe 9s ease-in-out infinite;
}

.eclipse svg {
  width: 100%;
  height: 100%;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.88; }
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.lede {
  color: var(--muted);
  margin-top: 18px;
  font-size: 16px;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.6;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.platform {
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
}

.platform:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 255, 255, 0.06);
}

.platform.missing {
  animation: shake 0.4s ease;
  border-color: rgba(255, 255, 255, 0.4);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.platform h3 {
  font-size: 17px;
  font-weight: 700;
}

.plat-sub {
  color: var(--dim);
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
}

.plat-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  margin-bottom: 6px;
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.07);
}

.plat-icon svg {
  width: 28px;
  height: 28px;
}

.plat-icon svg[viewBox="0 0 448 512"] {
  width: 26px;
  height: 26px;
}

.btn {
  margin-top: 14px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--text);
  padding: 13px 20px;
  border-radius: 12px;
  font: 600 13px 'Inter', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s ease;
}

.btn .arr {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.22s ease;
}

.platform:hover .btn {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.25);
}

.platform:hover .btn .arr {
  transform: translateY(2px);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.foot {
  margin-top: 84px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.04em;
}



.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}

.gate-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gate {
  position: relative;
  width: min(430px, 100%);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 30px 30px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 60px rgba(255, 255, 255, 0.05);
  animation: gateIn 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes gateIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gate-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.gate-close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.gate-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.gate-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.gate-input {
  width: 100%;
  margin-top: 22px;
  background: #090909;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  padding: 13px 15px;
  font: 500 14px 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gate-input::placeholder {
  color: var(--dim);
  letter-spacing: 0.01em;
}

.gate-input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.gate-field .gate-input {
  margin-top: 10px;
}

.gate-status {
  margin-top: 16px;
  min-height: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.gate-status.err {
  color: #ff6b6b;
}

.gate-status.ok {
  color: #7ee787;
}

.gate-action {
  margin-top: 10px;
}

.gate-action:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 560px) {
  .brand {
    margin-bottom: 44px;
  }

  .eclipse {
    width: 220px;
    height: 220px;
  }

  .downloads {
    grid-template-columns: 1fr;
  }
}
