﻿
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #07100d;
    --panel: #0c1713;
    --panel2: #101e19;
    --line: rgba(194,255,220,.13);
    --text: #f4fff8;
    --muted: #9eb0a6;
    --green: #52f39a;
    --green2: #b7ffd4;
    --lime: #d6ff4f;
    --dark: #07100d;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: radial-gradient(circle at 78% 16%,rgba(82,243,154,.12),transparent 24%), radial-gradient(circle at 12% 45%,rgba(214,255,79,.07),transparent 23%), var(--bg);
    color: var(--text);
    font-family: Manrope,Arial,sans-serif;
    overflow-x: hidden;
}

    body:before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        opacity: .22;
        background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
        background-size: 64px 64px;
        mask-image: linear-gradient(to bottom,#000,transparent 80%);
    }

a {
    text-decoration: none;
    color: inherit
}

button {
    font: inherit
}

.nav {
    position: fixed;
    z-index: 20;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px,calc(100% - 36px));
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(7,16,13,.64);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.logo {
    height: 28px;
    width: auto;
    object-fit: contain
}

.navlinks {
    display: flex;
    gap: 28px;
    font: 500 11px "DM Mono",monospace;
    color: #91a299;
    text-transform: uppercase;
    letter-spacing: .1em
}

    .navlinks a:hover {
        color: var(--green)
    }

.navcta {
    border: 1px solid rgba(82,243,154,.35);
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--green);
    font-size: 11px;
    font-weight: 700
}

section {
    position: relative
}

.hero {
    min-height: 100vh;
    padding: 150px 6vw 80px;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 6vw;
    align-items: center;
    max-width: 1440px;
    margin: auto;
}

.kicker {
    font: 500 11px "DM Mono",monospace;
    color: var(--green);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 26px
}

h1 {
    font-size: clamp(64px,8.4vw,126px);
    line-height: .88;
    letter-spacing: -.075em;
    margin: 0;
    max-width: 760px
}

    h1 .green {
        color: var(--green)
    }

    h1 .outline {
        color: transparent;
        -webkit-text-stroke: 1px rgba(244,255,248,.55)
    }

.hero-copy {
    font-size: 17px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 650px;
    margin: 34px 0 28px
}

    .hero-copy strong {
        color: #fff
    }

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    border: 1px solid var(--line);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em
}

    .btn.primary {
        background: var(--green);
        color: #07100d;
        border-color: var(--green)
    }

    .btn.secondary:hover {
        border-color: var(--green);
        color: var(--green)
    }

.phone-wrap {
    display: flex;
    justify-content: center;
    position: relative
}

    .phone-wrap:before, .phone-wrap:after {
        content: "";
        position: absolute;
        border: 1px solid rgba(82,243,154,.15);
        border-radius: 50%;
        width: 470px;
        height: 470px;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }

    .phone-wrap:after {
        width: 600px;
        height: 600px;
        border-color: rgba(214,255,79,.07)
    }

