@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&display=swap");

:root {
  --bg-color: #05070a;
  --card-bg: rgba(255, 255, 255, 0.03);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --secondary: #0ea5e9;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
  --error: #ef4444;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(15, 23, 42, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glass Effect */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--primary-glow);
  }
  100% {
    box-shadow: 0 0 5px var(--primary-glow);
  }
}

/* Header & Hero */
header {
  padding: 2rem 0;
  text-align: center;
}

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.test-card {
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.test-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.test-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.test-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.test-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: "Inter", sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: white;
  animation: glow 3s infinite;
}

.btn-primary:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Simulator Styles */
.sim-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem;
  animation: fadeIn 0.5s ease-out;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 10px;
  margin-bottom: 3rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s ease;
}

.question-box h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.option.selected {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.option.correct {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.option.wrong {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.feedback {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  display: none;
}

.feedback.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.feedback h4 {
  color: var(--success);
  margin-bottom: 0.5rem;
}

.feedback-wrong h4 {
  color: var(--error);
}

/* Results */
.result-screen {
  text-align: center;
  display: none;
}

.result-screen.show {
  display: block;
}

.result-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0;
  color: var(--success);
}
