/* ═══════════════════════════════════════════════════════════
   CG Technologies – IT Risk Calculator
   Design: Dark navy / blue / orange – professional IT security
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --navy:      #1a2744;
  --navy-dark: #0f172a;
  --navy-mid:  #1e293b;
  --blue:      #2563eb;
  --blue-light:#3b82f6;
  --blue-pale: #dbeafe;
  --orange:    #f97316;
  --orange-d:  #ea580c;
  --green:     #16a34a;
  --red:       #dc2626;
  --yellow:    #ca8a04;
  --text:      #1e293b;
  --text-muted:#64748b;
  --border:    #e2e8f0;
  --bg:        #f8fafc;
  --white:     #ffffff;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { text-decoration: none; display: flex; align-items: center; gap: 0; }
.logo-cg   { color: var(--orange); font-weight: 800; font-size: 1.35rem; letter-spacing: -.5px; }
.logo-tech { color: #ffffff;       font-weight: 600; font-size: 1.35rem; letter-spacing: -.5px; }
.header-tagline {
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.container.center { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 128px); }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.step { display: none; }
.step.active { display: block; }

/* ── INTRO ───────────────────────────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 40px; }
.hero-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--orange);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  border: 1px solid rgba(249,115,22,.3);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}
.hero-features {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.feature-pill {
  background: var(--navy);
  color: #e2e8f0;
  font-size: .8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
}

.intro-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card-title { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card-desc  { color: var(--text-muted); margin-bottom: 28px; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-full { grid-column: 1 / -1; }
label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.required { color: var(--orange); }

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
input::placeholder { color: #cbd5e1; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover:not(:disabled) { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.3); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: var(--orange-d); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(249,115,22,.35); }

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: #15803d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,.3); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost-sm {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: .85rem;
  padding: 8px 18px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 500;
}
.btn-ghost-sm:hover { color: var(--blue); border-color: var(--blue); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-size: .9rem;
  padding: 10px 22px;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-arrow { font-size: 1.1em; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.progress-header {
  margin-bottom: 32px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.section-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
}
.progress-count { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.progress-bar-outer {
  height: 8px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 100px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.section-dots {
  display: flex;
  gap: 6px;
}
.sdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: background .3s;
}
.sdot.done { background: var(--blue); }
.sdot.active { background: var(--orange); }

/* ── Question card ───────────────────────────────────────────────────────── */
.question-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeSlide .3s ease;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.control-badge {
  display: inline-block;
  background: var(--navy);
  color: #94a3b8;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.question-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 28px;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all .18s;
  position: relative;
}
.option-btn:hover { border-color: var(--blue); background: #f0f7ff; }
.option-btn.selected {
  border-color: var(--blue);
  background: var(--blue-pale);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.option-score {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all .18s;
}
.option-btn.selected .option-score {
  background: var(--blue);
  color: var(--white);
}
.option-label { font-size: .95rem; color: var(--text); line-height: 1.4; font-weight: 400; }
.option-btn.selected .option-label { font-weight: 500; color: var(--navy); }

.nav-row { display: flex; justify-content: space-between; align-items: center; }

/* ── Analyzing ───────────────────────────────────────────────────────────── */
.analyzing-wrap { text-align: center; max-width: 480px; }
.spinner-ring {
  width: 72px; height: 72px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.analyzing-sub   { color: var(--text-muted); font-size: .95rem; margin-bottom: 32px; }
.analyzing-steps { display: flex; flex-direction: column; gap: 10px; }
.astep {
  padding: 12px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: #94a3b8;
  transition: all .4s;
  text-align: left;
}
.astep.astep-active {
  border-color: var(--blue);
  color: var(--navy);
  font-weight: 600;
  background: #f0f7ff;
}
.astep.astep-done {
  border-color: var(--green);
  color: var(--green);
  font-weight: 500;
  background: #f0fdf4;
}
.astep.astep-done::before { content: '✓ '; }

.analyze-progress-wrap {
  margin-top: 28px;
  width: 100%;
}
.analyze-progress-bar-outer {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.analyze-progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #6366f1);
  border-radius: 99px;
  transition: width 1s linear;
}
.analyze-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Results ─────────────────────────────────────────────────────────────── */
.results-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.gauge-wrap { position: relative; flex-shrink: 0; }
.gauge-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.gauge-pct {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.gauge-level {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}
.results-meta { flex: 1; min-width: 220px; }
.results-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}
.results-intro { color: var(--text-muted); font-size: .95rem; }

/* ── Section score bars ──────────────────────────────────────────────────── */
.scores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.score-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.score-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.score-section-name { font-size: .82rem; font-weight: 600; color: var(--navy); }
.score-pct { font-size: .82rem; font-weight: 700; }
.score-bar-outer { height: 7px; background: #e2e8f0; border-radius: 100px; overflow: hidden; }
.score-bar-inner  { height: 100%; border-radius: 100px; transition: width 1s cubic-bezier(.4,0,.2,1); }

/* ── Executive Summary ───────────────────────────────────────────────────── */
.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.summary-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.summary-icon {
  width: 42px; height: 42px;
  background: var(--navy);
  color: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.summary-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.exec-summary-text {
  font-size: .96rem;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
}

/* ── Unlock card ─────────────────────────────────────────────────────────── */
.unlock-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.unlock-left { display: flex; align-items: flex-start; gap: 18px; }
.unlock-icon { font-size: 2.2rem; flex-shrink: 0; }
.unlock-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.unlock-desc  { font-size: .87rem; color: #94a3b8; line-height: 1.5; max-width: 420px; }

/* ── Lead form ───────────────────────────────────────────────────────────── */
.lead-form-wrap { margin-bottom: 28px; }
.lead-form-card {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.lead-form-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.lead-form-sub   { color: var(--text-muted); margin-bottom: 24px; font-size: .9rem; }
.privacy-note {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue);
}
.form-error {
  color: var(--red);
  font-size: .87rem;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
}

/* ── Download card ───────────────────────────────────────────────────────── */
.download-wrap { margin-bottom: 28px; }
.download-card {
  background: #f0fdf4;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.download-icon { font-size: 2.4rem; flex-shrink: 0; }
.download-title { font-size: 1.1rem; font-weight: 700; color: #15803d; margin-bottom: 4px; }
.download-desc  { font-size: .88rem; color: #166534; }

.cta-strip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-strip p { font-size: .9rem; color: var(--text-muted); }
.cta-strip strong { color: var(--navy); }

.restart-row { text-align: center; margin-top: 16px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  padding: 28px 24px;
  text-align: center;
}
.footer-inner p {
  color: #64748b;
  font-size: .8rem;
  margin-bottom: 6px;
}
.footer-inner a { color: #94a3b8; text-decoration: underline; }
.footer-inner a:hover { color: var(--orange); }
.footer-disclaimer { font-style: italic; max-width: 640px; margin: 0 auto; }

/* ── Risk level colors ───────────────────────────────────────────────────── */
.risk-critical { color: #dc2626; }
.risk-high     { color: #ea580c; }
.risk-medium   { color: #ca8a04; }
.risk-low      { color: #16a34a; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 28px 16px 60px; }
  .intro-card { padding: 24px; }
  .question-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .scores-grid { grid-template-columns: 1fr; }
  .results-header { flex-direction: column; align-items: center; }
  .unlock-card { flex-direction: column; }
  .download-card { flex-direction: column; }
  .cta-strip { flex-direction: column; text-align: center; }
  .lead-form-card { padding: 24px; }
  .summary-card { padding: 24px; }
  .hero-title { font-size: 1.75rem; }
}
