/* CreditWise — Rose Velvet & Neon Amethyst Design System */

:root {
  --bg-deep: #09050e;
  --bg-surface: #130a1c;
  --bg-elevated: #1c0f2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 42, 117, 0.4);
  --text-primary: #fff0f5;
  --text-secondary: #c4b5fd;
  --text-muted: #8b5cf6;
  --accent: #ff2a75;
  --accent-light: #ff6596;
  --accent-dim: rgba(255, 42, 117, 0.15);
  --accent-glow: rgba(255, 42, 117, 0.45);
  --violet: #a855f7;
  --violet-glow: rgba(168, 85, 247, 0.4);
  --rose: #fb7185;
  --danger: #ff4757;
  --danger-dim: rgba(255, 71, 87, 0.15);
  --warning: #ffa502;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 50px rgba(255, 42, 117, 0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient dynamic background orbs */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.55;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #9f1239 0%, transparent 70%);
  top: -220px;
  right: -120px;
}

.orb-2 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #581c87 0%, transparent 70%);
  bottom: -180px;
  left: -120px;
  animation-delay: -7s;
}

.orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #be123c 0%, transparent 70%);
  top: 45%;
  left: 45%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  animation-delay: -14s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 30%, black, transparent);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.06); }
  66% { transform: translate(-25px, 25px) scale(0.94); }
}

/* Velvet Glassmorphism */
.glass {
  background: rgba(19, 10, 28, 0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.glass:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(9, 5, 14, 0.75);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 42, 117, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-dim);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.95rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px var(--accent-glow);
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--rose));
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
  transition: opacity var(--transition);
}

.btn-glow:hover::after {
  opacity: 0.9;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  min-height: 90vh;
  padding: 8.5rem 3rem 4rem;
  max-width: 1320px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 42, 117, 0.35);
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-light);
  animation: pulse 2s ease-in-out infinite;
}

.badge-text {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-light);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.9rem, 5.5vw, 4.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}

.gradient-text {
  display: block;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--violet) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.hero-stat-top {
  display: flex;
  align-items: baseline;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.hero-stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-light);
}

.hero-stat-label {
  display: block;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.hero-stat-divider {
  width: 1px;
  height: 42px;
  background: var(--border);
}

/* Hero Preview Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-preview {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  animation: cardFloat 7s ease-in-out infinite;
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 42, 117, 0.35), transparent);
  pointer-events: none;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.card-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.status-pill.approved {
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid rgba(255, 42, 117, 0.35);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.confidence-tag {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.925rem;
}

.preview-row span {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent-light);
}

.preview-meter {
  margin-top: 1.5rem;
}

.preview-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.preview-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.preview-bar-fill {
  height: 100%;
  width: 94.2%;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--rose));
  border-radius: 999px;
  animation: barGrow 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes barGrow {
  from { width: 0%; }
  to { width: 94.2%; }
}

/* Sections */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 6.5rem 3rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.075rem;
}

/* Presets Bar */
.preset-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.preset-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.preset-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.preset-btn:hover {
  background: var(--accent-dim);
  border-color: rgba(255, 42, 117, 0.4);
  color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Predict Layout */
.predict-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.25rem;
  align-items: start;
}

.predict-form {
  padding: 2.5rem;
}

.form-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.75rem;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-num {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.progress-step.active .step-num {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-glow);
}

.progress-step.done .step-num {
  background: var(--accent);
  color: #ffffff;
}

.step-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.progress-step.active .step-label {
  color: var(--text-primary);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 1rem;
}

.form-step {
  display: none;
  animation: fadeIn 0.45s ease;
}

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

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tier-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.tier-good { background: var(--accent-dim); color: var(--accent-light); }
.tier-fair { background: rgba(255, 165, 2, 0.15); color: var(--warning); }
.tier-poor { background: var(--danger-dim); color: var(--danger); }

.range-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-wrap input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}

.field input[type="number"],
.field select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  padding-right: 2.75rem;
}

.field select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-nav {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
}

.spinner {
  width: 22px;
  height: 22px;
  animation: spin 0.8s linear infinite;
}

.spinner circle {
  stroke: currentColor;
  stroke-dasharray: 45;
  stroke-dashoffset: 12;
  stroke-linecap: round;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Result Panel */
.result-panel {
  padding: 2.25rem;
  position: sticky;
  top: 7rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.result-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.result-icon-glow {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 42, 117, 0.1);
  border: 1px solid rgba(255, 42, 117, 0.25);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--accent-light);
  box-shadow: 0 0 30px var(--accent-dim);
}

.result-icon-glow svg {
  width: 36px;
  height: 36px;
}

.result-placeholder h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.result-placeholder p {
  font-size: 0.925rem;
  color: var(--text-muted);
  max-width: 280px;
}

.result-badge {
  text-align: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.result-gauge {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
}

.result-badge.declined .gauge-fill {
  stroke: var(--danger);
}

.gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-pct {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.gauge-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.result-badge h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.result-badge.approved h3 { color: var(--accent-light); }
.result-badge.declined h3 { color: var(--danger); }

.result-badge p {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* Breakdown Analysis */
.result-breakdown {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.breakdown-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.breakdown-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.breakdown-info span { color: var(--text-secondary); }
.breakdown-info strong { color: var(--text-primary); }

.breakdown-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--rose));
  border-radius: 999px;
  transition: width 1s ease;
}

.result-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.metric-card {
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: all var(--transition);
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.metric-ring {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
}

.metric-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 3;
}

.ring-fill {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s ease;
}

.metric-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.metric-big {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-light);
  margin-bottom: 1.15rem;
}

.metric-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.metric-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Confusion Matrix Card */
.confusion-card {
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.confusion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.confusion-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.confusion-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  background: var(--accent-dim);
  color: var(--accent-light);
  border-radius: 999px;
}

.matrix-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.matrix-cell {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.matrix-cell:hover {
  transform: scale(1.02);
}

.cell-count {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cell-label {
  font-size: 0.825rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.matrix-cell.tn { background: rgba(255, 42, 117, 0.12); border-color: rgba(255, 42, 117, 0.35); }
.matrix-cell.tn .cell-count { color: var(--accent-light); }

.matrix-cell.tp { background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.35); }
.matrix-cell.tp .cell-count { color: var(--violet); }

.matrix-cell.fp { background: rgba(255, 165, 2, 0.1); border-color: rgba(255, 165, 2, 0.25); }
.matrix-cell.fp .cell-count { color: var(--warning); }

.matrix-cell.fn { background: rgba(255, 71, 87, 0.1); border-color: rgba(255, 71, 87, 0.25); }
.matrix-cell.fn .cell-count { color: var(--danger); }

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.step-card {
  padding: 2.25rem 1.75rem;
  transition: all var(--transition);
}

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

.step-index {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-light);
  opacity: 0.5;
  margin-bottom: 1.15rem;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-card code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--accent-light);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand .logo {
  font-size: 1.15rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7.5rem;
  }

  .hero-sub { margin: 0 auto 2.25rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }

  .predict-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; min-height: auto; }

  .metrics-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero, .section { padding-left: 1.5rem; padding-right: 1.5rem; }

  .form-grid { grid-template-columns: 1fr; }
  .metrics-grid, .steps-grid { grid-template-columns: 1fr; }
  .matrix-container { grid-template-columns: 1fr; }

  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-stat-divider { display: none; }

  .footer-inner { flex-direction: column; gap: 1.25rem; text-align: center; }
}
