:root {
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --secondary: #6366f1;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fbff 0%, var(--bg) 100%);
  line-height: 1.6;
}
a { text-decoration: none; }
img { max-width: 100%; display: block; }

.page-shell { min-height: 100vh; }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.page-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.page-nav-link:hover, .page-nav-link.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 20px -12px rgba(14,165,233,0.35);
}
.hero-card, .glass-card, .info-card, .section-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(14,165,233,0.12);
  box-shadow: 0 20px 45px -24px rgba(15, 23, 42, 0.25);
}
.hero-card { border-radius: 2rem; overflow: hidden; }
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(240,249,255,0.95));
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(14,165,233,0.18), transparent 70%);
  pointer-events: none;
}
.glass-card { border-radius: 1.5rem; padding: 1.25rem; }
.affair-card {
  overflow: hidden;
  border-color: rgba(99, 102, 241, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(129, 140, 248, 0.2), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.16), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.92) 52%, rgba(245, 243, 255, 0.95));
  box-shadow: 0 18px 38px -25px rgba(79, 70, 229, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.affair-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 24px 45px -24px rgba(79, 70, 229, 0.42);
}
.affair-card h2 { line-height: 1.25; }
.info-card { border-radius: 1.25rem; padding: 1rem 1.1rem; }
.section-card { border-radius: 1.5rem; padding: 1.2rem; }
.page-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(99,102,241,0.12));
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.simulator-title {
  color: #7dd3fc;
  text-shadow: 0 2px 18px rgba(56, 189, 248, 0.35);
}
.app-download-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, #075985 0%, #0284c7 45%, #4338ca 100%);
  border: 1px solid rgba(186, 230, 253, 0.32);
}
.app-download-banner::after {
  content: "";
  position: absolute;
  right: -5rem;
  top: -7rem;
  width: 19rem;
  height: 19rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.app-download-label {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.app-download-copy { color: #e0f2fe; font-weight: 500; }
.homepage-test-section {
  width: min(calc(100% - 2rem), 1280px);
  margin: 3rem auto;
  border: 1px solid rgba(71, 85, 105, 0.68);
  background:
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.25), transparent 27rem),
    radial-gradient(circle at 8% 88%, rgba(99, 102, 241, 0.2), transparent 24rem),
    #0f172a;
  box-shadow: 0 28px 60px -30px rgba(15, 23, 42, 0.8);
}
.homepage-test-header { position: relative; }
.homepage-test-header::after { content: ""; display: block; width: 4rem; height: 0.25rem; margin: 1.15rem auto 0; border-radius: 99px; background: linear-gradient(90deg, #38bdf8, #818cf8); }
.homepage-test-link { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1rem; color: #bae6fd; font-size: 0.78rem; font-weight: 700; transition: color 0.2s ease, transform 0.2s ease; }
.homepage-test-link:hover { color: #fff; transform: translateY(-1px); }
.homepage-test-toolbar { background: rgba(30, 41, 59, 0.78); border: 1px solid rgba(71, 85, 105, 0.86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.homepage-simulator { background: rgba(30, 41, 59, 0.92); border: 1px solid rgba(100, 116, 139, 0.68); box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
@media (max-width: 640px) { .homepage-test-section { width: calc(100% - 1rem); margin: 1.5rem auto; } }
.hero-social-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-social-link i { font-size: 1.25rem; flex: 0 0 auto; }
.hero-social-link span { min-width: 0; }
.hero-social-link small { display: block; margin-top: 0.18rem; color: #64748b; font-size: 0.62rem; font-weight: 600; white-space: nowrap; }
.hero-social-link:hover { transform: translateY(-2px); border-color: #38bdf8; box-shadow: 0 10px 20px -14px rgba(14, 165, 233, 0.65); }
.hero-social-link.icon-only { justify-content: center; min-height: 72px; padding: 0.75rem; }
.hero-social-link.icon-only i { font-size: 2rem; }
.hero-social-card {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(100%, 390px);
  height: 70px;
  padding: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.46);
}
.hero-social-card a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 999px;
  color: #475569;
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-social-card a:hover, .hero-social-card a:focus-visible { color: #fff; animation: social-bounce 0.4s linear; outline: none; }
.hero-social-card a::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 0.6rem); transform: translateX(-50%) translateY(4px); width: max-content; max-width: 11rem; padding: 0.35rem 0.55rem; border-radius: 0.5rem; background: #0f172a; color: #fff; font-size: 0.65rem; font-weight: 700; line-height: 1.2; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 5; }
.hero-social-card a:hover::after, .hero-social-card a:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.hero-social-card .social-link1:hover, .hero-social-card .social-link1:focus-visible { background: #ff0000; box-shadow: 0 8px 18px -9px #ff0000; }
.hero-social-card .social-link2:hover, .hero-social-card .social-link2:focus-visible { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); box-shadow: 0 8px 18px -9px #dc2743; }
.hero-social-card .social-link3:hover, .hero-social-card .social-link3:focus-visible { background: #25d366; box-shadow: 0 8px 18px -9px #25d366; }
.hero-social-card .social-link4:hover, .hero-social-card .social-link4:focus-visible { background: #111827; box-shadow: 0 8px 18px -9px #111827; }
.hero-social-card .social-link5:hover, .hero-social-card .social-link5:focus-visible { background: #229ed9; box-shadow: 0 8px 18px -9px #229ed9; }
.hero-social-card .social-link6:hover, .hero-social-card .social-link6:focus-visible { background: #0ea5e9; box-shadow: 0 8px 18px -9px #0ea5e9; }
@keyframes social-bounce { 40% { transform: scale(1.28); } 60% { transform: scale(0.88); } 80% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (max-width: 420px) {
  .hero-social-link { gap: 0.4rem; padding: 0.55rem 0.4rem; font-size: 0.64rem; }
  .hero-social-link i { font-size: 1rem; }
  .hero-social-link small { font-size: 0.52rem; }
}
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.9rem 1.25rem; font-weight: 700; transition: all 0.2s ease;
}
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { color: var(--text); background: white; border: 1px solid #e2e8f0; }
.btn-secondary:hover { color: var(--primary); border-color: var(--primary); }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: 999px; background: #f1f5f9; font-weight: 600; color: var(--muted); }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 0.6rem; }
.section-copy { color: var(--muted); max-width: 700px; margin: 0 auto 1.5rem; }
.social-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.8rem 1rem; border-radius: 999px; background: white; border: 1px solid #e2e8f0; color: var(--text); font-weight: 600; }
.social-link:hover { color: var(--primary); border-color: var(--primary); }
@media (max-width: 768px) {
  .hero-card { border-radius: 1.4rem; }
  .glass-card { padding: 1rem; }
}

/* Online Test Simulator Styles */
.test-option-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid #e2e8f0;
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
/* Test Option Buttons - Premium Dark Simulator Styling */
.test-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1.5px solid #334155;
  background-color: #1e293b;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.test-option-btn:hover {
  border-color: #38bdf8;
  background-color: #334155;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}
.test-option-btn.selected {
  border-color: #38bdf8 !important;
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3), 0 8px 20px rgba(2, 132, 199, 0.35) !important;
}
.test-option-badge {
  width: 34px;
  height: 34px;
  border-radius: 0.75rem;
  background: #334155;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.test-option-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.test-option-btn > .fa-regular { flex: 0 0 auto; }
.test-option-btn.selected .test-option-badge {
  background: #ffffff !important;
  color: #0369a1 !important;
}

/* Question Navigator Grid Buttons */
.test-nav-num {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  border: 1px solid #475569;
  background: #1e293b;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.test-nav-num:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: #334155;
}
.test-nav-num.answered {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #22c55e !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
.test-nav-num.review {
  background: #9333ea !important;
  color: #ffffff !important;
  border-color: #a855f7 !important;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}
.test-nav-num.current {
  outline: 3px solid #38bdf8 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6) !important;
}

.timer-pulse {
  animation: timerPulse 1.5s infinite ease-in-out;
}
@keyframes timerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.08); }
}