.phone {
    position: relative;
    z-index: 2;
    width: min(390px,90vw);
    height: 650px;
    border: 1px solid rgba(183,255,212,.18);
    border-radius: 36px;
    background: rgba(9,20,15,.88);
    box-shadow: 0 30px 100px rgba(0,0,0,.5),0 0 80px rgba(82,243,154,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-top {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #07100d;
    font-weight: 900
}

.phone-title strong {
    display: block;
    font-size: 14px
}

.online {
    font-size: 10px;
    color: var(--green)
}

.messages {
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%,rgba(82,243,154,.045),transparent 50%)
}

.msg {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 15px;
    font-size: 12px;
    line-height: 1.55;
    color: #d9e7df;
    border: 1px solid var(--line);
    animation: rise .45s both
}

    .msg.bot {
        background: #101f18;
        border-bottom-left-radius: 5px;
        align-self: flex-start
    }

    .msg.user {
        background: #183d2b;
        border-bottom-right-radius: 5px;
        align-self: flex-end;
        color: #effff4
    }

    .msg small {
        display: block;
        color: #6f8278;
        font-size: 8px;
        margin-top: 5px;
        text-align: right
    }

.quick {
    padding: 10px 14px;
    display: flex;
    gap: 7px;
    overflow: auto;
    border-top: 1px solid var(--line)
}

    .quick button {
        white-space: nowrap;
        background: transparent;
        color: var(--green2);
        border: 1px solid rgba(82,243,154,.24);
        border-radius: 20px;
        padding: 8px 10px;
        font-size: 9px;
        cursor: pointer
    }

.composer {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 8px
}

    .composer input {
        min-width: 0;
        flex: 1;
        background: #0e1b16;
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 11px 13px;
        color: #fff;
        outline: none;
        font-size: 11px
    }

    .composer button {
        width: 38px;
        border: 0;
        border-radius: 50%;
        background: var(--green);
        color: #07100d;
        font-weight: 900;
        cursor: pointer
    }

.section {
    padding: 130px 7vw;
    max-width: 1440px;
    margin: auto
}

.section-head {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 7vw;
    align-items: end;
    margin-bottom: 60px
}

.eyebrow {
    font: 500 10px "DM Mono",monospace;
    color: var(--green);
    letter-spacing: .18em;
    text-transform: uppercase
}

h2 {
    font-size: clamp(54px,7vw,102px);
    line-height: .9;
    letter-spacing: -.07em;
    margin: 14px 0 0
}

.section-head p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 680px;
    margin: 0
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.feature {
    padding: 30px 22px;
    min-height: 190px;
    border-right: 1px solid var(--line);
    transition: .3s
}

    .feature:last-child {
        border-right: 0
    }

    .feature:hover {
        background: rgba(82,243,154,.045);
        transform: translateY(-5px)
    }

.num {
    font: 500 10px "DM Mono",monospace;
    color: #64776d
}

.feature h3 {
    font-size: 18px;
    line-height: 1.15;
    margin: 48px 0 10px
}

.feature p {
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0
}

.workflow {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px
}

.step {
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    background: linear-gradient(145deg,rgba(82,243,154,.055),transparent 55%);
    position: relative;
    overflow: hidden
}

    .step:after {
        content: "";
        position: absolute;
        width: 130px;
        height: 130px;
        border-radius: 50%;
        right: -65px;
        bottom: -65px;
        background: rgba(82,243,154,.08)
    }

.step-no {
    font: 500 10px "DM Mono",monospace;
    color: var(--green)
}

.step h3 {
    font-size: 28px;
    margin: 75px 0 12px
}

.step p {
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted)
}

.use-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 14px
}

.use-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    min-height: 230px;
    background: #0b1712
}

    .use-card.large {
        grid-row: span 2;
        min-height: 474px;
        background: linear-gradient(140deg,rgba(82,243,154,.08),rgba(82,243,154,.01))
    }

    .use-card h3 {
        font-size: 31px;
        letter-spacing: -.04em;
        margin: 65px 0 12px
    }

    .use-card p {
        font-size: 13px;
        line-height: 1.7;
        color: var(--muted);
        max-width: 550px
    }

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px
}

.pill {
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 9px 12px;
    font-size: 9px;
    color: #b4c4bc
}

.security {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #e8f1eb;
    color: #07100d;
    max-width: none;
    padding: 60px 7vw;
}

    .security:before,
    .security:after {
        content: "";
        position: absolute;
        z-index: -1;
        pointer-events: none;
        border-radius: 50%;
        filter: blur(2px);
        mix-blend-mode: multiply;
    }

    .security:before {
        width: 58vw;
        height: 58vw;
        left: -18vw;
        top: -30vw;
        background: radial-gradient(circle at 55% 55%,rgba(82,243,154,.42),rgba(82,243,154,.13) 25%,transparent 65%);
        animation: securityFloat 13s ease-in-out infinite alternate;
    }

    .security:after {
        width: 52vw;
        height: 52vw;
        right: -18vw;
        bottom: -28vw;
        background: radial-gradient(circle at 45% 45%,rgba(82,243,154,.28),rgba(82,243,154,.10) 30%,transparent 68%);
        animation: securityFloat2 16s ease-in-out infinite alternate;
    }

    .security .eyebrow {
        color: #16894e
    }

.security-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,.9fr);
    gap: 8vw;
    align-items: center;
    max-width: 1440px;
    margin: auto;
}

.security h2 {
    color: #07100d;
    font-size: clamp(52px,6.4vw,96px);
    line-height: .9;
    letter-spacing: -.07em;
    max-width: 760px;
    margin: 14px 0 0;
    overflow-wrap: normal;
}

.security p {
    color: #53635a;
    max-width: 610px;
    line-height: 1.8
}

