:root {
    color-scheme: dark;
    --surface: #0d0f12;
    --surface-2: #13161b;
    --surface-3: #1a1e25;
    --ink: #f8fafc;
    --ink-soft: #eef2f7;
    --muted: #a5adbb;
    --muted-2: #7f8896;
    --cyan: #00e0ff;
    --purple: #5f287f;
    --cta-bg: #f8fafc;
    --cta-fg: #0d0f12;
    --ghost: rgba(255, 255, 255, 0.08);
    --ghost-strong: rgba(255, 255, 255, 0.14);
    --nav: rgba(13, 15, 18, 0.74);
    --footer: rgba(13, 15, 18, 0.86);
    --orb-a: rgba(95, 40, 127, 0.22);
    --orb-b: rgba(0, 224, 255, 0.16);
    --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.26);
    --shadow-ambient: 0 30px 80px rgba(0, 0, 0, 0.34);
    --radius-s: 10px;
    --radius-m: 18px;
    --radius-l: 28px;
    --radius-pill: 999px;
    --container: 1240px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --surface: #fbf8ff;
    --surface-2: #f2eef6;
    --surface-3: #ffffff;
    --ink: #000000;
    --ink-soft: #1a1b22;
    --muted: #71717a;
    --muted-2: #8b8f99;
    --cta-bg: #000000;
    --cta-fg: #ffffff;
    --ghost: rgba(0, 0, 0, 0.08);
    --ghost-strong: rgba(0, 0, 0, 0.12);
    --nav: rgba(251, 248, 255, 0.72);
    --footer: rgba(251, 248, 255, 0.84);
    --orb-a: rgba(95, 40, 127, 0.14);
    --orb-b: rgba(0, 224, 255, 0.16);
    --shadow-soft: 0 14px 40px rgba(26, 27, 34, 0.07);
    --shadow-ambient: 0 24px 60px rgba(26, 27, 34, 0.09);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.site-body {
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink-soft);
    background:
        radial-gradient(circle at top left, rgba(95, 40, 127, 0.08), transparent 34%),
        radial-gradient(circle at bottom right, rgba(0, 224, 255, 0.08), transparent 36%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin-top: 0; }

.site-container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.page-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.page-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.9;
}

.page-orb-left {
    width: 420px;
    height: 420px;
    left: -160px;
    top: 12%;
    background: var(--orb-a);
}

.page-orb-right {
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: 0;
    background: var(--orb-b);
}

.site-header,
.site-footer,
.site-main {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    padding: 18px 0;
    backdrop-filter: blur(22px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-radius: 26px;
    background: var(--nav);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--ghost);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.03em;
}

.brand-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.brand-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}

.nav-links,
.nav-right,
.footer-grid,
.footer-bottom,
.card-grid,
.portfolio-grid,
.form-grid,
.offer-rows,
.offer-row,
.offer-badges,
.offer-cta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.nav-links {
    align-items: center;
    justify-content: center;
}
        max-width: 14ch;
        min-height: 2.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        text-wrap: balance;
.nav-links a {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-pill {
    padding: 10px 14px;
    background: rgba(95, 40, 127, 0.08);
    color: var(--ink-soft);
    box-shadow: inset 0 0 0 1px rgba(95, 40, 127, 0.12);
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--purple);
    box-shadow: 0 0 0 6px rgba(95, 40, 127, 0.12);
}

.theme-toggle,
.mobile-toggle,
.admin-link,
.cta-pill,
.btn,
.chat-toggle,
.chat-send {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.theme-toggle,
.mobile-toggle,
.admin-link {
    border-radius: var(--radius-pill);
    padding: 10px 14px;
    background: var(--surface-3);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ghost);
}

.theme-toggle:hover,
.mobile-toggle:hover,
.admin-link:hover,
.btn:hover,
.cta-pill:hover,
.chat-toggle:hover,
.chat-send:hover {
    transform: translateY(-1px);
}

.cta-pill,
.btn-primary,
.chat-toggle,
.chat-send {
    background: var(--cta-bg);
    color: var(--cta-fg);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.cta-pill,
.btn,
.admin-link {
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
}

.btn {
    background: var(--surface-3);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ghost);
}

.btn-secondary {
    background: rgba(0, 224, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(0, 224, 255, 0.16);
}

.mobile-toggle { display: none; width: 44px; height: 44px; padding: 0; }

.site-main { min-height: calc(100vh - 220px); }

.section,
.section-xl { padding: 108px 0; }

.hero { padding-top: 0; }

.hero-layout {
    position: relative;
    min-height: 100vh;
    display: block;
    padding: 0;
}

.hero-stage {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
    border-radius: 0;
}

.hero-stage-static {
    display: block;
    background:
        radial-gradient(circle at 50% 44%, rgba(95, 40, 127, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(13,15,18,0.96) 0%, rgba(19,22,27,0.9) 100%);
}

.hero-copy {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: min(100%, 1120px);
    padding: 0 24px;
    text-align: center;
}

.hero-visual { display: none; }

.hero-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 6.4vw, 88px);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 900;
    max-width: 14ch;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: balance;
}

