
.landing-page {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1400px;
    perspective-origin: 50% 40%;
    overflow-x: clip;
}
.landing-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--accent-rgb), 0.18), transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(8, 145, 178, 0.12), transparent 45%),
        radial-gradient(ellipse 50% 35% at 0% 80%, rgba(var(--accent-rgb), 0.08), transparent 40%),
        var(--bg);
    pointer-events: none;
}

/* —— Scroll parallax canvas —— */
.landing-scroll-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.landing-scroll-grid-plane {
    position: absolute;
    left: -30%;
    right: -30%;
    top: -10%;
    height: 140%;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: rotateX(72deg) scale(1.5);
    transform-origin: center 40%;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 80% 55% at 50% 35%, black 15%, transparent 70%);
}
.landing-scroll-grid-plane--fine {
    background-size: 28px 28px;
    opacity: 0.2;
    transform: rotateX(78deg) scale(1.8);
}
.landing-scroll-orb {
    position: absolute;
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    top: 12%;
    right: -8%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.35), transparent 68%);
}
.landing-scroll-orb--2 {
    top: 55%;
    left: -12%;
    right: auto;
    width: min(45vw, 400px);
    height: min(45vw, 400px);
    background: radial-gradient(circle, rgba(8, 145, 178, 0.28), transparent 68%);
}
.landing-scroll-lines {
    position: absolute;
    inset: 0;
    opacity: 0.25;
}
.landing-scroll-lines svg {
    width: 100%;
    height: 100%;
}
.landing-page > *:not(.landing-scroll-canvas) {
    position: relative;
    z-index: 1;
}

.scroll-reveal,
.scroll-reveal-child {
    transform-style: preserve-3d;
    will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal-child {
        opacity: 1 !important;
        transform: none !important;
    }
}

.landing-section-head--features {
    margin-bottom: 2.75rem;
}
.landing-section-head--after-features {
    margin-top: 1.5rem;
}
.landing-features--showcase {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}
.landing-features--handoff {
    position: relative;
    z-index: 5;
}
@media (min-width: 768px) {
    html.has-landing-motion .landing-features--handoff {
        opacity: 0;
        transform: translateY(72px);
    }
}

/* —— Three.js phone scroll chapter —— */
.phone-3d-chapter {
    position: relative;
    margin: 0 0 1rem;
    overflow: visible;
}
.phone-3d-pin {
    position: relative;
    height: 100vh;
    width: 100%;
    isolation: isolate;
}
.phone-3d-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(var(--accent-rgb), 0.14), transparent 62%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(8, 145, 178, 0.1), transparent 55%);
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.2s linear;
}
.phone-3d-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-3d-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
}
.phone-3d-screen {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    border-radius: 9%;
    opacity: 0;
    transform-origin: 0 0;
    will-change: transform, width, height, opacity;
}
.phone-3d-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.phone-3d-copy {
    position: absolute;
    z-index: 4;
    text-align: center;
    max-width: 36rem;
    padding: 0 1.5rem;
    pointer-events: none;
    will-change: transform, opacity;
}
.phone-3d-copy h2 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}
.phone-3d-copy p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}
.phone-3d-hint {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    z-index: 3;
    pointer-events: none;
}
.phone-3d-chapter.is-static .phone-3d-pin {
    height: auto;
    min-height: 0;
    padding: 0;
}
.phone-3d-chapter.is-static .phone-3d-stage {
    display: none;
}
@media (max-width: 767px) {
    .phone-3d-chapter { margin-bottom: 0; }
    .phone-3d-stage { display: none; }
    .landing-features--handoff {
        opacity: 1;
        transform: none;
    }
}

.landing-hero-band {
    margin: 0 -1.25rem 3rem;
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.75rem) clamp(2.25rem, 5vw, 3.5rem);
    border-radius: 0 0 24px 24px;
    background: var(--hero-band-bg);
    border: 1px solid var(--hero-band-border);
    border-top: none;
}
@media (min-width: 900px) {
    .landing-hero-band {
        padding: 3rem 3rem 3.75rem;
        margin-left: -2rem;
        margin-right: -2rem;
    }
}

.landing-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}
@media (min-width: 960px) {
    .landing-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
}

