:root {
  --bg-0: #08111f;
  --bg-1: #0d1728;
  --card: #101a2d;
  --card-2: #0f1829;
  --border: #24324d;
  --primary: #3b82f6;
  --text: #f4f7ff;
  --muted: #9dabc4;
  --success: #1ed9a1;
  --danger: #ff5a6b;
  --shadow-glow: 0 8px 24px rgba(59, 130, 246, 0.14);
  --shadow-low: 0 12px 28px rgba(2, 6, 14, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  overflow-x: hidden;
  line-height: 1.5;
}

.bg-shape {
  position: fixed;
  filter: blur(90px);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.shape-a {
  width: 220px;
  height: 220px;
  right: 8%;
  top: 8%;
  background: rgba(59, 130, 246, 0.22);
}

.shape-b {
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -70px;
  background: rgba(30, 217, 161, 0.08);
}

.topbar,
.container,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 560px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-block;
  box-shadow: var(--shadow-glow);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.03rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.22rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 19, 36, 0.6);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  border: 1px solid var(--border);
  background: rgba(16, 26, 45, 0.85);
  color: var(--muted);
  padding: 0.52rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.tab:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.tab.is-active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.38);
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 19, 36, 0.75);
  flex: 0 0 auto;
}

.lang-btn {
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  min-height: 36px;
}

.lang-btn.is-active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.22);
}

.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
}

.panel {
  display: none;
  animation: enter 280ms ease;
}

.panel.is-active {
  display: block;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.hero-copy,
.status-card,
.queue-card,
.feature-card,
.privacy-card,
.contact-card {
  background: rgba(16, 26, 45, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-low);
}

.hero-copy {
  padding: clamp(1rem, 2vw, 1.8rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.32rem 0.58rem;
  border-radius: 10px;
  color: #bbccf7;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem 0;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
}

h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  line-height: 1.18;
  margin-top: 0.75rem;
}

.lead {
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.6;
  margin: 0;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.btn {
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  padding: 0.72rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: white;
  background: #2b67ee;
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  color: #d6e2ff;
  border-color: rgba(137, 169, 255, 0.22);
  background: rgba(59, 130, 246, 0.08);
}

.status-card {
  padding: 1.05rem;
}

.status-card h2 {
  margin-bottom: 0.8rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.metric {
  background: rgba(6, 14, 34, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(124, 149, 203, 0.17);
  padding: 0.72rem;
  min-width: 0;
}

.metric span {
  color: var(--muted);
  font-size: 0.76rem;
}

.metric strong {
  margin-top: 0.36rem;
  display: block;
  font-size: 1.18rem;
}

.queue-card {
  margin-top: 1rem;
  padding: 1rem;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.live-dot {
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
}

.queue-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.66rem;
}

.queue-item {
  background: rgba(5, 15, 35, 0.7);
  border: 1px solid rgba(126, 152, 212, 0.16);
  border-radius: 12px;
  padding: 0.75rem;
}

.queue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.queue-row strong {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.queue-row span {
  font-size: 0.8rem;
  color: var(--muted);
  flex: 0 0 auto;
}

.progress {
  margin-top: 0.55rem;
  height: 7px;
  border-radius: 999px;
  background: #273553;
  overflow: hidden;
}

.progress > i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f5dff, #1ed9a1);
  transition: width 0.6s ease;
}

.section-title {
  margin: 0 0 0.9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-card {
  padding: 1rem;
}

.feature-card p,
.privacy-card p,
.privacy-card li,
.contact-card p {
  color: var(--muted);
  line-height: 1.62;
}

.privacy-card,
.contact-card {
  padding: 1rem 1.05rem;
}

.privacy-card ul {
  margin: 0.4rem 0 0.7rem;
  padding-left: 1.2rem;
}

.privacy-note {
  border-left: 3px solid rgba(37, 99, 255, 0.7);
  padding-left: 0.75rem;
}

.privacy-mail {
  margin-top: 0.9rem;
}

.mail-link-inline {
  color: #91b8ff;
  font-weight: 700;
  margin-left: 0.25rem;
}

.mail-link {
  display: inline-block;
  font-size: 1.02rem;
  color: #91b8ff;
  margin: 0.2rem 0 0.9rem;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  background: rgba(5, 14, 32, 0.82);
  color: var(--text);
  border-radius: 12px;
  padding: 0.72rem;
  min-height: 44px;
  font: inherit;
  width: 100%;
}

.form-feedback {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  color: var(--success);
}

.footer {
  margin: 1.6rem auto 2rem;
  width: min(1140px, 100% - 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
  }

  .tabs {
    width: 100%;
  }

  .lang-switch {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .queue-row {
    align-items: flex-start;
    gap: 0.35rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 1rem);
  }

  .tab {
    padding-inline: 0.66rem;
    font-size: 0.88rem;
  }

  .lang-btn {
    min-width: 44px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .bg-shape {
    display: none;
  }
}
