/* connect.amnesiavps.ru — стили из bot.amnesiavps.ru (Design System) */
html { color-scheme: dark; }
:root {
  --bg-main: #050505;
  --bg-soft: #0F1A17;
  --card-bg: rgba(12, 20, 18, 0.6);
  --primary: #7FFFE1;
  --primary-soft: #6CF2D5;
  --glow: #9FFFF0;
  --accent-teal: #00C9A7;
  --text-main: #EFFFFA;
  --text-secondary: #A6E5D6;
  --text-muted: #7FAFA3;
  --glass-border: rgba(127, 255, 225, 0.18);
  --glass-glow: rgba(127, 255, 225, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100%;
  overflow-x: hidden;
  background-image: linear-gradient(180deg, #050505 0%, #0F1A17 100%);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.particles-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.25;
  animation: float-particle 12s infinite;
}
@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  33% { transform: translate(15px, -20px) scale(1.1); opacity: 0.35; }
  66% { transform: translate(-10px, -40px) scale(0.9); opacity: 0.2; }
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1rem;
  padding-bottom: 2rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Header */
.header {
  text-align: center;
  padding: 1rem 0 1.5rem;
  animation: fadeInDown 0.6s ease-out;
}
.header-inner { }
.brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Main */
.main { max-width: 420px; margin: 0 auto; }

/* Cards */
.card {
  position: relative;
  backdrop-filter: blur(12px);
  background: var(--card-bg);
  border: 1px solid rgba(127, 255, 225, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 30px rgba(127, 255, 225, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: cardFadeIn 0.5s ease-out backwards;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:hover {
  border-color: rgba(127, 255, 225, 0.3);
  box-shadow: 0 0 40px rgba(127, 255, 225, 0.12);
  transform: translateY(-2px);
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.info-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.75rem; }

/* Form */
.connect-form { margin-top: 0.5rem; }
.label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 26, 23, 0.6);
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  outline: none;
  border-color: var(--glass-glow);
  box-shadow: 0 0 12px rgba(127, 255, 225, 0.15);
}
.hint { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; margin-top: 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  color: #050505;
  box-shadow: 0 0 25px rgba(127, 255, 225, 0.4);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 35px rgba(127, 255, 225, 0.55);
  transform: translateY(-2px);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-glow);
  color: var(--primary);
}
.btn-secondary:hover { box-shadow: 0 0 20px rgba(127, 255, 225, 0.3); }
.btn-block { width: 100%; }

/* Download links */
.card-links .download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.card-links .btn-secondary { flex: 1; min-width: 120px; }

.back-link {
  text-align: center;
  margin-top: 1rem;
}
.back-link a { color: var(--primary); text-decoration: none; }
.back-link a:hover { color: var(--glow); }

.footer { text-align: center; padding: 1.5rem 0.5rem; }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); }
