﻿:root {
    --bg: #050509;
    --panel: #0b0b12;
    --text: #f7f5fb;
    --muted: #9e9aa9;
    --purple: #9a5cff;
    --violet: #6430ff;
    --cyan: #69dcff;
    --line: #ffffff18;
    --green: #6cf0a8
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,system-ui,-apple-system,sans-serif;
    overflow-x: hidden
}

    body:before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -3;
        background: radial-gradient(circle at 50% 15%,#7439ff25,transparent 27%),radial-gradient(circle at 80% 70%,#36caff12,transparent 25%)
    }

#space {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 72px;
    background: #050509aa;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #ffffff10
}

.nav {
    height: 100%;
    max-width: 1250px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    align-items: center
}

.brand {
    display: flex;
    align-items: center;
    height: 72px;
    flex: 0 0 auto;
    overflow: hidden
}

    .brand img {
        display: block;
        width: 132px;
        height: auto;
        max-height: 54px;
        object-fit: contain;
        object-position: left center
    }

    .brand span {
        color: #b68aff
    }

.navlinks {
    margin-left: auto;
    display: flex;
    gap: 25px
}

    .navlinks a {
        color: #fff;
        text-decoration: none;
        font-size: 12px
    }

        .navlinks a:hover {
            color: #fff
        }

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 105px 20px 55px;
    text-align: center
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .22em;
    color: #c3a1ff;
    font-size: 10px;
    font-weight: 900
}

.hero h1 {
    font-size: clamp(72px,13vw,175px);
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 18px 0 22px;
    background: linear-gradient(110deg,#fff,#cdb5ff 40%,#fff);
    -webkit-background-clip: text;
    color: transparent
}

.hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    margin: auto
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0 18px
}

.btn {
    border: 1px solid var(--line);
    background: #ffffff09;
    color: #fff;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 800;
    cursor: pointer;
    min-height: 44px
}

    .btn.primary {
        border: 0;
        background: linear-gradient(135deg,#a45cff,#5d2cff);
        box-shadow: 0 0 45px #8d4cff44
    }

    .btn:hover {
        transform: translateY(-2px)
    }

.ai-stage {
    width: min(520px,82vw);
    height: min(520px,82vw);
    margin: 10px auto 0;
    position: relative;
    display: grid;
    place-items: center
}

.orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #a86eff30;
    inset: 3%;
    animation: rotate 22s linear infinite
}

    .orb:nth-child(2) {
        inset: 12%;
        animation-duration: 15s;
        animation-direction: reverse;
        border-style: dashed
    }

    .orb:nth-child(3) {
        inset: 22%;
        animation-duration: 9s;
        border-color: #69dcff25
    }

    .orb:after {
        content: "";
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #c5a6ff;
        box-shadow: 0 0 22px #a45cff;
        left: 50%;
        top: -4px
    }

    .orb:nth-child(2):after {
        background: var(--cyan);
        top: 50%;
        left: -4px
    }

    .orb:nth-child(3):after {
        top: auto;
        bottom: -4px;
        left: 50%
    }

.core {
    width: 38%;
    height: 38%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%,#fff 0,#dfd2ff 5%,#a45cff 18%,#5b22e4 45%,#100823 70%,transparent 73%);
    box-shadow: 0 0 40px #a45cff99,0 0 130px #7439ff44;
    animation: breathe 3s ease-in-out infinite;
    position: relative
}

    .core:after {
        content: "";
        position: absolute;
        inset: 13%;
        border: 1px solid #ffffff50;
        border-radius: 50%;
        animation: pulse 2s ease-in-out infinite
    }

.coretext {
    position: absolute;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    bottom: 8%;
    color: #c9b4ef
}

section {
    max-width: 1240px;
    margin: auto;
    padding: 60px 24px
}

.center {
    text-align: center
}

.title {
    font-size: clamp(43px,6.2vw,80px);
    line-height: .96;
    letter-spacing: -.06em;
    margin: 14px 0 20px
}

.copy {
    max-width: 700px;
    margin: auto;
    color: var(--muted);
    line-height: 1.7
}

.pipeline {
    margin: 65px auto 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    width: 100%
}

    .pipeline .pipe {
        flex: 1 1 0;
        min-width: 0;
        max-width: 245px;
        min-height: 125px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left
    }

    .pipeline .arrow {
        flex: 0 0 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px
    }

