/* ----------------------------------------------------
   NEON AURORA COSMIC DESIGN SYSTEM
   AI Role Roadmap Generator
------------------------------------------------------- */

:root {
  color-scheme: dark;
  
  /* Cosmic Palette */
  --bg: #040613;
  --bg-gradient: radial-gradient(circle at 10% 20%, rgba(4, 6, 19, 1) 0%, rgba(9, 13, 35, 1) 50%, rgba(4, 5, 12, 1) 100%);
  --panel: rgba(11, 15, 30, 0.62);
  --panel-hover: rgba(16, 22, 44, 0.75);
  --line: rgba(55, 68, 110, 0.35);
  --line-active: rgba(0, 242, 254, 0.5);
  
  /* Text Hues */
  --text: #f4f7fc;
  --muted: #a6b5d0;
  --muted-dark: #6e7d9b;
  
  /* Vibrancies (HSL Tailored) */
  --cyan: hsl(182, 100%, 48%);
  --purple: hsl(268, 100%, 66%);
  --amber: hsl(38, 98%, 52%);
  --danger: hsl(346, 95%, 58%);
  --success: hsl(145, 80%, 45%);
  
  /* Glows */
  --cyan-glow: rgba(0, 242, 254, 0.18);
  --purple-glow: rgba(170, 80, 254, 0.18);
  --amber-glow: rgba(250, 160, 10, 0.18);
  
  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Motion Constants */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------
   BASE STYLES & RESET
------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 80% 10%, var(--purple-glow) 0%, transparent 45rem),
    radial-gradient(circle at 10% 80%, var(--cyan-glow) 0%, transparent 45rem),
    var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}

/* ----------------------------------------------------
   LAYOUT SHELL
------------------------------------------------------- */

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.shell.wide {
  width: min(1280px, calc(100% - 40px));
}

/* ----------------------------------------------------
   GLASSMORPHISM CORE PANEL
------------------------------------------------------- */

.glass-panel {
  background: var(--panel);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(55, 68, 110, 0.55);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

/* ----------------------------------------------------
   TYPOGRAPHY & HERO
------------------------------------------------------- */

.hero {
  max-width: 860px;
  margin-bottom: 48px;
  animation: fadeIn 0.8s ease-out;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.45);
  margin-bottom: 12px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 30%, var(--muted) 70%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  max-width: 820px;
}

/* ----------------------------------------------------
   INTERACTIVE DASHBOARD FORM
------------------------------------------------------- */

.panel {
  padding: 36px;
  margin-bottom: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 32px;
  align-items: center;
}

label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

select {
  width: 100%;
  min-height: 52px;
  background: rgba(4, 6, 19, 0.8);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0 16px;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a6b5d0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Tactile Range Slider Styling */
.range-label {
  justify-content: space-between;
}

.range-label span {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.range-label strong {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: rgba(4, 6, 19, 0.8);
  border: 1px solid var(--line);
  outline: none;
  cursor: pointer;
  margin-top: 14px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 6px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px var(--cyan), 0 0 2px rgba(0,0,0,0.5);
  margin-top: -7px;
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px var(--cyan);
  cursor: pointer;
  transition: transform 0.1s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.18);
}

/* Form Actions Area */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

/* ----------------------------------------------------
   REAL-TIME DIFFICULTY PREVIEW WIDGET
------------------------------------------------------- */

.live-preview {
  flex: 1;
  background: rgba(4, 6, 19, 0.45);
  border: 1px solid rgba(55, 68, 110, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.preview-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.preview-meter-container {
  width: 100%;
  height: 6px;
  background: rgba(4, 6, 19, 0.8);
  border-radius: 4px;
  overflow: hidden;
}

.preview-meter-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.preview-subtext {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-dark);
}

/* Glow Buttons */
.glow-button {
  min-height: 56px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan) 0%, #0099ff 100%);
  color: #020813;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0 32px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
  transition: var(--transition);
  white-space: nowrap;
}

.glow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.45);
  filter: brightness(1.08);
}

.glow-button:active {
  transform: translateY(0);
}

/* ----------------------------------------------------
   EMPTY STATE (READY SCREEN)
------------------------------------------------------- */

.empty-state {
  padding: 80px 40px;
  display: grid;
  place-items: center;
  text-align: center;
  border-style: dashed;
}

.empty-state div {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pulse-badge {
  background: var(--cyan-glow);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 6px 16px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

.empty-state strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

/* ----------------------------------------------------
   RESULTS VIEW LAYOUT
------------------------------------------------------- */

.result {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.back-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

.back-link:hover {
  color: var(--cyan);
  transform: translateX(-4px);
}

.glow-button-secondary {
  min-height: 48px;
  border: 1px solid rgba(0, 242, 254, 0.4);
  background: var(--cyan-glow);
  color: var(--cyan);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0 24px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
  transition: var(--transition);
}

.glow-button-secondary:hover {
  background: rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* Result Hero Grid */
.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  margin-bottom: 32px;
}

.result-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: #ffffff;
}

/* Interactive Difficulty Card */
.score-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(100% 100% at 50% 0%, var(--purple-glow) 0%, transparent 100%), var(--panel);
  border-color: rgba(170, 80, 254, 0.35);
}

.score-card span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.score-card strong {
  font-family: var(--font-display);
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 0 25px rgba(250, 160, 10, 0.35);
  margin-bottom: 8px;
}

.score-card small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Metadata Grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.meta-grid > div {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-grid span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-dark);
  letter-spacing: 0.05em;
}

