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

  :root {
    --black: #0F0F0F;
    --white: #FAFAF8;
    --surface: #F4F3EF;
    --border: #E2E0D8;
    --muted: #8A8880;
    --accent: #0F0F0F;
    --blue: #005dc9;
    --radius: 12px;
    --radius-sm: 8px;
  }

  html { font-size: 16px; }

  body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--white);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* NAV */
  nav {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
  }
  .nav-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: #005dc9;
    text-decoration: none;
  }
  .nav-tag {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* MAIN */
  main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
  }

  .container {
    width: 100%;
    max-width: 560px;
  }

  /* INTRO */
  .intro { margin-bottom: 3rem; }
  .intro-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
  }
  .intro h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #005dc9;
    margin-bottom: 1rem;
  }
  .intro p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
  }
  .intro-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }
  .stat-item { display: flex; flex-direction: column; gap: 2px; }
  .stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--black);
  }
  .stat-label { font-size: 0.75rem; color: var(--muted); }

  /* PROGRESS */
  .progress-wrap { margin-bottom: 2rem; }
  .progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
  }
  .progress-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
  .progress-count { font-size: 0.75rem; color: var(--muted); }
  .progress-track {
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: var(--black);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* QUESTION */
  .question-block { margin-bottom: 2rem; animation: slideIn 0.3s ease; }
  @keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .q-number {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
  }
  .q-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    line-height: 1.35;
    color: #005dc9;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
  }
  .q-sub {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  /* OPTIONS */
  .options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 2rem; }
  .option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--white);
    transition: border-color 0.15s, background 0.15s;
    text-align: left;
    width: 100%;
  }
  .option:hover { border-color: var(--black); background: var(--surface); }
  .option.selected { border-color: var(--black); border-width: 1.5px; background: var(--surface); }
  .opt-letter {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    min-width: 16px;
    margin-top: 2px;
    letter-spacing: 0.04em;
  }
  .option.selected .opt-letter { color: var(--black); }
  .opt-text { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
  .option.selected .opt-text { color: var(--black); }

  /* NAV BUTTONS */
  .btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .btn {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--black);
  }
  .btn:hover:not(:disabled) { background: var(--surface); border-color: var(--black); }
  .btn:disabled { opacity: 0.3; cursor: not-allowed; }
  .btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
  }
  .btn-primary:hover:not(:disabled) { opacity: 0.82; background: var(--blue); }
  .btn-ghost { border-color: transparent; color: var(--muted); padding-left: 0; }
  .btn-ghost:hover:not(:disabled) { background: transparent; color: var(--blue); border-color: transparent; }

  /* RESULT */
  .result { animation: slideIn 0.4s ease; }
  .result-header { margin-bottom: 2rem; }
  .result-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
  }
  .result-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    line-height: 1.2;
    color: #005dc9;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
  }
  .result-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
  }

  /* PYRAMID */
  .pyramid-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.75rem 0;
  }
  .pyramid-row {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    transition: background 0.15s;
  }
  .pyramid-row:last-child { border-bottom: none; }
  .pyramid-row.reached { background: var(--surface); }
  .pyramid-row.stuck {
    background: var(--surface);
    border-left: 2.5px solid var(--black);
  }
  .pyr-num {
    font-size: 0.7rem;
    color: var(--muted);
    min-width: 22px;
    font-weight: 500;
  }
  .pyr-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    flex: 1;
  }
  .pyramid-row.reached .pyr-name,
  .pyramid-row.stuck .pyr-name { color: var(--black); }
  .pyr-tag { font-size: 0.75rem; color: var(--muted); }
  .pyr-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--black);
    color: var(--white);
    white-space: nowrap;
  }

  /* FIX BOX */
  .fix-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
  }
  .fix-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
  }
  .fix-item {
    display: flex;
    gap: 10px;
    margin-bottom: 0.875rem;
    align-items: flex-start;
  }
  .fix-item:last-child { margin-bottom: 0; }
  .fix-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--black);
    margin-top: 7px;
    flex-shrink: 0;
  }
  .fix-text { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

  /* CTA BOX */
  .cta-box {
    background: var(--black);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .cta-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250,250,248,0.5);
    margin-bottom: 0.75rem;
  }
  .cta-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }
  .cta-desc {
    font-size: 0.875rem;
    color: rgba(250,250,248,0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  .cta-form { display: flex; flex-direction: column; gap: 10px; }
  .cta-input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(250,250,248,0.15);
    background: rgba(250,250,248,0.08);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    transition: border-color 0.15s;
  }
  .cta-input::placeholder { color: rgba(250,250,248,0.35); }
  .cta-input:focus { border-color: rgba(250,250,248,0.4); }
  .cta-btn {
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--black);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    width: 100%;
  }
  .cta-btn:hover { opacity: 0.88; }
  .cta-note {
    font-size: 0.72rem;
    color: rgba(250,250,248,0.35);
    margin-top: 0.5rem;
  }

  /* RESTART */
  .restart-row { text-align: center; padding-top: 0.5rem; }
  .restart-btn {
    background: transparent;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .restart-btn:hover { color: var(--black); }

  /* MODAL */
  .modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.85);
    display: none; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
  }
  .modal-content {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    position: relative;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
  }
  .modal-close {
    position: absolute; top: 15px; right: 15px;
    background: transparent; border: none;
    font-size: 1.8rem; line-height: 1; cursor: pointer;
    color: var(--muted); padding: 5px 10px; border-radius: 50%;
  }
  .modal-close:hover { color: var(--black); background: var(--surface); }
  .modal-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem; color: var(--black); margin-bottom: 0.5rem; line-height: 1.2;
  }
  .modal-desc {
    font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6;
  }

  /* FOOTER */
  footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .footer-left {
    font-size: 0.8rem;
    color: var(--muted);
  }
  .footer-left a { color: var(--muted); text-decoration: none; }
  .footer-left a:hover { color: var(--black); }
  .footer-right { font-size: 0.8rem; color: var(--muted); }

  /* RESPONSIVE */
  @media (max-width: 480px) {
    nav { padding: 1rem 1.25rem; }
    main { padding: 2rem 1.25rem 3rem; }
    .intro h1 { font-size: 1.75rem; }
    .q-text { font-size: 1.2rem; }
    .result-title { font-size: 1.5rem; }
    footer { padding: 1.25rem; }
  }