.landing-hero-copy {
    text-align: left;
    padding: 0.5rem 0;
}
@media (min-width: 960px) {
    .landing-hero-copy {
        padding: 1rem 2rem 1rem 0.75rem;
    }
}
@media (max-width: 959px) {
    .landing-hero-copy {
        text-align: center;
        padding: 0.25rem 0.5rem;
    }
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 1.15rem;
}
.landing-eyebrow span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.landing-hero-copy h1,
.landing-hero-copy .hero-title-lines {
    font-size: clamp(2.1rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--text);
}
.hero-title-lines span {
    display: block;
}
.landing-hero-copy .lead {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 0 0 2rem;
    max-width: 32rem;
}
@media (max-width: 959px) {
    .landing-hero-copy .lead { margin-left: auto; margin-right: auto; }
}

.landing-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
    padding: 0.25rem 0;
}
@media (max-width: 959px) {
    .landing-stats { justify-content: center; }
}
.landing-stat {
    min-width: 5.5rem;
    padding: 0.35rem 0.65rem;
}
.landing-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}
.landing-stat span {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
    display: block;
}

.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
@media (max-width: 959px) {
    .landing-cta { justify-content: center; }
}
.landing-cta a.btn-p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.72rem 1.4rem;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.landing-cta a.btn-p:hover { text-decoration: none; transform: translateY(-1px); }
.landing-cta .btn-primary {
    background: linear-gradient(135deg, #06b6d4, var(--accent));
    color: #061018;
    box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.3);
}
.landing-cta .btn-ghost {
    border: 1px solid var(--surface2);
    color: var(--text);
    background: var(--hero-ghost-btn-bg);
}
.landing-cta-note {
    width: 100%;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 1rem 0 0;
    max-width: 36rem;
}

.landing-hero-art {
    position: relative;
    min-height: 280px;
}
@media (min-width: 960px) {
    .landing-hero-art {
        padding: 0.5rem 0.25rem 0.5rem 0;
    }
}

/* —— 3D hero stage (Trionn-inspired depth + phone) —— */
.hero-3d-stage {
    position: relative;
    width: 100%;
    height: clamp(300px, 38vw, 460px);
    perspective: 1400px;
    perspective-origin: 50% 45%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--hero-stage-bg);
    border: 1px solid var(--surface2);
    box-shadow: var(--hero-stage-shadow);
}
.hero-3d-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: rotateX(68deg) scale(1.4);
    transform-origin: center center;
    opacity: 0.45;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 55% 45%, black 20%, transparent 72%);
}
.hero-3d-glow {
    position: absolute;
    width: 55%;
    height: 55%;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
    opacity: 0.55;
}
.hero-3d-glow--a {
    top: 8%;
    right: 6%;
    background: rgba(var(--accent-rgb), 0.22);
    animation: hero-glow-drift 9s ease-in-out infinite;
}
.hero-3d-glow--b {
    bottom: 5%;
    left: 8%;
    background: rgba(8, 145, 178, 0.18);
    animation: hero-glow-drift 11s ease-in-out infinite reverse;
}
@keyframes hero-glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -16px) scale(1.08); }
}

.hero-3d-rig {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(2deg);
}

.hero-3d-panel {
    position: absolute;
    left: 3%;
    top: 16%;
    width: 54%;
    max-width: 340px;
    z-index: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: rotateY(22deg) rotateX(-4deg) translateZ(10px);
    transform-style: preserve-3d;
    will-change: transform;
}
.hero-3d-panel img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
}
.hero-3d-panel-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    background: linear-gradient(0deg, rgba(15, 20, 25, 0.98), rgba(15, 20, 25, 0.9));
    border-top: 1px solid var(--surface2);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.hero-3d-panel-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero-3d-phone-wrap {
    position: absolute;
    right: 10%;
    top: 50%;
    width: 32%;
    max-width: 175px;
    z-index: 5;
    transform: translateY(-50%) rotateY(-24deg) rotateX(8deg) translateZ(140px);
    transform-style: preserve-3d;
    will-change: transform;
}