.hero-cursor {
    width: 2px;
    height: 1.1em;
    background: var(--cyan);
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    animation: hero-cursor-blink 0.9s steps(1) infinite;
}

@keyframes hero-cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.badge {
    padding: 9px 14px;
    background: rgba(95, 40, 127, 0.08);
    color: var(--purple);
    box-shadow: inset 0 0 0 1px rgba(95, 40, 127, 0.14);
}

.surface,
.card,
.offer-panel,
.offer-card,
.form-shell,
.chat-window,
.legal-shell,
.status-shell,
.showcase,
.quick-shell {
    background: var(--surface-3);
    color: var(--ink-soft);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-soft);
    box-shadow: var(--shadow-soft);
}

.surface,
.card,
.offer-panel,
.offer-card,
.form-shell,
.chat-window,
.legal-shell,
.status-shell,
.showcase,
.quick-shell {
    box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--ghost);
}

.surface {
    background: color-mix(in srgb, var(--surface-3) 78%, transparent);
    backdrop-filter: blur(20px);
}

.card-grid,
.portfolio-grid {
    align-items: stretch;
}

.card-grid > *,
.portfolio-grid > * {
    flex: 1 1 280px;
}

.card,
.offer-card,
.legal-shell,
.status-shell,
.form-shell,
.showcase,
.quick-shell {
    padding: 28px;
}

.card h3,
.offer-card h3,
.showcase-copy h2,
.status-title,
.legal-title {
    margin: 0 0 10px;
    color: var(--ink);
    letter-spacing: -0.045em;
}

.card h3 { font-size: 24px; }
.card p { margin: 0; color: var(--muted); }

.showcase {
    display: flex;
    align-items: stretch;
    gap: 28px;
}

.showcase > * { flex: 1 1 320px; }

.showcase-media {
    min-height: 360px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(95,40,127,0.08), rgba(0,224,255,0.08));
}

.showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.showcase-copy h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; }
.showcase-copy p { color: var(--muted); font-size: 18px; max-width: 62ch; }

.list-clean { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.list-clean li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    color: var(--muted);
    box-shadow: inset 0 -1px 0 var(--ghost);
}
.list-clean strong { color: var(--ink); }

.form-shell { max-width: 900px; margin: 0 auto; }
.form-grid { align-items: stretch; }
.form-grid > * { flex: 1 1 260px; }

.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input,
.field select,
.field textarea,
.chat-input {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 13px 14px;
    background: var(--surface-2);
    color: var(--ink-soft);
    box-shadow: inset 0 0 0 1px var(--ghost);
    font: inherit;
}

.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(0, 224, 255, 0.45), 0 0 0 4px rgba(0, 224, 255, 0.12);
}

.form-message {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px var(--ghost);
}
.form-message.success { background: rgba(0, 224, 255, 0.08); color: var(--ink); }
.form-message.error { background: rgba(95, 40, 127, 0.09); color: var(--ink); }

.portfolio-card { overflow: hidden; }
.portfolio-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(95,40,127,0.08), rgba(0,224,255,0.08));
}

.portfolio-card h3 { margin: 14px 0 8px; font-size: 21px; }
.portfolio-card p { margin: 0; color: var(--muted); font-size: 15px; }

.site-footer {
    margin-top: 84px;
    padding: 54px 0 26px;
    background: var(--footer);
    backdrop-filter: blur(18px);
}

.footer-grid { align-items: flex-start; }
.footer-grid > * { flex: 1 1 180px; }
.footer-grid h3 {
    margin: 0 0 10px;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.footer-grid a:hover {
    color: var(--ink);
    transform: translateY(-1px);
}

.footer-social-link {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-3) 80%, transparent);
    box-shadow: inset 0 0 0 1px var(--ghost);
    margin: 6px 0;
}

.footer-social-link:hover {
    background: color-mix(in srgb, var(--surface-3) 94%, transparent);
    box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--ghost-strong);
}

.footer-social-link i {
    width: 15px;
    height: 15px;
    color: var(--purple);
}

.footer-stack-icons {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-stack-icons img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--ghost);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.footer-stack-icons img:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--ghost-strong);
}

.footer-brand { margin-bottom: 12px; }
.footer-copy { margin: 0; max-width: 42ch; color: var(--muted); }

.footer-bottom {
    margin-top: 22px;
    padding-top: 18px;
    justify-content: space-between;
    color: var(--muted-2);
    box-shadow: inset 0 1px 0 var(--ghost);
}

.offer-scene { perspective: 1400px; }
.offer-stage { position: relative; transform-style: preserve-3d; }

.offer-hero-shell {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 34px;
}

