/* ================================================================
   Quick AI Search Hub — app.css
   Aesthetic: AI Prompt Studio
              gradient-hairline answer panels · monospace @qai chips
              sparkle corner marks · soft particle backdrop
   Palette:   violet #6D5CFF · cyan #22D3EE · ink #1E1B4B
              bg #F7F6FF · surface #FFFFFF · muted #6B6890
   Type:      Space Grotesk (display) + Inter Tight (body)
              JetBrains Mono — only inside `.prompt-chip`
================================================================ */

/* ----------------------------------------------------------------
   1. Custom properties
---------------------------------------------------------------- */
:root {
    --bg:               #F7F6FF;
    --bg-soft:          #EFEDFF;
    --bg-band:          #EEF0FF;
    --surface:          #FFFFFF;
    --accent:           #6D5CFF;
    --accent-2:         #22D3EE;
    --accent-dark:      #4F3FE0;
    --text:             #1E1B4B;
    --text-soft:        #4B4868;
    --text-muted:       #6B6890;
    --border:           #E2E0FF;
    --border-soft:      #ECEBFF;
    --radius-card:      20px;
    --radius-pill:      100px;
    --shadow-sm:        0 2px 10px rgba(109, 92, 255, 0.10);
    --shadow-md:        0 14px 36px -16px rgba(109, 92, 255, 0.30);
    --shadow-lg:        0 28px 72px -24px rgba(109, 92, 255, 0.42);
    --gradient-main:    linear-gradient(115deg, #6D5CFF 0%, #5B8BFF 56%, #22D3EE 100%);
    --gradient-soft:    linear-gradient(135deg, rgba(109,92,255,0.10), rgba(34,211,238,0.10));
    --gradient-panel:   linear-gradient(180deg, #F4F1FF 0%, #E6F8FF 100%);

    --font-display:     'Space Grotesk', system-ui, sans-serif;
    --font-body:        'Inter Tight', system-ui, sans-serif;
    --font-mono:        'JetBrains Mono', ui-monospace, Consolas, monospace;
}

/* ----------------------------------------------------------------
   2. Base / reset
---------------------------------------------------------------- */
html {
    font-size: 10px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    margin-top: 0;
    color: var(--text);
}

svg { display: block; }

a, button, input, textarea, select {
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

button { cursor: pointer; outline: 0; }

input, textarea, select { width: 100%; padding: 10px 12px; outline: 0; }

a { text-decoration: none; color: var(--accent); }

@media (hover: hover) {
    a:hover { text-decoration: underline; }
}

img { max-width: 100%; height: auto; }

/* ----------------------------------------------------------------
   3. Template-required selectors
---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1180px;
    padding: 0 24px;
    margin: 0 auto;
}

.title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4.2rem;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--text);
}

.title-big {
    font-size: 5.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.title-small { font-size: 3.2rem; }

.text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.65rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   4. Mandatory utilities
---------------------------------------------------------------- */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.15em;
    display: inline-block;
}

.gradient-pill,
.gradient-circle {
    border: none;
    background-clip: padding-box;
}

/* ----------------------------------------------------------------
   5. Buttons
---------------------------------------------------------------- */
.btn,
.btn_main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.55rem;
    color: #ffffff;
    white-space: nowrap;
    border: 0;
    line-height: 1;
    background: var(--gradient-main);
    box-shadow: 0 12px 26px -10px rgba(109, 92, 255, 0.50);
    border-radius: var(--radius-pill);
    min-height: 5rem;
    background-clip: padding-box;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.btn_main {
    min-height: 5.4rem;
    padding: 1.5rem 3.4rem;
    font-size: 1.65rem;
    font-weight: 700;
}

.btn:focus { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:active { box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.12); }

@media (hover: hover) {
    .btn:hover,
    .btn_main:hover {
        opacity: 0.95;
        transform: translateY(-1px);
        box-shadow: 0 18px 36px -10px rgba(109, 92, 255, 0.55);
        text-decoration: none;
    }
}

.btn_ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    min-height: 5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

@media (hover: hover) {
    .btn_ghost:hover {
        border-color: var(--accent);
        color: var(--accent);
        text-decoration: none;
        transform: translateY(-1px);
    }
}

.btn-wrapper { margin-top: 4rem; }

/* ----------------------------------------------------------------
   6. Back to top
---------------------------------------------------------------- */
.return-to-top {
    position: fixed;
    bottom: -3rem;
    right: 2rem;
    width: 4.4rem;
    height: 4.4rem;
    background: var(--gradient-main);
    line-height: 4.4rem;
    text-align: center;
    cursor: pointer;
    z-index: 998;
    border-radius: 50%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px -10px rgba(109, 92, 255, 0.55);
    border: none;
    background-clip: padding-box;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.return-to-top svg { display: block; }

.return-to-top:hover {
    transform: scale(1.07);
    box-shadow: 0 18px 36px -10px rgba(109, 92, 255, 0.65);
}

.return-to-top.back-top {
    bottom: 2rem;
    opacity: 1;
}

/* ----------------------------------------------------------------
   7. Animation keyframes
---------------------------------------------------------------- */
@keyframes pixFade { 0% { opacity: 0; } 100% { opacity: 1; } }

@keyframes pixFadeUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pixFadeDown {
    0%   { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pixFadeLeft {
    0%   { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes pixFadeRight {
    0%   { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes pixZoomIn {
    0%   { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes pixBounceIn {
    0%   { transform: scale(0.1); opacity: 0; }
    60%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.pixFade      { animation-name: pixFade; }
.pixFadeUp    { animation-name: pixFadeUp; }
.pixFadeDown  { animation-name: pixFadeDown; }
.pixFadeLeft  { animation-name: pixFadeLeft; }
.pixFadeRight { animation-name: pixFadeRight; }
.pixZoomIn    { animation-name: pixZoomIn; }
.pixBounceIn  { animation-name: pixBounceIn; }

@keyframes promptCaret {
    0%, 50%   { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes spark {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.25); opacity: 1; }
}

/* ----------------------------------------------------------------
   8. Page loader
---------------------------------------------------------------- */
.page-loader {
    background: var(--bg);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: 99999999;
}

.page-loader .loader {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.page-loader svg { display: none; }

.blobs {
    -webkit-filter: url(#goo);
    filter: url(#goo);
    width: 300px; height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 70px;
    transform-style: preserve-3d;
}

.blobs .blob-center {
    transform-style: preserve-3d;
    position: absolute;
    background: var(--accent);
    top: 50%; left: 50%;
    width: 30px; height: 30px;
    transform-origin: left top;
    transform: scale(0.9) translate(-50%, -50%);
    animation: blob-grow linear 3.4s infinite;
    border-radius: 50%;
    box-shadow: 0 -10px 40px -5px var(--accent);
}

.blob {
    position: absolute;
    background: var(--accent);
    top: 50%; left: 50%;
    width: 30px; height: 30px;
    border-radius: 50%;
    animation: blobs ease-out 3.4s infinite;
    transform: scale(0.9) translate(-50%, -50%);
    transform-origin: center top;
    opacity: 0;
}

.blob:nth-child(1) { animation-delay: 0.2s; }
.blob:nth-child(2) { animation-delay: 0.4s; }
.blob:nth-child(3) { animation-delay: 0.6s; }
.blob:nth-child(4) { animation-delay: 0.8s; }
.blob:nth-child(5) { animation-delay: 1.0s; }

@keyframes blobs {
    0%       { opacity: 0; transform: scale(0) translate(calc(-330px - 50%), -50%); }
    1%       { opacity: 1; }
    35%, 65% { opacity: 1; transform: scale(0.9) translate(-50%, -50%); }
    99%      { opacity: 1; }
    100%     { opacity: 0; transform: scale(0) translate(calc(330px - 50%), -50%); }
}

@keyframes blob-grow {
    0%, 39%   { transform: scale(0) translate(-50%, -50%); }
    40%, 42%  { transform: scale(1, 0.9) translate(-50%, -50%); }
    43%, 44%  { transform: scale(1.2, 1.1) translate(-50%, -50%); }
    52%       { transform: scale(1.5, 1.4) translate(-50%, -50%); }
    58%       { transform: scale(1.8, 1.7) translate(-50%, -50%); }
    68%, 70%  { transform: scale(1.7, 1.5) translate(-50%, -50%); }
    80%, 81%  { transform: scale(1.5, 1.4) translate(-50%, -50%); }
    84%, 85%  { transform: scale(1.3, 1.2) translate(-50%, -50%); }
    90%, 91%  { transform: scale(1, 0.9) translate(-50%, -50%); }
    92%, 100% { transform: scale(0) translate(-50%, -50%); }
}

/* ----------------------------------------------------------------
   9. Header
---------------------------------------------------------------- */
.site-header {
    background: transparent;
    position: sticky;
    width: 100%;
    top: 0; left: 0;
    z-index: 100;
    padding: 1.2rem 0;
    transition: all 0.2s;
    margin-top: 24px;
}

.header-container {
    max-width: 1200px;
    padding: 0 32px;
}

.site-header .inverse-logo,
.site-header.header-light .inverse-logo { display: none !important; }

.site-header.pix-header-fixed.header-light .sticky-logo { display: inline-block !important; }

.site-logo { max-width: 220px; }

.site-header .header-inner {
    position: relative;
    padding: 14px 26px;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 56px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.site-header .header-inner .site-logo a { display: block; }
.site-header .header-inner .site-logo a .sticky-logo { display: none; }

.site-header .header-inner .site-nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.site-header .header-inner .site-nav .menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.site-header .header-inner .site-nav .menu-wrapper:before {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.site-header .site-mobile-logo { display: none; }

.site-header .site-main-menu {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.site-header .site-main-menu li {
    position: relative;
    padding: 1rem 0;
    transition: all 0.3s ease-in-out;
}

.site-header .site-main-menu li:last-child { margin-right: 0; padding: 0; }

.site-header .site-main-menu li > a {
    margin: 0 1.4rem;
    display: inline-block;
    padding: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    transition: 0.25s ease;
}

.site-header .site-main-menu li > a.active { color: var(--accent); }

@media (hover: hover) {
    .site-header .site-main-menu li > a:hover {
        color: var(--accent);
        text-decoration: none;
    }
}

.site-header .toggle-menu .bar { background: var(--accent); }

.logo-sticky { display: none; }

.pix-header-fixed {
    padding: 1.2rem 0;
    z-index: 1000;
    position: sticky;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0px 3px 20px rgba(109, 92, 255, 0.10);
    animation: stickySlideDown 0.65s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.pix-header-fixed .site-logo .main-logo { display: none; }
.pix-header-fixed .site-logo .sticky-logo { display: block; }

.mask-overlay {
    position: fixed;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    top: 0; left: 0;
}

.close-menu { display: none; }
.hidden { display: none; }

/* ----------------------------------------------------------------
   10. Signature ornaments — prompt chip + eyebrow + section eyebrow
---------------------------------------------------------------- */
.prompt-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95em;
    line-height: 1;
    color: var(--accent);
    background: var(--bg-band);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.28em 0.62em;
    letter-spacing: 0;
    white-space: nowrap;
    vertical-align: 0.05em;
}

.prompt-chip--sm {
    font-size: 0.85em;
    padding: 0.22em 0.5em;
    border-radius: 6px;
}

.prompt-chip--md {
    font-size: 0.92em;
    padding: 0.28em 0.66em;
}

.prompt-chip--lg {
    font-size: 0.78em;
    padding: 0.38em 0.9em;
    border-radius: 12px;
    color: #FFFFFF;
    background: var(--gradient-main);
    border: none;
    background-clip: padding-box;
    box-shadow: 0 8px 22px -10px rgba(109, 92, 255, 0.55);
    vertical-align: 0.18em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(109, 92, 255, 0.08);
    border: 1px solid rgba(109, 92, 255, 0.22);
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.4rem;
    margin-bottom: 2rem;
}

.eyebrow-spark {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--gradient-main);
    transform: rotate(45deg);
    border: none;
    background-clip: padding-box;
    animation: spark 2.4s ease-in-out infinite;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1.4rem;
}

/* ----------------------------------------------------------------
   11. Hero — text + free-floating popup (no panel, no border)
---------------------------------------------------------------- */
.fullscreen.hero {
    position: relative;
    padding: 4rem 0 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 20px;
    left: 32px;
    right: 32px;
    height: 760px;
    background: linear-gradient(160deg, #F1EEFF 0%, #ECF7FB 60%, #E5F8FF 100%);
    border-radius: 28px;
    z-index: -1;
}

header:has(.pix-header-fixed) + section .hero-bg,
header:has(.pix-header-fixed) + section .main-bg { top: 0; }

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
}

.hero-split {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(4rem, 6vw, 9rem);
    text-align: left;
    max-width: 1180px;
    margin: 0 auto;
    padding: 5rem 2.4rem 7rem;
    box-sizing: border-box;
}

.hero-text {
    flex: 1 1 0;
    min-width: 0;
}

.hero-title {
    max-width: 560px;
    margin: 0 0 1.8rem;
    font-size: 5rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero-title .prompt-chip--lg { vertical-align: 0.18em; }

.hero-subtitle {
    max-width: 460px;
    margin: 0 0 2.8rem;
    font-size: 1.7rem;
    color: var(--text-soft);
}

.hero-subtitle strong { color: var(--text); font-weight: 600; }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 2.4rem;
}

.hero-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    font-size: 1.4rem;
    color: var(--text-muted);
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.hero-trust .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    background-clip: padding-box;
    flex-shrink: 0;
}

/* Hero right column — popup floats free with halo + orbs + tether */
.hero-stage {
    position: relative;
    flex-shrink: 0;
    width: 360px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
}

.hero-stage-halo {
    position: absolute;
    inset: -40px -30px -30px -30px;
    background:
        radial-gradient(60% 55% at 60% 45%, rgba(34, 211, 238, 0.32) 0%, rgba(34, 211, 238, 0) 70%),
        radial-gradient(70% 65% at 40% 60%, rgba(109, 92, 255, 0.28) 0%, rgba(109, 92, 255, 0) 75%);
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

.hero-stage-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    background-clip: padding-box;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
    box-shadow: 0 10px 24px -10px rgba(109, 92, 255, 0.55);
    animation: spark 3.4s ease-in-out infinite;
}

.hero-stage-orb--a { width: 14px; height: 14px; top: 6%;  right: -4px; animation-delay: 0s; }
.hero-stage-orb--b { width: 9px;  height: 9px;  bottom: 22%; left: -8px; animation-delay: 0.7s; }
.hero-stage-orb--c { width: 6px;  height: 6px;  top: 38%; left: 8px;  animation-delay: 1.4s; }

.hero-stage-tether {
    position: absolute;
    top: 38%;
    left: -150px;
    width: 200px;
    height: 140px;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.hero-popup-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    max-width: 320px;
    border-radius: 22px;
    box-shadow:
        0 32px 60px -28px rgba(30, 27, 75, 0.35),
        0 8px 24px -12px rgba(109, 92, 255, 0.30);
    transform: rotate(-1.6deg);
    transition: transform 0.4s ease;
}

@media (hover: hover) {
    .hero-stage:hover .hero-popup-img { transform: rotate(0deg) translateY(-4px); }
}

/* ----------------------------------------------------------------
   12. How it works — open conversation thread (no cards)
       Asymmetric L / center / R turns, connected by a dashed spine.
---------------------------------------------------------------- */
.flow {
    padding: 10rem 0 9rem;
    position: relative;
    overflow: hidden;
}

.flow::before {
    /* dashed gradient spine running down the section behind the thread */
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(109, 92, 255, 0.32) 0 6px,
            transparent 6px 14px
        );
    transform: translateX(-1px);
    z-index: 0;
    pointer-events: none;
}

.flow-header {
    max-width: 720px;
    margin: 0 auto 6rem;
    position: relative;
    z-index: 1;
}

.flow-headline { margin-bottom: 1.6rem; }

.flow-intro {
    max-width: 520px;
    margin: 0 auto;
}

.flow-thread {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.flow-turn {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2.4rem;
    width: 60%;
}

.flow-turn--left   { margin-right: auto; text-align: left; }
.flow-turn--right  { margin-left: auto;  flex-direction: row-reverse; text-align: right; }
.flow-turn--center {
    margin: 0 auto;
    width: 70%;
    max-width: 640px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.flow-numeral {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 8.4rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.4px rgba(109, 92, 255, 0.32);
    flex-shrink: 0;
    margin-top: -0.6rem;
}

.flow-numeral--accent {
    color: transparent;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    padding-bottom: 0.15em;
}

.flow-turn-body {
    flex: 1 1 0;
    min-width: 0;
}

.flow-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.flow-eyebrow--accent { color: var(--accent); }
.flow-eyebrow--after  { color: #047857; }

.flow-turn-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1.3;
    margin: 0 0 1rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.flow-muted { color: var(--text-muted); font-weight: 400; }

.flow-turn-desc {
    font-size: 1.55rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

.flow-turn-desc--center { max-width: 460px; margin-left: auto; margin-right: auto; }

.flow-turn--right .flow-turn-desc { margin-left: auto; }

/* Slide images float free — no panel, no border, just a soft drop shadow */
.flow-figure {
    margin: 0;
    width: 100%;
    max-width: 540px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 28px 50px -28px rgba(30, 27, 75, 0.28),
        0 4px 18px -8px rgba(109, 92, 255, 0.18);
}

.flow-turn--right .flow-figure { margin-left: auto; }

.flow-figure img {
    display: block;
    width: 100%;
    height: auto;
}

/* Step 3 only — gradient hairline that brackets the "AI answer" image */
.flow-figure--accent {
    position: relative;
    background: var(--gradient-main);
    padding: 1.4px;
    border-radius: 17px;
}

.flow-figure--accent img {
    border-radius: 15.6px;
}

/* Step 2 centered prompt line — pure typography moment, not a card */
.flow-prompt-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: var(--text);
    margin: 0.4rem 0 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1;
}

.flow-prompt-prefix { color: var(--accent); font-weight: 700; font-size: 2rem; }

.flow-prompt-query {
    color: var(--text-soft);
    background: linear-gradient(180deg, transparent 60%, rgba(109, 92, 255, 0.16) 60%);
    padding: 0 0.3em 0.05em;
}

.flow-prompt-caret {
    width: 2px;
    height: 22px;
    background: var(--accent);
    display: inline-block;
    animation: promptCaret 1.05s steps(1) infinite;
}

/* ----------------------------------------------------------------
   13. Features — command palette (single-column, hairline dividers)
---------------------------------------------------------------- */
.palette {
    padding: 8rem 0 9rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    position: relative;
}

.palette-header {
    max-width: 720px;
    margin: 0 auto 4.4rem;
    text-align: center;
}

.palette-title { margin-bottom: 1.6rem; }

.palette-intro {
    max-width: 540px;
    margin: 0 auto;
}

.palette-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 980px;
    counter-reset: palette;
    border-top: 1px solid var(--border);
}

.palette-row {
    position: relative;
    display: grid;
    grid-template-columns: 180px 56px 1fr auto;
    align-items: center;
    gap: 2.4rem;
    padding: 2.6rem 1.4rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.25s ease, padding-left 0.25s ease;
    overflow: hidden;
}

.palette-row::before {
    /* full-row gradient wash on hover, not a card lift */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(109, 92, 255, 0.08) 0%, rgba(34, 211, 238, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.palette-row > * { position: relative; z-index: 1; }

@media (hover: hover) {
    .palette-row:hover { padding-left: 2.2rem; }
    .palette-row:hover::before { opacity: 1; }
    .palette-row:hover .palette-arrow { transform: translateX(4px); color: var(--accent); }
}

.palette-prefix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    color: var(--text-muted);
    line-height: 1;
    white-space: nowrap;
}

.palette-prefix .prompt-chip { font-size: 1.2rem; }

.palette-arrow {
    color: var(--accent-2);
    font-size: 1.6rem;
    font-weight: 700;
    transition: transform 0.25s ease, color 0.25s ease;
}

.palette-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.palette-icon svg { display: block; width: 100%; height: 100%; }

.palette-body {
    min-width: 0;
}

.palette-title-row {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

.palette-desc {
    font-size: 1.45rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

.palette-desc .prompt-chip { vertical-align: 0.05em; }

.palette-count {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ----------------------------------------------------------------
   14. Terminal CTA — open band (no card) + giant @qai mark + marquee
---------------------------------------------------------------- */
.terminal-cta {
    padding: 7rem 0 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Giant translucent @qai background mark — outlined display type */
.terminal-cta-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(18rem, 28vw, 36rem);
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(109, 92, 255, 0.18);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}

.terminal-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 0 2.4rem 4rem;
}

.terminal-cta-title {
    font-size: 4.4rem;
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin: 0 0 1.4rem;
}

.terminal-cta-sub {
    max-width: 520px;
    margin: 0 auto 3rem;
    font-size: 1.7rem;
    color: var(--text-soft);
}

.terminal-cta-sub .prompt-chip { vertical-align: 0.05em; }

/* Open prompt line — single horizontal element on the page bg, no card */
.terminal-cta-prompt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 1.7rem;
    color: var(--text-soft);
    margin: 0 auto 2.6rem;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1;
}

.terminal-cta-prefix { color: var(--accent); font-weight: 700; font-size: 1.9rem; }

.terminal-cta-query {
    color: var(--text-muted);
    background: linear-gradient(180deg, transparent 60%, rgba(109, 92, 255, 0.14) 60%);
    padding: 0 0.3em 0.05em;
}

.terminal-cta-caret {
    width: 2px;
    height: 22px;
    background: var(--accent);
    display: inline-block;
    animation: promptCaret 1.05s steps(1) infinite;
}

.terminal-cta-action { margin-top: 0.6rem; }

/* Auto-scrolling marquee of example queries — adds motion, kills monotony */
.marquee {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    padding: 2.6rem 0 5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 4.8rem;
    white-space: nowrap;
    animation: marqueeScroll 48s linear infinite;
    will-change: transform;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1;
}

.marquee-chip {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #FFFFFF;
    background: var(--gradient-main);
    border: none;
    background-clip: padding-box;
    padding: 0.32em 0.7em;
    border-radius: 8px;
    font-size: 0.94em;
    letter-spacing: 0;
    box-shadow: 0 6px 14px -8px rgba(109, 92, 255, 0.55);
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .terminal-cta-caret,
    .flow-prompt-caret { animation: none; opacity: 1; }
}

/* ----------------------------------------------------------------
   15. Inner pages — shared
---------------------------------------------------------------- */
.inner-page {
    min-height: calc(80vh - 70px);
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
}

.main-bg {
    position: absolute;
    top: 20px;
    left: 32px;
    right: 32px;
    height: 760px;
    background: linear-gradient(160deg, #F1EEFF 0%, #ECF7FB 60%, #E5F8FF 100%);
    border-radius: 28px;
    z-index: -1;
}

.inner-figure {
    margin: 0 auto 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-figure svg { display: block; }

.contact-section { padding: 2.4rem 0 16rem; }

.contact-section__container.container {
    max-width: 960px;
    padding: 0 32px;
}

.contact-section__container .title { margin-bottom: 4.8rem; }

.contact-card {
    margin: 0 auto;
    padding: 3.2rem;
    height: 340px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-radius: 2rem;
}

.contact-card__text {
    margin-bottom: 1.6rem;
    font-size: 1.5rem;
    flex: 1 1 auto;
    color: var(--text-muted);
}

.contact-card__subtitle {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1.6rem;
    color: var(--text);
}

.uninstall-section { padding: 7rem 0 11rem; }
.uninstall-section .title { margin-bottom: 4rem; }
.uninstall-section .uninstall-image {
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    max-width: 100%;
    height: auto;
}

.removed-section { padding: 4rem 0 11rem; }
.removed-section .title { margin-bottom: 12px; }

.section-404 { padding: 4rem 0 11rem; }
.section-404 .text {
    max-width: 660px;
    margin: 0 auto 3rem;
    font-size: 1.6rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.thanks-page .title { margin-bottom: 12px; }
.thanks-page .text {
    max-width: 760px;
    margin: 0 auto 2.4rem;
}

.thanks-page .text .prompt-chip { vertical-align: 0.05em; }

/* ----------------------------------------------------------------
   16. Terms / Privacy — flat readable surface, no gradients
---------------------------------------------------------------- */
.terms-section {
    padding: 6rem 0;
    background: var(--bg);
}

.terms-section .title { margin-bottom: 4rem; }

.terms-privacy {
    background: var(--surface);
    /* No gradient — keep the long-form copy readable (Hard Rule #7) */
}

.terms-privacy h2,
.terms-privacy h3 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-top: 2.4rem;
    margin-bottom: 1.4rem;
    color: var(--text);
}

.terms-privacy h2 { font-size: 2.4rem; }
.terms-privacy h3 { font-size: 2rem; }

.terms-privacy p,
.terms-privacy table,
.terms-privacy ul,
.terms-privacy ol {
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.8;
    color: var(--text);
}

.terms-privacy ul,
.terms-privacy ol {
    padding-left: 2rem;
}

.terms-privacy li { margin-bottom: 0.8rem; }

.terms-privacy a {
    color: var(--accent);
    text-decoration: underline;
}

.terms-privacy a:hover { color: var(--accent-dark); }

.terms-privacy table { width: 100%; }
.terms-privacy th, .terms-privacy td {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 1.45rem;
}
.terms-privacy th { font-weight: 700; background: var(--bg-band); }

/* ----------------------------------------------------------------
   17. Footer
---------------------------------------------------------------- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer .container { max-width: 1200px; }

.footer-content { padding: 4.8rem 0; }

.footer-logo img { display: block; max-width: 220px; height: auto; }

.footer-link {
    color: var(--text-muted);
    display: block;
    line-height: 1.5;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
}

.footer__title {
    color: var(--text-muted);
    font-size: 1.3rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav-wrapper {
    display: flex;
    gap: 56px;
}

.footer-link:hover {
    text-decoration: underline;
    color: var(--text);
}

.footer-copyright {
    padding: 2.4rem 2rem 4rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-copyright p {
    font-family: var(--font-body);
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}