.security-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(7,16,13,.18);
    margin-top: 30px;
}

.sec-item {
    padding: 22px 18px 22px 0;
    border-bottom: 1px solid rgba(7,16,13,.18);
    font-size: 13px;
    font-weight: 800;
}

    .sec-item:nth-child(even) {
        padding-left: 18px;
        border-left: 1px solid rgba(7,16,13,.18)
    }

    .sec-item span {
        display: block;
        font: 500 9px/1.4 "DM Mono",monospace;
        color: #6c7d73;
        margin-top: 8px;
    }

@keyframes securityFloat {
    from {
        transform: translate3d(-3%,2%,0) scale(.95)
    }

    to {
        transform: translate3d(10%,9%,0) scale(1.08)
    }
}

@keyframes securityFloat2 {
    from {
        transform: translate3d(4%,4%,0) scale(1)
    }

    to {
        transform: translate3d(-8%,-8%,0) scale(1.12)
    }
}

.faq {
    max-width: 900px;
    margin: auto
}

.faq-item {
    border-top: 1px solid var(--line)
}

.faq-q {
    width: 100%;
    background: none;
    border: 0;
    color: #fff;
    text-align: left;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700
}

    .faq-q span:last-child {
        color: var(--green);
        font-size: 20px
    }

.faq-a {
    max-height: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    transition: max-height .35s ease
}

    .faq-a div {
        padding: 0 0 24px
    }

.final {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 60px 6vw
}

    .final h2 {
        max-width: 950px;
        margin: 15px auto 28px
    }

    .final p {
        max-width: 620px;
        margin: 0 auto 28px;
        color: var(--muted);
        line-height: 1.7
    }

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease,transform .7s ease
}

    .reveal.visible {
        opacity: 1;
        transform: none
    }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media (prefers-reduced-motion: reduce) {
    .liquid-blob {
        animation: none !important
    }
}

@media (max-width: 1000px) {
    .hero, .section-head, .security-grid, .use-grid {
        grid-template-columns: 1fr
    }

    .hero {
        padding-top: 130px
    }

    .security {
        padding-top: 110px;
        padding-bottom: 110px
    }

    .security-grid {
        gap: 55px
    }

    .security h2 {
        font-size: clamp(48px,10vw,78px)
    }

    .feature-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .feature:nth-child(2n) {
        border-right: 0
    }

    .workflow {
        grid-template-columns: repeat(2,1fr)
    }

    .use-card.large {
        grid-row: auto;
        min-height: 300px
    }
}

@media (max-width: 650px) {
    .navlinks, .navcta {
        display: none
    }

    .hero {
        padding: 120px 22px 70px
    }

    .security {
        padding: 90px 22px
    }

        .security h2 {
            font-size: clamp(46px,14vw,68px)
        }

    .security-list {
        grid-template-columns: 1fr
    }

    .sec-item:nth-child(even) {
        padding-left: 0;
        border-left: 0
    }

    .section {
        padding: 90px 22px
    }

    .feature-grid, .workflow {
        grid-template-columns: 1fr
    }

    .feature {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

        .feature:last-child {
            border-bottom: 0
        }

    h1 {
        font-size: 62px
    }

    .phone {
        height: 590px
    }
}

/* REAL LIQUIDETHER-STYLE BACKGROUND */
#liquidEtherCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    display: block;
    background: #06120d;
}

body {
    position: relative;
    isolation: isolate;
    background: #06120d !important;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -9;
        pointer-events: none;
        background: radial-gradient(circle at 50% 50%,rgba(82,243,154,.035),transparent 62%);
    }

/* Hide visible scrollbars while keeping normal scrolling */
html, body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

/* Hide scrollbars on all internal UI containers too */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

    *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }


/* V2 — larger Section 02 cards + tighter section rhythm */
.section {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
}

section + section {
    margin-top: 0 !important;
}

/* Section 02 / platform cards */
#platforms .card,
#platforms .feature-card,
#platforms .platform-card {
    padding: 28px !important;
}

    #platforms .card p,
    #platforms .feature-card p,
    #platforms .platform-card p {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    #platforms .card h3,
    #platforms .feature-card h3,
    #platforms .platform-card h3 {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }

/* If Section 02 uses the platform grid, increase its body copy specifically */
#platforms .platform-grid p,
#platforms .cards p {
    font-size: 15px !important;
    line-height: 1.65 !important;
}