.pipe {
    min-height: 125px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff08;
    padding: 17px;
    cursor: pointer;
    transition: .3s
}

    .pipe:hover, .pipe.active {
        background: #a45cff14;
        border-color: #a45cff66;
        transform: translateY(-7px);
        box-shadow: 0 20px 50px #0008
    }

    .pipe .icon {
        font-size: 26px
    }

    .pipe strong {
        display: block;
        margin-top: 15px;
        font-size: 13px
    }

    .pipe small {
        color: #85818e;
        font-size: 10px
    }

.arrow {
    color: #766f80
}

.lab {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px
}

.labpanel {
    border: 1px solid var(--line);
    background: #ffffff07;
    border-radius: 26px;
    padding: 30px;
    min-height: 390px
}

.visual {
    height: 330px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: radial-gradient(circle at center,#9a5cff20,transparent 53%),#07070c
}

.wave {
    width: 88%;
    height: 120px
}

    .wave path {
        fill: none;
        stroke: #b58bff;
        stroke-width: 2;
        filter: drop-shadow(0 0 7px #9a5cff);
        animation: wave 1.2s linear infinite
    }

.status {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #aaa6b4;
    font-size: 11px;
    margin-top: 16px
}

    .status i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--green);
        box-shadow: 0 0 12px var(--green)
    }

.usecases {
    margin-top: 65px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px
}

.case {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 25px;
    text-align: left;
    background: #ffffff07;
    cursor: pointer;
    min-height: 190px
}

    .case:hover, .case.selected {
        border-color: #9a5cff66;
        background: #9a5cff0d
    }

    .case h3 {
        margin: 30px 0 8px
    }

    .case p {
        color: #8e8998;
        font-size: 13px;
        line-height: 1.55
    }

    .case .tag {
        font-size: 10px;
        letter-spacing: .15em;
        color: #c5a4ff;
        font-weight: 900
    }

.languages {
    margin-top: 65px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.langpanel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff07;
    padding: 28px;
    text-align: left
}

.langrow {
    padding: 16px 0;
    border-bottom: 1px solid #ffffff12;
    cursor: pointer
}

    .langrow:last-child {
        border: 0
    }

    .langrow label {
        font-size: 10px;
        letter-spacing: .16em;
        color: #a48dc5
    }

    .langrow p {
        margin: 7px 0 0;
        font-size: 16px
    }

    .langrow:hover {
        color: #d9c8f6
    }

.escalation {
    margin-top: 65px;
    padding: 55px;
    border: 1px solid #9a5cff35;
    border-radius: 28px;
    background: radial-gradient(circle at 50% 0,#9a5cff18,transparent 55%),#ffffff06
}

.handoff {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    flex-wrap: wrap
}

    .handoff .box {
        padding: 20px 26px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #ffffff09
    }

    .handoff .arrowbig {
        font-size: 24px;
        color: #a980ff
    }

.chat {
    margin-top: 65px;
    border: 1px solid var(--line);
    border-radius: 27px;
    overflow: hidden;
    background: #09090f;
    box-shadow: 0 35px 100px #0009;
    text-align: left
}

.chathead {
    height: 64px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 20px
}

.live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    margin-right: 9px
}

.chathead span {
    margin-left: auto;
    color: #777481;
    font-size: 10px
}

