/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.page-narrow { max-width: 700px; padding-top: 3rem; padding-bottom: 3rem; }
.text-center { text-align: center; }
.text-muted { color: #64748b; font-size: .9rem; }
.text-blue { color: #2563eb; }

/* ===== HEADER ===== */
.site-header { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-svg { flex-shrink: 0; }
.logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: #1e293b; }
.logo-accent { color: #2563eb; }
.header-nav { display: flex; align-items: center; gap: 1.5rem; font-size: .9rem; }
.header-nav a { color: #475569; }
.header-nav a:hover { color: #2563eb; }
.lang-switch { display: flex; gap: .25rem; }
.lang-switch a { padding: 2px 8px; border-radius: 4px; font-size: .8rem; font-weight: 600; color: #64748b; }
.lang-switch a.active { background: #2563eb; color: #fff; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%); color: #fff; padding: 5.5rem 0 4.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,.15) 0%, transparent 70%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .35rem 1rem; border-radius: 20px; font-size: .85rem; font-weight: 500; margin-bottom: 1.75rem; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.12; margin-bottom: 1.25rem; letter-spacing: -.03em; }
.hero h1 .highlight { background: linear-gradient(to right, #fbbf24, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.15rem; opacity: .85; margin-bottom: 2.75rem; line-height: 1.7; }
.hero-form { max-width: 600px; margin: 0 auto; }
.input-row { display: flex; gap: .5rem; }
.domain-input { flex: 1; padding: .9rem 1.25rem; border-radius: 10px; border: none; font-size: 1rem; background: rgba(255,255,255,.97); color: #1e293b; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.domain-input:focus { outline: 3px solid rgba(255,255,255,.5); }
.hero-price { margin-top: .9rem; font-size: .9rem; opacity: .8; }
.hero-price strong { color: #fbbf24; }

/* ===== STATS BAR ===== */
.stats-bar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1.25rem 0; }
.stats-grid { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; padding: .5rem 2.5rem; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: #2563eb; line-height: 1; }
.stat-label { display: block; font-size: .8rem; color: #64748b; margin-top: .2rem; }
.stat-divider { width: 1px; height: 40px; background: #e2e8f0; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.3rem; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; border: none; transition: all .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { opacity: .88; text-decoration: none; }
.btn-primary { background: #2563eb; color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.35); }
.btn-secondary { background: #f1f5f9; color: #1e293b; border: 1px solid #e2e8f0; }
.btn-white { background: #fff; color: #1e293b; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.btn-lg { padding: .9rem 1.75rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-tag { display: inline-block; background: #eff6ff; color: #2563eb; font-size: .8rem; font-weight: 700; padding: .3rem .9rem; border-radius: 20px; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: #0f172a; margin-bottom: .75rem; letter-spacing: -.02em; }
.section-sub { font-size: 1rem; color: #64748b; max-width: 580px; margin: 0 auto; }

/* ===== WHY SECTION ===== */
.why-section { padding: 5rem 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: center; }
.why-content .section-tag { margin-bottom: .75rem; }
.why-content h2 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -.02em; }
.why-content p { color: #64748b; margin-bottom: 1.5rem; font-size: 1.05rem; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.why-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; }
.why-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; margin-top: .1rem; }
.why-icon-red { background: #fee2e2; color: #dc2626; }
.why-icon-green { background: #dcfce7; color: #16a34a; }

/* Score preview card */
.score-preview-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.sp-header { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; margin-bottom: .5rem; color: #1e293b; }
.sp-domain { font-size: .85rem; color: #64748b; margin-bottom: 1rem; background: #f1f5f9; padding: .3rem .7rem; border-radius: 6px; display: inline-block; }
.sp-score-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sp-score { font-size: 2.5rem; font-weight: 800; }
.sp-score span { font-size: 1rem; color: #64748b; font-weight: 400; }
.sp-score-bad { color: #dc2626; }
.sp-pills { display: flex; flex-direction: column; gap: .35rem; }
.sp-pill { font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 4px; }
.sp-ok { background: #dcfce7; color: #166534; }
.sp-warn { background: #fef3c7; color: #92400e; }
.sp-err { background: #fee2e2; color: #991b1b; }
.sp-items { display: flex; flex-direction: column; gap: .5rem; }
.sp-item { font-size: .85rem; display: flex; gap: .5rem; align-items: flex-start; padding: .4rem .6rem; border-radius: 6px; }
.sp-item-ok { background: #f0fdf4; }
.sp-item-warn { background: #fffbeb; }
.sp-item-err { background: #fff5f5; }

/* ===== FEATURES ===== */
.features { padding: 5rem 0; background: #f8fafc; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.feature-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.75rem; transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.feature-icon-wrap { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-icon-blue { background: #eff6ff; color: #2563eb; }
.feature-icon-purple { background: #f5f3ff; color: #7c3aed; }
.feature-icon-green { background: #f0fdf4; color: #16a34a; }
.feature-icon-orange { background: #fff7ed; color: #ea580c; }
.feature-icon-teal { background: #f0fdfa; color: #0d9488; }
.feature-icon-gray { background: #f1f5f9; color: #475569; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: #64748b; margin-bottom: 1rem; line-height: 1.6; }
.feature-checks { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.feature-checks span { background: #f1f5f9; color: #475569; font-size: .78rem; padding: .2rem .55rem; border-radius: 4px; }
.feature-count { font-size: .8rem; font-weight: 700; color: #2563eb; background: #eff6ff; display: inline-block; padding: .2rem .7rem; border-radius: 20px; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: #fff; padding: 5rem 0; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.step { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.75rem 1.5rem; min-width: 180px; max-width: 210px; text-align: center; }
.step-num { width: 36px; height: 36px; background: #2563eb; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; margin: 0 auto .75rem; }
.step-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.step h4 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.step p { font-size: .85rem; color: #64748b; }
.step-arrow { font-size: 1.5rem; color: #94a3b8; align-self: center; padding-top: 1rem; }

/* ===== FINDINGS ===== */
.findings-section { padding: 5rem 0; background: #f8fafc; }
.findings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.finding-card { border-radius: 12px; padding: 1.5rem; display: flex; align-items: center; gap: 1rem; border-left: 4px solid; }
.finding-red { background: #fff5f5; border-color: #dc2626; }
.finding-orange { background: #fff8f0; border-color: #ea580c; }
.finding-yellow { background: #fffbeb; border-color: #d97706; }
.finding-pct { font-size: 2rem; font-weight: 800; flex-shrink: 0; color: #1e293b; }
.finding-text { font-size: .88rem; color: #374151; line-height: 1.5; }

/* ===== FAQ ===== */
.faq-section { padding: 5rem 0; background: #fff; }
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.25rem; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; font-weight: 400; color: #64748b; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid #e2e8f0; }
.faq-item p { padding: 1rem 1.25rem; font-size: .9rem; color: #64748b; line-height: 1.7; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 5rem 0; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%); }
.cta-box { text-align: center; color: #fff; }
.cta-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -.02em; }
.cta-box p { font-size: 1.05rem; opacity: .85; margin-bottom: 2rem; }
.cta-form { max-width: 560px; margin: 0 auto; }
.domain-input-light { background: rgba(255,255,255,.97); }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; margin-top: 2rem; }
.form-section { margin-bottom: 1.25rem; }
.form-section label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: #374151; }
.form-input { width: 100%; padding: .7rem 1rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; background: #fff; transition: border-color .15s; }
.form-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-hint { font-size: .8rem; color: #64748b; margin-top: .25rem; display: block; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; }
.payment-note { margin-top: 1rem; font-size: .8rem; color: #64748b; text-align: center; }
.checkout-summary { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; align-self: start; }
.checkout-summary h3 { font-size: 1rem; margin-bottom: 1rem; }
.summary-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; margin-bottom: 1.5rem; }
.price-box { text-align: center; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.price { display: block; font-size: 2rem; font-weight: 800; color: #1e293b; }
.price-sub { font-size: .8rem; color: #64748b; }

/* ===== ALERTS ===== */
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-success { background: #dcfce7; color: #166534; }

/* ===== SUCCESS PAGE ===== */
.success-icon { font-size: 4rem; margin: 2rem 0 1rem; }
.action-buttons { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.spinner-wrap { display: flex; justify-content: center; padding: 2rem 0 1rem; }
.spinner { width: 48px; height: 48px; border: 4px solid #e2e8f0; border-top-color: #2563eb; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-steps { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }
.progress-step { padding: .4rem .9rem; border-radius: 20px; font-size: .85rem; background: #f1f5f9; color: #64748b; transition: all .3s; }
.progress-step.active { background: #2563eb; color: #fff; }

/* ===== REPORT ===== */
.report-header { display: flex; align-items: flex-start; justify-content: space-between; margin: 2rem 0 1.5rem; gap: 1rem; }
.report-header h1 { font-size: 1.6rem; font-weight: 800; }
.score-panel { display: flex; align-items: center; gap: 1.5rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.5rem; margin-bottom: 1rem; }
.score-circle { width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: row; flex-shrink: 0; }
.score-circle.score-good { background: #dcfce7; border: 4px solid #16a34a; }
.score-circle.score-medium { background: #fef3c7; border: 4px solid #d97706; }
.score-circle.score-bad { background: #fee2e2; border: 4px solid #dc2626; }
.score-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.score-slash { font-size: .9rem; color: #64748b; align-self: flex-end; padding-bottom: 3px; }
.score-detail { flex: 1; }
.score-detail h2 { font-size: 1.15rem; margin-bottom: .35rem; }
.score-interp { font-size: .9rem; color: #64748b; margin-bottom: .75rem; }
.count-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill { padding: .25rem .7rem; border-radius: 20px; font-size: .82rem; font-weight: 600; }
.pill-ok { background: #dcfce7; color: #166534; }
.pill-warning { background: #fef3c7; color: #92400e; }
.pill-error { background: #fee2e2; color: #991b1b; }
.pill-info { background: #dbeafe; color: #1e40af; }
.report-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; padding: .75rem 1rem; background: #f8fafc; border-radius: 8px; font-size: .85rem; }
.legend-item { display: flex; align-items: center; gap: .5rem; color: #64748b; }
.cat-section { margin-bottom: 2.5rem; }
.cat-title { font-size: 1.15rem; font-weight: 700; color: #1e40af; border-bottom: 2px solid #dbeafe; padding-bottom: .5rem; margin-bottom: 1rem; }
.results-cards { display: flex; flex-direction: column; gap: .6rem; }
.result-card { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 1rem 1.25rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; align-items: start; }
.result-card-ok { border-left: 4px solid #16a34a; }
.result-card-warning { border-left: 4px solid #d97706; background: #fffdf5; }
.result-card-error { border-left: 4px solid #dc2626; background: #fff8f8; }
.result-card-info { border-left: 4px solid #3b82f6; }
.rc-status { padding-top: .1rem; }
.status-badge { display: inline-block; padding: .25rem .7rem; border-radius: 6px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.status-ok { background: #dcfce7; color: #166534; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-error { background: #fee2e2; color: #991b1b; }
.status-info { background: #dbeafe; color: #1e40af; }
.rc-name { font-weight: 700; font-size: .95rem; margin-bottom: .4rem; color: #0f172a; }
.rc-detail { font-size: .875rem; color: #374151; margin-bottom: .4rem; line-height: 1.5; }
.rc-detail-label, .rc-value-label, .rc-reco-label { font-weight: 600; color: #64748b; font-size: .8rem; margin-right: .25rem; }
.rc-value { font-size: .82rem; color: #374151; margin-bottom: .4rem; }
.rc-value code { background: #f1f5f9; padding: .1rem .4rem; border-radius: 4px; font-family: 'Courier New', monospace; word-break: break-all; }
.rc-reco { font-size: .875rem; color: #374151; background: #f0fdf4; border-radius: 6px; padding: .5rem .75rem; margin-top: .4rem; line-height: 1.5; }

/* ===== FOOTER ===== */
.site-footer { background: #0f172a; color: #94a3b8; padding: 2rem 0; margin-top: 4rem; text-align: center; font-size: .85rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .score-preview-card { display: none; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; }
  .result-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .input-row { flex-direction: column; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .report-header { flex-direction: column; }
  .score-panel { flex-direction: column; text-align: center; }
  .stat-divider { display: none; }
  .stat-item { padding: .5rem 1.5rem; }
}
