/* ==========================================================================
   AI Auto SEO — marketing site stylesheet
   Dark theme, amber accent. Plain CSS. No frameworks.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Surfaces (matches app palette) */
    --bg-app:        #0f1112;
    --bg-surface:    #1a1c1d;
    --bg-elevated:   #202223;
    --bg-raised:     #282a2b;

    /* Brand accent — amber */
    --accent:        #f59e0b;
    --accent-hover:  #fbbf24;
    --accent-pressed:#d97706;
    --accent-soft:   rgba(245, 158, 11, 0.12);
    --accent-glow:   rgba(245, 158, 11, 0.35);

    /* Secondary tints */
    --secondary:     #008060;   /* keeps tie-in with app */
    --info:          #458fff;
    --success:       #22c55e;
    --error:         #ef4444;

    /* Text */
    --text-primary:   #f3f4f6;
    --text-secondary: #cbd1d6;
    --text-muted:     #8c9196;
    --text-inverse:   #0f1112;

    /* Border */
    --border:        #2a2c2e;
    --border-light:  #3a3d3f;

    /* Effects */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 0 4px var(--accent-soft);

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--text-inverse); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}
.section--tight  { padding: 64px 0; }
.section--alt    { background: var(--bg-surface); }
.section--accent { background: linear-gradient(135deg, #1a1c1d 0%, #221c10 100%); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-head .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-head p {
    font-size: 17px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: 0 6px 16px -6px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--text-inverse); transform: translateY(-1px); }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--accent); color: var(--text-primary); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--accent); background: transparent; }

.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 18, 0.85);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.nav-logo .logo-mark {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-pressed) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px -4px var(--accent-glow);
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -22px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
    .nav-links,
    .nav-cta .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav.open .nav-links {
        display: flex;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        flex-direction: column;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px 28px;
        gap: 18px;
    }
    .nav.open .nav-cta .btn {
        display: inline-flex;
        position: absolute;
        top: calc(var(--nav-height) + 220px);
        left: 24px; right: 24px;
    }
    .nav-links a.active::after { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    padding: 96px 0 88px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(245, 158, 11, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 128, 96, 0.08), transparent 60%),
        var(--bg-app);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}
.hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}
.hero h1 .gradient-text {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-hover) 50%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lede {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: 32px;
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 13px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* ==========================================================================
   Social proof bar
   ========================================================================== */

.social-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 24px 0;
}
.social-bar-inner {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.02em;
}
.social-bar-inner strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */

.grid {
    display: grid;
    gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1024px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .grid-3, .grid-6 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.card .icon-wrap {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.card .icon-wrap svg { width: 22px; height: 22px; }
.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.card p {
    font-size: 14.5px;
    color: var(--text-secondary);
}

/* Problem cards: red-tinted icon */
.problem-card .icon-wrap {
    background: rgba(239, 68, 68, 0.10);
    color: var(--error);
}

/* ==========================================================================
   Pipeline visual flow
   ========================================================================== */

.pipeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-top: 16px;
}
.pipeline-stage {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    position: relative;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.pipeline-stage:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.pipeline-stage .num {
    display: inline-block;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 8px;
}
.pipeline-stage h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}
.pipeline-stage p {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}
@media (max-width: 1100px) {
    .pipeline { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
    .pipeline { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   How it works — 3 steps
   ========================================================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
}
.step {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -22px; left: 24px;
    width: 44px; height: 44px;
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 8px 20px -8px var(--accent-glow);
}
.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 14px 0 8px;
}
.step p {
    color: var(--text-secondary);
    font-size: 14.5px;
}
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   Comparison table
   ========================================================================== */

.compare-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}
.compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.compare th, .compare td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.compare thead th {
    background: var(--bg-elevated);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.compare thead th.us {
    color: var(--accent);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.04));
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:hover { background: var(--bg-elevated); }
.compare td.us { color: var(--accent); font-weight: 600; }
.compare .check { color: var(--success); font-weight: 700; }
.compare .x     { color: var(--text-muted); }
.compare .partial { color: var(--accent); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.testimonial blockquote {
    font-size: 15.5px;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.testimonial-author .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--text-inverse);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.testimonial-author .name {
    font-size: 14px;
    font-weight: 600;
}
.testimonial-author .title {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; }
}
.plan {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.plan:hover { border-color: var(--border-light); transform: translateY(-2px); }
.plan.popular {
    border-color: var(--accent);
    box-shadow: 0 20px 50px -28px var(--accent-glow);
}
.plan.popular::before {
    content: 'Most popular';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text-inverse);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}
.plan-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}
.plan-price {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.plan-price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}
.plan-desc { color: var(--text-secondary); font-size: 14px; }
.plan ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.plan ul li {
    padding-left: 22px;
    position: relative;
}
.plan ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 10px 10px;
    background-repeat: no-repeat;
    background-position: center;
}
.plan .btn { margin-top: auto; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta {
    text-align: center;
    padding: 80px 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 100%, rgba(245, 158, 11, 0.18), transparent 70%),
        var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta h2 {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.cta p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 28px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--bg-app);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
.footer-brand p {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 14px;
    max-width: 320px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
