/* ================= GLOBAL ================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #f5f7fb;
    color: #1a1a1a;
    line-height: 1.6;
}

.container { max-width: 1100px; margin: auto; padding: 0 20px; }

h1, h2, h3 { margin: 0 0 15px; }
p { margin: 0 0 10px; color: #555; }

section { position: relative; padding: 80px 0; }

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    background: rgba(15,23,42,0.85);
    padding: 16px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 22px;
    color: #22c55e;
    letter-spacing: 0.5px;
}

nav a {
    margin-left: 22px;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover { color: #22c55e; }

.nav-cta {
    background: #22c55e;
    padding: 9px 16px;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg,#0ea5e9,#6366f1);
    padding: 120px 20px 130px;
    text-align: center;
    color: #fff;
}

.hero h1 { font-size: 52px; margin-bottom: 20px; }
.hero p { font-size: 18px; max-width: 700px; margin: auto; opacity: 0.95; }

/* ================= INPUT CTA ================= */
.cta-box {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-box input {
    padding: 16px;
    width: 340px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.cta-btn {
    background: #22c55e;
    color: #000;
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.cta-btn:hover { background: #16a34a; transform: translateY(-2px); }

/* ================= HERO STATS ================= */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hero-stats div { text-align: center; }
.hero-stats strong { font-size: 26px; display: block; }
.hero-stats span { font-size: 14px; opacity: 0.85; }

/* ================= FEATURES ================= */
.features {
    background: #0f172a;
    color: #fff;
    text-align: center;
}

.features-grid {
    margin-top: 45px;
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}

.feature-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 14px;
    text-align: left;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    background: #263449;
}

/* ================= HOW IT WORKS ================= */
.how { text-align: center; background: #fff; }

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    margin-top: 45px;
}

.step { max-width: 250px; }

.step span {
    display: inline-block;
    background: #22c55e;
    color: #000;
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 12px;
}

/* ================= TRUST ================= */
.trust {
    background: #1e293b;
    text-align: center;
    color: #fff;
}

/* ================= FINAL CTA ================= */
.final-cta {
    text-align: center;
    background: linear-gradient(135deg,#6366f1,#0ea5e9);
    color: #fff;
}

.cta-btn.large {
    font-size: 18px;
    padding: 18px 38px;
    margin-top: 25px;
}

/* ================= FOOTER ================= */
footer {
    background: #0f172a;
    padding: 60px 20px 30px;
    color: #aaa;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px;
}

footer a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin: 6px 0;
}

footer a:hover { color: #fff; }

copyright {
    text-align:center;
    margin-top:30px;
    font-size:13px;
}

/* ================= ANALYZER HERO ================= */
.analyzer-hero {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg,#0ea5e9,#6366f1);
    color: #fff;
}

.analyzer-hero h1 { font-size: 42px; }
.analyzer-hero p { margin-bottom: 30px; }

/* ================= SEO RESULTS ================= */
.results-wrapper {
    max-width: 1000px;
    margin: -60px auto 80px;
    padding: 0 20px;
}

.score-box {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
}

.score-box h2 { font-size: 22px; margin-bottom: 10px; }
.score-circle {
    font-size: 48px;
    font-weight: bold;
    color: #6366f1;
}

/* ================= TABLE STYLE ================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

th, td {
    padding: 14px 18px;
    text-align: left;
}

th {
    background: #f1f5f9;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:nth-child(even) { background: #f9fafb; }

/* STATUS COLORS */
#onpageTable tr.pass td,
#technicalTable tr.pass td { color: #16a34a; font-weight: 600; }

#onpageTable tr.warning td,
#technicalTable tr.warning td { color: #f59e0b; font-weight: 600; }

#onpageTable tr.error td,
#technicalTable tr.error td { color: #ef4444; font-weight: 600; }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .cta-box input { width: 100%; }
    .hero-stats { gap: 25px; }
    nav a { margin-left: 12px; font-size: 13px; }
}

.label-cell {
    font-weight: 600;
}

.tip-text {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.85;
}

/* Color tips based on status */
tr.pass .tip-text {
    color: #4ade80;
}

tr.warning .tip-text {
    color: #facc15;
}

tr.error .tip-text {
    color: #f87171;
}

.status-cell {
    font-weight: bold;
}

.details-cell {
    color: #cbd5e1;
    font-size: 14px;
}

