/* ==========================================================================
   AutoCrafterAI — Home (landing) Stylesheet
   Loaded only on the home page. Uses the global tokens from app.css.

   Sections:  1. Scroll-reveal   2. Section scaffolding   3. Hero
              4. Mockup window     5. Features   6. Differentiator
              7. Steps   8. Pricing   9. FAQ   10. Final CTA   11. Responsive
   ========================================================================== */

/* 1. Scroll-reveal ------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* Stagger children within a group */
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 2. Section scaffolding ------------------------------------------------- */
.section { padding: clamp(64px, 10vw, 110px) 0; position: relative; }
/* Slightly translucent so the fixed page spotlight shows faintly through. */
.section--alt { background-color: rgba(244, 248, 250, 0.72); }

/* Whole-page cursor spotlight: a fixed grid + brand glow behind ALL content,
   trailing the mouse across the entire page. Sits behind content (z-index -1)
   and shows through the light section backgrounds. JS updates --mx / --my. */
.page-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    --mx: 50%;
    --my: 26%;
}
/* always-on faint grid across the viewport, vignetted top-centre */
.page-fx::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(24, 168, 200, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(24, 168, 200, 0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(120% 95% at 50% 22%, #000 0%, rgba(0, 0, 0, 0.4) 58%, transparent 92%);
            mask-image: radial-gradient(120% 95% at 50% 22%, #000 0%, rgba(0, 0, 0, 0.4) 58%, transparent 92%);
}
/* cursor spotlight: bright glow core + brighter grid patch, masked to a
   circle that trails the pointer anywhere on the page */
.page-fx::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(210px 210px at var(--mx) var(--my), rgba(24, 168, 200, 0.28), transparent 70%),
        radial-gradient(560px 560px at var(--mx) var(--my), rgba(24, 168, 200, 0.13), transparent 62%),
        linear-gradient(to right, rgba(24, 168, 200, 0.38) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(24, 168, 200, 0.38) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
    -webkit-mask-image: radial-gradient(360px 360px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.5) 46%, transparent 78%);
            mask-image: radial-gradient(360px 360px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.5) 46%, transparent 78%);
}
@media (prefers-reduced-motion: reduce) {
    .page-fx::after { display: none; }
}

.container--narrow { max-width: 760px; }

.section-head {
    max-width: 640px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}
.section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--brand);
}
.section-title {
    font-size: clamp(28px, 4.5vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
}
.section-lead {
    margin: 16px 0 0;
    font-size: 17px;
    color: var(--text-secondary);
}

/* 3. Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(56px, 9vw, 110px) 0;
    overflow: hidden;
    isolation: isolate;
    /* Soft brand-gradient combination (light) — the previous working look. */
    background:
        radial-gradient(52% 48% at 86% 6%, rgba(24, 168, 200, 0.14), transparent 62%),
        radial-gradient(46% 46% at 8% 24%, rgba(28, 108, 143, 0.09), transparent 60%),
        linear-gradient(135deg, #e8f5f9 0%, #f3fafb 42%, var(--bg-main) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero .hero-copy { max-width: 560px; }


/* Cursor-following spotlight + a grid that brightens near the pointer.
   JS updates --mx / --my (px). Fully static + harmless without JS. */
.hero-fx {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    --mx: 78%;
    --my: 26%;
}
/* Always-on faint grid across the hero, softly vignetted at the edges. */
.hero-fx::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(24, 168, 200, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(24, 168, 200, 0.09) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(115% 100% at 62% 22%, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 90%);
            mask-image: radial-gradient(115% 100% at 62% 22%, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 90%);
}
/* Cursor spotlight: a brighter grid patch + a soft brand glow, together
   masked to a circle that trails the pointer. */
.hero-fx::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(200px 200px at var(--mx) var(--my), rgba(24, 168, 200, 0.30), transparent 70%),
        radial-gradient(520px 520px at var(--mx) var(--my), rgba(24, 168, 200, 0.16), transparent 62%),
        linear-gradient(to right, rgba(24, 168, 200, 0.42) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(24, 168, 200, 0.42) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
    -webkit-mask-image: radial-gradient(340px 340px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.5) 46%, transparent 78%);
            mask-image: radial-gradient(340px 340px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.5) 46%, transparent 78%);
}

