/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0c0c0e;
  --bg-secondary: #141416;
  --bg-card: #1a1a1e;
  --bg-card-hover: #222226;
  --bg-input: #19191d;
  --border: #2a2a30;
  --border-light: #333338;
  --text-primary: #ececf0;
  --text-secondary: #8a8a98;
  --text-muted: #55555f;
  --accent: #1d9bf0;
  --accent-hover: #1a8cd8;
  --gradient-start: #1d9bf0;
  --gradient-end: #7856ff;
  --green: #22c55e;
  --yellow: #eab308;
  --orange: #f97316;
  --red: #ef4444;
  --ring-size: 553.6px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.section {
  padding: 100px 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-logo-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.nav-cta:hover {
  border-color: var(--text-muted);
  background: var(--bg-card);
}

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

.hero-bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(29, 155, 240, 0.08) 0%, transparent 65%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

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

/* Badge Preview Chip */
.hero-badge-preview {
  margin-bottom: 40px;
}

.badge-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 20px 10px 12px;
}

.badge-score-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0% 93%, var(--border) 93% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  position: relative;
}

.badge-score-circle::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--bg-card);
  border-radius: 50%;
}

.badge-score-circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text needs to be above the pseudo-element */
.badge-chip .badge-score-circle {
  position: relative;
  z-index: 0;
  font-size: 0;
}

.badge-chip .badge-score-circle::before {
  content: '93';
  position: absolute;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green);
}

.badge-chip-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-chip-handle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-chip-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Colored Progress Bars */
.hero-bars {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-bar {
  height: 5px;
  width: 100px;
  border-radius: 100px;
}

.hero-bar-red {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.hero-bar-orange {
  background: linear-gradient(90deg, #f97316, #eab308);
}

.hero-bar-green {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* Subtitle */
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ===== FORM — Inline Input ===== */
.score-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 520px;
  margin: 0 auto 32px;
}

.form-label {
  align-self: flex-start;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-left: 4px;
}

.input-row {
  display: flex;
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.1);
}

.input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 16px;
  gap: 12px;
}

.input-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

#username-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 0;
  width: 100%;
  font-family: inherit;
}

#username-input::placeholder {
  color: var(--text-muted);
}

.btn-analyze {
  background: var(--bg-card);
  color: var(--text-primary);
  border: none;
  border-left: 1px solid var(--border);
  padding: 16px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-analyze:hover {
  background: var(--bg-card-hover);
}

.btn-analyze:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

.btn-loading:not([hidden]) {
  display: inline-flex;
}

/* Social Proof */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -8px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.proof-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Trust Line & Example Link */
.trust-line {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  margin: 12px 0 4px;
  letter-spacing: 0.02em;
}

.example-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 28px;
  transition: opacity 0.2s;
}

.example-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.proof-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===== SPINNER ===== */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

.loading-spinner-large {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 32px;
}

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

/* ===== ANALYSIS SECTION (two-column) ===== */
.analysis-section {
  padding: 80px 0 60px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.analysis-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analysis-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px 24px;
  text-align: center;
}

.analysis-status-card.done {
  border-color: var(--green);
}

.analysis-status-card.done .loading-title {
  color: var(--green);
}

.analysis-status-card.done .loading-subtitle {
  color: var(--green);
  opacity: 0.7;
}

.loading-avatar-pulse {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  margin: 0 auto 14px;
  animation: pulse-glow 1.5s ease-in-out infinite;
  opacity: 0.7;
}

.loading-avatar-pulse.done {
  animation: none;
  opacity: 1;
  background: var(--green);
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; box-shadow: 0 0 0 0 rgba(29, 155, 240, 0.3); }
  50% { transform: scale(1.05); opacity: 0.8; box-shadow: 0 0 20px 6px rgba(29, 155, 240, 0.15); }
}

.loading-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.loading-title span {
  color: var(--accent);
}

