/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg: #0b0b10;
  --surface: #13131d;
  --surface-2: #1a1a2e;
  --surface-3: #202038;
  --accent: #7c6cf0;
  --accent-2: #00d4c8;
  --text: #e0e0e8;
  --text-muted: #8888a0;
  --border: rgba(124, 108, 240, 0.15);
  --border-strong: rgba(124, 108, 240, 0.28);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
  background: radial-gradient(circle at top, rgba(124, 108, 240, 0.12), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
a:hover { color: var(--accent-2); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main { padding-bottom: 36px; }

/* ─── Animations ───────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}
.fade-in { animation: fadeIn 0.5s ease-out both; }
.slide-up { animation: slideUp 0.6s ease-out both; }

/* ─── Shared Sections ──────────────────────────────────── */
.section-shell { padding: 24px 0 14px; }
.section-shell.alt { padding-top: 40px; }
.section-copy { margin-bottom: 28px; }
.section-copy.center { text-align: center; max-width: 820px; margin: 0 auto 28px; }
.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-copy h2,
.pro-showcase h2,
.cta-band h2,
.modal h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 10px;
}
.section-copy p,
.cta-band p,
.modal p,
.pro-showcase-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ─── Header ───────────────────────────────────────────── */
.header {
  background: rgba(19, 19, 29, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
}
.logo:hover { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-primary-link,
.btn-pro,
.hero-cta,
.btn-upgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary-link {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  border: none;
}
.btn-primary-link:hover,
.hero-cta.primary:hover,
.btn-upgrade:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(124, 108, 240, 0.24);
}
.btn-pro {
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.btn-pro:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 56px 0 34px;
}
.hero-shell {
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.95), rgba(19, 19, 29, 0.88));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 42px;
  box-shadow: var(--shadow);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 108, 240, 0.12);
  border: 1px solid rgba(124, 108, 240, 0.24);
  color: #cdc8ff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(135deg, #f8f8ff, #bdb7ff 40%, #8ef5e7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  max-width: 900px;
}
.hero-sub {
  color: #c6c6da;
  font-size: 1.06rem;
  max-width: 760px;
  margin-bottom: 18px;
}
.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-pill,
.section-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.88rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.hero-cta {
  padding: 14px 22px;
  font-size: 0.95rem;
  text-decoration: none;
}
.hero-cta.primary,
.btn-upgrade {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.hero-cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.hero-cta.secondary:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.hero-note,
.hero-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}
.section-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}
.analyzer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: center;
  background: rgba(11, 11, 16, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 24px;
}
.analyzer-copy h2 {
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 8px;
}
.analyzer-copy p { color: var(--text-muted); }