@media (prefers-reduced-motion: reduce) {
    .hero-fx::after { display: none; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}
.hero-copy { max-width: 560px; min-width: 0; }
.hero-visual { min-width: 0; }
.hero-title {
    margin-top: 18px;
    font-size: clamp(28px, 6.5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}
.hero-sub {
    margin: 20px 0 0;
    font-size: clamp(16px, 2.2vw, 19px);
    color: var(--text-secondary);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.hero-trust {
    margin: 22px 0 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 4. Mockup window ------------------------------------------------------- */
.mock-window {
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: var(--bg-main);
    box-shadow: 0 30px 60px -24px rgba(17, 42, 51, 0.22);
    overflow: hidden;
}
.mock-bar {
    display: flex;
    gap: 7px;
    padding: 14px 16px;
    background-color: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.mock-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--border-soft);
}
.mock-body { padding: 22px; }
.mock-prompt {
    margin: 0 0 18px;
    padding: 12px 14px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--text-primary);
    background-color: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
}
.mock-caret { color: var(--brand); font-weight: 700; }
.mock-widgets { display: flex; flex-direction: column; gap: 12px; }
.mock-widget { border-radius: 7px; }
.mock-widget--heading {
    height: 22px;
    width: 62%;
    background-image: var(--brand-gradient);
}
.mock-widget--text {
    height: 12px;
    width: 100%;
    background-color: var(--border-soft);
}
.mock-widget--short { width: 80%; }
.mock-widget--button {
    height: 36px;
    width: 140px;
    margin-top: 4px;
    background-color: var(--brand);
    opacity: 0.85;
}
.mock-tag {
    display: inline-block;
    margin-top: 18px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
    background-color: var(--brand-tint);
    border-radius: var(--radius-pill);
}

/* --- Laptop frame around the self-running demo --- */
/* The whole laptop gently floats; the body leans toward the cursor (JS-driven).
   Rest pose is set in CSS so it still looks 3D without JS / under reduced motion. */
.hero-visual { perspective: 1500px; }
.laptop {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    animation: laptop-float 7s ease-in-out infinite;
}
.laptop-body {
    transform: rotateX(2deg) rotateY(-7deg);
    transform-style: preserve-3d;
    will-change: transform;
}
.laptop-screen {
    position: relative;
    padding: 11px 11px 13px;
    background: linear-gradient(160deg, #1b3540, #0d222b);
    border-radius: 16px 16px 9px 9px;
    box-shadow:
        0 2px 4px rgba(17, 42, 51, 0.18),
        0 34px 60px -26px rgba(17, 42, 51, 0.5);
}
.laptop-cam {
    position: absolute;
    top: 4px; left: 50%;
    width: 5px; height: 5px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}
/* The demo UI fills the screen — drop the standalone-window frame. */
.laptop-screen .mock-window {
    border: 0;
    border-radius: 7px;
    box-shadow: none;
    transform: none;
}
/* Your product screenshot, sitting inside the laptop screen. */
.laptop-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 7px;
}

/* A full laptop photo used in place of the CSS frame.
   mix-blend-mode: multiply melts a white product-shot background into the light
   hero (and keeps the photo's own soft shadow), so no white box shows. */
.hero-laptop-photo {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0 auto;
    /* Transparent cutout — a soft neutral shadow on the light hero. */
    filter: drop-shadow(0 30px 55px rgba(17, 42, 51, 0.26));
    animation: laptop-float 7s ease-in-out infinite;
}
.laptop-base {
    position: relative;
    width: 116%;
    left: -8%;
    height: 15px;
    background: linear-gradient(180deg, #e4eaee 0%, #b7c2c9 100%);
    border-radius: 0 0 10px 10px / 0 0 70px 70px;
    box-shadow: 0 18px 22px -14px rgba(17, 42, 51, 0.45);
}
.laptop-notch {
    position: absolute;
    top: 0; left: 50%;
    width: 88px; height: 7px;
    transform: translateX(-50%);
    background: rgba(17, 42, 51, 0.16);
    border-radius: 0 0 8px 8px;
}
@keyframes laptop-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.mock-cursor {
    display: inline-block;
    width: 2px; height: 14px;
    margin-left: 1px;
    vertical-align: -2px;
    background-color: var(--brand);
    animation: mock-blink 1s steps(1) infinite;
}
@keyframes mock-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Animated states apply only once JS adds .is-anim (graceful no-JS fallback). */
.mock-window.is-anim .mock-widget {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.mock-window.is-anim .mock-widget.is-built { opacity: 1; transform: none; }
.mock-window.is-anim .mock-widget.is-generating {
    opacity: 1;
    transform: none;
    position: relative;
    overflow: hidden;
    background-image: none;
    background-color: var(--bg-soft);
}
.mock-window.is-anim .mock-widget.is-generating::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: translateX(-100%);
    animation: mock-shimmer 0.9s ease-in-out infinite;
}
@keyframes mock-shimmer { to { transform: translateX(100%); } }

.mock-window.is-anim .mock-tag {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.mock-window.is-anim .mock-tag.is-shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .laptop,
    .mock-window,
    .mock-cursor { animation: none; }
}

/* --- See it in action (video) --- */
.video-frame {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background-color: #0d222b;
    border: 1px solid var(--border);
    box-shadow: 0 44px 74px -34px rgba(17, 42, 51, 0.45);
}
.video-facade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%; height: 100%;
    padding: 0; border: 0; cursor: pointer;
    background-color: #0d222b;
}
.video-facade::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13, 34, 43, 0.12), rgba(13, 34, 43, 0.5));
}
.video-poster {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-play {
    position: absolute;
    top: 50%; left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: grid; place-items: center;
    width: 84px; height: 84px;
    color: #fff;
    background-image: var(--brand-gradient);
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(24, 168, 200, 0.5);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
    transform: translate(-50%, -50%) scale(1.09);
    box-shadow: 0 18px 40px rgba(24, 168, 200, 0.6);
}
.video-duration {
    position: absolute;
    bottom: 18px; left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    padding: 6px 15px;
    font-size: 13px; font-weight: 600; color: #fff;
    background-color: rgba(17, 42, 51, 0.55);
    border-radius: var(--radius-pill);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}
/* Hide our play button/label once the player is loading over the poster. */
.video-facade.is-playing .video-play,
.video-facade.is-playing .video-duration,
.video-facade.is-playing::after { opacity: 0; pointer-events: none; }
.video-iframe {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%; height: 100%;
    border: 0;
    background-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
    .video-play { transition: none; }
}

/* --- Quick steps + trust bar (below the hero) --- */
.hero-steps { padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 64px); }
.hstep-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(20px, 5vw, 72px);
}
.hstep {
    flex: 1 1 0;
    max-width: 300px;
    text-align: center;
}
.hstep-ico {
    display: inline-grid;
    place-items: center;
    width: 64px; height: 64px;
    margin-bottom: 16px;
    color: var(--brand);
    background-color: var(--brand-tint);
    border-radius: 50%;
}
.hstep-ico svg { width: 28px; height: 28px; }
.hstep-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.hstep-text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }

.trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 16px 28px;
    max-width: 900px;
    margin: clamp(30px, 5vw, 52px) auto 0;
    padding: 20px 32px;
    background-color: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.trust-mark {
    display: inline-grid;
    place-items: center;
    width: 30px; height: 30px;
    color: var(--text-primary);
    flex: none;
}
.trust-mark svg { width: 26px; height: 26px; }

/* 5. Features ------------------------------------------------------------ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature-card {
    position: relative;
    padding: 28px 24px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-bright);
    box-shadow: 0 18px 36px -20px rgba(24, 168, 200, 0.45);
}
.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 11px;
    color: var(--brand);
    background-color: var(--brand-tint);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.feature-text {
    margin: 10px 0 16px;
    font-size: 14.5px;
    color: var(--text-secondary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 11px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: var(--radius-pill);
}
.badge--free {
    color: var(--brand);
    background-color: var(--brand-tint);
}
.badge--pro {
    color: #fff;
    background-image: var(--brand-gradient);
}

/* 6. Differentiator ------------------------------------------------------ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}
.split-copy { max-width: 520px; }
.check-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.check-list li {
    position: relative;
    padding-left: 30px;
    font-size: 15.5px;
    color: var(--text-primary);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        var(--brand-gradient);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat,
        linear-gradient(#000, #000);
    -webkit-mask-composite: source-over;
}

/* Editable-widgets showcase (a builder canvas of real widgets) */
.builder {
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: var(--bg-main);
    box-shadow: 0 30px 60px -28px rgba(17, 42, 51, 0.2);
    overflow: hidden;
}
.builder-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 16px;
    background-color: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.builder-bar > span:not(.builder-title) {
    width: 11px; height: 11px;
    border-radius: 50%;
    background-color: var(--border-soft);
}
.builder-title {
    margin-left: 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--text-secondary);
}
.builder-canvas {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.wbox:hover { border-color: var(--border-soft); background-color: var(--bg-soft); }
.wbox-handle {
    flex: 0 0 auto;
    width: 12px; height: 22px;
    color: var(--text-secondary);
    opacity: 0.4;
    background-image: radial-gradient(currentColor 1.1px, transparent 1.1px);
    background-size: 5px 6px;
}
.wbox-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wbox-label {
    flex: 0 0 auto;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* the "selected" widget — shows it is editable */
.wbox--active {
    border-color: var(--brand-bright);
    background-color: var(--brand-tint);
}
.wbox--active .wbox-label { color: var(--brand); opacity: 1; }
.wbox--active::before,
.wbox--active::after {
    content: "";
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--brand-bright);
}
.wbox--active::before { top: -4px; left: -4px; }
.wbox--active::after { bottom: -4px; right: -4px; }

.builder-note {
    margin: 16px 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--text-secondary);
}

