/* ===================================================================
   Contractor Estimator — landing page styles
   Design tokens, professional polish and motion live here. Class names
   and ids are kept stable so the existing page scripts keep working.
   =================================================================== */

:root {
    --bg: #09090b;
    --bg-alt: #0e0f13;
    --surface: #141519;
    --surface-2: #1a1c22;
    --border: #24262e;
    --border-strong: #313440;

    --text: #f4f6fa;
    --text-muted: #aab0bd;
    --text-dim: #757a87;

    --primary: #1677ff;
    --primary-light: #4f9dff;
    --primary-dark: #0e5ed6;
    --primary-soft: rgba(22, 119, 255, 0.14);
    --primary-glow: rgba(22, 119, 255, 0.40);
    --accent: #ffb000;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --maxw: 1200px;

    --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.45);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

::selection {
    background: var(--primary-soft);
    color: #fff;
}

/* Custom scrollbar (desktop) */
@media (pointer: fine) {
    ::-webkit-scrollbar { width: 11px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb {
        background: #2a2d36;
        border-radius: 99px;
        border: 3px solid var(--bg);
    }
    ::-webkit-scrollbar-thumb:hover { background: #3a3e49; }
}

/* ----------------------------------------------------------------- Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    padding: 14px 30px;
    overflow: visible;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.scrolled {
    background: rgba(9, 9, 11, 0.9);
    border-bottom-color: var(--border);
    padding: 9px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-brand img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s var(--ease);
}

.header-brand:hover img {
    transform: scale(1.06) rotate(-2deg);
}

.header-brand span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.header-links {
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: wrap;
}

.header-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: color 0.2s ease;
}

.header-links a i {
    font-size: 18px;
}

.header-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: width 0.25s var(--ease);
}

.header-links a:hover {
    color: #fff;
}

.header-links a:hover::after {
    width: 100%;
}

.header-store-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-store-links img {
    height: 38px;
    border-radius: 6px;
    transition: transform 0.25s var(--ease), filter 0.25s ease;
}

.header-store-links img:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

/* ----------------------------------------------------------------- Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 40px 80px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(22, 119, 255, 0.10), transparent 55%),
        var(--bg);
}

/* Animated glow blobs */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.hero::before {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.5), transparent 70%);
    animation: floatBlob 14s ease-in-out infinite;
}

.hero::after {
    width: 420px;
    height: 420px;
    bottom: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(255, 176, 0, 0.28), transparent 70%);
    animation: floatBlob 18s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.hero-content img {
    filter: drop-shadow(0 12px 40px rgba(22, 119, 255, 0.25));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    background: var(--primary-soft);
    border: 1px solid rgba(22, 119, 255, 0.4);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #cfe1ff;
    margin-bottom: 20px;
}

.badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 0 0 var(--primary-glow);
    animation: pulseDot 2.2s infinite;
}

h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 21px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

.developer {
    margin-top: 25px;
    font-size: 16px;
    color: var(--text-dim);
}

.app-stores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.app-stores img {
    height: 58px;
    transition: transform 0.25s var(--ease), filter 0.25s ease;
    border-radius: 8px;
}

.app-stores img:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

/* ----------------------------------------------------------------- Sections */
.section {
    position: relative;
    padding: 120px 8%;
}

.section:nth-of-type(even) {
    background: var(--bg-alt);
}

.section:nth-of-type(odd) {
    background: var(--bg);
}

.section-title {
    font-size: 50px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #ffffff 30%, #b9c0cf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 700px;
    text-align: center;
    margin: 0 auto 60px auto;
    line-height: 1.6;
}

/* ----------------------------------------------------------------- Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    max-width: var(--maxw);
    margin: 0 auto;
}

.feature {
    position: relative;
    background: linear-gradient(180deg, var(--surface), var(--bg-alt));
    padding: 32px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.5), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}

.feature h3 {
    margin-bottom: 12px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--text-muted);
    line-height: 1.65;
}

.feature:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}

.feature:hover::before {
    opacity: 1;
}

/* ----------------------------------------------------------------- Legacy step list (kept for safety) */
.workflow {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    background: var(--surface);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary);
}

