/* ============================================================
   Autom8tion Works — Modern Design System
   Per-page accent gradients are set in each HTML file's <head>:
     --accent-from   gradient start
     --accent-to     gradient end
   Defaults below = home page (cyan → blue).
   ============================================================ */

:root {
    /* Brand surfaces (shared across all pages) */
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #0a0e27;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    /* Text */
    --text: #0f172a;
    --text-muted: #64748b;
    --text-on-dark: #f1f5f9;
    --text-on-dark-muted: #94a3b8;

    /* Per-page accent gradient (home defaults) */
    --accent-from: #06b6d4;
    --accent-to: #3b82f6;
    --accent: var(--accent-from);
    --accent-soft: rgba(6, 182, 212, 0.08);
    --accent-ring: rgba(6, 182, 212, 0.35);
    --accent-shadow: rgba(59, 130, 246, 0.25);

    /* Tokens */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
    --shadow-glow: 0 20px 60px -10px var(--accent-shadow);

    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container: 1200px;
    --section-pad-y: 6rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-display);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -0.02em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============== Navigation ============== */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.site-nav.scrolled { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--border); }
.site-nav .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.9rem; padding-bottom: 0.9rem; gap: 1.5rem;
}
.site-nav .logo {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--text);
}
.site-nav .logo-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 0.85rem;
    box-shadow: 0 4px 16px -4px var(--accent-shadow);
}
.site-nav ul { list-style: none; display: flex; gap: 0.25rem; align-items: center; }
.site-nav ul a {
    display: inline-block; padding: 0.5rem 0.85rem; border-radius: 8px;
    font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
}
.site-nav ul a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav ul a[aria-current="page"] { color: var(--text); background: var(--accent-soft); font-weight: 600; }
.nav-cta {
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    color: white !important; font-weight: 600 !important;
    padding: 0.6rem 1.1rem !important;
    box-shadow: 0 6px 20px -8px var(--accent-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to)) !important;
    box-shadow: 0 10px 28px -10px var(--accent-shadow);
}
.menu-toggle {
    display: none; background: none; border: 1px solid var(--border);
    border-radius: 8px; padding: 0.5rem; color: var(--text);
}

/* ============== Buttons ============== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.9rem 1.5rem; border-radius: var(--radius-pill);
    border: none; font-family: inherit; font-size: 1rem; font-weight: 600;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    color: white;
    box-shadow: 0 10px 28px -10px var(--accent-shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent-shadow); }
.btn-primary:focus-visible,
.btn-secondary:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-arrow svg { transition: transform 0.18s; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ============== Hero ============== */
.hero {
    position: relative; padding: 5rem 0 6rem; overflow: hidden;
    background:
        radial-gradient(60% 80% at 20% 0%, var(--accent-soft) 0%, transparent 60%),
        radial-gradient(50% 70% at 100% 30%, rgba(59,130,246,0.06) 0%, transparent 60%),
        white;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero-content .eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--accent-soft); color: var(--text);
    padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
    font-size: 0.82rem; font-weight: 600; margin-bottom: 1.5rem;
    border: 1px solid var(--accent-ring);
}
.hero-content .eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}
.hero h1 {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    font-weight: 800; margin-bottom: 1.25rem; color: var(--text);
}
.hero h1 .accent-gradient {
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero .subheadline { font-size: 1.18rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 32em; }
.hero .cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; color: var(--text-muted); font-size: 0.92rem; }
.hero-trust .trust-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust .trust-item svg { color: var(--accent); }

.hero-visual {
    position: relative; aspect-ratio: 1 / 1;
    max-width: 480px; justify-self: end; width: 100%;
}
.hero-visual::before, .hero-visual::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(40px); opacity: 0.55;
}
.hero-visual::before { width: 70%; height: 70%; background: var(--accent-from); top: 5%; left: 5%; animation: float-a 8s ease-in-out infinite; }
.hero-visual::after { width: 60%; height: 60%; background: var(--accent-to); bottom: 5%; right: 5%; animation: float-b 10s ease-in-out infinite; }
.hero-visual .card {
    position: absolute; background: white;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 0.85rem;
    font-size: 0.92rem; font-weight: 500; color: var(--text);
}
.hero-visual .card .ico {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    color: white; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-visual .card-1 { top: 12%; left: -6%; }
.hero-visual .card-2 { top: 48%; right: -8%; }
.hero-visual .card-3 { bottom: 12%; left: 18%; }
.hero-visual .card .metric { color: var(--accent); font-weight: 700; margin-left: auto; }
@keyframes float-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(15px, -10px); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-12px, 12px); } }