/* Reduce large vertical gaps between the major sections without crushing content */
.hero + section {
    padding-top: 42px !important
}

#platforms {
    padding-top: 42px !important;
    padding-bottom: 42px !important
}

#usecases {
    padding-top: 42px !important;
    padding-bottom: 42px !important
}

#faq {
    padding-top: 42px !important;
    padding-bottom: 42px !important
}

/* 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;
}

/* ===== ARIA UX PATCH ===== */

/* Keep the background green family consistent with the rest of the page */
#liquidEtherCanvas {
    background: #06120d;
}

/* Larger, easier-to-read descriptions across Sections 01–04 */
#features .feature p,
#workflow .step p,
#usecases .use-card p,
.security p {
    font-size: 15px !important;
    line-height: 1.75 !important;
}

#features .feature p {
    max-width: 250px
}

#workflow .step p {
    max-width: 360px
}

#usecases .use-card p {
    max-width: 620px
}

/* Hero autoplay demo */
.hero .composer input {
    caret-color: var(--green);
}

.hero .composer button.demo-send {
    transform: scale(.92);
}

    .hero .composer button.demo-send.is-sending {
        animation: demoSend .45s ease;
    }

@keyframes demoSend {
    0% {
        transform: scale(.92)
    }

    45% {
        transform: scale(1.14)
    }

    100% {
        transform: scale(.92)
    }
}

/* ===== SHIVI ===== */
#shiviRoot {
    display: none !important;
    position: fixed;
    right: 22px;
    bottom: 20px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.shivi-widget,
.shivi-launcher {
    pointer-events: auto;
}

.shivi-launcher {
    position: relative;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(82,243,154,.34);
    border-radius: 24px;
    padding: 0;
    cursor: pointer;
    background: linear-gradient(145deg,#10251b,#07130e);
    box-shadow: 0 18px 55px rgba(0,0,0,.48),0 0 35px rgba(82,243,154,.10);
    display: grid;
    place-items: center;
    animation: shiviBreath 3.2s ease-in-out infinite;
    transition: transform .25s ease,box-shadow .25s ease;
}

    .shivi-launcher:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 22px 60px rgba(0,0,0,.52),0 0 42px rgba(82,243,154,.18);
    }

.shivi-character {
    width: 58px;
    height: 58px;
    position: relative;
}

    .shivi-character svg {
        width: 100%;
        height: 100%;
        display: block;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,.28));
    }

.shivi-wave {
    position: absolute;
    right: -3px;
    top: 5px;
    width: 20px;
    height: 20px;
    transform-origin: bottom center;
    animation: shiviWave 3.8s ease-in-out infinite;
}

@keyframes shiviBreath {
    0%,100% {
        transform: translateY(0) rotate(0deg)
    }

    50% {
        transform: translateY(-3px) rotate(-1deg)
    }
}

@keyframes shiviWave {
    0%,65%,100% {
        transform: rotate(0deg)
    }

    70% {
        transform: rotate(18deg)
    }

    74% {
        transform: rotate(-14deg)
    }

    78% {
        transform: rotate(16deg)
    }

    82% {
        transform: rotate(-8deg)
    }
}

.shivi-nudge {
    position: absolute;
    right: 78px;
    bottom: 14px;
    max-width: 210px;
    padding: 10px 13px;
    border: 1px solid rgba(82,243,154,.28);
    border-radius: 14px 14px 4px 14px;
    background: rgba(7,16,13,.94);
    color: #eafff2;
    font-size: 11px;
    line-height: 1.45;
    box-shadow: 0 14px 40px rgba(0,0,0,.42);
    opacity: 0;
    transform: translateY(8px) scale(.96);
    transition: .25s ease;
}

    .shivi-nudge.show {
        opacity: 1;
        transform: none;
    }

.shivi-widget {
    width: min(360px,calc(100vw - 28px));
    margin-bottom: 12px;
    border: 1px solid rgba(183,255,212,.22);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(7,16,13,.96);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 90px rgba(0,0,0,.6),0 0 50px rgba(82,243,154,.08);
    display: none;
}

    .shivi-widget.open {
        display: block;
        animation: shiviOpen .28s ease both
    }

