:root {
  --bg: #0f172a;
  --bg-alt: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #E63946;
  --accent-glow: rgba(230, 57, 70, 0.4);
  --card: #0b1222;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "SF Mono", monospace;
  background: radial-gradient(1200px 600px at 20% 10%, #1f2937 0%, var(--bg) 55%),
              radial-gradient(800px 400px at 80% 90%, #111827 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}

header {
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
}

.logo img {
  height: 80px;
  width: auto;
  margin: -8px 0;
}

.badge {
  color: #1f2937;
  border-color: #d1d5db;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 12px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 12px;
  color: var(--muted);
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0b1325;
  color: var(--text);
  font-size: 14px;
}

button {
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px var(--accent-glow);
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-card {
  width: 320px;
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.dots {
  display: inline-flex;
  gap: 8px;
  margin: 12px 0 6px;
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
}

.results-header {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.gauge {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, #f59e0b 120deg, #10b981 240deg, #0f172a 0deg);
  display: grid;
  place-items: center;
  border: 8px solid #0b1222;
}

.gauge-inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #0b1222;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: #1f2937;
  color: #f8fafc;
}

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

.platform-item {
  padding: 12px;
  border-radius: 12px;
  background: #0b1325;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-button {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text);
  text-decoration: none;
}

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