/* ============== Sections ============== */
section { padding: var(--section-pad-y) 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-header .eyebrow {
    display: inline-block; background: var(--accent-soft); color: var(--text);
    padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
    font-size: 0.78rem; font-weight: 600; margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark h2 { color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }

/* ============== Cards / tiles ============== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.tile {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tile .icon-badge {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    color: white; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; box-shadow: 0 8px 24px -8px var(--accent-shadow);
}
.tile h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.tile p { color: var(--text-muted); font-size: 0.95rem; }

/* ============== Process steps ============== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem; text-align: center;
}
.step-number {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    color: white; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; margin: 0 auto 1rem;
    box-shadow: 0 8px 20px -8px var(--accent-shadow);
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 0.92rem; }
.solution-note { text-align: center; color: var(--text-muted); max-width: 800px; margin: 2.5rem auto 0; font-size: 0.98rem; }

/* ============== Solution boxes ============== */
.solution-list { display: grid; gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.solution-box {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    position: relative; overflow: hidden;
}
.solution-box::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--accent-from), var(--accent-to));
}
.solution-box h3 {
    font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem;
    display: inline-flex; align-items: center; gap: 0.6rem;
}
.solution-box h3 svg { color: var(--accent); flex-shrink: 0; }
.solution-box p { color: var(--text-muted); font-size: 0.97rem; }

.outcome-list {
    list-style: none; background: white;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.75rem 2rem; margin: 2.5rem auto 0;
    max-width: 700px; display: grid; gap: 0.85rem;
}
.outcome-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text); font-size: 0.98rem; }
.outcome-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ============== Stats ============== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat {
    text-align: center; background: white;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
}
.stat-value {
    font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 0.4rem; letter-spacing: -0.03em;
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* ============== Illustrative-example tag ============== */
.example-tag {
    display: inline-block;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    align-self: flex-start;
}
.example-tag-dark {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark-muted);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

/* ============== Testimonials ============== */
.testimonial-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-card .company-name { font-weight: 700; color: var(--text); }
.testimonial-card .challenge { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }
.testimonial-metrics {
    background: var(--accent-soft); color: var(--text);
    border-radius: var(--radius-md); padding: 0.85rem 1rem;
    font-size: 0.88rem; font-weight: 500;
}
.testimonial-card .quote {
    font-size: 1rem; color: var(--text); line-height: 1.5;
    border-left: 3px solid var(--accent); padding-left: 1rem; font-style: italic;
}
.testimonial-card .attribution { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; }

.testimonial-block {
    max-width: 800px; margin: 0 auto;
    background: var(--bg-dark); color: var(--text-on-dark);
    border-radius: var(--radius-xl); padding: 3rem;
    position: relative; overflow: hidden;
}
.testimonial-block::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(closest-side, var(--accent-from), transparent 70%);
    opacity: 0.35; pointer-events: none;
}
.testimonial-block .quote-mark {
    font-size: 4rem; line-height: 1; color: var(--accent);
    font-family: Georgia, serif; margin-bottom: -1rem;
}
.testimonial-block .testimonial-text {
    font-size: 1.25rem; line-height: 1.5; margin-bottom: 1.5rem;
    color: var(--text-on-dark); position: relative; z-index: 1;
}
.testimonial-block .testimonial-author {
    color: var(--text-on-dark-muted); font-size: 0.95rem;
    position: relative; z-index: 1;
}

/* ============== Pricing ============== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.pricing-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2.5rem 2rem;
    display: flex; flex-direction: column;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
    position: relative;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.featured {
    border: 1px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, var(--accent-from), var(--accent-to)) border-box;
    box-shadow: 0 24px 60px -20px var(--accent-shadow);
}
.pricing-card.featured .pop-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    color: white; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    padding: 0.35rem 1rem; border-radius: var(--radius-pill);
    box-shadow: 0 6px 18px -6px var(--accent-shadow); text-transform: uppercase;
}
.pricing-card h3 {
    font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 0.5rem;
}
.pricing-card .price-row { display: baseline; margin-bottom: 0.25rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1; }
.pricing-card .price-period { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; margin-top: 0.4rem; }
.pricing-card .quarterly {
    font-size: 0.95rem; color: var(--text);
    margin-bottom: 0.75rem; padding-top: 1rem; border-top: 1px dashed var(--border);
}
.pricing-card .quarterly strong { font-weight: 700; color: var(--text); }
.pricing-card .best-for { color: var(--text-muted); font-size: 0.9rem; margin: 1rem 0 1.5rem; }
.pricing-card .feature-list { list-style: none; margin: 0 0 1.75rem; display: grid; gap: 0.65rem; flex-grow: 1; }
.pricing-card .feature-list li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text); font-size: 0.93rem; }
.pricing-card .feature-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.pricing-card .yearly-total { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.25rem; text-align: center; }
.pricing-card .yearly-total strong { color: var(--text); font-weight: 700; }
.pricing-note { color: var(--text-muted); font-size: 0.88rem; text-align: center; max-width: 800px; margin: 2rem auto 0; line-height: 1.7; }

/* ============== FAQ ============== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: border-color 0.18s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-question {
    width: 100%; background: none; border: none;
    padding: 1.25rem 1.5rem; display: flex;
    justify-content: space-between; align-items: center; gap: 1rem;
    text-align: left; font-family: inherit;
    font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer;
}
.faq-question:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: -2px; }
.faq-toggle {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; transition: transform 0.2s;
}
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    padding: 0 1.5rem; max-height: 0; overflow: hidden;
    color: var(--text-muted);
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem; max-height: 400px; }

/* ============== Final CTA ============== */
.final-cta {
    position: relative; background: var(--bg-dark);
    color: var(--text-on-dark); overflow: hidden;
}
.final-cta::before {
    content: ''; position: absolute; top: -60%; left: -20%;
    width: 60%; height: 220%;
    background: radial-gradient(closest-side, var(--accent-from), transparent 70%);
    opacity: 0.3; pointer-events: none;
}
.final-cta::after {
    content: ''; position: absolute; bottom: -60%; right: -20%;
    width: 60%; height: 220%;
    background: radial-gradient(closest-side, var(--accent-to), transparent 70%);
    opacity: 0.28; pointer-events: none;
}
.final-cta .container { text-align: center; position: relative; z-index: 1; }
.final-cta h2 {
    color: white; font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800; margin-bottom: 1rem;
}
.final-cta p {
    color: var(--text-on-dark-muted); font-size: 1.1rem;
    max-width: 640px; margin: 0 auto 2rem;
}