/* Auto-rotating screenshot slideshow (GIF-style cross-fade) */
.showcase {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: var(--bg-main);
    box-shadow: 0 30px 60px -30px rgba(17, 42, 51, 0.32);
}
.showcase-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background-color: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.showcase-bar > span:not(.showcase-title) {
    width: 11px; height: 11px;
    border-radius: 50%;
    background-color: var(--border-soft);
}
.showcase-title {
    margin-left: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}
.showcase-video {
    display: block;
    width: 100%;
    height: auto;
    background-color: var(--bg-main);
}
.showcase-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-main);
}
.showcase-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    animation: showcase-cycle 13.5s ease-in-out infinite;
}
.showcase-img:nth-child(1) { animation-delay: 0s; }
.showcase-img:nth-child(2) { animation-delay: 4.5s; }
.showcase-img:nth-child(3) { animation-delay: 9s; }
@keyframes showcase-cycle {
    0% { opacity: 0; }
    3% { opacity: 1; }
    30% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}
.showcase-dots {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: rgba(17, 42, 51, 0.45);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}
.showcase-dots i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    animation: showcase-dot 13.5s ease-in-out infinite;
}
.showcase-dots i:nth-child(1) { animation-delay: 0s; }
.showcase-dots i:nth-child(2) { animation-delay: 4.5s; }
.showcase-dots i:nth-child(3) { animation-delay: 9s; }
@keyframes showcase-dot {
    0%, 33% { background-color: rgba(255, 255, 255, 0.45); }
    3%, 30% { background-color: var(--brand-bright); }
    34%, 100% { background-color: rgba(255, 255, 255, 0.45); }
}
@media (prefers-reduced-motion: reduce) {
    .showcase-img { animation: none; }
    .showcase-img:nth-child(1) { opacity: 1; }
    .showcase-dots i { animation: none; }
}

