/*
 * Copyright (c) 2026 Starflow Team. All rights reserved.
 * Confidential — Starflow Internal.
 *
 * Subdomain entry-gate styling. Палитра — TECHNOPOLIS-наследие
 * (dark cyan + purple). Brand-redesign — отдельной итерацией.
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #07080d;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.gate-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0d1b2a 0%, #0a0a1a 70%);
  padding: 20px;
}

.gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: rgba(15, 20, 40, 0.95);
  border: 1px solid rgba(0, 213, 255, 0.25);
  border-radius: 18px;
  padding: 28px 26px 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(163, 127, 255, 0.08) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gate-logo {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto;
}

.gate-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00d5ff, #a37fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 0;
  letter-spacing: 0.04em;
}

.gate-subtitle {
  color: #d8def0;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
  letter-spacing: 0.04em;
}

.gate-tagline {
  color: #b8c2d4;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin: 0;
  letter-spacing: 0.02em;
}

.gate-desc {
  color: #a8b2c4;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  padding: 0 4px;
}

.gate-contacts a {
  color: #8899aa;
  text-decoration: none;
  border-bottom: 1px dotted rgba(136, 153, 170, 0.4);
}
.gate-contacts a:hover {
  color: #00d5ff;
  border-bottom-color: rgba(0, 213, 255, 0.6);
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.gate-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.74rem;
  color: #8899aa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gate-input {
  background: rgba(10, 14, 28, 0.7);
  border: 1px solid rgba(0, 213, 255, 0.25);
  border-radius: 8px;
  padding: 11px 12px;
  color: #e0e0e0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  font-family: inherit;
}

.gate-input:focus {
  border-color: rgba(163, 127, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(163, 127, 255, 0.15);
}

.gate-submit {
  margin-top: 4px;
  background: linear-gradient(135deg, #00d5ff, #a37fff);
  border: none;
  color: #0a0a1a;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: filter 0.2s, transform 0.2s;
  font-family: inherit;
}

.gate-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.gate-submit:active { transform: translateY(0); }
.gate-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.gate-error {
  color: #ff6b8a;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 2px;
}

.gate-sep {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(0, 213, 255, 0.12);
  margin: 6px 0 4px;
}

.gate-contacts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #8899aa;
  text-align: center;
  line-height: 1.5;
}

.gate-contacts p { margin: 0; }
.gate-c-label { color: #00d5ff; font-weight: 600; }

.gate-lang {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.gate-lang a, .gate-lang span {
  color: #8899aa;
  text-decoration: none;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.gate-lang a:hover { color: #00d5ff; }
.gate-lang .active { color: #00d5ff; background: rgba(0, 213, 255, 0.08); }

@media (max-width: 480px) {
  .gate-card { padding: 22px 18px 18px; }
  .gate-title { font-size: 1.6rem; }
  .gate-subtitle { font-size: 0.95rem; }
  .gate-tagline { font-size: 0.82rem; }
}