/* ============== Floating CTA ============== */
.floating-cta {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
    transform: translateY(20px); opacity: 0; pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    box-shadow: 0 16px 40px -10px var(--accent-shadow);
}
.floating-cta.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* ============== Footer ============== */
.site-footer {
    background: var(--bg-dark); color: var(--text-on-dark-muted);
    padding: 4rem 0 2rem; font-size: 0.92rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .logo {
    display: inline-flex; align-items: center; gap: 0.55rem;
    color: white; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.75rem;
}
.footer-brand p { color: var(--text-on-dark-muted); font-size: 0.92rem; max-width: 28em; }
.footer-col h4 {
    color: white; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 1rem; font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-on-dark-muted); transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    color: var(--text-on-dark-muted); font-size: 0.85rem;
}

/* ============== Form modal ============== */
.form-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
}
.form-overlay.active { display: block; }
.form-container {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 92vw); max-height: 92vh; overflow-y: auto;
    background: white; border-radius: var(--radius-xl);
    padding: 2.25rem; box-shadow: 0 30px 80px rgba(10, 14, 39, 0.4); z-index: 1000;
}
.form-container.active { display: block; }
.form-container h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-soft); border: none; cursor: pointer;
    color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem; transition: background 0.15s;
}
.form-close:hover { background: var(--border); }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; margin-bottom: 0.4rem;
    font-size: 0.88rem; font-weight: 600; color: var(--text);
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 0.75rem 0.95rem;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    font-family: inherit; font-size: 0.95rem; background: var(--bg-soft);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--accent); background: white;
    box-shadow: 0 0 0 4px var(--accent-ring);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
    width: 100%; padding: 0.95rem;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    color: white; border: none; border-radius: var(--radius-pill);
    font-weight: 600; cursor: pointer; font-size: 1rem; margin-top: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px var(--accent-shadow); }
.form-note { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; }

/* ============== Responsive ============== */
@media (max-width: 960px) {
    :root { --section-pad-y: 4rem; }
    .hero { padding: 3.5rem 0 4rem; }
    .hero .container { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { max-width: 360px; margin: 0 auto; justify-self: center; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .site-nav ul { display: none; }
    .site-nav ul.is-open {
        display: flex; position: absolute;
        top: 100%; left: 0; right: 0; background: white;
        flex-direction: column; gap: 0; padding: 0.5rem;
        border-bottom: 1px solid var(--border);
    }
    .site-nav ul.is-open li { width: 100%; }
    .site-nav ul.is-open a { display: block; width: 100%; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .hero h1 { font-size: clamp(1.8rem, 6.5vw, 2.4rem); }
    .hero .cta-row { flex-direction: column; align-items: stretch; }
    .hero .cta-row .btn { width: 100%; }
    .section-header { margin-bottom: 2.5rem; }

    .testimonial-block { padding: 2rem; }
    .testimonial-block .testimonial-text { font-size: 1.1rem; }
    .footer-grid { grid-template-columns: 1fr; }

    .floating-cta { right: 1rem; bottom: 1rem; }
    .floating-cta .btn { padding: 0.75rem 1.1rem; font-size: 0.92rem; }
    .form-container { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-visual { max-width: 280px; }
    .hero-visual .card { font-size: 0.82rem; padding: 0.85rem 1rem; }
    .hero-visual .card .ico { width: 30px; height: 30px; }
}