.phone-device {
    position: relative;
    border-radius: 32px;
    padding: 11px;
    background: linear-gradient(155deg, #3a4558 0%, #151b24 35%, #0a0e12 100%);
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.65),
        0 0 48px rgba(var(--accent-rgb), 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
}
.phone-device::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.phone-device::after {
    content: "";
    position: absolute;
    top: 18%;
    left: -3px;
    width: 3px;
    height: 28px;
    border-radius: 2px;
    background: linear-gradient(180deg, #4a5568, #2d3748);
    box-shadow: 0 36px 0 #3d4a5c;
}
.phone-notch {
    display: none;
}
.phone-screen {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 9 / 19.2;
    background: #f5f7fa;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

/* —— In-frame app UI (Flutter technician dashboard) —— */
.phone-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #f5f7fa;
    color: #1e293b;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    line-height: 1.35;
    text-align: left;
}
.phone-app__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.65rem 0.15rem;
    color: #1e293b;
    font-size: 0.62rem;
    font-weight: 600;
    position: relative;
    background: #f5f7fa;
}
.phone-app__island {
    position: absolute;
    left: 50%;
    top: 0.35rem;
    transform: translateX(-50%);
    width: 28%;
    min-width: 44px;
    height: 14px;
    background: #0a0a0a;
    border-radius: 10px;
    z-index: 2;
}
.phone-app__status-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #1e293b;
}
.phone-app__appbar {
    padding: 0.35rem 0.75rem 0.5rem;
    background: #f5f7fa;
}
.phone-app__appbar-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1e293b;
}
.phone-app__scroll {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0.35rem 0.65rem 0.25rem;
}
.phone-app__section-title {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1e293b;
}
.phone-app__subsection-title {
    margin: 0.35rem 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #1e293b;
}
.phone-app__metric {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.5rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.phone-app__metric-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #0891b2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-app__metric-body {
    flex: 1;
    min-width: 0;
}
.phone-app__metric-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 500;
    color: #64748b;
}
.phone-app__metric-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1e293b;
    margin-top: 0.08rem;
}
.phone-app__metric-sub {
    display: block;
    font-size: 0.52rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}
.phone-app__appointment {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.55rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.phone-app__appointment-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-app__appointment-body {
    flex: 1;
    min-width: 0;
}
.phone-app__appointment-body strong {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
}
.phone-app__appointment-body span {
    display: block;
    font-size: 0.52rem;
    color: #64748b;
    margin-top: 0.12rem;
}
.phone-app__chip {
    flex-shrink: 0;
    font-size: 0.48rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.12);
    color: #0891b2;
}
.phone-app__fab {
    position: absolute;
    right: 0.55rem;
    bottom: 2.65rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: #0891b2;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35);
    pointer-events: none;
}
.phone-app__nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.35rem 0.25rem 0.45rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #f5f7fa;
}
.phone-app__nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    font-size: 0.48rem;
    font-weight: 500;
    color: #64748b;
}
.phone-app__nav-item.is-active {
    color: #0891b2;
}
.phone-app__nav-item.is-active svg {
    color: #0891b2;
}
.phone-reflection {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.14) 0%,
        transparent 38%,
        transparent 62%,
        rgba(255, 255, 255, 0.04) 100%
    );
    pointer-events: none;
    z-index: 2;
}
.phone-shadow {
    position: absolute;
    bottom: -18%;
    left: 10%;
    width: 80%;
    height: 24%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
    transform: rotateX(78deg) translateZ(-40px);
    filter: blur(8px);
    pointer-events: none;
}

.hero-3d-orbit {
    position: absolute;
    right: 14%;
    top: 22%;
    width: 42%;
    height: 58%;
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    border-radius: 50%;
    transform: rotateX(72deg) rotateZ(-8deg);
    pointer-events: none;
    animation: hero-orbit-spin 24s linear infinite;
}
.hero-3d-orbit::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 18%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
}
@keyframes hero-orbit-spin {
    from { transform: rotateX(72deg) rotateZ(-8deg) rotate(0deg); }
    to { transform: rotateX(72deg) rotateZ(-8deg) rotate(360deg); }
}

@media (max-width: 959px) {
    .hero-3d-stage { height: clamp(260px, 62vw, 340px); }
    .hero-3d-panel { width: 52%; left: 2%; top: 18%; max-width: none; }
    .hero-3d-phone-wrap {
        width: 36%;
        max-width: 140px;
        right: 4%;
    }
}
@media (max-width: 520px) {
    .hero-3d-panel { width: 50%; opacity: 0.94; }
    .hero-3d-phone-wrap { width: 42%; max-width: 130px; right: 2%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-3d-glow--a,
    .hero-3d-glow--b,
    .phone-app__scroll,
    .hero-3d-orbit {
        animation: none !important;
    }
}

.landing-section-head {
    text-align: center;
    margin-bottom: 2rem;
}
.landing-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}
.landing-section-head p {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.6;
}

.landing-features {
    display: grid;
    gap: 1.1rem;
    margin-bottom: 3.5rem;
}
@media (min-width: 640px) {
    .landing-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .landing-features { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.landing-feature {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.35rem 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.landing-feature:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.landing-feature .icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.15), rgba(8, 145, 178, 0.08));
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}
.landing-feature .icon svg { width: 22px; height: 22px; color: var(--accent); }
.landing-feature h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.landing-feature p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
}

