:root {
  --bg: #05070c;
  --panel: #0d1220;
  --accent: #3aa0ff;
  --accent2: #6fe3ff;
  --accent-dim: #2b78c4;
  --text: #e9f0fb;
  --text-dim: #8b9ab3;
  --border: rgba(255, 255, 255, 0.09);
  --danger-bg: #241a0a;
  --danger-border: #a3701f;
}
* { box-sizing: border-box; }
html {
  /* авто-масштаб: чем шире экран, тем крупнее весь контент (всё в rem) */
  font-size: clamp(15px, 0.35vw + 12px, 23px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
.wrap { max-width: min(1560px, 94vw); margin: 0 auto; padding: 0 20px; }
header { padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.logo { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.logo span.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); display: inline-block; }
.badge-demo { font-size: 0.72rem; color: var(--text-dim); border: 1px solid var(--border); padding: 2px 8px; border-radius: 10px; }
.tg-link {
  font-size: 0.85rem; color: #041018; text-decoration: none; font-weight: 700;
  background: linear-gradient(135deg, var(--accent2), #2aa9c9); padding: 0.5rem 1rem;
  border-radius: 999px;
}
.tg-link:hover { opacity: 0.9; }
footer a { color: var(--accent2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---- космическая сцена в hero ---- */
.hero-space {
  position: relative;
  margin: 1.4rem 0 2.25rem;
  min-height: clamp(420px, 34vw, 640px);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(58,160,255,0.10), transparent 55%),
    radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1.4px) 0 0/38px 38px,
    linear-gradient(180deg, #050812 0%, #03050a 100%);
  border: 1px solid var(--border);
}
#globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.digit-rain { position: absolute; inset: 0; overflow: hidden; z-index: 2; pointer-events: none; }
.digit {
  position: absolute; top: -20px; color: var(--accent2);
  font-family: "Courier New", monospace; font-weight: 700;
  text-shadow: 0 0 6px rgba(111,227,255,0.6);
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(540px); opacity: 0; } }

.meteor {
  position: absolute; width: 140px; height: 1.5px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), transparent);
  transform: rotate(28deg); z-index: 2; opacity: 0;
  animation: streak 6s linear infinite;
}
.meteor.m1 { top: 12%; left: -10%; animation-delay: 0s; }
.meteor.m2 { top: 32%; left: -14%; animation-delay: 2.1s; width: 100px; }
.meteor.m3 { top: 55%; left: -8%; animation-delay: 4.2s; width: 170px; }
@keyframes streak {
  0% { opacity: 0; transform: translate(0, 0) rotate(28deg); }
  8% { opacity: 1; }
  40% { opacity: 0; transform: translate(620px, 320px) rotate(28deg); }
  100% { opacity: 0; transform: translate(620px, 320px) rotate(28deg); }
}

.orbit-sat {
  position: absolute; top: 46%; left: 68%; width: 50vmin; height: 50vmin;
  max-width: 600px; max-height: 600px;
  transform: translate(-50%, -50%);
  z-index: 3; animation: spin 16s linear infinite; pointer-events: none;
}
.orbit-path {
  position: absolute; inset: 0; border: 1px dashed rgba(111,227,255,0.18); border-radius: 50%;
}
.sat-dot {
  position: absolute; top: -1px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--accent2); box-shadow: 0 0 10px 3px rgba(111,227,255,0.7);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-content { position: relative; z-index: 4; padding: 3.6rem 2.5rem; max-width: 36rem; }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 700; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 1.1rem;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-content h1 { font-size: 2.1rem; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.01em; }
.accent-text { color: var(--accent2); }
.hero-content p { color: var(--text-dim); max-width: 480px; }

.disclaimer {
  background: var(--danger-bg); border: 1px solid var(--danger-border);
  border-radius: 10px; padding: 0.875rem 1rem; font-size: 0.88rem; margin: 1.25rem 0 2.25rem;
}

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.5rem; margin-bottom: 1.75rem;
}
.panel h2 { margin-top: 0; font-size: 1.15rem; }

.tabs { display: flex; gap: 8px; margin-bottom: 1rem; }
.tab-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  padding: 0.5rem 0.875rem; border-radius: 8px; cursor: pointer; font-size: 0.9rem;
}
.tab-btn.active { color: #041018; background: var(--accent); border-color: var(--accent); font-weight: 600; }

label { display: block; font-size: 0.85rem; color: var(--text-dim); margin: 0.875rem 0 0.4rem; }
input[type=text], input[type=url], input[type=email], input[type=tel] {
  width: 100%; padding: 0.625rem 0.75rem; border-radius: 8px; border: 1px solid var(--border);
  background: #070a12; color: var(--text); font-size: 0.95rem;
}
input[type=text]:focus, input[type=url]:focus, input[type=email]:focus, input[type=tel]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58,160,255,0.18);
}
input[type=file] { color: var(--text-dim); }
.row2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 0.875rem; font-size: 0.88rem; color: var(--text-dim); }

.submit-btn {
  margin-top: 1.25rem; background: linear-gradient(135deg, var(--accent), #1f6fd1);
  color: #041018; border: none;
  padding: 0.75rem 1.375rem; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  box-shadow: 0 8px 28px -10px rgba(58,160,255,0.7);
}
.submit-btn:disabled { opacity: 0.6; cursor: wait; }
.form-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.75rem; }
.form-note a { color: var(--accent2); }

.drop-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,6,10,0.55);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
.drop-overlay.show { opacity: 1; pointer-events: all; }
.drop-zone {
  width: 40%; height: 40%; min-width: 280px; min-height: 200px;
  border: 2px dashed var(--accent2); border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(13,18,32,0.65); color: var(--text); font-size: 1.1rem; text-align: center;
  pointer-events: none;
}
.drop-zone-icon { font-size: 2.2rem; color: var(--accent2); }
.drop-zone-note { font-size: 0.82rem; color: var(--text-dim); }
.file-picked-note { font-size: 0.82rem; color: var(--accent2); margin-top: 8px; }

.result { margin-top: 1.25rem; padding: 1rem; border-radius: 10px; border: 1px solid var(--accent-dim); background: #0a1a28; display: none; }
.result.show { display: block; }
.result a { color: var(--accent2); }
.hash { font-family: monospace; font-size: 0.78rem; word-break: break-all; color: var(--text-dim); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.875rem; margin: 1.25rem 0 2.25rem; }
.step { border: 1px solid var(--border); border-radius: 10px; padding: 0.875rem; background: var(--panel); }
.step .n { color: var(--accent2); font-weight: 700; font-size: 1.3rem; }
.step p { font-size: 0.85rem; color: var(--text-dim); margin: 6px 0 0; }

footer { color: var(--text-dim); font-size: 0.8rem; padding: 30px 0 50px; border-top: 1px solid var(--border); margin-top: 20px; }

@media (max-width: 640px) {
  .row2, .steps { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content { padding: 40px 22px; }
  .orbit-sat { display: none; }
}
