/* ═══════════════════════════════════════════════
   AUTOPILOT IA — Landing Page Styles
   ═══════════════════════════════════════════════ */

:root {
    --primary: #6c5ce7;
    --primary-light: #a855f7;
    --primary-dark: #5a4bd1;
    --accent: #00d2ff;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252547;
    --text: #e2e2f0;
    --text-muted: #8888aa;
    --text-dim: #55557a;
    --success: #10b981;
    --warning: #f59e0b;
    --border: rgba(255, 255, 255, 0.06);
    --glow: rgba(108, 92, 231, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Navigation ────────────────────────────────── */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

header.scrolled {
    background: rgba(15, 15, 26, 0.95);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-accent {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* ── Hero ──────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 25px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(108, 92, 231, 0.4);
}

.btn-ghost {
    display: inline-block;
    padding: 0.95rem 2rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.btn-ghost:hover {
    color: white;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Terminal */
.hero-visual {
    margin-top: 4rem;
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.terminal-window {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px var(--glow);
}

.terminal-header {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 1.5rem;
}

.chat-message {
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease;
}

.chat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.3rem;
}

.chat-message.user .chat-label {
    color: var(--primary-light);
}

.chat-message.ai .chat-label {
    color: var(--success);
}

.chat-message p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--primary-light);
    margin-left: 2px;
    animation: blink 1s ease infinite;
    vertical-align: text-bottom;
}

/* ── Problem/Solution ─────────────────────────── */

.problem-section {
    padding: 6rem 2rem;
}

.problem-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.problem-card,
.solution-card {
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.problem-card {
    background: rgba(255, 50, 50, 0.03);
    border-color: rgba(255, 50, 50, 0.1);
}

.solution-card {
    background: rgba(108, 92, 231, 0.05);
    border-color: rgba(108, 92, 231, 0.2);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-card h3,
.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.problem-card ul,
.solution-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.problem-card li,
.solution-card li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── How it works ─────────────────────────────── */

.how-section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(108, 92, 231, 0.12);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
}

.step-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(108, 92, 231, 0.1);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Demos ────────────────────────────────────── */

.demos-section {
    padding: 6rem 2rem;
    background: rgba(108, 92, 231, 0.02);
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.demo-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-3px);
}

.demo-emoji {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.demo-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.demo-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.demo-card em {
    color: var(--primary-light);
    font-style: normal;
}

/* ── Pricing ──────────────────────────────────── */

.pricing-section {
    padding: 6rem 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 50px var(--glow);
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-tier {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    letter-spacing: -2px;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.iva-tag {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 0;
}

.iva-inline {
    font-size: 0.65em;
    color: var(--text-dim);
    font-weight: 400;
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text);
}

.pricing-features li.disabled {
    color: var(--text-dim);
    opacity: 0.5;
}

.pricing-features li.feature-section {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}

.pricing-features li.feature-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.addon-note {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.btn-pricing {
    display: block;
    text-align: center;
    padding: 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    transition: all 0.3s;
}

.btn-pricing:hover {
    background: rgba(108, 92, 231, 0.25);
    transform: translateY(-2px);
}

.btn-pricing.featured-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-pricing.featured-btn:hover {
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

/* Support addon */
.support-addon {
    margin-top: 4rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.support-addon h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.support-addon>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.support-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.support-option strong {
    font-size: 1rem;
}

.support-option span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
}

.support-option small {
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* ── FAQ ──────────────────────────────────────── */

.faq-section {
    padding: 6rem 2rem;
    background: rgba(108, 92, 231, 0.02);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Contact ──────────────────────────────────── */

.contact-section {
    padding: 6rem 2rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.contact-content>p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-form select {
    cursor: pointer;
}

.contact-form select option {
    background: var(--bg-dark);
}

.btn-submit {
    margin-top: 0.5rem;
    width: 100%;
    font-size: 1.05rem;
    padding: 1rem;
}

/* ── Footer ───────────────────────────────────── */

footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-brand p {
    width: 100%;
    margin-top: 0.5rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ── Animations ───────────────────────────────── */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .problem-grid,
    .steps-grid,
    .demos-grid,
    .pricing-grid,
    .support-options,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }
}