@keyframes shiviOpen {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.shivi-head {
    height: 54px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.shivi-head-left {
    display: flex;
    align-items: center;
    gap: 10px
}

.shivi-mini {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #10251b;
}

    .shivi-mini svg {
        width: 25px;
        height: 25px
    }

.shivi-head strong {
    font-size: 12px;
    letter-spacing: .01em
}

.shivi-head button {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #8fa59a;
    cursor: pointer;
    font-size: 20px;
}

.shivi-body {
    padding: 16px
}

.shivi-welcome {
    font-size: 12px;
    line-height: 1.6;
    color: #dcebe3;
    margin-bottom: 14px;
}

.shivi-form {
    display: grid;
    gap: 9px
}

    .shivi-form input {
        width: 100%;
        height: 42px;
        padding: 0 12px;
        border: 1px solid rgba(194,255,220,.14);
        border-radius: 11px;
        background: #0c1a14;
        color: #fff;
        outline: none;
        font-size: 11px;
    }

        .shivi-form input:focus {
            border-color: rgba(82,243,154,.5)
        }

.shivi-phone {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 7px
}

    .shivi-phone span {
        display: grid;
        place-items: center;
        border: 1px solid rgba(194,255,220,.14);
        border-radius: 11px;
        background: #0c1a14;
        color: var(--green);
        font: 600 11px "DM Mono",monospace;
    }

.shivi-start {
    height: 43px;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    color: #07100d;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 3px;
}

.shivi-chat {
    display: none;
    flex-direction: column;
    min-height: 270px
}

    .shivi-chat.active {
        display: flex
    }

.shivi-chat-log {
    height: 205px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 0 10px;
}

.shivi-msg {
    max-width: 84%;
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.5;
    border: 1px solid var(--line);
}

    .shivi-msg.bot {
        align-self: flex-start;
        background: #0d2118;
        color: #e4f7eb;
        border-bottom-left-radius: 4px
    }

    .shivi-msg.user {
        align-self: flex-end;
        background: #17452f;
        color: #fff;
        border-bottom-right-radius: 4px
    }

.shivi-chat-form {
    display: flex;
    gap: 7px;
    border-top: 1px solid var(--line);
    padding-top: 10px
}

    .shivi-chat-form input {
        flex: 1;
        min-width: 0;
        height: 38px;
        border: 1px solid rgba(194,255,220,.14);
        border-radius: 19px;
        background: #0c1a14;
        color: #fff;
        padding: 0 12px;
        outline: none;
        font-size: 11px;
    }

    .shivi-chat-form button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: var(--green);
        color: #07100d;
        font-weight: 900;
        cursor: pointer;
    }

/* ===== REQUEST DEMO MODAL ===== */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(1,7,4,.72);
    backdrop-filter: blur(10px);
}

    .demo-modal.open {
        display: grid
    }

.demo-card {
    width: min(480px,100%);
    border: 1px solid rgba(183,255,212,.22);
    border-radius: 22px;
    background: rgba(7,16,13,.97);
    box-shadow: 0 35px 110px rgba(0,0,0,.7);
    overflow: hidden;
    animation: modalIn .25s ease both;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

    .demo-head strong {
        font-size: 15px
    }

.demo-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #8fa59a;
    font-size: 21px;
    cursor: pointer;
}

.demo-body {
    padding: 20px
}

    .demo-body p {
        margin: 0 0 18px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.6
    }

.demo-form {
    display: grid;
    gap: 11px
}

    .demo-form label {
        font: 500 9px "DM Mono",monospace;
        color: #91a299;
        text-transform: uppercase;
        letter-spacing: .1em
    }

    .demo-form input {
        width: 100%;
        height: 44px;
        margin-top: 6px;
        padding: 0 13px;
        border: 1px solid rgba(194,255,220,.14);
        border-radius: 11px;
        background: #0c1a14;
        color: #fff;
        outline: none;
        font-size: 12px;
    }

        .demo-form input:focus {
            border-color: rgba(82,243,154,.55)
        }

.demo-phone {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 8px
}

    .demo-phone span {
        margin-top: 6px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(194,255,220,.14);
        border-radius: 11px;
        color: var(--green);
        font: 600 11px "DM Mono",monospace;
        background: #0c1a14;
    }

.demo-submit {
    height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    color: #07100d;
    font-weight: 900;
    font-size: 11px;
    cursor: pointer;
}

.demo-status {
    display: none;
    margin-top: 12px;
    color: var(--green);
    font-size: 11px
}

