/* Premium UI styles */
:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-2: #0b1222;
  --card: rgba(15, 23, 42, 0.75);
  --card-border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-2: #34d399;
  --shadow: 0 24px 50px rgba(2, 6, 23, 0.55);
  --glow: 0 0 28px rgba(96, 165, 250, 0.22);
}

* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(96, 165, 250, 0.18), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(52, 211, 153, 0.14), transparent 45%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  z-index: -1;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.site-header {
  padding-bottom: 8px;
}

.hero {
  text-align: left;
  margin-bottom: 32px;
}

.hero.compact {
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 780px;
}

.hero p {
  max-width: 680px;
}

.alert {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.18);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.logo-duo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 34, 0.85));
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55), var(--glow);
}

.logo {
  width: 200px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.logo.brand {
  width: 240px;
  height: 110px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 720px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: -45% 45% auto -45%;
  height: 160px;
  background: linear-gradient(120deg, rgba(96, 165, 250, 0.18), transparent);
  transform: rotate(-6deg);
  pointer-events: none;
  opacity: 0.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.inline {
  justify-content: center;
}

label {
  font-weight: 600;
}

input,
textarea {
  background: rgba(11, 18, 34, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

textarea {
  resize: vertical;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1020;
  border: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.primary:hover {
  transform: translateY(-2px);
}

.primary.is-loading {
  cursor: wait;
  opacity: 0.8;
}

.footer {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 22px 28px;
  align-items: start;
  background: linear-gradient(135deg, rgba(12, 19, 36, 0.92), rgba(9, 14, 28, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

.site-footer {
  margin-top: 42px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 160px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.footer-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.footer-powered {
  color: var(--accent);
  font-weight: 600;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.84rem;
  transition: transform 0.2s ease, border 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.16);
  color: #dbeafe;
}

.coming-soon {
  color: rgba(226, 232, 240, 0.65);
  font-style: italic;
  padding: 6px 10px;
}

.footer-primary {
  color: #e2e8f0;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(96, 165, 250, 0.22), rgba(52, 211, 153, 0.22));
  border: 1px solid rgba(96, 165, 250, 0.32);
  width: fit-content;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
}

@media (max-width: 720px) {
  .page {
    padding: 32px 18px 56px;
  }

  .card {
    padding: 22px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .footer {
    grid-template-columns: 1fr;
  }

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

  .footer-logo {
    width: 160px;
    height: 70px;
  }

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

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

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(11, 18, 34, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
  text-decoration: none;
  transition: border 0.2s ease, transform 0.2s ease;
}

.download:hover {
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-3px);
}

.download .title {
  font-weight: 600;
}

.download .desc {
  color: var(--muted);
  font-size: 0.85rem;
}

.actions {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.ghost {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
}

.inline-form {
  display: inline-flex;
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 50;
}

.loader.is-active {
  opacity: 1;
  pointer-events: auto;
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), rgba(8, 12, 26, 0.95));
  backdrop-filter: blur(10px);
}

.loader-panel {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 36px 40px;
  border-radius: 26px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  background: linear-gradient(145deg, rgba(12, 19, 36, 0.95), rgba(9, 15, 30, 0.98));
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.65), 0 0 40px rgba(52, 211, 153, 0.1);
  max-width: 520px;
  width: min(90vw, 520px);
  text-align: center;
}

.loader-orbit {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.loader-core {
  position: absolute;
  inset: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.8), rgba(52, 211, 153, 0.3));
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.6), 0 0 60px rgba(52, 211, 153, 0.4);
  animation: pulse-core 2.4s ease-in-out infinite;
}

.loader-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: inset 0 0 18px rgba(96, 165, 250, 0.2);
  animation: spin 10s linear infinite;
}

.loader-ring--one {
  inset: 8px;
  border-color: rgba(52, 211, 153, 0.35);
  animation-duration: 8s;
}

.loader-ring--two {
  inset: 22px;
  border-color: rgba(96, 165, 250, 0.45);
  animation-duration: 12s;
  animation-direction: reverse;
}

.loader-ring--three {
  inset: 36px;
  border-color: rgba(125, 211, 252, 0.45);
  animation-duration: 14s;
}

.loader-text {
  display: grid;
  gap: 10px;
}

.loader-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.loader-sub {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.7);
}

.loader-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(96, 165, 250, 0.2);
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.6), rgba(52, 211, 153, 0.8));
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.5);
  transition: width 0.8s ease;
}

.loader-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.loader-step {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
  animation: glow-step 2.8s ease-in-out infinite;
}

.loader-step.is-active {
  color: #e2e8f0;
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
}

.loader-step.is-complete {
  color: rgba(226, 232, 240, 0.9);
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(15, 23, 42, 0.8);
}

.loader-step:nth-child(2) {
  animation-delay: 0.4s;
}

.loader-step:nth-child(3) {
  animation-delay: 0.8s;
}

.loader-step:nth-child(4) {
  animation-delay: 1.2s;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-core {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes glow-step {
  0%,
  100% {
    border-color: rgba(96, 165, 250, 0.2);
    color: rgba(226, 232, 240, 0.6);
    transform: translateY(0);
  }
  50% {
    border-color: rgba(52, 211, 153, 0.45);
    color: #e2e8f0;
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .loader-panel {
    padding: 28px;
  }

  .loader-orbit {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 420px) {
  .loader-panel {
    padding: 22px;
  }

  .loader-title {
    font-size: 1rem;
  }
}