.offer-hero-shell .orb,
.quick-shell .orb,
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.offer-hero-shell .orb.left { width: 280px; height: 280px; left: -70px; top: -50px; background: rgba(95, 40, 127, 0.14); }
.offer-hero-shell .orb.right { width: 340px; height: 340px; right: -120px; bottom: -130px; background: rgba(0, 224, 255, 0.14); }

.offer-gridline {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(17, 17, 20, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(17, 17, 20, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.28;
    pointer-events: none;
}

.offer-rows,
.offer-row { flex-direction: column; }

.offer-row { flex-direction: row; align-items: stretch; }
.offer-row > * { flex: 1 1 280px; }

.offer-card {
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
    padding: 26px;
    will-change: transform;
}

.offer-card h3 { font-size: 28px; margin-bottom: 10px; }
.offer-card p { color: var(--muted); }

.offer-badges { margin-top: 18px; }
.offer-badge {
    padding: 8px 12px;
    background: rgba(0, 224, 255, 0.08);
    color: var(--ink-soft);
    box-shadow: inset 0 0 0 1px rgba(0, 224, 255, 0.12);
}

.offer-panel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
}

.offer-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.48), rgba(255,255,255,0.06));
    pointer-events: none;
}

.offer-cta-bar { margin-top: 18px; }

.theme-swap-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

.chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
}

.chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 20px;
}

.chat-window {
    width: min(92vw, 380px);
    margin-bottom: 12px;
    overflow: hidden;
    transform-origin: bottom right;
}

.chat-window.hidden { display: none; }
.chat-window-open { animation: chat-rise 220ms ease-out; }

.chat-header,
.chat-footer {
    padding: 16px;
    background: color-mix(in srgb, var(--surface-3) 84%, transparent);
}

.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-kicker { color: var(--purple); }
.chat-title { margin: 4px 0 0; font-size: 16px; color: var(--ink); letter-spacing: -0.03em; }
.chat-close {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--ink-soft);
    box-shadow: inset 0 0 0 1px var(--ghost);
}

.chat-messages {
    display: grid;
    gap: 12px;
    min-height: 280px;
    max-height: 360px;
    overflow: auto;
    padding: 0 16px 16px;
}

.chat-empty {
    margin: auto;
    color: var(--muted-2);
    font-size: 13px;
    text-align: center;
}

.chat-bubble {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px var(--ghost);
}

.chat-bubble-support {
    justify-self: start;
    background: var(--surface-2);
    color: var(--ink-soft);
    border-top-left-radius: 6px;
}

.chat-bubble-client {
    justify-self: end;
    background: var(--ink);
    color: #fff;
    border-top-right-radius: 6px;
}

.chat-bubble-label {
    margin-bottom: 6px;
    color: var(--purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chat-footer { box-shadow: inset 0 1px 0 var(--ghost); }
.chat-form { display: flex; gap: 10px; }
.chat-send { width: 46px; height: 46px; border-radius: 16px; }

.legal-shell,
.status-shell { padding: 30px; }

.status-shell input[type="text"] {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 13px 14px;
    background: var(--surface-2);
    color: var(--ink-soft);
    box-shadow: inset 0 0 0 1px var(--ghost);
    font: inherit;
}

.status-shell input[type="text"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(0, 224, 255, 0.45), 0 0 0 4px rgba(0, 224, 255, 0.12);
}

.legal-item,
.status-item {
    padding: 20px 0;
    box-shadow: inset 0 -1px 0 var(--ghost);
}

.legal-item:last-child,
.status-item:last-child { box-shadow: none; padding-bottom: 0; }

html.js.gsap-pending [data-animate] { opacity: 0; transform: translateY(24px); }
html.js [data-3d] { transform-style: preserve-3d; }

@keyframes chat-rise {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    html.js [data-animate] { opacity: 1 !important; transform: none !important; }
    .chat-window-open { animation: none; }
    * { scroll-behavior: auto !important; }
}

@media (max-width: 980px) {
    .mobile-toggle { display: inline-flex; }

    .site-nav {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-links {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 12px);
        padding: 12px;
        border-radius: 22px;
        background: var(--surface-3);
        box-shadow: var(--shadow-ambient), inset 0 0 0 1px var(--ghost);
        flex-direction: column;
        align-items: stretch;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
    }

    .nav-links.mobile-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .status-pill { display: none; }
    .showcase { flex-direction: column; }
    .offer-row { flex-direction: column; }
}

@media (max-width: 680px) {
    .site-container { width: calc(100% - 24px); }
    .section,
    .section-xl { padding: 80px 0; }
    .hero { padding-top: 70px; }
    .hero-copy {
        width: min(100%, calc(100% - 24px));
        padding: 0;
        text-align: center;
        top: 50%;
    }
    .hero-title { font-size: clamp(30px, 11vw, 54px); }