.landing-steps {
    display: grid;
    gap: 1.25rem;
    margin: 0 auto;
    width: 95%;
    max-width: 95%;
    counter-reset: step;
    list-style: none;
    padding: 0;
}
@media (min-width: 768px) {
    .landing-steps { grid-template-columns: repeat(3, 1fr); }
}

/* How-it-works — no extra panel (avoids double-background over scroll grid) */
.landing-how {
    position: relative;
    z-index: 2;
    max-width: 56rem;
    margin: 0 auto 3.5rem;
    padding: 0;
}
.landing-how .landing-section-head {
    margin-bottom: 1.75rem;
}
.landing-step {
    position: relative;
    padding: 1.5rem 1.35rem 1.5rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 14px;
}
.landing-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.15);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.landing-step h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    padding-right: 2.5rem;
}
.landing-step p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
}

.landing-cta-band {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 3rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(8, 145, 178, 0.06));
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}
.landing-cta-band h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
}
.landing-cta-band p {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.landing-section-title {
    text-align: center;
    margin-bottom: 0.35rem;
}
.landing-section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 auto 2rem;
    max-width: 36rem;
    line-height: 1.55;
}
.landing-anchor { scroll-margin-top: 1rem; }

.landing-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--surface2);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
}
.landing-footer a { color: var(--muted); }
.landing-footer a:hover { color: var(--accent); }

/* —— Mobile layout —— */
@media (max-width: 767px) {
    .landing-page {
        overflow-x: clip;
    }

    .landing-hero-band {
        margin: 0 -1rem 2rem;
        padding: 1.75rem 1.25rem 2.25rem;
        border-radius: 0 0 18px 18px;
    }

    .landing-hero-copy {
        padding: 0.35rem 0.75rem;
    }

    .landing-hero-copy h1 {
        font-size: clamp(1.75rem, 7.5vw, 2.15rem);
    }

    .landing-hero-copy .lead {
        font-size: 0.98rem;
    }

    .landing-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        width: 100%;
        max-width: 18rem;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-stat {
        text-align: center;
        padding: 0.85rem 0.75rem;
        border-bottom: 1px solid var(--hero-stat-divider);
    }

    .landing-stat:last-child {
        border-bottom: none;
    }

    .landing-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 20rem;
        margin: 0 auto;
    }

    .landing-cta a.btn-p {
        width: 100%;
        min-height: 44px;
    }

    .landing-cta-note {
        text-align: center;
    }

    .hero-3d-stage {
        height: clamp(240px, 58vw, 300px);
        border-radius: 14px;
    }

    .landing-section-head {
        margin-bottom: 1.5rem;
        padding: 0 0.25rem;
    }

    .landing-section-head--after-features {
        margin-top: 1rem;
    }

    .landing-features--showcase {
        margin-bottom: 2.5rem;
        padding-bottom: 1rem;
    }

    .landing-steps {
        gap: 0.85rem;
    }

    .landing-step {
        padding: 1.25rem 1.1rem 1.25rem 1.2rem;
    }

    .landing-cta-band {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .landing-cta-band h2 {
        font-size: 1.2rem;
    }

    .landing-section-sub {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }

    .landing-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .nav-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .nav-links {
        justify-content: center;
        font-size: 0.82rem;
        padding-left: 0;
        border-left: none;
        padding-top: 0.65rem;
        border-top: 1px solid var(--surface2);
    }

    .lang-dropdown {
        align-self: center;
    }

/* Performance: lighter mobile paint + no scroll-canvas work */
@media (max-width: 767px) {
    .landing-scroll-canvas {
        display: none;
    }
    .scroll-reveal,
    .scroll-reveal-child {
        opacity: 1 !important;
        transform: none !important;
        will-change: auto;
    }
    .landing-features--handoff {
        opacity: 1 !important;
        transform: none !important;
    }
    .landing-scroll-orb {
        filter: blur(48px);
        opacity: 0.28;
    }
    .landing-page {
        perspective: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-scroll-canvas,
    .hero-3d-orbit,
    .hero-3d-glow--a,
    .hero-3d-glow--b {
        display: none !important;
    }
}

/* Light theme — landing section tweaks */
html[data-theme="light"] .landing-cta-band {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(8, 145, 178, 0.04));
    border-color: rgba(var(--accent-rgb), 0.18);
}

html[data-theme="light"] .landing-cta .btn-primary {
    color: var(--on-primary);
}

html[data-theme="light"] .pricing-card:hover {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .pricing-card--featured {
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.14), 0 16px 32px rgba(15, 23, 42, 0.08);
}
