/* ================================
   Athena Assessment - Styles
   Dark modern cybersecurity theme
   ================================ */

:root {
  --bg: #0A0A0A;
  --bg-2: #0A0A0A;
  --surface: #000000;
  --surface-2: #1d1d33;
  --border: #2a2a44;
  --text: #e9e9f5;
  --muted: #9a9ab5;
  --purple: #652DC1;
  --purple-2: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(99, 102, 241, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ===== Top bar ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 20, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 300px;
  height: auto;
  object-fit: contain;
}

.authena-brand-logo {
  width: 400px;
  height: auto;
  display: block;
  margin: 24px auto;
  object-fit: contain;
}

.authena-brand-logo {
  width: 520px;
  max-width: none;
  height: auto;
  display: block;

  margin-top: -20px;
  margin-bottom: -15px;

  margin-left: 140px;

  object-fit: contain;

  filter:
    drop-shadow(0 0 12px rgba(139, 92, 246, 0.45))
    drop-shadow(0 0 32px rgba(139, 92, 246, 0.25));
}

.authena-brand-logo:hover {
  transform: scale(1.03);
}


@media (max-width: 600px) {
  .authena-brand-logo {
    width: 280px;
    margin: 40px auto 50px;
  }
}

.authena-brand-logo {
  transition: transform .3s ease, filter .3s ease;
}



.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white;
  box-shadow: 0 0 20px var(--purple-glow);
  letter-spacing: 0.5px;
}

.brand-title { font-weight: 700; font-size: 15px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--purple-2);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

/* ===== Layout ===== */
.container {
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 20px 60px;
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--purple-2); }

h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin: 10px 0 10px;
}
h2 { font-size: 24px; margin: 0 0 8px; }
h3 { font-size: 16px; margin: 0 0 14px; color: var(--purple-2); letter-spacing: 0.3px; }

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 850px;
  margin-top: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  color: var(--purple-2);
  font-weight: 600;
}

/* ===== Hero ===== */
.hero { padding: 18px 4px; }
.hero-features {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.hero-features li {
  padding-left: 26px;
  position: relative;
  color: var(--text);
  font-size: 14px;
}
.hero-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  box-shadow: 0 0 12px var(--purple-glow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), #8319C4);
  color: white;
  box-shadow: 0 6px 20px var(--purple-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--purple-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

.actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; gap: 12px;
}
.center-actions { justify-content: center; flex-wrap: wrap; }

/* ===== Forms ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form-grid .full { grid-column: 1 / -1; }

input, select, textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* ===== Questions ===== */
.questions { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.question {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.question-text { font-weight: 600; margin-bottom: 12px; font-size: 15px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }

.option {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.option:hover { border-color: var(--purple); }
.option.selected {
  background: linear-gradient(135deg, var(--purple), #6366f1);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 14px var(--purple-glow);
}

/* ===== Progress ===== */
.progress-wrap { margin-bottom: 18px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted); margin-bottom: 6px;
}
.progress-bar {
  height: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), #6366f1);
  box-shadow: 0 0 12px var(--purple-glow);
  transition: width .3s ease;
}

/* ===== Spinner ===== */
.spinner {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid var(--surface-2);
  border-top-color: var(--purple);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Results ===== */
.results-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}

.overall-score { flex-shrink: 0; }
.score-ring {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--purple) 0deg, var(--surface) 0deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--purple-glow);
  transition: background 1s ease;
}
.score-ring-inner {
  width: 120px; height: 120px;
  background: var(--bg-2);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-value { font-size: 36px; font-weight: 800; color: white; }
.score-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.score-card { padding: 20px; margin-bottom: 0; }
.score-card-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.score-card-value { font-size: 32px; font-weight: 800; margin: 6px 0 10px; }

.bar { height: 6px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), #6366f1);
  width: 0;
  transition: width 1s ease;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.two-col .card { margin-bottom: 0; }

.result-list { padding-left: 22px; margin: 0; }
.result-list li { margin-bottom: 10px; line-height: 1.5; color: var(--text); }

.services { display: flex; flex-direction: column; gap: 10px; }
.service-pill {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.service-pill strong { color: var(--purple-2); display: block; margin-bottom: 4px; }
.service-pill span { color: var(--muted); font-size: 13px; }

.big-stat {
  font-size: 22px;
  font-weight: 700;
  color: var(--purple-2);
  margin: 0;
}

.cta { text-align: center; padding: 36px 28px; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  h1 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-features { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .results-header { flex-direction: column; align-items: flex-start; }
  .topbar { padding: 14px 18px; }
}

@media (max-width: 480px) {
  .score-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; }
  .actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
  .authena-brand-logo {
    width: 320px;
    margin: 25px auto 30px;
  }

  h1 {
    font-size: 44px;
  }
}

.consent-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.consent-box {
  background: #0b0b0f;
  border: 1px solid rgba(101, 45, 193, 0.5);
  border-radius: 18px;
  max-width: 650px;
  width: 100%;
  padding: 28px;
  color: white;
  box-shadow: 0 0 35px rgba(101, 45, 193, 0.35);
}

.consent-box h2 {
  margin-bottom: 16px;
  color: white;
}

.consent-box p {
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  margin: 18px 0;
}

.consent-check input {
  margin-top: 4px;
  accent-color: #652DC1;
}

#agreeBtn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #652DC1;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

#agreeBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===== Action Messages ===== */
.action-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.action-message.success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.action-message.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.action-message.info {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}