:root {
    --background: #F5F7FA;
    --surface: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border: rgba(15,23,42,0.08);

    --primary: #0EA5E9;
    --primary-light: #E0F2FE;
    --primary-pale: #F0F9FF;

    --accent-1: #6366F1;
    --accent-1-light: #E0E7FF;
    --accent-1-pale: #EEF2FF;

    --accent-2: #F97316;
    --accent-2-light: #FFEDD5;
    --accent-2-pale: #FFF7ED;

    --accent-3: #10B981;
    --accent-3-light: #D1FAE5;
    --accent-3-pale: #ECFDF5;

    --radius: 16px;
    --radius-sm: 10px;
}

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.7;
  }

  /* NAV */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 2rem;
    overflow-x: auto;
  }
  .nav-logo {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--primary);
    margin-right: 2rem;
    white-space: nowrap;
    padding: 1rem 0;
    text-decoration: none;
  }
  .nav-btn {
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 1.1rem 1.2rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
  }
  .nav-btn:hover { color: var(--text-primary); }
  .nav-btn.active { color: var(--text-primary); border-bottom-color: var(--primary); }

  /* PAGES */
  .page { display: none; }
  .page.active { display: block; }

  /* SPLASH */
  .splash-hero {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    position: relative;
    overflow: hidden;
  }
  .splash-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.5;
  }
  .splash-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 260px; height: 260px;
    background: var(--accent-1-light);
    border-radius: 50%;
    opacity: 0.4;
  }
  .splash-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative; z-index: 1;
  }
  .splash-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.0;
    color: var(--text-primary);
    position: relative; z-index: 1;
  }
  .splash-hero h1 span { color: var(--primary); }
  .splash-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 1.5rem auto 0;
    position: relative; z-index: 1;
  }
  .splash-tagline strong { color: var(--accent-1); }
  .splash-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.5rem;
    position: relative; z-index: 1;
  }
  .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-primary:hover { background: #a86c12; transform: translateY(-1px); }
  .btn-outline {
    background: none;
    color: var(--text-primary);
    border: 2px solid var(--border);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
  }
  .btn-outline:hover { border-color: var(--text-secondary); transform: translateY(-1px); }

  .splash-modules {
    background: var(--background);
    padding: 4rem 2rem;
  }
  .splash-modules h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
  }
  .modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  .module-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
  }
  .module-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
  .module-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
  }
  .module-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  .module-card p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }
  .module-card .card-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
  }
  .card-scam { border-top: 4px solid var(--accent-2); }
  .card-scam .card-arrow { color: var(--accent-2); }
  .card-password { border-top: 4px solid var(--accent-1); }
  .card-password .card-arrow { color: var(--accent-1); }
  .card-video { border-top: 4px solid var(--accent-3); }
  .card-video .card-arrow { color: var(--accent-3); }

  .splash-about {
    background: var(--text-primary);
    color: var(--background);
    padding: 4rem 2rem;
    text-align: center;
  }
  .splash-about h2 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  .splash-about p { max-width: 600px; margin: 0 auto 1.5rem; color: rgba(250,247,242,0.75); font-size: 1.05rem; }
  .about-name { color: var(--primary); font-weight: 700; }

  /* MODULE PAGES */
  .module-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
  }
  .module-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
  }
  .module-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
  }
  .tag-accent-2 { background: var(--accent-2-light); color: var(--accent-2); }
  .tag-accent-1 { background: var(--accent-1-light); color: var(--accent-1); }
  .tag-accent-3 { background: var(--accent-3-light); color: var(--accent-3); }
  .module-header h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }
  .module-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; }

  .section-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2rem;
    margin-bottom: 1.5rem;
  }
  .section-block h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  .section-block p { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.75rem; line-height: 1.75; }
  .section-block p:last-child { margin-bottom: 0; }
  .section-block ul { padding-left: 1.4rem; }
  .section-block li { font-size: 1.05rem; margin-bottom: 0.6rem; line-height: 1.65; }

  .tip-box {
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    font-size: 1rem;
  }
  .tip-accent-2 { background: var(--accent-2-pale); border-left: 4px solid var(--accent-2); }
  .tip-accent-1 { background: var(--accent-1-pale); border-left: 4px solid var(--accent-1); }
  .tip-accent-3 { background: var(--accent-3-pale); border-left: 4px solid var(--accent-3); }
  .tip-primary { background: var(--primary-pale); border-left: 4px solid var(--primary); }
  .tip-box strong { font-weight: 600; display: block; margin-bottom: 0.3rem; }

  .example-box {
    background: var(--background);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
  }

  .quiz-launcher {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
  }
  .quiz-launcher .big-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
  .quiz-launcher h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  .quiz-launcher p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1rem; }

  /* MODAL OVERLAY */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28,26,22,0.65);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
  }
  .modal-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    transition: background 0.15s;
  }
  .modal-close:hover { background: var(--border); }
  .modal-box h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
  }
  .modal-box .quiz-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 2rem; }
  .progress-bar-wrap {
    background: var(--background);
    border-radius: 999px;
    height: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
  }
  .progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.4s ease;
  }
  .q-counter { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; font-weight: 500; }
  .q-text { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.5; }
  .q-options { display: flex; flex-direction: column; gap: 0.75rem; }
  .q-option {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.5;
  }
  .q-option:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-pale); }
  .q-option.correct { border-color: var(--accent-1); background: var(--accent-1-pale); color: var(--accent-1); font-weight: 600; }
  .q-option.wrong { border-color: var(--accent-2); background: var(--accent-2-pale); color: var(--accent-2); font-weight: 600; }
  .q-option:disabled { cursor: default; }
  .q-feedback {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    display: none;
  }
  .q-feedback.show { display: block; }
  .q-feedback.correct { background: var(--accent-1-pale); color: var(--accent-1); }
  .q-feedback.wrong { background: var(--accent-2-pale); color: var(--accent-2); }
  .q-next {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: none;
    transition: background 0.15s;
  }
  .q-next.show { display: block; }
  .q-next:hover { background: #a86c12; }
  .quiz-results { text-align: center; }
  .score-circle {
    width: 120px; height: 120px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Fraunces', serif;
    border: 4px solid var(--primary);
  }
  .score-circle .score-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
  .score-circle .score-denom { font-size: 1rem; color: var(--text-secondary); }
  .quiz-results h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
  .quiz-results p { color: var(--text-secondary); margin-bottom: 1.5rem; }
  .retake-btn {
    background: none;
    border: 2px solid var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-right: 0.75rem;
    transition: background 0.15s;
  }
  .retake-btn:hover { background: var(--background); }

  /* SURVEY PAGE */
  .survey-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
  }
  .survey-page .module-header h1 { color: var(--text-primary); }
  .survey-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  .survey-section h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .survey-q { margin-bottom: 1.75rem; }
  .survey-q:last-child { margin-bottom: 0; }
  .survey-q label {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }
  .survey-q label .required { color: var(--accent-2); margin-left: 3px; }
  .star-row { display: flex; gap: 0.4rem; }
  .star-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #D3CEC4;
    transition: color 0.1s, transform 0.1s;
    padding: 0.1rem;
    line-height: 1;
  }
  .star-btn:hover, .star-btn.lit { color: var(--primary); transform: scale(1.15); }
  .likert-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .likert-btn {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    flex: 1; min-width: 60px; text-align: center;
  }
  .likert-btn.selected { background: var(--primary-pale); border-color: var(--primary); color: var(--primary); }
  .likert-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.4rem; }
  .checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    cursor: pointer;
  }
  .checkbox-label input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
  }
  .survey-textarea {
    width: 100%;
    min-height: 100px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    resize: vertical;
    background: var(--background);
    color: var(--text-primary);
    transition: border-color 0.15s;
  }
  .survey-textarea:focus { outline: none; border-color: var(--primary); }
  .survey-submit {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    background: var(--accent-1);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.15s, transform 0.15s;
  }
  .survey-submit:hover { background: #135f55; transform: translateY(-1px); }
  .survey-thanks {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
  }
  .survey-thanks .big-emoji { font-size: 4rem; display: block; margin-bottom: 1rem; }
  .survey-thanks h2 { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 900; margin-bottom: 1rem; }
  .survey-thanks p { color: var(--text-secondary); font-size: 1.1rem; max-width: 480px; margin: 0 auto; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #D3CEC4; border-radius: 4px; }

  @media (max-width: 600px) {
    nav { padding: 0 0.75rem; }
    .nav-btn { padding: 1rem 0.75rem; font-size: 0.9rem; }
    .splash-hero { min-height: 70vh; padding: 3rem 1.5rem; }
    .module-page, .survey-page { padding: 2rem 1.25rem 4rem; }
    .modal-box { padding: 1.75rem; }
    .likert-btn { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  }