.step-number {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.step-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-description {
    color: var(--text-muted);
}

/* ----------------------------------------------------------------- Showcase carousel */
.showcase-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-slide {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    animation: fadeIn 0.5s var(--ease);
}

.carousel-slide.active {
    display: flex;
}

.phone {
    max-width: 340px;
    border-radius: 36px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
    animation: floatPhone 6s ease-in-out infinite;
}

.showcase-text {
    max-width: 700px;
    text-align: center;
}

.showcase-text h2 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a3d46;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s var(--ease);
}

.carousel-dot:hover {
    background: #565a66;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.25);
    box-shadow: 0 0 12px var(--primary-glow);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(22, 119, 255, 0.85);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}

.carousel-arrow-left { left: 20px; }
.carousel-arrow-right { right: 20px; }

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--primary);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* ----------------------------------------------------------------- Workflow timeline */
.workflow-timeline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.workflow-timeline::-webkit-scrollbar {
    display: none;
}

.workflow-timeline .feature {
    width: 260px;
    height: 260px;
    min-width: 260px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    user-select: none;
    scroll-snap-align: center;
}

.workflow-timeline .feature p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.timeline-spacer {
    width: calc(50vw - 130px);
    min-width: calc(50vw - 130px);
    flex-shrink: 0;
}

.workflow-navigation {
    margin-top: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.workflow-nav-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s var(--ease);
}

.workflow-nav-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.timeline-arrow {
    font-size: 30px;
    font-weight: bold;
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    user-select: none;
    animation: nudge 1.8s ease-in-out infinite;
}

.workflow-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    height: 48px;
}

.workflow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a3d46;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.workflow-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* ----------------------------------------------------------------- Newsletter */
.newsletter-form {
    margin: 30px auto 0;
    max-width: 540px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.newsletter-input {
    flex: 1 1 260px;
    padding: 17px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input::placeholder {
    color: var(--text-dim);
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

/* ----------------------------------------------------------------- Buttons */
.cta,
.newsletter-btn {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 17px 38px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark));
    background-size: 180% 180%;
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--primary-glow);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-position 0.5s var(--ease);
}

.cta {
    margin-top: 25px;
}

.cta:hover,
.newsletter-btn:hover {
    transform: translateY(-3px);
    background-position: 100% 100%;
    box-shadow: 0 16px 40px var(--primary-glow);
}

.cta:active,
.newsletter-btn:active {
    transform: translateY(-1px);
}

/* ----------------------------------------------------------------- Footer */
.footer {
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: #060607;
}

.footer h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

.footer p {
    color: var(--text-dim);
}

.footer-legal-links a {
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--primary) !important;
}

.footer-legal-links i {
    margin-right: 6px;
}

.developer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.developer-link:hover {
    color: var(--primary);
}

/* ----------------------------------------------------------------- Centering helpers */
.section-title,
.section-subtitle,
.feature h3,
.showcase-text h2,
.footer h2,
.hero-content,
.feature {
    text-align: center;
}

/* ----------------------------------------------------------------- Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(1.12); }
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { box-shadow: 0 0 0 10px rgba(22, 119, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 119, 255, 0); }
}

@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ----------------------------------------------------------------- Scroll reveal */
.animate-on-load {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) forwards;
}

.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.30s; }
.animate-delay-3 { animation-delay: 0.45s; }

/* Stagger feature cards as they reveal on scroll */
.features .feature.animate-on-load:nth-child(1) { animation-delay: 0.00s; }
.features .feature.animate-on-load:nth-child(2) { animation-delay: 0.08s; }
.features .feature.animate-on-load:nth-child(3) { animation-delay: 0.16s; }
.features .feature.animate-on-load:nth-child(4) { animation-delay: 0.24s; }
.features .feature.animate-on-load:nth-child(5) { animation-delay: 0.08s; }
.features .feature.animate-on-load:nth-child(6) { animation-delay: 0.16s; }
.features .feature.animate-on-load:nth-child(7) { animation-delay: 0.24s; }
.features .feature.animate-on-load:nth-child(8) { animation-delay: 0.32s; }

