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

:root {
  --bg: #0f0a1e;
  --bg2: #16102b;
  --card: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
  --accent: #e040fb;
  --accent2: #f48fb1;
  --cyan: #80deea;
  --text: #f3e5f5;
  --muted: #9e8fb5;
  --selected: rgba(224,64,251,0.2);
  --selected-border: #e040fb;
}

html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,64,251,0.07) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* ── LANDSCAPE OVERLAY ─────────────────── */
.landscape-msg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 16px;
}

.landscape-msg .lm-icon { font-size: 3rem; }
.landscape-msg h2 { font-size: 1.3rem; font-weight: 800; }
.landscape-msg p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 900px) and (orientation: landscape) {
  .landscape-msg { display: flex; }
  body { overflow: hidden; }
}

/* ── PAGE WRAPPER ──────────────────────── */
.page { position: relative; z-index: 1; }

/* ── NAV ───────────────────────────────── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,10,30,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-lang a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-lang a:hover { color: var(--text); }

/* ── HERO ───────────────────────────────── */
.hero-section {
  text-align: center;
  padding: 72px 24px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(224,64,251,0.12);
  border: 1px solid rgba(224,64,251,0.25);
  color: var(--accent2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 20%, var(--accent2) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 36px;
}

.btn-start {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #ab47bc);
  color: #fff;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 0 36px rgba(224,64,251,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 0 52px rgba(224,64,251,0.5); }

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-meta-item span:first-child { font-size: 1rem; }

/* ── HOW IT WORKS ───────────────────────── */
.how-section {
  padding: 64px 24px;
  background: var(--bg2);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 48px;
}

.how-inner { max-width: 900px; margin: 0 auto; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
}

.how-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(224,64,251,0.12);
  border: 1px solid rgba(224,64,251,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent2);
  margin: 0 auto 18px;
}

.how-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.how-step p { color: var(--muted); font-size: 0.85rem; line-height: 1.65; }

/* ── ABOUT QUIZ ──────────────────────────── */
.about-quiz-section {
  padding: 64px 24px;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.dimensions-list { display: flex; flex-direction: column; gap: 12px; }

.dim-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
}

.dim-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dim-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.dim-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

.about-text-col p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.result-count-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(224,64,251,0.15), rgba(244,143,177,0.08));
  border: 1px solid rgba(224,64,251,0.2);
  border-radius: 18px;
  padding: 24px 32px;
  margin-top: 8px;
  text-align: center;
}

.result-count-num {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.result-count-label { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* ── TYPES PREVIEW ──────────────────────── */
.types-section {
  padding: 64px 24px;
  background: var(--bg2);
}

.types-inner { max-width: 900px; margin: 0 auto; }

.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.type-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.type-card:hover {
  border-color: rgba(224,64,251,0.3);
  transform: translateY(-3px);
}

.type-emoji { font-size: 2rem; margin-bottom: 10px; display: block; }
.type-name { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.type-hint { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.type-more { font-size: 0.78rem; color: var(--muted); font-style: italic; }

/* ── QUIZ SECTION ───────────────────────── */
#quiz { padding: 60px 24px; }

.quiz-container {
  max-width: 680px;
  margin: 0 auto;
}

.progress-wrap { margin-bottom: 28px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width 0.4s ease;
}

.question-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.question-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.question-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 24px;
}

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

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: left;
  width: 100%;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
}

.option:hover {
  border-color: rgba(224,64,251,0.4);
  background: rgba(224,64,251,0.06);
  transform: translateX(3px);
}

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

.option-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent2);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
}

.option.selected .option-letter {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 12px;
}

.btn-next {
  background: linear-gradient(135deg, var(--accent), #ab47bc);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 0 22px rgba(224,64,251,0.3);
}

.btn-next:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }
.btn-next:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(224,64,251,0.5); }

.btn-back {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-back:hover { border-color: var(--accent2); color: var(--text); }

/* ── RESULT ─────────────────────────────── */
.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  animation: fadeUp 0.5s ease;
}

.result-header {
  background: linear-gradient(135deg, rgba(224,64,251,0.18), rgba(244,143,177,0.08));
  border-bottom: 1px solid var(--border);
  padding: 40px 36px 32px;
  text-align: center;
}

.result-emoji { font-size: 3.5rem; margin-bottom: 16px; display: block; }

.result-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.result-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-tagline { color: var(--muted); font-size: 0.95rem; font-style: italic; }

.result-body { padding: 36px; }

.result-description {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 28px;
}
.result-description p { margin-bottom: 16px; }
.result-description p:last-child { margin-bottom: 0; }

.result-strengths {
  background: rgba(224,64,251,0.06);
  border: 1px solid rgba(224,64,251,0.15);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.result-strengths h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.strengths-list { display: flex; flex-wrap: wrap; gap: 8px; }

.strength-tag {
  background: rgba(224,64,251,0.12);
  border: 1px solid rgba(224,64,251,0.2);
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

.result-tip {
  background: rgba(128,222,234,0.06);
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.result-tip strong { color: var(--cyan); }

/* ── AD SLOT ─────────────────────────────── */
.ad-slot {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 24px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── SHARE BUTTONS ───────────────────────── */
.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-share-fb {
  background: #1877f2;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-share-fb:hover { background: #1565c0; transform: translateY(-1px); }

.btn-share-copy {
  background: linear-gradient(135deg, var(--accent), #ab47bc);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 18px rgba(224,64,251,0.25);
}
.btn-share-copy:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(224,64,251,0.4); }

.btn-retry {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-retry:hover { border-color: var(--accent2); }

/* ── FOOTER ─────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent2); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── INNER PAGES ─────────────────────────── */
.inner-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.inner-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.inner-page .page-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.inner-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--accent2);
}

.inner-page p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.inner-page a { color: var(--accent2); }

.inner-page ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.inner-page ul li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
}

.inner-page ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent2);
}

/* ── CONTACT FORM ────────────────────────── */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin-top: 32px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent2); }

.form-group textarea { height: 120px; resize: vertical; }

.btn-send {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #ab47bc);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(224,64,251,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(224,64,251,0.5); }

/* ── TABLET ──────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 16px 24px; }

  .how-steps { grid-template-columns: 1fr; gap: 16px; }

  .about-inner { grid-template-columns: 1fr; gap: 36px; }

  .types-grid { grid-template-columns: repeat(2, 1fr); }

  .result-actions { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE ──────────────────────────────── */
@media (max-width: 600px) {
  .site-nav { padding: 14px 18px; }

  .hero-section { padding: 48px 18px 44px; }

  .how-section,
  .about-quiz-section,
  .types-section,
  #quiz { padding: 48px 18px; }

  .question-card { padding: 22px 18px; }
  .question-text { font-size: 1.05rem; }

  .types-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .type-card { padding: 16px 12px; }
  .type-emoji { font-size: 1.6rem; }

  .result-header { padding: 28px 20px; }
  .result-body { padding: 22px 18px; }

  .result-actions { grid-template-columns: 1fr; }
  .btn-retry { grid-column: 1; }

  .hero-meta { gap: 16px; }

  .contact-form { padding: 24px 18px; }
}
