/* ============================================================
   Rackspace Migration Readiness — Base Styles
   ============================================================ */

:root {
  --red:        #E4002B;
  --red-dark:   #b8001f;
  --dark:       #1a1a1a;
  --darker:     #111111;
  --surface:    #242424;
  --border:     #333333;
  --text:       #f0f0f0;
  --muted:      #999999;
  --white:      #ffffff;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--darker);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

img { max-width: 100%; }

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
.nav {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

.nav__logo-bar {
  width: 4px;
  height: 28px;
  background: var(--red);
  border-radius: 2px;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--white); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(160deg, var(--dark) 0%, var(--darker) 100%);
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(228, 0, 43, 0.15);
  color: var(--red);
  border: 1px solid rgba(228, 0, 43, 0.3);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}

.hero__title span { color: var(--red); }

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Stats bar ---- */
.stats {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

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

/* ---- Cards ---- */
.cards {
  padding: 80px 0;
}

.cards__header {
  text-align: center;
  margin-bottom: 56px;
}

.cards__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.cards__header p {
  color: var(--muted);
  font-size: 1rem;
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(228, 0, 43, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.card__body {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Steps ---- */
.steps {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step__num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.step__content h3 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step__content p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* ---- Assessment Form ---- */
.assessment-header {
  padding: 60px 0 40px;
  text-align: center;
}

.assessment-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.assessment-header p {
  color: var(--muted);
}

/* Progress bar */
.progress-wrap {
  padding: 0 0 40px;
}

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

.progress-bar__fill {
  height: 100%;
  background: var(--red);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.progress-labels span.active { color: var(--red); font-weight: 600; }

/* Form sections */
.form-section {
  display: none;
}

.form-section.active { display: block; }

.form-section__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.form-section__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.question__text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

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

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.option:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}

.option input[type="radio"] { accent-color: var(--red); width: 16px; height: 16px; }

.option__label { font-size: 0.9rem; color: var(--text); }

/* Form nav buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---- Results Page ---- */
.results-header {
  padding: 60px 0 40px;
  text-align: center;
}

.results-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.results-header p { color: var(--muted); }

.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 32px;
}

.score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.score-circle__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.score-circle__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.score-card__desc { color: var(--muted); font-size: 0.9rem; }

/* Category breakdown */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.category-card__label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.category-card__score {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

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

.mini-bar__fill {
  height: 100%;
  background: var(--red);
  border-radius: 100px;
}

/* Recommendations */
.recommendations { margin-bottom: 60px; }

.recommendations h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.rec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.rec-card__icon {
  font-size: 1.5rem;
  min-width: 40px;
}

.rec-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.rec-card__body { color: var(--muted); font-size: 0.875rem; }

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer a { color: var(--muted); }
.footer a:hover { color: var(--red); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mt-32 { margin-top: 32px; }

@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; }
  .nav__links  { display: none; }
  .hero { padding: 60px 0 48px; }
}
