:root {
  --bg: #090b16;
  --bg-soft: #11152a;
  --panel: rgba(18, 22, 43, 0.78);
  --panel-2: rgba(255, 255, 255, 0.06);
  --text: #eff2ff;
  --muted: #b6bfdf;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #7c5cff;
  --accent-2: #2dd4bf;
  --accent-3: #ff6ec7;
  --shadow: 0 20px 60px rgba(0, 0, 0, .32);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.2), transparent 26%),
    radial-gradient(circle at top right, rgba(45,212,191,.16), transparent 22%),
    linear-gradient(180deg, #090b16 0%, #0e1324 55%, #0a0d19 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container {
  /* Increase max width and horizontal padding for desktop screens */
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}
.hidden { display: none !important; }

.bg-orb {
  position: fixed;
  width: 340px; height: 340px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .33;
  pointer-events: none;
  z-index: -1;
}
.orb-1 { top: 80px; left: -60px; background: var(--accent); }
.orb-2 { top: 220px; right: -80px; background: var(--accent-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(9, 11, 22, .58);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.logo span { color: var(--accent-2); }
nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-weight: 500;
}
nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: white;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(124, 92, 255, .25);
  transition: transform .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-small { padding: 11px 15px; border-radius: 14px; }
.btn-full { width: 100%; }

.hero {
  /* More vertical spacing for a grander feel on larger displays */
  padding: 80px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}
.badge, .section-kicker, .result-badge, .sidebar-label, .question-tag, .mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
}
.hero-copy h1 {
  /* Larger headline on desktop for improved impact */
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: .97;
  letter-spacing: -.06em;
  margin: 16px 0;
}
.hero-copy p {
  color: var(--muted);
  max-width: 680px;
  /* Slightly larger body text for readability on desktop */
  font-size: 1.15rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.hero-stats div {
  /* Give stats blocks a bit more width on desktop */
  min-width: 150px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.hero-stats strong { display: block; font-size: 1.25rem; }
.hero-stats span { color: var(--muted); font-size: .92rem; }

.hero-card {
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: min(380px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 34px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.phone-top {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin: 0 auto 18px;
}
.mini-card {
  background: linear-gradient(180deg, rgba(14,19,36,.98), rgba(18,22,43,.9));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
}
.mini-card h2 { margin: 14px 0 14px; font-size: 1.7rem; line-height: 1.1; }
.mini-card ul { margin: 18px 0 22px; padding-left: 18px; color: var(--muted); }
.mini-card li + li { margin-top: 10px; }
.mini-progress {
  height: 10px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
}
.mini-progress span {
  display: block;
  width: 68%; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.features, .faq, .seo-section {
  /* Increase section padding for better breathing room on desktop */
  padding: 60px 0;
}
.section-head { margin-bottom: 18px; }
.section-head h2, .seo-grid h2, .test-topbar h2 { 
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.04em;
  margin: 10px 0 0;
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Slightly larger gap between feature cards on desktop */
  gap: 24px;
}
.feature-card, .seo-card, .sidebar-card, .test-panel, .faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.feature-card {
  border-radius: 24px;
  padding: 24px;
}
.icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  font-size: 1.5rem;
}
.feature-card h3 { margin: 14px 0 10px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.test-section {
  /* More space above and below the test on desktop */
  padding: 60px 0;
}
.test-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.test-panel {
  border-radius: 28px;
  padding: 24px;
}
.test-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.question-counter {
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}
.progress-bar {
  margin: 18px 0 22px;
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  width: 5%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}
.quiz-card, .result-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.quiz-card h3 {
  margin: 14px 0 18px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.25;
}
.answers {
  display: grid;
  gap: 12px;
}
.answer-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.answer-btn:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.answer-btn.selected {
  border-color: rgba(45,212,191,.7);
  background: rgba(45,212,191,.12);
}
.quiz-actions { margin-top: 18px; display: flex; justify-content: flex-end; }

.sidebar-card {
  border-radius: 24px;
  padding: 22px;
  position: sticky;
  top: 92px;
}
.sidebar-card h3 { margin: 14px 0 14px; }
.sidebar-card ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.sidebar-cta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.sidebar-cta p { color: var(--muted); }

.result-card { text-align: center; }
.iq-circle {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  margin: 24px auto;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(124,92,255,.24));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 40px rgba(255,255,255,.06), 0 20px 40px rgba(124,92,255,.15);
}
.iq-circle span {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.06em;
}
.iq-circle small { color: var(--muted); font-size: .92rem; }
.result-card p { color: var(--muted); line-height: 1.7; max-width: 720px; margin: 0 auto; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.result-box {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.result-box strong { display: block; font-size: 1.05rem; }
.result-box span { color: var(--muted); font-size: .92rem; }
.result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.result-note { margin-top: 18px !important; font-size: .93rem; }

.seo-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  align-items: start;
}
.seo-grid p { color: var(--muted); line-height: 1.8; }
.seo-card {
  border-radius: 24px;
  padding: 24px;
}
.seo-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.9; }

.faq-list {
  display: grid;
  gap: 14px;
}
.faq-list details {
  border-radius: 22px;
  padding: 18px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { color: var(--muted); line-height: 1.8; margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 28px 0 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr;
  gap: 20px;
}
.site-footer p, .site-footer a { color: var(--muted); }
.site-footer h4 { margin: 0 0 10px; color: var(--text); }
.site-footer a { display: block; margin: 7px 0; }

.simple-page {
  padding: 54px 0 70px;
}
.simple-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.simple-card h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.05em;
}
.simple-card p, .simple-card li {
  color: var(--muted);
  line-height: 1.85;
}

@media (max-width: 960px) {
  nav { display: none; }
  .hero-grid,
  .test-wrap,
  .seo-grid,
  .footer-grid,
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .sidebar-card { position: static; }
}

@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .test-panel, .feature-card, .seo-card, .sidebar-card, .simple-card, .quiz-card, .result-card { padding: 18px; }
  .test-topbar { flex-direction: column; }
  .hero-stats { gap: 12px; }
  .hero-stats div { flex: 1 1 calc(50% - 12px); min-width: 0; }
  .result-grid { grid-template-columns: 1fr; }
  .question-counter { font-size: .92rem; }
}