.messages {
    height: 310px;
    padding: 25px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.msg {
    max-width: 76%;
    padding: 13px 16px;
    border-radius: 17px;
    background: #ffffff0b;
    color: #dcd8e5;
    line-height: 1.45;
    font-size: 14px
}

    .msg.user {
        align-self: flex-end;
        background: linear-gradient(135deg,#7438dc,#4d24a8);
        color: #fff
    }

.quick {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    flex-wrap: wrap
}

    .quick button {
        min-height: 40px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: transparent;
        color: #bbb5c7;
        padding: 8px 13px;
        cursor: pointer
    }

.chatinput {
    display: flex;
    gap: 9px;
    padding: 14px;
    border-top: 1px solid var(--line)
}

    .chatinput input {
        flex: 1;
        min-width: 0;
        background: #ffffff06;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 0 17px;
        color: #fff;
        outline: 0;
        font-size: 16px;
        min-height: 46px
    }

.send {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #9a5cff;
    color: #fff;
    font-size: 18px;
    cursor: pointer
}

footer {
    text-align: center;
    border-top: 1px solid #ffffff12;
    color: #6f6b77;
    padding: 35px;
    font-size: 11px
}

.float {
    display: none !important;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 45;
    border: 1px solid #a87aff55;
    background: #160d27ee;
    color: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: 0 12px 45px #0009;
    cursor: pointer
}

    .float b {
        color: #c5a6ff
    }

@keyframes rotate {
    to {
        transform: rotate(360deg)
    }
}

@keyframes breathe {
    0%,100% {
        transform: scale(.96)
    }

    50% {
        transform: scale(1.06)
    }
}

@keyframes pulse {
    50% {
        transform: scale(1.22);
        opacity: .2
    }
}

@keyframes wave {
    to {
        stroke-dashoffset: -90
    }
}

@media(max-width:900px) {
    .brand img {
        width: 124px;
        height: auto;
        max-width: 124px;
        max-height: 50px
    }

   

    .pipeline {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr))
    }

        .pipeline .pipe {
            max-width: none
        }

        .pipeline .arrow {
            display: none
        }

    .lab, .languages {
        grid-template-columns: 1fr
    }

    .usecases {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:560px) {
    .hero {
        padding-top: 90px
    }

        .hero h1 {
            font-size: 76px;
            letter-spacing: -.025em
        }

    .ai-stage {
        width: min(400px,78vw);
        height: min(400px,78vw)
    }

    .pipeline {
        grid-template-columns: 1fr 1fr
    }

        .pipeline .pipe {
            min-height: 115px
        }

    .usecases {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 80px
    }
}

@media(max - height:600px) and (min-width:561px) {
    .hero {
        padding-top: 82px;
        padding-bottom: 35px
    }

        .hero h1 {
            font-size: clamp(70px,11vw,145px)
        }

        .hero p {
            font-size: 16px
        }

    .actions {
        margin: 18px 0 10px
    }

    .ai-stage {
        width: min(390px,58vw);
        height: min(390px,58vw);
        margin-top: 5px
    }
}

@media(max-width:430px) {
    .brand img {
        width: 112px;
        max-height: 46px
    }
}

@media(prefers-reduced-motion:reduce) {
    *, *:before, *:after {
        animation: none !important;
        scroll-behavior: auto !important
    }
}

.faq {
    max-width: 900px;
    margin: 55px auto 0;
    text-align: left;
    display: grid;
    gap: 10px
}

    .faq details {
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #ffffff07;
        overflow: hidden
    }

    .faq summary {
        list-style: none;
        cursor: pointer;
        padding: 20px 24px;
        font-weight: 800;
        font-size: 15px;
        position: relative;
        padding-right: 55px
    }

        .faq summary::-webkit-details-marker {
            display: none
        }

        .faq summary:after {
            content: "+";
            position: absolute;
            right: 22px;
            top: 16px;
            font-size: 24px;
            color: #b993ff;
            font-weight: 400
        }

    .faq details[open] summary:after {
        content: "−"
    }

    .faq details p {
        margin: 0;
        padding: 0 24px 21px;
        color: #9e9aa9;
        line-height: 1.65;
        font-size: 13px
    }

/* Hide scrollbars while preserving normal scrolling */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

/* Hide the internal chat scrollbar too */
.messages {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .messages::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }


/* SHIVI Swarm Cursor — purple gradient */
#swarmCursorCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    user-select: none;
}

@media (pointer:coarse) {
    #swarmCursorCanvas {
        display: none
    }
}

@media (prefers-reduced-motion:reduce) {
    #swarmCursorCanvas {
        display: none
    }
}

/* Anti-copy */
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    html::-webkit-scrollbar {
        display: none;
    }

body {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}


    /* Custom purple cursor: hide the native pointer and let the swarm become the cursor */
    html, body, body * {
        cursor: none !important;
    }

#custom-cursor-core {
    position: fixed;
    left: 0;
    top: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647;
    transform: translate3d(-100px,-100px,0);
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #eadcff 18%, #a855f7 48%, #7c3aed 72%, rgba(124,58,237,0) 100%);
    box-shadow: 0 0 8px rgba(216,180,254,.95), 0 0 18px rgba(168,85,247,.8), 0 0 34px rgba(124,58,237,.48);
    transition: width .16s ease, height .16s ease, opacity .16s ease;
    mix-blend-mode: screen;
}

    #custom-cursor-core::after {
        content: "";
        position: absolute;
        inset: -7px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(168,85,247,.24), rgba(124,58,237,0) 70%);
        filter: blur(2px);
    }

body.custom-cursor-hover #custom-cursor-core {
    width: 15px;
    height: 15px;
    box-shadow: 0 0 10px rgba(255,255,255,.95), 0 0 24px rgba(192,132,252,.9), 0 0 42px rgba(124,58,237,.6);
}

body.custom-cursor-click #custom-cursor-core {
    width: 8px;
    height: 8px;
}

@media (hover:none), (pointer:coarse) {
    html, body, body * {
        cursor: auto !important;
    }

    #custom-cursor-core,
    #custom-cursor-trail {
        display: none !important;
    }
}