@media (max-width: 650px) {
    #shiviRoot {
        right: 12px;
        bottom: 12px
    }

    .shivi-launcher {
        width: 68px;
        height: 68px
    }

    .shivi-widget {
        margin-bottom: 9px
    }
}


/* Shivi: no arrow, friendly waving robot */
#shivi-icon .shivi-arm {
    transform-origin: 2px 50% !important;
    transform: rotate(-28deg) !important;
}

#shivi-icon.active .shivi-arm {
    animation: shiviFriendlyWave .22s ease-in-out 7 alternate !important;
}

@keyframes shiviFriendlyWave {
    0% {
        transform: rotate(-28deg);
    }

    50% {
        transform: rotate(30deg);
    }

    100% {
        transform: rotate(-18deg);
    }
}

/* Gentle idle wave once in a while */
#shivi-icon:not(.active) .shivi-arm {
    animation: shiviIdleWave 5.5s ease-in-out infinite;
}

@keyframes shiviIdleWave {
    0%,78%,100% {
        transform: rotate(-28deg);
    }

    82% {
        transform: rotate(10deg);
    }

    86% {
        transform: rotate(30deg);
    }

    90% {
        transform: rotate(-8deg);
    }

    94% {
        transform: rotate(20deg);
    }
}


/* Remove the old floating hand/arrow completely */
.shivi-wave {
    display: none !important
}

/* Shivi waves with her actual right arm */
.shivi-arm {
    transform-box: fill-box;
    transform-origin: 100% 100%;
}

.shivi-launcher:hover .shivi-arm {
    animation: shiviArmWave .42s ease-in-out 4 alternate;
}

@keyframes shiviArmWave {
    0% {
        transform: rotate(0deg)
    }

    50% {
        transform: rotate(-18deg)
    }

    100% {
        transform: rotate(10deg)
    }
}

/* subtle idle wave */
.shivi-arm {
    animation: shiviIdleArmWave 6s ease-in-out infinite;
}

@keyframes shiviIdleArmWave {
    0%,82%,100% {
        transform: rotate(0deg)
    }

    85% {
        transform: rotate(-10deg)
    }

    88% {
        transform: rotate(8deg)
    }

    91% {
        transform: rotate(-6deg)
    }
}



/* =========================================================
   MOBILE / CROSS-BROWSER RESPONSIVE PATCH
   Keeps existing desktop design and JS interactions intact.
   ========================================================= */

/* Prevent grid/flex children from forcing viewport overflow */
img, svg, video, canvas {
    max-width: 100%;
}