.loading-subtitle {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.loading-progress-track {
  height: 3px;
  background: var(--bg-primary);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 18px;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transition: width 0.4s ease;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

.loading-step {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.loading-step .step-icon {
  font-size: 0.7rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

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

.loading-step.done {
  color: var(--green);
}

.loading-step.done .step-icon {
  font-size: 0.85rem;
}

/* Right panel */
.analysis-right {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.analysis-right.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== SCORE CARD ===== */
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 16px;
  position: relative;
  overflow: hidden;
}

.score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.score-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.result-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.result-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.result-handle {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Main Score Ring */
.main-score-container {
  text-align: center;
  margin-bottom: 16px;
}

.main-score-ring {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 8px;
}

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

.score-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}

.score-ring-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 553.6;
  stroke-dashoffset: 553.6;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-out-of {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.score-percentile {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.score-explain {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

/* Sub Scores */
.sub-scores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.sub-score {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sub-score-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.sub-score-icon {
  font-size: 0.85rem;
}

.sub-score-name {
  font-weight: 600;
  flex: 1;
}

.sub-score-weight {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.sub-score-bar-track {
  height: 5px;
  background: var(--bg-primary);
  border-radius: 100px;
  overflow: hidden;
}

.sub-score-bar {
  height: 100%;
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-score[data-category="engagement"] .sub-score-bar {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.sub-score[data-category="activity"] .sub-score-bar {
  background: linear-gradient(90deg, #f97316, #eab308);
}

.sub-score[data-category="growth"] .sub-score-bar {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.sub-score[data-category="trust"] .sub-score-bar {
  background: linear-gradient(90deg, #818cf8, #7c3aed);
}

.sub-score-value {
  font-weight: 700;
  font-size: 0.85rem;
  align-self: flex-end;
  margin-top: -3px;
}

/* Insight Box */
.insight-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.insight-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.5;
}

/* Score Card Footer */
.score-card-footer {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-brand {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.share-cta {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 2px;
}

/* ===== ACTION BUTTONS ===== */
.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
  flex: 1;
}

.btn-share:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
  flex: 1;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px;
  transition: color 0.2s;
  font-family: inherit;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* ===== SECTION SHARED STYLES ===== */
.section-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 56px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTAINER WIDE ===== */
.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HOW IT WORKS ===== */
.how-section {
  text-align: center;
  border-top: 1px solid var(--border);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 260px;
  padding: 0 16px;
  text-align: center;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-mock-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  width: 100%;
}

.step-mock-input span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.step-mock-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.mock-bar {
  height: 5px;
  border-radius: 100px;
}

.step-mock-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.mock-score-num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.mock-score-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.step-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 80px;
  flex-shrink: 0;
}

/* ===== FEATURES BENTO ===== */
.features-section {
  text-align: center;
  border-top: 1px solid var(--border);
}

.features-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

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

.bento-large {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.bento-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bento-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-icon-red { background: rgba(239, 68, 68, 0.12); }
.bento-icon-yellow { background: rgba(234, 179, 8, 0.12); }
.bento-icon-green { background: rgba(34, 197, 94, 0.12); }
.bento-icon-purple { background: rgba(139, 92, 246, 0.12); }

.bento-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
}

.bento-weight {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bento-card > .bento-weight {
  display: block;
  margin-top: 14px;
}

/* ===== SCORING BREAKDOWN ===== */
.scoring-section {
  border-top: 1px solid var(--border);
  text-align: center;
}

.scoring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}

.scoring-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.scoring-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.scoring-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.scoring-icon {
  font-size: 1.6rem;
}

.scoring-weight {
  background: rgba(29, 155, 240, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.scoring-card h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.scoring-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.scoring-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scoring-metrics li {
  color: var(--text-muted);
  font-size: 0.78rem;
  padding-left: 18px;
  position: relative;
}

.scoring-metrics li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--accent);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
}

.scoring-note {
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.scoring-note strong {
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .scoring-grid {
    grid-template-columns: 1fr;
  }

  .scoring-card {
    padding: 22px;
  }
}

/* ===== TESTIMONIALS MARQUEE ===== */
.testimonials-section {
  text-align: center;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.testimonials-track-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}

.testimonials-track {
  display: flex;
  gap: 16px;
  animation: marquee 40s linear infinite;
  width: max-content;
  padding: 4px 0;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.t-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: left;
  transition: border-color 0.2s;
}

.t-card:hover {
  border-color: var(--border-light);
}

.t-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.t-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.t-header div {
  display: flex;
  flex-direction: column;
}

.t-header strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.t-header span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.t-handle {
  color: var(--accent) !important;
  font-weight: 600;
}

.t-stars {
  margin-left: auto;
  color: #f59e0b;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

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

/* ===== REGISTER MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 36px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.15), rgba(120, 86, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.modal-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.modal-card > p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-form input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.modal-form input:focus {
  border-color: var(--accent);
}

.modal-form input::placeholder {
  color: var(--text-muted);
}

.modal-form button {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s;
}

.modal-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(29, 155, 240, 0.25);
}

.modal-note {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== FAQ ===== */
.faq-section {
  text-align: center;
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-col {
  max-width: 260px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-links-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-disclaimer {
  margin-top: 8px;
  font-size: 0.7rem !important;
  opacity: 0.4 !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade {
  animation: fadeIn 0.4s ease forwards;
}

.sub-score:nth-child(1) { animation-delay: 0.1s; }
.sub-score:nth-child(2) { animation-delay: 0.2s; }
.sub-score:nth-child(3) { animation-delay: 0.3s; }
.sub-score:nth-child(4) { animation-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-connector {
    padding-top: 0;
    transform: rotate(90deg);
  }

  .step-card {
    max-width: 320px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 24px;
  }

  .modal-card {
    padding: 40px 24px 28px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 70px 0;
  }

  .hero-section {
    padding-top: 80px;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .badge-chip {
    transform: scale(0.9);
    margin-bottom: 8px;
  }

  .share-cta {
    font-size: 0.78rem;
  }

  .hero-subtitle br {
    display: none;
  }

  .hero-bars .hero-bar {
    width: 70px;
  }

  .input-row {
    flex-direction: column;
    border-radius: 14px;
  }

  .btn-analyze {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 14px 28px;
  }

  .score-card {
    padding: 32px 20px 24px;
    border-radius: 20px;
  }

  .main-score-ring {
    width: 150px;
    height: 150px;
  }

  .score-number {
    font-size: 2.4rem;
  }

  .badge-label {
    font-size: 0.75rem;
  }

  .t-card {
    width: 280px;
  }
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 24px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Score Detail Breakdown ===== */
.detail-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 2px;
  text-align: right;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.detail-toggle:hover {
  opacity: 1;
}

.detail-toggle.open {
  opacity: 1;
}

.detail-breakdown {
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.detail-breakdown[hidden] {
  display: none;
}

.detail-breakdown .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.detail-breakdown .detail-row:last-child {
  border-bottom: none;
}

.detail-breakdown .detail-label {
  color: var(--text-secondary);
}

.detail-breakdown .detail-value {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.detail-breakdown .detail-value.good {
  color: #22c55e;
}

.detail-breakdown .detail-value.ok {
  color: #f59e0b;
}

.detail-breakdown .detail-value.low {
  color: #ef4444;
}

/* ===== Support Popup ===== */
.support-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: popupSlideIn 0.5s ease 2s both;
}

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

.support-popup-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.support-popup-icon {
  font-size: 1.1rem;
}

.support-popup-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.support-popup-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.support-popup.hidden {
  display: none;
}

/* ===== Support Modal ===== */
.support-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.support-modal-overlay[hidden] {
  display: none;
}

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

.support-modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalPop 0.3s ease;
}

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

.support-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.support-modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.support-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.support-modal h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.support-modal p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.support-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #ffffff;
  color: #000000;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.support-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,255,255,0.15);
}