/* ─── Form ─────────────────────────────────────────────── */
.analyze-form {
  display: flex;
  gap: 10px;
  width: 100%;
}
.analyze-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.analyze-form input::placeholder { color: #555568; }
.analyze-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 108, 240, 0.14);
}
.btn-analyze {
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-analyze:hover {
  animation: pulse 0.6s ease-in-out;
  box-shadow: 0 10px 30px rgba(124, 108, 240, 0.34);
}
.btn-analyze:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

/* ─── Static Content Blocks ────────────────────────────── */
.check-grid,
.audience-grid,
.use-grid,
.link-grid,
.next-steps-grid,
.pro-grid {
  display: grid;
  gap: 16px;
}
.check-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.audience-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.use-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.link-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.next-steps-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pro-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check-card-static,
.audience-card,
.use-card,
.link-card,
.next-card,
.pro-card,
.workflow-card-static,
.cta-band,
.faq-item-static,
.findings-section,
.keywords-section,
.recommendations-section,
.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.check-card-static,
.audience-card,
.use-card,
.link-card,
.next-card,
.workflow-card-static {
  padding: 22px;
}
.check-card-static h3,
.audience-card h3,
.use-card h3,
.link-card h3,
.next-card h3,
.workflow-card-static h3,
.pro-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.check-card-static p,
.audience-card p,
.use-card p,
.link-card p,
.next-card p,
.workflow-card-static p,
.pro-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.audience-icon,
.pro-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(124, 108, 240, 0.12);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.link-card {
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.link-card:hover,
.pro-card:hover,
.score-card:hover,
.check-card-static:hover,
.audience-card:hover,
.use-card:hover,
.next-card:hover,
.workflow-card-static:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.link-card.featured,
.next-card.featured-next {
  background: linear-gradient(180deg, rgba(124, 108, 240, 0.12), rgba(19, 19, 29, 1));
  border-color: rgba(124, 108, 240, 0.3);
}
.link-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-band {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(180deg, rgba(124, 108, 240, 0.12), rgba(19, 19, 29, 1));
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.workflow-grid-static {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.workflow-num,
.next-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.inline-link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 700;
}

/* ─── Results Section ──────────────────────────────────── */
.results-section {
  padding: 22px 0 40px;
}
.skeleton-score { text-align: center; margin-bottom: 32px; }
.skeleton-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--surface-2);
  margin: 0 auto;
}
.skeleton-line {
  border-radius: 8px;
  background: var(--surface-2);
  margin: 0 auto;
}
.skeleton-card {
  height: 100px;
  border-radius: 20px;
  background: var(--surface-2);
}
.skeleton-pulse { animation: skeletonPulse 1.2s ease-in-out infinite; }
.overall-score {
  text-align: center;
  margin-bottom: 34px;
}
.score-gauge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, var(--accent) 0deg, var(--surface-2) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  transition: background 0.8s ease;
}
.score-gauge::before {
  content: '';
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--bg);
  position: absolute;
}
.score-value {
  position: relative;
  z-index: 1;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
}
.overall-score h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.score-url {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
  word-break: break-all;
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.score-card {
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out both;
}
.score-card-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.score-card-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.score-green .score-card-value { color: var(--green); }
.score-yellow .score-card-value { color: var(--yellow); }
.score-red .score-card-value { color: var(--red); }
.findings-section,
.keywords-section,
.recommendations-section {
  padding: 28px;
  margin-bottom: 18px;
}
.findings-section h3,
.keywords-section h3,
.recommendations-section h3 {
  font-size: 1.08rem;
  margin-bottom: 16px;
}
.findings-list { list-style: none; }
.findings-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.findings-list li:last-child { border-bottom: none; }
.finding-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.keywords-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  transition: all 0.2s ease;
}
.keyword-tag:hover { border-color: var(--accent); }
.keyword-count {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(124, 108, 240, 0.15);
  padding: 2px 7px;
  border-radius: 10px;
}
.recommendations-list { display: flex; flex-direction: column; gap: 12px; }
.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
  transition: all 0.2s ease;
}
.rec-item:hover { border-color: var(--accent); }
.rec-icon { font-size: 18px; flex-shrink: 0; }
.rec-text strong { display: block; margin-bottom: 2px; }
.rec-text span { color: var(--text-muted); font-size: 13px; }

/* ─── Pro Showcase ─────────────────────────────────────── */
.pro-showcase {
  padding: 34px 0 20px;
  text-align: center;
}
.pro-showcase-sub {
  margin: 0 auto 28px;
  max-width: 720px;
}
.pro-card {
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.pro-lock {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--accent);
  background: rgba(124, 108, 240, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ─── FAQ ──────────────────────────────────────────────── */
.faq-list-static {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item-static {
  padding: 0 20px;
  overflow: hidden;
}
.faq-item-static summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-right: 26px;
}
.faq-item-static summary::-webkit-details-marker { display: none; }
.faq-item-static summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 22px;
}
.faq-item-static[open] summary::after { content: '–'; color: var(--accent-2); }
.faq-item-static p {
  color: var(--text-muted);
  padding: 0 0 18px;
}

/* ─── Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  max-width: 540px;
  width: min(92vw, 540px);
  text-align: left;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--text); }
.modal-features {
  list-style: none;
  text-align: left;
  margin: 20px 0 24px;
  display: grid;
  gap: 10px;
}
.modal-features li {
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-features li:last-child { border-bottom: none; }
.btn-upgrade {
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 34px 20px 44px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.footer-tools {
  margin-top: 8px;
  font-size: 12px;
}
.footer-tools a { color: var(--text-muted); }
.footer-tools a:hover { color: var(--accent); }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .analyzer-panel,
  .cta-band {
    grid-template-columns: 1fr;
  }
  .cta-band-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-shell { padding: 28px 20px; border-radius: 22px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 2rem; }
  .analyze-form { flex-direction: column; }
  .btn-analyze { width: 100%; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .pro-grid,
  .link-grid,
  .next-steps-grid,
  .check-grid,
  .use-grid,
  .audience-grid,
  .workflow-grid-static { grid-template-columns: 1fr; }
  .findings-section,
  .keywords-section,
  .recommendations-section,
  .modal,
  .check-card-static,
  .audience-card,
  .use-card,
  .link-card,
  .next-card,
  .workflow-card-static,
  .cta-band,
  .pro-card { padding: 20px; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .section-nav,
  .hero-pill-row,
  .hero-actions,
  .header-actions { gap: 8px; }
  .hero-cta,
  .btn-primary-link,
  .btn-pro { width: 100%; }
  .score-grid { grid-template-columns: 1fr; }
  .score-gauge { width: 140px; height: 140px; }
  .score-gauge::before { width: 114px; height: 114px; }
  .score-value { font-size: 2.3rem; }
}