/* =========================================================
   SHIVI AI — FINAL MOBILE / CROSS-BROWSER RESPONSIVE PASS
   ========================================================= */

/* Base overflow + mobile browser compatibility */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    min-width: 0;
}

img,
svg,
canvas,
video {
    max-width: 100%;
}

header {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

#space,
#swarmCursorCanvas {
    max-width: none;
}

/* The audio element is functional but its native controls should not
   consume layout space on this landing page. */
#shiviAudio {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
    top: -9999px;
}

/* ---------- TABLET / SMALL LAPTOP ---------- */
@media (max-width: 900px) {
   

    .nav {
        padding: 0 18px;
    }

   

        .brand img {
            width: 112px;
            max-width: 112px;
            max-height: 44px;
        }

    .navlinks {
        margin-left: 40px;
        display: none;
    }
        .navlinks a {
            padding-right: 11px;
        }

    .hero {
        min-height: 100svh;
        min-height: 100vh;
        padding: 90px 22px 45px;
    }

        .hero h1 {
            font-size: clamp(56px, 11vw, 100px);
            line-height: .96;
        }

        .hero p {
            max-width: 620px;
            font-size: 15px;
        }

    .ai-stage {
        width: min(430px, 76vw);
        height: min(430px, 76vw);
    }

    section {
        width: 100%;
        max-width: 1240px;
        padding: 90px 22px;
    }

    .title {
        font-size: clamp(42px, 8vw, 68px);
    }

    .pipeline {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 40px;
    }

        .pipeline .pipe {
            max-width: none;
            min-height: 115px;
        }

        .pipeline .arrow {
            display: none;
        }

    .lab,
    .languages {
        grid-template-columns: 1fr;
    }

    .labpanel {
        min-height: 320px;
        padding: 22px;
    }

    .visual {
        height: 280px;
    }

    .usecases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .case {
        min-height: 175px;
        padding: 20px;
    }

    .escalation {
        padding: 40px 24px;
    }

    .faq {
        width: 100%;
        max-width: 900px;
        margin-top: 40px;
    }
}