/* Comparison table */
.compare-wrap {
    max-width: 940px;
    margin: 0 auto;
    overflow-x: auto;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.compare thead th {
    font-family: var(--font-heading); font-size: 13px; font-weight: 700;
    letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-secondary);
    background-color: var(--bg-soft);
}
.compare tbody th { font-weight: 700; color: var(--text-primary); width: 30%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .compare-us { background-color: var(--brand-tint); }
.compare thead th.compare-us { color: var(--brand); }
.compare-no, .compare-yes { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--text-secondary); }
.compare-no::before {
    content: "✕"; flex: none; font-weight: 700; color: #c0563f; line-height: 1.4;
}
.compare-yes { color: var(--text-primary); font-weight: 600; }
.compare-yes::before {
    content: "✓"; flex: none; font-weight: 700; color: var(--brand); line-height: 1.4;
}

/* AI models supported */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 940px; margin: 0 auto; }
.model-card {
    padding: 26px 24px;
    text-align: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.model-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-bright);
    box-shadow: 0 18px 36px -22px rgba(24, 168, 200, 0.4);
}
.model-mark {
    display: inline-grid; place-items: center;
    width: 54px; height: 54px; margin-bottom: 14px;
    color: var(--brand);
    background-color: var(--brand-tint);
    border-radius: 50%;
}
.model-mark svg { width: 26px; height: 26px; }
.model-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.model-text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.models-note { margin: 26px auto 0; max-width: 620px; text-align: center; font-size: 14.5px; color: var(--text-secondary); }
.models-note a { color: var(--brand); font-weight: 600; }
@media (max-width: 760px) { .models-grid { grid-template-columns: 1fr; } }

/* Compatibility band */
.compat {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(26px, 4vw, 42px);
    background: linear-gradient(135deg, var(--brand-tint), rgba(255, 255, 255, 0));
    border: 1px solid var(--border);
    border-radius: 20px;
}
.compat-ico {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 74px; height: 74px;
    color: #fff;
    background-image: var(--brand-gradient);
    border-radius: 18px;
    box-shadow: 0 16px 32px -14px rgba(24, 168, 200, 0.55);
}
.compat-ico svg { width: 36px; height: 36px; }
.compat-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: var(--text-primary); }
.compat-text {
    margin: 8px 0 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 64ch;
}
.compat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.compat-tags span {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background-color: var(--brand-tint);
    border: 1px solid var(--border-soft);
}
@media (max-width: 640px) {
    .compat { flex-direction: column; text-align: center; }
    .compat-tags { justify-content: center; }
}

