/* AISpedytor — Dark Mode, Mobile First */

:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-card: #22252f;
    --bg-card-hover: #2a2d38;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a4b0;
    --text-muted: #8b90a0;
    --accent: #e8a838;
    --accent-hover: #f0b848;
    --accent-subtle: rgba(232, 168, 56, 0.1);
    --accent-border: rgba(232, 168, 56, 0.2);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 900px;
    --nav-height: 64px;
}

/* RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

article a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* UTILITY */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.accent {
    color: var(--accent);
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-logo:hover {
    color: var(--text-primary);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent-border);
    color: var(--text-primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* BADGE */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* HERO */
.hero {
    padding: 140px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 24px 0 20px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 8px;
}

.hero-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-pill {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.section-closer {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 40px;
    color: var(--text-secondary);
}

.section-closer strong {
    color: var(--text-primary);
}

/* PROBLEMS */
.problems-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* STAT HIGHLIGHT */
.stat-highlight {
    text-align: center;
    padding: 32px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* SOLUTION */
.solution-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.solution-number,
.stack-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-subtle);
    color: var(--accent);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.solution-card h3,
.stack-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.solution-card p,
.stack-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CALLOUT */
.callout {
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 28px;
}

.callout p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.callout p:last-child {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* ABOUT */
.about-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.about-photo img {
    border-radius: var(--radius);
    max-width: 320px;
    margin: 0 auto;
}

.about-text .badge {
    margin-bottom: 16px;
}

.about-text h2 {
    margin-bottom: 8px;
}

.about-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
    transition: color 0.2s;
}

.linkedin-link:hover {
    color: var(--accent);
}

.linkedin-link svg {
    flex-shrink: 0;
}

/* STACK */
.stack-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 48px;
}

.stack-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

/* PRICING */
.pricing {
    display: grid;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.pricing-highlight {
    border-color: var(--accent);
    background: linear-gradient(to bottom, var(--accent-subtle), var(--bg-card));
}

.pricing-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.pricing-badge-muted {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-regular {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.8rem;
}

.pricing-includes {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.pricing-deadline {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-start {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    padding: 20px 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA SECTION */
.section-cta {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    text-align: center;
    padding: 80px 0 100px;
}

.cta-price {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.cta-deadline {
    color: var(--accent);
}

.cta-includes {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.cta-urgency {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.ps {
    margin-top: 48px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ps p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ps strong {
    color: var(--text-primary);
}

/* FOOTER */
.footer {
    padding: 32px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

/* NAV LINKS — always visible */
.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link-active {
    color: var(--accent);
}

.nav-toggle {
    display: none;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.2s;
}

/* NAV MOBILE OPEN */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
}

/* HOME HERO */
.home-hero-grid {
    display: grid;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.home-hero-photo img {
    max-width: 280px;
    margin: 0 auto;
}

.home-hero-text .hero-cta {
    justify-content: flex-start;
}

/* HOME CARDS */
.home-cards-grid {
    display: grid;
    gap: 16px;
}

.home-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.2s;
}

.home-card-link {
    text-decoration: none;
    color: inherit;
}

.home-card-link:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
    color: inherit;
}

.home-card-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-subtle);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.home-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.home-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.home-card-cta {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.home-card-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* HOME ABOUT */
.home-about {
    max-width: 600px;
}

.home-about .badge {
    margin-bottom: 16px;
}

.home-about h2 {
    margin-bottom: 8px;
}

.home-about p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* BANNER */
.banner-link {
    text-decoration: none;
    color: inherit;
}

.banner-link:hover .banner {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.banner {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.2s;
}

.banner-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.banner h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.banner-cta {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* CARD ICONS */
.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--accent);
}

.card-icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* HERO ILLUSTRATION */
.hero-illustration {
    margin: 40px auto 0;
    max-width: 600px;
}

.hero-illustration img {
    border-radius: var(--radius);
    width: 100%;
}

/* BLOG EMPTY */
.blog-empty {
    text-align: center;
    padding: 60px 0;
}

.blog-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.blog-empty h2 {
    margin-bottom: 12px;
}

.blog-empty p {
    color: var(--text-secondary);
}

/* FOOTER LINKS */
.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* RESPONSIVE — TABLET+ */
@media (min-width: 640px) {
    .nav-links {
        gap: 24px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .problems-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .solution-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .stack-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .pricing {
        grid-template-columns: 1.2fr 0.8fr;
        max-width: 600px;
    }

    .home-hero-grid {
        grid-template-columns: 1.5fr 1fr;
    }

    .home-cards-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .banner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 900px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .hero {
        padding: 160px 0 100px;
    }

    .section {
        padding: 100px 0;
    }
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.3s;
}

.cookie-text {
    flex: 1;
    max-width: 600px;
}

.cookie-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent);
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.cookie-btn-reject:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.cookie-btn-accept {
    background: var(--accent);
    color: var(--bg-primary);
}

.cookie-btn-accept:hover {
    background: var(--accent-hover);
}

.footer-cookie-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.footer-cookie-btn:hover {
    color: var(--accent);
}

@media (max-width: 640px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .cookie-buttons {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
    }
}

/* LEGAL PAGES */
.legal-page {
    max-width: 700px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--accent);
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.85rem;
}

.legal-table th,
.legal-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.legal-table th {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--bg-secondary);
}

.legal-table td {
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .legal-table {
        font-size: 0.75rem;
    }
    .legal-table th,
    .legal-table td {
        padding: 8px 6px;
    }
}

/* MAILERLITE EMBED — dark theme override */
.ml-form-embedWrapper {
    background: transparent !important;
    border: none !important;
}
.ml-form-embedBody {
    background: var(--bg-card) !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    padding: 24px !important;
}
.ml-form-embedBody .ml-form-embedContent h4,
.ml-form-embedBody .ml-form-embedContent p {
    color: var(--text-primary) !important;
}
.ml-form-embedBody .ml-form-embedContent p {
    color: var(--text-secondary) !important;
}
.ml-form-embedBody .ml-form-fieldRow input[type="email"] {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--accent-border) !important;
    border-radius: var(--radius-sm) !important;
    font-family: inherit !important;
}
.ml-form-embedBody .ml-form-fieldRow input[type="email"]::placeholder {
    color: var(--text-muted) !important;
}
.ml-form-embedBody .ml-form-embedSubmit button {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    border-radius: var(--radius-sm) !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background .2s !important;
}
.ml-form-embedBody .ml-form-embedSubmit button:hover {
    background: var(--accent-hover) !important;
}
.ml-form-successBody {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius) !important;
}
.ml-form-successBody h4,
.ml-form-successBody p {
    color: var(--text-primary) !important;
}