/* ---------- PHONES ---------- */
@media (max-width: 600px) {
    html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
    }

 

 

        .brand img {
            width: 88px;
            max-width: 88px;
            max-height: 38px;
        }

    .hero {
        min-height: auto;
        padding: 92px 16px 55px;
        text-align: center;
    }

        .hero > div {
            width: 100%;
            max-width: 390px;
            margin: 0 auto;
        }

    .eyebrow {
        font-size: 8px;
        letter-spacing: .18em;
        line-height: 1.45;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        margin: 13px auto 17px;
        font-size: clamp(48px, 16vw, 66px);
        line-height: .92;
        letter-spacing: -.045em;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero p {
        width: 100%;
        max-width: 340px;
        font-size: 11px;
        line-height: 1.65;
    }

    .actions {
        width: 100%;
        gap: 8px;
        margin: 19px auto 10px;
    }

    .btn {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 10px;
        white-space: nowrap;
    }

    .ai-stage {
        width: min(300px, 78vw);
        height: min(300px, 78vw);
        margin: 8px auto 0;
    }

    .coretext {
        font-size: 7px;
        letter-spacing: .12em;
        bottom: 4%;
        white-space: nowrap;
    }

    section {
        width: 100%;
        max-width: 100%;
        padding: 72px 16px;
        margin: 0;
    }

    .title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(34px, 11vw, 52px);
        line-height: .94;
        letter-spacing: -.055em;
        overflow-wrap: anywhere;
    }

    .copy {
        width: 100%;
        max-width: 340px;
        font-size: 11px;
        line-height: 1.65;
    }

    /* Conversation pipeline: never force desktop cards into the viewport. */
    .pipeline {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 35px;
    }

        .pipeline .pipe {
            width: 100%;
            min-height: 105px;
            max-width: none;
            padding: 13px;
            border-radius: 15px;
        }

    .pipe .icon {
        font-size: 21px;
    }

    .pipe strong {
        margin-top: 10px;
        font-size: 12px;
    }

    .pipe small {
        font-size: 8px;
        line-height: 1.4;
    }

    .lab {
        width: 100%;
        margin-top: 35px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .labpanel {
        width: 100%;
        min-height: 0;
        padding: 16px;
        border-radius: 17px;
    }

    .visual {
        width: 100%;
        height: 190px;
        border-radius: 14px;
    }

    .wave {
        width: 94%;
        height: 90px;
    }

    .status {
        font-size: 9px;
        margin-top: 11px;
    }

    .usecases {
        width: 100%;
        margin-top: 35px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .case {
        width: 100%;
        min-height: 0;
        padding: 17px;
        border-radius: 16px;
    }

        .case .tag {
            font-size: 8px;
        }

        .case h3 {
            margin: 19px 0 7px;
            font-size: 15px;
        }

        .case p {
            font-size: 10px;
            line-height: 1.55;
        }

    .escalation {
        width: 100%;
        margin-top: 35px;
        padding: 25px 16px;
        border-radius: 18px;
    }

        .escalation h3 {
            font-size: 23px !important;
            line-height: 1.05;
        }

    #escalateNote {
        font-size: 10px !important;
        line-height: 1.5 !important;
        padding: 12px !important;
    }

    .handoff {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 18px;
    }

        .handoff .box {
            width: 100%;
            padding: 13px 15px;
            border-radius: 13px;
            text-align: center;
        }

        .handoff .arrowbig {
            transform: rotate(90deg);
            font-size: 18px;
        }

    .languages {
        width: 100%;
        margin-top: 35px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .langpanel {
        width: 100%;
        padding: 18px;
        border-radius: 17px;
    }

    .langrow {
        padding: 13px 0;
    }

        .langrow label {
            font-size: 8px;
        }

        .langrow p {
            font-size: 12px;
            line-height: 1.45;
            overflow-wrap: anywhere;
        }

    .langpanel > div > div[style*="font-size:52px"] {
        font-size: 38px !important;
    }

    .langpanel h3 {
        font-size: 22px !important;
    }

    .chat {
        width: 100%;
        margin-top: 35px;
        border-radius: 18px;
    }

    .chathead {
        height: 54px;
        padding: 0 13px;
    }

        .chathead strong {
            font-size: 12px;
        }

        .chathead span {
            max-width: 52%;
            font-size: 7px;
            text-align: right;
            line-height: 1.3;
        }

    .messages {
        height: 235px;
        padding: 14px;
        gap: 8px;
    }

    .msg {
        max-width: 88%;
        padding: 10px 12px;
        border-radius: 13px;
        font-size: 10px;
        line-height: 1.45;
    }

    .quick {
        padding: 0 12px 10px;
        gap: 6px;
    }

        .quick button {
            min-height: 34px;
            padding: 7px 10px;
            font-size: 8px;
        }

    .chatinput {
        padding: 9px;
        gap: 6px;
    }

        .chatinput input {
            min-height: 40px;
            padding: 0 12px;
            font-size: 14px;
        }

    .send {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        font-size: 15px;
    }

    .faq {
        width: 100%;
        max-width: 100%;
        margin: 35px 0 0;
        gap: 7px;
    }

        .faq details {
            width: 100%;
            border-radius: 14px;
        }

        .faq summary {
            padding: 15px 42px 15px 14px;
            font-size: 11px;
            line-height: 1.4;
        }

            .faq summary:after {
                right: 14px;
                top: 12px;
                font-size: 19px;
            }

        .faq details p {
            padding: 0 14px 15px;
            font-size: 9px;
            line-height: 1.6;
        }

    footer {
        padding: 25px 14px;
        font-size: 8px;
    }

    .float {
        right: 10px;
        bottom: 10px;
        padding: 9px 12px;
        font-size: 9px;
    }
}

/* ---------- VERY SMALL PHONES (including ~320px and narrower) ---------- */
@media (max-width: 380px) {
 

    .nav {
        padding: 0 10px;
    }

    .brand img {
        width: 76px;
        max-width: 76px;
        max-height: 34px;
    }

    .hero {
        padding: 82px 11px 45px;
    }

        .hero h1 {
            font-size: clamp(42px, 15.5vw, 56px);
        }

        .hero p {
            max-width: 285px;
            font-size: 10px;
        }

    .actions {
        gap: 5px;
    }

    .btn {
        padding: 9px 10px;
        font-size: 8px;
    }

    .ai-stage {
        width: min(250px, 76vw);
        height: min(250px, 76vw);
    }

    section {
        padding-left: 11px;
        padding-right: 11px;
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .title {
        font-size: clamp(31px, 10.8vw, 45px);
    }

    .copy {
        max-width: 285px;
        font-size: 10px;
    }

    .pipeline {
        grid-template-columns: 1fr;
    }

        .pipeline .pipe {
            min-height: 92px;
        }

    .visual {
        height: 165px;
    }

    .chathead span {
        display: none;
    }

    .messages {
        height: 205px;
    }

    .quick button {
        flex: 1 1 auto;
    }

    .faq summary {
        font-size: 10px;
    }
}

/* ---------- ACCESSIBILITY / MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