.feature,
.carousel-slide,
.workflow-timeline .feature {
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* ----------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
    .section { padding: 90px 7%; }
    h1 { font-size: 58px; }
    .section-title { font-size: 42px; }
}

@media (max-width: 768px) {
    .header { padding: 12px 20px; }
    .header.scrolled { padding: 9px 20px; }

    .header-brand span { display: none; }

    .header-content {
        justify-content: space-between;
        width: 100%;
    }

    .menu-toggle { display: block; }

    .header-links {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 12px;
        background: rgba(9, 9, 11, 0.98);
        border-top: 1px solid var(--border);
        padding-top: 14px;
        gap: 18px;
    }

    .header-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        animation: fadeIn 0.25s var(--ease);
    }

    .header-store-links {
        display: none;
        width: 100%;
    }

    .header-store-links.open {
        display: flex;
        animation: fadeIn 0.25s var(--ease);
    }

    .header-store-links img { height: 36px; }

    .hero { padding: 120px 22px 70px; }

    h1 { font-size: 42px; }

    .hero p { font-size: 17px; line-height: 1.55; }

    .badge { font-size: 13px; }

    .section { padding: 72px 22px; }

    .section-title { font-size: 32px; }

    .section-subtitle { font-size: 17px; margin-bottom: 44px; }

    .features { gap: 16px; }

    .feature { padding: 26px 22px; border-radius: var(--radius); }

    .feature h3 { font-size: 21px; }

    .showcase-text h2 { font-size: 30px; }

    .footer h2 { font-size: 32px; }

    .app-stores {
        gap: 10px;
        justify-content: center;
        max-width: 300px;
        margin: 28px auto 0;
    }

    .app-stores a { flex: 1; }

    .app-stores img {
        width: 100%;
        height: auto;
        max-height: 46px;
        object-fit: contain;
    }

    .phone {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        display: block;
    }

    .showcase-text { max-width: 100%; }

    .carousel-slide {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 26px;
    }

    .carousel-controls { margin-top: 26px; }

    .carousel-arrow {
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .carousel-arrow-left { left: 6px; }
    .carousel-arrow-right { right: 6px; }

    /* Reduce the floating blobs so they never overflow awkwardly on phones */
    .hero::before { width: 300px; height: 300px; right: -90px; }
    .hero::after { width: 280px; height: 280px; left: -90px; }

    .workflow-timeline {
        flex-direction: column;
        overflow-x: visible;
    }

    .workflow-timeline .feature {
        width: 100%;
        max-width: 320px;
        min-width: 0;
        height: auto;
        min-height: 230px;
    }

    .timeline-arrow {
        transform: rotate(90deg);
        margin: -4px 0;
        animation: none;
    }

    .timeline-spacer { display: none; }
}

@media (max-width: 420px) {
    h1 { font-size: 36px; }
    .section-title { font-size: 27px; }
    .showcase-text h2 { font-size: 25px; }
}

/* ----------------------------------------------------------------- Motion preferences */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .animate-on-load { opacity: 1 !important; }
}

/* ===================================================================
   AI highlight section
   =================================================================== */
.ai-section {
    text-align: center;
    overflow: hidden;
}

.eyebrow {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(22, 119, 255, 0.4);
    color: #cfe1ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: var(--maxw);
    margin: 0 auto;
}

.ai-card {
    position: relative;
    text-align: left;
    padding: 42px 38px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-alt));
    border: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.ai-card:hover {
    transform: translateY(-8px);
    border-color: rgba(22, 119, 255, 0.5);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55);
}

.ai-card-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    top: -130px;
    right: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    filter: blur(50px);
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.4s var(--ease);
    animation: floatBlob 13s ease-in-out infinite;
}

.ai-card:hover .ai-card-glow {
    opacity: 0.95;
}

.ai-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    border-radius: 20px;
    background: var(--primary-soft);
    border: 1px solid rgba(22, 119, 255, 0.35);
    margin-bottom: 24px;
    animation: floatPhone 5s ease-in-out infinite;
}

.ai-card h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.ai-card > p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.ai-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ai-list li {
    position: relative;
    padding-left: 32px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.ai-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    background: var(--primary-soft);
    border: 1px solid rgba(22, 119, 255, 0.4);
    border-radius: 50%;
}

