/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fafbfe;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── COLORS ── */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --dark: #0f172a;
  --gray-900: #1a1a2e;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --green: #10b981;
  --red: #ef4444;
  --orange: #f97316;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  padding: 12px 24px; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.5px; }
.logo-local { color: var(--gray-900); }
.logo-re { color: var(--primary); }
.logo-brand { color: var(--gray-900); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); }
.nav-links a:hover { color: var(--primary); }

/* ── HERO ── */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, #f0f5ff 0%, #fafbfe 100%);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--primary); background: var(--primary-light);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 20px;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 16px; color: var(--dark); }
.gradient-text { background: linear-gradient(135deg, var(--primary), #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: var(--gray-500); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }

/* ── AUDIT FORM ── */
.audit-form-wrap { max-width: 600px; margin: 0 auto; }
.input-group {
  display: flex; align-items: center; gap: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 6px; transition: box-shadow 0.2s;
}
.input-group:focus-within { box-shadow: 0 4px 24px rgba(37,99,235,0.15), 0 0 0 2px var(--primary); }
.input-icon { padding: 0 12px; color: var(--gray-500); display: flex; }
#website-url {
  flex: 1; border: none; outline: none; font-size: 1rem; font-family: inherit;
  padding: 14px 0; background: transparent; color: var(--dark);
}
#website-url::placeholder { color: var(--gray-300); }
.btn-audit { white-space: nowrap; padding: 14px 24px; border-radius: 8px; }
.audit-hint { font-size: 0.8rem; color: var(--gray-500); margin-top: 12px; }

.spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TEASER RESULTS ── */
.teaser-results { max-width: 800px; margin: 48px auto 0; animation: fadeUp 0.5s ease; }
.teaser-results[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.score-ring-wrap { text-align: center; margin-bottom: 40px; }
.score-ring { position: relative; display: inline-block; width: 160px; height: 160px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--gray-100); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--primary); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.5s ease, stroke 0.5s; }
.score-number {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  font-size: 2.8rem; font-weight: 900; color: var(--dark);
}
.score-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, 60%);
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500);
}
.score-grade {
  display: inline-block; margin-top: 12px; font-size: 1rem; font-weight: 700;
  padding: 4px 20px; border-radius: 100px;
}
.grade-a { background: #d1fae5; color: #065f46; }
.grade-b { background: #dbeafe; color: #1e40af; }
.grade-c { background: #fef3c7; color: #92400e; }
.grade-d { background: #fee2e2; color: #991b1b; }
.grade-f { background: #fee2e2; color: #991b1b; }

.category-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px; }
.cat-result-card {
  background: var(--white); border-radius: var(--radius-sm); padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; gap: 8px;
}
.cat-result-header { display: flex; justify-content: space-between; align-items: center; }
.cat-result-name { font-weight: 600; font-size: 0.9rem; color: var(--gray-700); }
.cat-result-grade { font-weight: 700; font-size: 0.85rem; padding: 2px 10px; border-radius: 100px; }
.cat-result-bar { height: 6px; background: var(--gray-100); border-radius: 100px; overflow: hidden; }
.cat-result-fill { height: 100%; border-radius: 100px; transition: width 1s ease; }
.cat-result-detail { font-size: 0.8rem; color: var(--gray-500); filter: blur(3px); user-select: none; }

.teaser-cta { text-align: center; }
.teaser-cta-text { font-size: 1rem; color: var(--gray-700); margin-bottom: 16px; }

/* ── EMAIL MODAL ── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); }
.modal-content {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 40px; max-width: 440px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: fadeUp 0.3s ease;
}
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.5rem; color: var(--gray-500); cursor: pointer; }
.modal-content h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.modal-content p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 20px; }
.modal-content form { display: flex; flex-direction: column; gap: 12px; }
.modal-content input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit; outline: none; transition: border 0.2s;
}
.modal-content input:focus { border-color: var(--primary); }
.modal-fine { font-size: 0.75rem; color: var(--gray-500); margin-top: 8px; text-align: center; }

/* ── CATEGORIES SECTION ── */
.categories { padding: 80px 24px; }
.categories-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--gray-500); font-size: 1rem; max-width: 520px; margin: 0 auto 48px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; text-align: left; }
.cat-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid var(--gray-100);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.cat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cat-seo { background: #dbeafe; color: #2563eb; }
.cat-social { background: #fce7f3; color: #db2777; }
.cat-video { background: #fee2e2; color: #ef4444; }
.cat-mobile { background: #d1fae5; color: #10b981; }
.cat-idx { background: #fef3c7; color: #f59e0b; }
.cat-trust { background: #e0e7ff; color: #6366f1; }
.cat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.cat-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

/* ── COMPARISON SECTION ── */
.comparison { padding: 80px 24px; background: var(--gray-100); text-align: center; }
.comparison-inner { max-width: 700px; margin: 0 auto; }
.comparison-bar-wrap { margin: 40px 0 32px; }
.comparison-bar { display: flex; border-radius: var(--radius); overflow: hidden; height: 56px; }
.bar-zone { flex: 1; display: flex; align-items: center; justify-content: center; }
.bar-zone span { font-size: 0.75rem; font-weight: 600; line-height: 1.3; text-align: center; }
.bar-poor { background: #fee2e2; color: #991b1b; }
.bar-avg { background: #fef3c7; color: #92400e; }
.bar-good { background: #dbeafe; color: #1e40af; }
.bar-great { background: #d1fae5; color: #065f46; }
.comparison-note { margin-top: 16px; font-size: 0.9rem; color: var(--gray-700); }

/* ── CTA SECTION ── */
.cta-section {
  padding: 80px 24px; text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%); color: var(--white);
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 32px; line-height: 1.7; }

/* ── FOOTER ── */
.footer { padding: 48px 24px; border-top: 1px solid var(--gray-100); }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer-brand .nav-logo { margin-bottom: 4px; }
.footer-tagline { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; font-size: 0.85rem; color: var(--gray-500); }
.footer-links a:hover { color: var(--primary); }
.footer-powered { text-align: right; font-size: 0.8rem; color: var(--gray-500); }
.footer-powered a { color: var(--primary); font-weight: 600; }
.footer-copy { margin-top: 4px; font-size: 0.75rem; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .input-group { flex-direction: column; padding: 12px; }
  .input-icon { display: none; }
  #website-url { padding: 12px; }
  .btn-audit { width: 100%; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-powered { text-align: center; }
  .category-grid { grid-template-columns: 1fr; }
}