*, *::before, *::after {
    min-width: 0;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.nav,
.hero,
.section,
.security,
.final {
    width: 100%;
    max-width: 100%;
}

/* Better browser support for the glass navigation */
.nav {
    -webkit-backdrop-filter: blur(20px);
}

/* Tablet */
@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 125px;
        text-align: center;
    }

    .hero-copy {
        max-width: 760px;
        margin-inline: auto;
    }

    .hero-copy,
    .hero .actions {
        justify-content: center;
    }

    .hero .actions {
        display: flex;
    }

    .phone-wrap {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .section-head,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        gap: 30px;
        align-items: start;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .use-grid {
        grid-template-columns: 1fr;
    }

    .use-card.large {
        grid-row: auto;
        min-height: 300px;
    }

    .security-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phones */
@media (max-width: 650px) {
    .nav {
        top: 10px;
        width: calc(100% - 20px);
        height: 52px;
        padding: 0 12px;
        border-radius: 15px;
    }

    .logo {
        height: 25px;
        max-width: 120px;
    }

    .navlinks,
    .navcta {
        display: none !important;
    }

   
    .navcta {
        display: block !important;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 42px;
        min-height: auto;
        padding: 105px 16px 65px;
        text-align: left;
    }

        .hero > .reveal:first-child {
            width: 100%;
        }

    .kicker {
        font-size: 8px;
        line-height: 1.5;
        letter-spacing: .13em;
        margin-bottom: 18px;
        white-space: normal;
    }

    h1 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(42px, 13.5vw, 62px);
        line-height: .88;
        letter-spacing: -.075em;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero-copy {
        width: 100%;
        max-width: 100%;
        margin: 22px 0 22px;
        font-size: 13px;
        line-height: 1.65;
    }

    .actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }

        .actions .btn {
            width: 100%;
            text-align: center;
            padding: 12px 14px;
        }

    .phone-wrap {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

        .phone-wrap::before,
        .phone-wrap::after {
            width: 92vw;
            height: 92vw;
            max-width: 390px;
            max-height: 390px;
        }

        .phone-wrap::after {
            width: 110vw;
            height: 110vw;
            max-width: 470px;
            max-height: 470px;
        }

    .phone {
        width: min(100%, 360px);
        height: min(590px, 145vw);
        min-height: 500px;
        margin: 0 auto;
        border-radius: 28px;
    }

    .phone-top {
        padding: 14px 15px;
    }

    .messages {
        padding: 16px 12px;
    }

    .msg {
        max-width: 88%;
        font-size: 11px;
    }

    .section {
        width: 100%;
        padding: 40px 16px !important;
    }

    .section-head {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 32px;
    }

    h2 {
        max-width: 100%;
        font-size: clamp(40px, 12.5vw, 60px);
        line-height: .9;
        letter-spacing: -.065em;
        overflow-wrap: break-word;
    }

    .section-head p,
    .section-copy {
        width: 100%;
        max-width: 100%;
        font-size: 13px;
        line-height: 1.65;
    }

    .feature-grid,
    .workflow,
    .use-grid,
    .security-grid {
        grid-template-columns: 1fr !important;
    }

    .feature {
        min-height: 0;
        padding: 24px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

        .feature h3 {
            margin: 28px 0 9px;
            font-size: 18px;
        }

        .feature p,
        #features .feature p,
        #workflow .step p,
        #usecases .use-card p {
            max-width: 100%;
            font-size: 13px !important;
            line-height: 1.65 !important;
        }

    .step {
        min-height: 220px;
        padding: 20px;
    }

        .step h3 {
            margin: 48px 0 10px;
            font-size: 25px;
        }

    .use-card,
    .use-card.large {
        min-height: 0;
        padding: 22px 18px;
    }

        .use-card h3 {
            margin: 38px 0 10px;
            font-size: 26px;
            line-height: 1.05;
        }

    .pills {
        gap: 6px;
    }

    .pill {
        padding: 7px 9px;
        font-size: 8px;
    }

    .security {
        width: 100%;
        padding: 78px 16px !important;
    }

    .security-grid {
        gap: 35px;
    }

    .security h2 {
        max-width: 100%;
        font-size: clamp(42px, 13vw, 64px);
        line-height: .9;
        overflow-wrap: break-word;
    }

    .security-list {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .sec-item,
    .sec-item:nth-child(even) {
        padding: 17px 0;
        border-left: 0;
    }

    .final {
        width: 100%;
        min-height: auto;
        padding:40px 16px !important;
    }

        .final h2 {
            width: 100%;
            max-width: 100%;
            font-size: clamp(40px, 12.5vw, 60px);
            line-height: .92;
        }

        .final p {
            width: 100%;
            max-width: 100%;
            font-size: 13px;
        }

    .faq {
        width: 100%;
        max-width: 100%;
    }

    .faq-q {
        gap: 12px;
        padding: 18px 0;
        font-size: 14px;
        line-height: 1.4;
    }

        .faq-q span:first-child {
            min-width: 0;
            overflow-wrap: anywhere;
        }

    .faq-a {
        font-size: 12px;
        line-height: 1.65;
    }

    /* Keep demo modal inside the phone viewport */
    .demo-card {
        width: calc(100vw - 24px) !important;
        max-width: 420px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Shivi remains fixed to the viewport rather than affecting page width */
    #shiviRoot {
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
    }

    .shivi-widget {
        width: min(360px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
    }

    .shivi-nudge {
        right: 0;
        bottom: 78px;
        max-width: min(210px, calc(100vw - 30px));
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero {
        padding-left: 13px;
        padding-right: 13px;
    }

    h1 {
        font-size: clamp(38px, 13vw, 52px);
    }

    h2,
    .security h2,
    .final h2 {
        font-size: clamp(36px, 12.5vw, 52px);
    }

    .section,
    .security,
    .final {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }

    .phone {
        width: 100%;
    }
}

/* Safari/iOS safe-area handling */
@supports (padding: max(0px)) {
    .nav {
        top: max(10px, env(safe-area-inset-top));
    }

    .hero {
        padding-left: max(13px, env(safe-area-inset-left));
        padding-right: max(13px, env(safe-area-inset-right));
    }

    #shiviRoot {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
