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

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-bg: #0f1419;
  --card-bg: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.topbar {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding: 10px 0;
}

.topbar .container {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}

.topbar a {
  color: #61dafb;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

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

header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

header nav a {
  color: rgba(26, 26, 26, 0.75);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

header nav a:hover {
  color: #1a1a1a;
}

header nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--secondary-gradient);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.logo {
  font-size: 26px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.hero {
  position: relative;
  background: var(--primary-gradient);
  color: white;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

.hero h1 {
  position: relative;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
  position: relative;
  font-size: 22px;
  font-weight: 400;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero-badges {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.input-group {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.input-group input {
  width: 100%;
  padding: 20px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 18px;
  background: white;
  color: #1a1a1a;
  transition: var(--transition);
  outline: none;
}

.input-group input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.input-group input::placeholder {
  color: #999;
}

.input-group button {
  background: var(--secondary-gradient);
  color: white;
  margin-top: 0;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  white-space: nowrap;
}

.input-error {
  color: #ff4d4f;
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

button,
.btn {
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

button:before,
.btn:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover:before,
.btn:hover:before {
  width: 300px;
  height: 300px;
}

button {
  background: white;
  color: #667eea;
  margin-top: 12px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

button.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Dashboard secondary buttons */
.dashboard-container .btn-secondary {
  background: white;
  color: #4f46e5;
  border: 2px solid #4f46e5;
}

.dashboard-container .btn-secondary:hover:not(:disabled) {
  background: #4f46e5;
  color: white;
}

.dashboard-container .btn-secondary:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #d1d5db;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Report page secondary buttons */
.report-container .btn-secondary {
  background: white;
  color: #4f46e5;
  border: 2px solid #4f46e5;
}

.report-container .btn-secondary:hover:not(:disabled) {
  background: #4f46e5;
  color: white;
}

.report-container .btn-secondary:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #d1d5db;
  cursor: not-allowed;
  opacity: 0.6;
}

.report-container .btn-secondary-report {
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.report-container .btn-secondary-report:hover {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.5);
  color: #312e81;
}

.report-container .btn-secondary-report:disabled {
  background: rgba(79, 70, 229, 0.05);
  color: #4338ca;
  border-color: rgba(79, 70, 229, 0.2);
}

.modal-content button.btn-secondary {
  color: #5b21b6;
  border-color: rgba(91, 33, 182, 0.3);
  background: rgba(91, 33, 182, 0.08);
}

.modal-content button.btn-secondary:hover {
  background: rgba(91, 33, 182, 0.12);
  border-color: rgba(91, 33, 182, 0.5);
  color: #4c1d95;
}

.modal-authed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: #4338ca;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-auth-chip strong {
  color: #312e81;
  text-transform: none;
  letter-spacing: 0;
}

.modal-plan-state {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-lead {
  margin: 0 0 12px 0;
  font-weight: 600;
  color: #1f2937;
}

.modal-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 8px 0 0 0;
}

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

.plan-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  background: rgba(99, 102, 241, 0.08);
  color: #312e81;
  box-shadow: var(--shadow-sm);
  margin-top: 0;
}

.plan-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.plan-button--primary {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.plan-button--primary .plan-button__meta {
  color: rgba(255, 255, 255, 0.78);
}

.plan-button--outline {
  background: #ffffff;
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.plan-button--outline:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.46);
}

.plan-button__title {
  font-size: 16px;
  font-weight: 700;
}

.plan-button__meta {
  font-size: 13px;
  color: #4b5563;
}

.plan-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-sm);
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(102, 126, 234, 0.1);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.section {
  padding: 2em 0;
}

.section-white {
  background: white;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature {
  padding: 40px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature h3 {
  font-size: 24px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.feature p {
  color: #666;
  line-height: 1.7;
}

.report-container {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #667eea 0deg,
    #764ba2 calc(var(--score) * 0.5),
    hsl(calc(var(--score-value, 0) * 1.2), 70%, 50%) var(--score),
    #e0e0e0 var(--score),
    #e0e0e0 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px auto;
  position: relative;
  box-shadow: var(--shadow-md);
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.score-circle::before {
  content: "";
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: white;
}

.score-value {
  position: relative;
  z-index: 1;
  font-size: 52px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blur {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

.paywall {
  text-align: center;
  padding: 60px 40px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-lg);
  margin: 48px 0;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.paywall::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 15s ease-in-out infinite;
}

.paywall h2 {
  position: relative;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.paywall .price {
  position: relative;
  font-size: 72px;
  font-weight: 900;
  margin: 24px 0;
  letter-spacing: -2px;
}

.paywall button {
  position: relative;
  padding: 18px 48px;
  font-size: 18px;
  background: white;
  color: #667eea;
  box-shadow: var(--shadow-lg);
}

footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  margin: 8px 0;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: white;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s;
}

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

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1em;
  max-width: 40em;
  width: 90%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content input {
  width: 100%;
  padding: 16px;
  margin: 12px 0;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: var(--transition);
}

.modal-content input:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }
  .hero p {
    font-size: 18px;
  }
  .score-circle {
    width: 140px;
    height: 140px;
  }
  .score-circle::before {
    width: 112px;
    height: 112px;
  }
  .score-value {
    font-size: 42px;
  }
  .paywall h2 {
    font-size: 28px;
  }
  .paywall .price {
    font-size: 56px;
  }
  .modal-content {
    padding: 32px 24px;
  }
  .report-container {
    padding: 24px;
  }
}

.rules-grid {
  display: grid;
  gap: 12px;
  margin: 28px 0 12px;
}

.rule-item {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid #d9dee8;
  background: #f9fafc;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.rule-item:hover {
  background: #eef2ff;
  border-left-color: #6366f1;
  box-shadow: var(--shadow-md);
}

.rule-item.no-details {
  cursor: default;
}

.rule-item.no-details:hover {
  background: #f9fafc;
  border-left-color: #d9dee8;
  box-shadow: var(--shadow-sm);
}

.rule-item.passed {
  border-left-color: #22c55e;
}

.rule-item.failed {
  border-left-color: #f97316;
}

.rule-item.expanded {
  background: white;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-left-width: 4px;
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
}

.rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rule-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.rule-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #4c1d95;
  white-space: nowrap;
}

.rule-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: #1f2937;
  white-space: nowrap;
}

.rule-status-pass {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.rule-status-fail {
  background: rgba(249, 115, 22, 0.2);
  color: #9a3412;
}

.rule-name {
  font-weight: 700;
  color: #1f2937;
  flex: 1;
}

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

.rule-score {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 4px 12px;
}

.strategy-section {
  margin-top: 40px;
  padding: 32px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(102, 126, 234, 0.12);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.strategy-hero {
  margin-top: 48px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(76, 29, 149, 0.2) 100%);
  border: 1px solid rgba(79, 70, 229, 0.25);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 32px;
  align-items: stretch;
}

.strategy-toc {
  margin-top: 28px;
  padding: 24px 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79, 70, 229, 0.15);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.strategy-toc__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strategy-toc__heading h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.strategy-toc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.strategy-toc__link {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid transparent;
  font-weight: 600;
  color: #4338ca;
  text-decoration: none;
  transition: var(--transition);
}

.strategy-toc__link:hover,
.strategy-toc__link:focus {
  border-color: rgba(79, 70, 229, 0.4);
  background: rgba(79, 70, 229, 0.12);
  color: #312e81;
}

.strategy-kicker {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(49, 46, 129, 0.85);
}

.strategy-hero__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #1f2937;
}

.strategy-hero__left h3 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
}

.strategy-lede {
  font-size: 18px;
  line-height: 1.7;
  color: #1f2937;
  max-width: 560px;
}

.strategy-hero__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  color: #312e81;
}

.strategy-hero__score {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(79, 70, 229, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.strategy-score-badge {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
}

.strategy-score-badge span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(55, 48, 163, 0.8);
}

.strategy-score-badge strong {
  font-size: 50px;
  font-weight: 900;
  color: #3730a3;
  line-height: 1;
}

.strategy-score-badge small {
  font-size: 12px;
  color: rgba(55, 48, 163, 0.8);
}

.strategy-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.strategy-pill {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.15);
  text-align: center;
}

.strategy-pill__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(55, 48, 163, 0.9);
}

.strategy-pill strong {
  font-size: 22px;
  font-weight: 800;
  color: #312e81;
}

.strategy-pill small {
  font-size: 12px;
  color: rgba(49, 46, 129, 0.75);
}

.strategy-section h3 {
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
}

.strategy-subsection {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.strategy-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.strategy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.strategy-card {
  background: #f9fafc;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strategy-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.strategy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(102, 126, 234, 0.12);
  color: #3730a3;
}

.strategy-tag--neutral {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.strategy-tag--outline {
  background: rgba(255, 255, 255, 0.6);
  color: #1f2937;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.strategy-tag--success {
  background: rgba(74, 222, 128, 0.16);
  color: #047857;
}

.strategy-highlight {
  font-size: 18px;
  font-weight: 700;
  color: #3730a3;
}

.strategy-highlight-sm {
  font-weight: 600;
  color: #2563eb;
}

.strategy-muted {
  color: #64748b;
  font-size: 14px;
}

.strategy-placeholder {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  color: #312e81;
  text-align: center;
}

.strategy-list {
  list-style: disc inside;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #1f2937;
}

.strategy-list--numbered {
  list-style: decimal inside;
  gap: 14px;
  padding-left: 6px;
}

.strategy-outline {
  margin-top: 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #334155;
}

.strategy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  margin-left: 6px;
  white-space: nowrap;
}

.strategy-chip:first-child {
  margin-left: 0;
}

.strategy-chip--high {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.strategy-chip--medium {
  background: rgba(251, 191, 36, 0.18);
  color: #92400e;
}

.strategy-chip--low {
  background: rgba(134, 239, 172, 0.2);
  color: #166534;
}

.strategy-chip--outline {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.16);
  color: #1f2937;
}

.strategy-chip--points {
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
}

.strategy-chip--success {
  background: rgba(74, 222, 128, 0.2);
  color: #047857;
}

.strategy-action-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: #1f2937;
}

.strategy-action-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.strategy-copy-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(99, 102, 241, 0.2);
}

.strategy-copy-block > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strategy-card p {
  color: #374151;
  line-height: 1.6;
}

.strategy-card-grid article ol li {
  margin-left: 0;
}

@media (max-width: 768px) {
  .strategy-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .strategy-hero__score {
    padding: 20px;
  }

  .strategy-section {
    padding: 24px;
  }

  .strategy-card {
    padding: 18px;
  }

  .strategy-toc {
    padding: 20px;
  }

  .strategy-toc__links {
    flex-direction: column;
    gap: 10px;
  }

  .strategy-toc__link {
    width: 100%;
    text-align: center;
  }
}

.rule-expand-icon {
  font-size: 18px;
  color: #4c1d95;
  transition: transform 0.2s;
}

.rule-item.expanded .rule-expand-icon {
  transform: rotate(180deg);
}

.rule-item.no-details .rule-expand-icon {
  opacity: 0;
  visibility: hidden;
}

.rule-message {
  color: #4b5563;
  font-size: 14px;
  margin-top: 8px;
}

.rule-description {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.rule-current {
  margin-top: 6px;
  font-size: 13px;
  color: #1f2937;
  background: rgba(79, 70, 229, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rule-current strong {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #4c1d95;
}

.rule-recommendation {
  color: #b91c1c;
  font-size: 14px;
  margin-top: 8px;
  font-style: italic;
}

.rule-details {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease, margin-top 0.25s ease, padding-top 0.25s ease,
    border-top-color 0.25s ease;
}

.rule-details.is-open {
  margin-top: 18px;
  padding-top: 18px;
  border-top-color: #e0e0e0;
  max-height: 1600px;
  opacity: 1;
}

.rule-explanation {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid rgba(99, 102, 241, 0.45);
  color: #312e81;
}

.rule-explanation strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #4338ca;
}

.rule-explanation p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #312e81;
}

.rule-issues {
  margin: 15px 0;
}

.rule-issues h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 6px;
}

.issue-item {
  background: rgba(251, 191, 36, 0.14);
  border-left: 3px solid rgba(217, 119, 6, 0.65);
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 13px;
}

.issue-item code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  display: block;
  margin: 5px 0;
  white-space: pre-wrap;
}

.issue-problem {
  font-weight: 600;
  color: #856404;
  margin-bottom: 5px;
}

.issue-suggestion {
  color: #666;
  margin-top: 5px;
}

.issue-location {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  font-style: italic;
}

.rule-no-issues {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  font-size: 13px;
}

.rule-guides {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
}

.rule-guides a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #1d4ed8;
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.rule-guides a:hover {
  background: #1e3a8a;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #0066cc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

.status-pending {
  color: #ffc107;
}

.status-completed {
  color: #28a745;
}

.status-failed {
  color: #dc3545;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-content input {
  width: 100%;
  margin-bottom: 20px;
}

footer {
  background: #0f1419;
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 40px;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 0%,
      rgba(118, 75, 162, 0.3),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(102, 126, 234, 0.25),
      transparent 50%
    );
  opacity: 0.8;
}

footer .container {
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  font-size: 26px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.footer-column h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.footer-column ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.footer-column a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-column span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
  display: inline-block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

@media (max-width: 768px) {
  header {
    padding: 16px 0;
  }

  header nav {
    display: none;
  }

  .nav-cta {
    padding: 10px 18px;
  }

  .input-group {
    grid-template-columns: 1fr;
  }

  .input-group button {
    padding: 16px 24px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
