@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2dd4a0;
  --primary-dim: rgba(45, 212, 160, 0.15);
  --accent: #facc15;
  --bg: #0f172a;
  --bg-2: #0a0f1a;
  --bg-glass: rgba(30, 41, 59, 0.7);
  --card: rgba(30, 41, 59, 0.6);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --border: rgba(45, 212, 160, 0.3);
  --danger: #f87171;
  --warn: #fb923c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(ellipse at top, #1e293b 0%, var(--bg) 50%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  flex-direction: column;
  padding: 1.5rem 2.5rem;
  gap: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-dim);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  letter-spacing: -1px;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 800px;
}

.hero-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.hero-stat .num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.hero-stat .lbl {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), #22b387);
  color: #0f172a;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 25px rgba(45, 212, 160, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(45, 212, 160, 0.45);
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

.btn-icon { font-size: 1.2rem; }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}

/* ANALYZER */
.analyzer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.analyzer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.input-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.card-step {
  display: inline-block;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.input-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--text);
}

.card-hint {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

textarea {
  width: 100%;
  min-height: 240px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(45, 212, 160, 0.2);
  border-radius: 10px;
  color: var(--text);
  padding: 1rem;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s;
  line-height: 1.5;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-dim);
}

.textarea-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

.char-count {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.analyze-cta {
  text-align: center;
}

.privacy-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* RESULTS */
.results {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  animation: fadeUp 0.5s ease;
}

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

.results-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary);
  margin: 0 0 2.5rem;
}

.score-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
}

.score-circle {
  position: relative;
  width: 240px;
  height: 240px;
  justify-self: center;
}

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

.score-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
}

.score-fg {
  fill: none;
  stroke: var(--primary);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s;
}

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

.score-num {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.score-max {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 500;
}

.score-verdict h3 {
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
  color: var(--primary);
}

.score-verdict p {
  color: var(--text-dim);
  margin: 0;
  font-size: 1.05rem;
}

/* METRICS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.2s;
}

.metric-card:hover { transform: translateY(-3px); }

.metric-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.metric-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* INSIGHTS */
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
}

.insight-card.wide {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}

.insight-card h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1.25rem;
}

.insight-hint {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0 0 1.2rem;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-chip {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.keyword-chips.matched .keyword-chip {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--border);
}

.verb-chips .keyword-chip {
  background: rgba(250, 204, 21, 0.12);
  color: var(--accent);
  border-color: rgba(250, 204, 21, 0.3);
}

.empty-state {
  color: var(--text-dim);
  font-style: italic;
  padding: 1rem 0;
}

.suggestion-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.suggestion-list li {
  padding: 1rem 0 1rem 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  line-height: 1.6;
}

.suggestion-list li:last-child { border-bottom: none; }

.suggestion-list li::before {
  content: "→";
  position: absolute;
  left: 0.5rem;
  top: 1rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.suggestion-list li strong {
  color: var(--accent);
  font-weight: 600;
}

.results-cta {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* HOW IT WORKS */
.how-it-works {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.how-it-works h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 3rem;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.how-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(45, 212, 160, 0.15);
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0f172a;
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.how-card h3 {
  margin: 0 0 0.8rem;
  color: var(--text);
}

.how-card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.95rem;
}

/* CTA FOOTER */
.cta-footer {
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(45, 212, 160, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-footer h2 {
  color: var(--text);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.cta-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.cta-footer a:hover { text-decoration: underline; }

.cta-footer p {
  color: var(--text-dim);
  margin: 0;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: 1fr; }
  .analyzer-grid { grid-template-columns: 1fr; }
  .score-hero { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .insight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  header { padding: 1rem 1.25rem; }
  nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 3rem 1rem 2rem; }
  .hero h1 { font-size: 2rem; }
  .input-card { padding: 1.5rem; }
  .score-circle { width: 180px; height: 180px; }
  .score-num { font-size: 3rem; }
  .results-title { font-size: 1.6rem; }
  .score-hero { padding: 1.5rem; }
}