.meta-grid strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

/* ----------------------------------------------------
   TIMELINE MONTH TIMELINES
------------------------------------------------------- */

.timeline {
  display: grid;
  gap: 20px;
  position: relative;
  margin-bottom: 60px;
}

/* Glowing connector track line */
.timeline::before {
  content: "";
  position: absolute;
  left: 56px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), var(--cyan));
  opacity: 0.35;
  z-index: 0;
}

.month-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 32px;
  padding: 32px;
  z-index: 1;
  position: relative;
  background: radial-gradient(circle at top left, var(--cyan-glow), transparent 22rem), var(--panel);
}

.month-card:nth-child(even) {
  background: radial-gradient(circle at top left, var(--purple-glow), transparent 22rem), var(--panel);
  border-color: rgba(170, 80, 254, 0.25);
}

/* Month Node Indicator */
.month-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(4, 6, 19, 0.8);
  border: 1px solid var(--line);
  height: 48px;
  border-radius: 8px;
  padding-top: 10px;
  letter-spacing: 0.05em;
}

.month-card:nth-child(even) .month-index {
  color: var(--purple);
  text-shadow: 0 0 10px rgba(170, 80, 254, 0.2);
}

/* Content Area inside Month Card */
.month-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #ffffff;
}

.month-card ul {
  display: grid;
  gap: 12px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

/* Styled practice tasks */
.month-card ul li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 1.02rem;
}

.month-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--cyan-glow);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.month-card:nth-child(even) ul li::before {
  color: var(--purple);
  background: var(--purple-glow);
}

/* Focus instructions */
.month-card h3 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-dark);
  letter-spacing: 0.08em;
  margin: 24px 0 12px 0;
  border-bottom: 1px solid rgba(55, 68, 110, 0.15);
  padding-bottom: 6px;
}

.instruction-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding-left: 0;
}

.instruction-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.instruction-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.month-card:nth-child(even) .instruction-list li::before {
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

/* Clickable Enriched Link Badges (8 links total!) */
.reference-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.reference-list a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(4, 6, 19, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  transition: var(--transition);
}

.reference-list a:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 242, 254, 0.12);
}

.month-card:nth-child(even) .reference-list a:hover {
  background: var(--purple-glow);
  border-color: var(--purple);
  box-shadow: 0 6px 15px rgba(170, 80, 254, 0.12);
}

/* ----------------------------------------------------
   WALL OF FAME & SPONSORS
------------------------------------------------------- */

.sponsors-section {
  padding: 44px;
  margin-top: 80px;
}

.sponsors-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px auto;
}

.sponsors-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.sponsor-category h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-dark);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.sponsor-list {
  background: rgba(4, 6, 19, 0.6);
  border: 1px dashed var(--line);
  border-radius: 12px;
  min-height: 100px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sponsor-logo-placeholder {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted-dark);
}

.pioneers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pioneer-tag {
  background: rgba(4, 6, 19, 0.5);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.pioneer-tag:hover {
  border-color: var(--cyan);
  background: var(--cyan-glow);
  transform: translateY(-2px);
}

/* Patreon CTA Bar */
.patreon-cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(circle at top left, var(--purple-glow), transparent), rgba(4, 6, 19, 0.6);
  border: 1px solid rgba(170, 80, 254, 0.25);
  border-radius: 12px;
  padding: 20px 30px;
  gap: 20px;
}

.patreon-cta-bar span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

.patreon-button {
  background: #f96854; /* Patreon Red-Orange */
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(249, 104, 84, 0.35);
  white-space: nowrap;
}

.patreon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 104, 84, 0.55);
  filter: brightness(1.08);
}

/* ----------------------------------------------------
   RESPONSIVENESS DEGRADATIONS
------------------------------------------------------- */

@media (max-width: 980px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  
  .glow-button {
    width: 100%;
  }

  .result-hero {
    grid-template-columns: 1fr;
  }
  
  .score-card {
    height: auto;
    padding: 30px;
  }
  
  .meta-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sponsors-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .patreon-cta-bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 40px 0;
  }

  .month-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .timeline::before {
    left: 20px;
    display: none; /* Hide timeline connector on small viewports for neat spacing */
  }
  
  .month-index {
    width: 80px;
    height: 38px;
    font-size: 0.85rem;
    padding-top: 6px;
  }

  .reference-list {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------
   KEYFRAMES KEYFRAMES
------------------------------------------------------- */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}