/* Token-usage dashboard card (a dark product recreation) */
.usage-card {
    padding: 24px;
    color: #fff;
    background: linear-gradient(160deg, #101a24, #0b131b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 34px 64px -30px rgba(17, 42, 51, 0.5);
}
.usage-title { font-family: var(--font-heading); font-size: 16px; font-weight: 800; }
.usage-sub { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.62); }
.usage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}
.usage-stat {
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}
.usage-stat-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.usage-stat-value { display: block; margin: 6px 0 3px; font-family: var(--font-heading); font-size: 26px; font-weight: 800; }
.usage-stat-value--accent { color: var(--brand-bright); }
.usage-stat-foot { font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }
.usage-table { padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.14); }
.usage-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 9px 0;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}
.usage-row span:not(.usage-model) { text-align: right; min-width: 56px; }
.usage-row--head { font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.usage-model {
    justify-self: start;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12.5px;
    color: #cfe9f2;
    padding: 3px 9px;
    background-color: rgba(24, 168, 200, 0.16);
    border-radius: 6px;
    text-align: left;
}
@media (max-width: 480px) {
    .usage-stats { grid-template-columns: 1fr; }
}

/* Workflow comparison ("stop copy-pasting") */
.workflow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 940px;
    margin: 0 auto;
}
.flow-card {
    padding: 30px 28px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.flow-card--new {
    border-color: var(--brand-bright);
    box-shadow: 0 22px 44px -26px rgba(24, 168, 200, 0.4);
}
.flow-head {
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.flow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.flow-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
}
.flow-list--old li { color: var(--text-secondary); }
.flow-ico {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: grid;
    place-items: center;
    border-radius: 6px;
}
.flow-ico svg { width: 13px; height: 13px; }
.flow-ico--x { color: #e2556a; background-color: rgba(226, 85, 106, 0.12); }
.flow-ico--check { color: #16a34a; background-color: rgba(22, 163, 74, 0.14); }

/* Audience ("who is it for") */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}
.audience-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 28px 18px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-bright);
    box-shadow: 0 18px 36px -22px rgba(24, 168, 200, 0.4);
}
.audience-ico {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--brand);
    background-color: var(--brand-tint);
}
.audience-ico svg { width: 26px; height: 26px; }
.audience-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 760px) {
    .workflow { grid-template-columns: 1fr; }
}

/* 7. Steps --------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step {
    position: relative;
    padding: 28px 24px;
    text-align: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.step-num {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    background-image: var(--brand-gradient);
    border-radius: 50%;
}
.step-title { font-size: 18px; font-weight: 700; }
.step-text { margin: 10px 0 0; font-size: 14.5px; color: var(--text-secondary); }

/* 8. Pricing ------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    max-width: 920px;
    margin: 0 auto;
}
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 22px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.price-card--popular {
    border-color: var(--brand-bright);
    box-shadow: 0 22px 44px -24px rgba(24, 168, 200, 0.5);
}
.price-flag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background-image: var(--brand-gradient);
    border-radius: var(--radius-pill);
}
.price-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
}
.price-amount {
    margin: 8px 0 18px;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
}
.price-per {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}
.price-list {
    flex: 1;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.price-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--text-primary);
}
.price-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 9px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

/* 9. FAQ ----------------------------------------------------------------- */
.faq {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--bg-main);
}
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.faq-icon {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background-color: var(--brand);
    transition: transform var(--ease), opacity var(--ease);
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); opacity: 0; }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-a p {
    margin: 0;
    padding: 0 22px 22px;
    font-size: 15px;
    color: var(--text-secondary);
}

/* 10. Final CTA ---------------------------------------------------------- */
.cta {
    padding: clamp(56px, 9vw, 96px) 0;
    background-image: var(--brand-gradient);
}
.cta-inner { text-align: center; }
.cta-title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 800;
    color: #fff;
}
.cta-sub {
    margin: 16px auto 28px;
    max-width: 52ch;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.88);
}
.cta .hero-actions { justify-content: center; }

/* CTA + utility button variants */
.btn--block { width: 100%; }
.btn--light {
    background-color: #fff;
    color: var(--brand-deep);
}
.btn--light:hover { filter: brightness(0.94); }
.btn--outline-light {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
.btn--outline-light:hover { border-color: #fff; background-color: rgba(255, 255, 255, 0.1); }

/* 11. Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 620px; margin-inline: auto; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-trust { text-align: center; }
    .split { grid-template-columns: 1fr; }
    /* Keep the laptop from getting too big once it's centered above the copy. */
    .laptop { max-width: 460px; }
}

@media (max-width: 680px) {
    .hstep-row { flex-direction: column; align-items: center; gap: 26px; }
    .hstep { max-width: 340px; }
    .hstep-arrow { display: none; }
    .trust-bar { border-radius: 18px; }
}

@media (max-width: 560px) {
    .features-grid,
    .pricing-grid,
    .steps { grid-template-columns: 1fr; }
    .mock-prompt { font-size: 12px; overflow-wrap: anywhere; }
}