/* ===================================================================
   Carousel — device glow + captions
   =================================================================== */
.phone-frame {
    position: relative;
    display: inline-flex;
    justify-content: center;
    isolation: isolate;
}

.phone-frame::before {
    content: "";
    position: absolute;
    inset: -10% -16%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow), transparent 62%);
    filter: blur(55px);
    z-index: 0;
    opacity: 0.7;
    animation: glowPulse 5.5s ease-in-out infinite;
}

.phone-frame .phone {
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ease);
}

.phone-frame:hover .phone {
    transform: translateY(-6px) scale(1.02) rotate(-1deg);
}

.showcase-step {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.showcase-desc {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.65;
    max-width: 500px;
    margin: 14px auto 0;
}

/* Caption animates in each time its slide becomes active */
.carousel-slide.active .showcase-text {
    animation: fadeUp 0.6s var(--ease) both;
    animation-delay: 0.1s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.08); }
}

@media (max-width: 768px) {
    .ai-card { padding: 32px 26px; }
    .ai-card h3 { font-size: 23px; }
    .ai-icon { width: 64px; height: 64px; font-size: 30px; }
    .showcase-desc { font-size: 16px; }
    .phone-frame::before { inset: -6% -10%; filter: blur(40px); }
}

.ai-grid .ai-card.animate-on-load:nth-child(1) { animation-delay: 0.00s; }
.ai-grid .ai-card.animate-on-load:nth-child(2) { animation-delay: 0.12s; }

/* ===================================================================
   Intro splash — logo flies from centre into the header
   =================================================================== */
#logoIntro {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

#logoIntro img {
    height: 120px;
    width: auto;
    transform-origin: center center;
    filter: drop-shadow(0 14px 50px rgba(22, 119, 255, 0.4));
    will-change: transform, opacity;
}

/* Hold page-load reveals + lock scroll while the intro plays */
.intro-loading,
.intro-loading body {
    overflow: hidden;
}

.intro-loading .animate-on-load {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    #logoIntro img { height: 92px; }
}

/* ===================================================================
   Carousel — 3D entrance, shine sweep, parallax captions
   =================================================================== */
.showcase-carousel {
    perspective: 1400px;
}

/* Base slide no longer animates; its children handle the entrance */
.carousel-slide {
    animation: none;
}

.carousel-slide.active .phone-frame {
    animation: phoneIn 0.85s var(--ease) both;
}

.carousel-slide.active .showcase-text {
    animation: textIn 0.7s var(--ease) 0.14s both;
}

.carousel-slide.active .showcase-step {
    animation: textIn 0.6s var(--ease) 0.08s both;
}

/* Light sweep across the screenshot as the slide enters */
.phone-frame::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: 36px;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
    background-size: 250% 100%;
    background-position: 130% 0;
    opacity: 0;
    pointer-events: none;
}

.carousel-slide.active .phone-frame::after {
    animation: shine 1.5s var(--ease) 0.45s;
}

@keyframes phoneIn {
    0% { opacity: 0; transform: translateY(40px) rotateY(-20deg) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) rotateY(0) scale(1); }
}

@keyframes textIn {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
    0% { opacity: 0; background-position: 130% 0; }
    25% { opacity: 1; }
    100% { opacity: 0; background-position: -40% 0; }
}

@media (max-width: 768px) {
    .phone-frame::after { border-radius: 28px; }
}

/* ===================================================================
   BOLD RESTYLE LAYER (kept last so it leads the look)
   =================================================================== */

/* ---- Bolder global rhythm + headings ---- */
.section { padding: 130px 8%; }

.section-title {
    font-size: 58px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

/* ---- Hero ---- */
.hero {
    flex-direction: column;
    padding: 150px 24px 96px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 68%);
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 68%);
    animation: gridDrift 26s linear infinite;
    pointer-events: none;
}

@keyframes gridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 58px 58px, 58px 58px; }
}

.hero-content { max-width: 940px; }

/* swap the badge pseudo-dot for the explicit animated span */
.badge::before { display: none; }

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 0 0 var(--primary-glow);
    animation: pulseDot 2.2s infinite;
}

.hero-title {
    font-size: 84px;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 0 0 22px;
}

.hero-title .grad {
    background: linear-gradient(120deg, var(--primary-light), #9cc6ff 45%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 21px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero .app-stores { margin-top: 38px; }

.hero-shot {
    position: relative;
    margin-top: 70px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-shot img {
    position: relative;
    z-index: 1;
    width: 300px;
    max-width: 78%;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 50px 130px rgba(0, 0, 0, 0.7);
    animation: floatPhone 6s ease-in-out infinite;
}

.hero-shot-glow {
    position: absolute;
    z-index: 0;
    width: 480px;
    height: 480px;
    max-width: 110%;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--primary-glow), transparent 62%);
    filter: blur(65px);
    opacity: 0.75;
    animation: glowPulse 6s ease-in-out infinite;
}

/* ---- Stats band ---- */
.stats-band {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 44px 8%;
}

.stats-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat {
    position: relative;
    text-align: center;
    padding: 8px 12px;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 54px;
    width: 1px;
    background: var(--border);
}

.stat-num {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(120deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* ---- Bolder feature cards (top accent line on hover) ---- */
.feature::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.feature:hover::after { opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .hero-title { font-size: 66px; }
    .section-title { font-size: 46px; }
}

@media (max-width: 768px) {
    .hero { padding: 124px 20px 76px; }
    .hero-title { font-size: 42px; letter-spacing: -0.02em; }
    .hero-sub { font-size: 17px; }
    .hero-shot { margin-top: 48px; }
    .hero-shot img { width: 240px; border-radius: 32px; }
    .hero-shot-glow { width: 330px; height: 330px; }

    .stats-band { padding: 34px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
    .stat + .stat::before { display: none; }
    .stat-num { font-size: 38px; }

    .section-title { font-size: 32px; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 34px; }
    .stat-num { font-size: 32px; }
}

/* Staggered stat reveal */
.stats-grid .stat.animate-on-load:nth-child(1) { animation-delay: 0.00s; }
.stats-grid .stat.animate-on-load:nth-child(2) { animation-delay: 0.08s; }
.stats-grid .stat.animate-on-load:nth-child(3) { animation-delay: 0.16s; }
.stats-grid .stat.animate-on-load:nth-child(4) { animation-delay: 0.24s; }

/* ===================================================================
   Header nav buttons — Support (ghost), Login (outline), Register (primary)
   =================================================================== */
.header-links {
    gap: 12px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.nav-btn i { font-size: 17px; }

/* keep the underline animation off the buttons */
.header-links a::after { display: none; }

.nav-btn-ghost {
    color: var(--text-muted);
}

.nav-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-btn-outline {
    color: #eaf1ff;
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
}

.nav-btn-outline:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.nav-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary) 55%, var(--primary-dark));
    background-size: 180% 180%;
    box-shadow: 0 8px 22px var(--primary-glow);
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    background-position: 100% 100%;
    box-shadow: 0 12px 30px var(--primary-glow);
}

.nav-btn-primary:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    /* In the mobile dropdown, let the buttons fill the width and breathe */
    .header-links.open .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 18px;
        font-size: 16px;
    }
}

/* ===================================================================
   Store reviews / social proof
   =================================================================== */
.reviews-section { text-align: center; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}

.review-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 42px 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-alt));
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.review-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.review-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}

.review-card:hover::after { opacity: 1; }

.review-store {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.review-store i { font-size: 20px; color: var(--text); }

.review-installs {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(120deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.review-installs span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
    -webkit-text-fill-color: var(--text-dim);
}

.review-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.stars {
    display: inline-flex;
    gap: 3px;
    color: var(--accent);
    font-size: 19px;
}

.stars .bi-star {
    color: #4a4d57;
}

.review-score {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.review-count {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-dim);
}

@media (max-width: 680px) {
    .reviews-grid { grid-template-columns: 1fr; gap: 18px; }
    .review-card { padding: 34px 26px; }
    .review-installs { font-size: 46px; }
}
