*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #0052FF;
    --primary-dark: #003ecb;
    --primary-light: #e8f0ff;
    --accent: #38bdf8;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p { color: var(--text-secondary); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 38px; width: 38px; object-fit: contain; }
.nav-brand span { font-family: var(--font-heading); font-weight: 700; font-size: 20px; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--primary); color: #fff !important; padding: 10px 24px;
    border-radius: 8px; font-weight: 600; transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 10px;
    font-family: var(--font-heading); font-weight: 600; font-size: 16px;
    cursor: pointer; border: none; position: relative; overflow: hidden;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1), background 0.2s;
}
.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 16px rgba(0,82,255,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,82,255,0.4);
}
.btn-primary::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 100%; }

.btn-outline {
    background: transparent; color: var(--text); border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-white {
    background: #fff; color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ===== HERO ===== */
.hero {
    padding: 100px 0 40px;
    position: relative;
}
.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,82,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease-out, top 0.3s ease-out;
    z-index: 0;
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    position: relative; z-index: 1;
}
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; margin-bottom: 20px; }
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 18px; line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero .btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 480px; }
#hero-mascot { width: 100%; height: 100%; position: relative; }

/* ===== FLOATING MASCOT + CHAT ===== */
.mascot-chat {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.mascot-chat-msg {
    background: var(--bg-dark); color: var(--accent); font-family: var(--font-mono);
    font-size: 13px; font-weight: 500; padding: 10px 16px;
    border-radius: 12px 12px 4px 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0; transform: translateY(8px) scale(0.95);
    transition: opacity 0.4s, transform 0.4s; white-space: nowrap;
}
.mascot-chat-msg.visible { opacity: 1; transform: translateY(0) scale(1); }
.mascot-chat-msg::before { content: '> '; color: var(--primary); }
#mascot-canvas-wrap {
    width: 100px; height: 100px;
    pointer-events: auto; flex-shrink: 0;
    transition: opacity 0.4s, transform 0.3s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    border-radius: 50%;
}
#mascot-canvas-wrap:hover {
    transform: scale(1.1);
}
#mascot-canvas-wrap:active {
    transform: scale(0.95);
}
#mascot-canvas-wrap canvas { width: 100% !important; height: 100% !important; }

/* Mascot chat-open state: mascot slides up into panel */
.mascot-chat.chat-open .mascot-chat-msg { opacity: 0 !important; pointer-events: none; }
.mascot-chat.chat-open #mascot-canvas-wrap {
    transform: translateY(-20px) scale(0);
    opacity: 0;
    pointer-events: none;
}

/* ===== GLITCH BURST (one-shot transition on canvas only, ~600ms) ===== */
@keyframes glitch-jitter {
    0%   { transform: translate(0) scaleX(1);            filter: none;                                    opacity: 1; }
    6%   { transform: translate(8px, -3px) scaleX(1.04);  filter: hue-rotate(90deg) saturate(3) brightness(1.2); opacity: 0.75; }
    12%  { transform: translate(-5px, 4px) skewX(-4deg);  filter: hue-rotate(-60deg) brightness(1.5);      opacity: 1; }
    18%  { transform: translate(4px, -2px) scaleX(0.96);  filter: invert(0.2) hue-rotate(180deg) saturate(2); opacity: 0.5; }
    24%  { transform: translate(-3px, 1px) skewX(3deg);   filter: hue-rotate(40deg) saturate(3);           opacity: 1; }
    30%  { transform: translate(0) scaleX(1);             filter: none;                                    opacity: 0.3; }
    36%  { transform: translate(6px, 3px) scaleX(1.05);   filter: hue-rotate(-120deg) brightness(1.4) saturate(2.5); opacity: 1; }
    42%  { transform: translate(-4px, -3px) skewX(-3deg);  filter: saturate(5) hue-rotate(150deg);          opacity: 0.65; }
    50%  { transform: translate(3px, 2px) scaleX(0.97);   filter: hue-rotate(60deg) brightness(1.3);       opacity: 1; }
    58%  { transform: translate(-6px, -1px) skewX(2deg);   filter: hue-rotate(-40deg) saturate(1.8);        opacity: 0.8; }
    66%  { transform: translate(2px, 1px);                filter: brightness(1.2);                          opacity: 1; }
    74%  { transform: translate(-1px, -1px);               filter: hue-rotate(20deg);                       opacity: 0.9; }
    82%  { transform: translate(1px, 0);                  filter: none;                                    opacity: 0.95; }
    100% { transform: translate(0) scaleX(1);             filter: none;                                    opacity: 1; }
}

@keyframes glitch-slice {
    0%   { clip-path: inset(0); }
    8%   { clip-path: inset(35% 0 50% 0); }
    16%  { clip-path: inset(0); }
    22%  { clip-path: inset(70% 0 15% 0); }
    30%  { clip-path: inset(10% 0 75% 0); }
    38%  { clip-path: inset(0); }
    44%  { clip-path: inset(55% 0 25% 0); }
    52%  { clip-path: inset(0); }
    60%  { clip-path: inset(20% 0 60% 0); }
    68%  { clip-path: inset(0); }
    76%  { clip-path: inset(80% 0 5% 0); }
    84%  { clip-path: inset(0); }
    100% { clip-path: inset(0); }
}

.glitch-burst canvas {
    animation: glitch-jitter 0.4s cubic-bezier(.25,.1,.25,1) forwards,
               glitch-slice 0.4s steps(1) forwards;
}

/* ===== CHAT PANEL ===== */
.chat-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 440px;
    max-height: 720px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,82,255,0.05);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s cubic-bezier(.4,0,.2,1);
}
.chat-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chat-panel-avatar {
    width: 52px; height: 52px;
    flex-shrink: 0;
    margin: -6px 0;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.15));
}
.chat-panel-avatar canvas {
    width: 100% !important; height: 100% !important;
}
.chat-panel-title { flex: 1; }
.chat-panel-title h4 {
    font-size: 15px; font-weight: 600; color: #fff; margin: 0; line-height: 1.3;
}
.chat-panel-status {
    font-size: 12px; color: #10b981; font-weight: 500;
    display: flex; align-items: center; gap: 5px;
}
.chat-panel-status::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: status-pulse 2s ease infinite;
}
@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-panel-call {
    background: none; border: none; color: rgba(255,255,255,0.5);
    cursor: pointer; padding: 4px; border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.chat-panel-call:hover {
    color: #10b981; background: rgba(16,185,129,0.1);
}
.chat-panel-close {
    background: none; border: none; color: rgba(255,255,255,0.5);
    cursor: pointer; padding: 4px; border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.chat-panel-close:hover {
    color: #fff; background: rgba(255,255,255,0.1);
}

.chat-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 440px;
    max-height: 340px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.chat-panel-body::-webkit-scrollbar { width: 5px; }
.chat-panel-body::-webkit-scrollbar-track { background: transparent; }
.chat-panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.chat-panel-body::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.chat-bubble {
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    animation: bubble-in 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes bubble-in {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble-bot {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.chat-bubble-user {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    white-space: pre-wrap;
    word-break: break-word;
}
.chat-bubble-bot { word-break: break-word; }

/* ── Markdown inside bot bubbles ── */
.chat-bubble-bot p { margin: 0 0 8px; }
.chat-bubble-bot p:last-child { margin-bottom: 0; }
.chat-bubble-bot strong, .chat-bubble-bot b { font-weight: 600; color: var(--text); }
.chat-bubble-bot em, .chat-bubble-bot i { font-style: italic; }
.chat-bubble-bot a {
    color: var(--primary); text-decoration: underline;
    text-decoration-color: rgba(0,82,255,0.3);
    transition: text-decoration-color 0.2s;
}
.chat-bubble-bot a:hover { text-decoration-color: var(--primary); }
.chat-bubble-bot code {
    font-family: var(--font-mono); font-size: 12px;
    background: rgba(0,0,0,0.06); border-radius: 4px;
    padding: 1px 5px;
}
.chat-bubble-bot pre {
    background: var(--bg-dark); color: #e2e8f0;
    border-radius: 8px; padding: 12px 14px;
    margin: 8px 0; overflow-x: auto;
    font-family: var(--font-mono); font-size: 12px;
    line-height: 1.5;
}
.chat-bubble-bot pre code {
    background: none; padding: 0; color: inherit; font-size: inherit;
}
.chat-bubble-bot ul, .chat-bubble-bot ol {
    margin: 6px 0 8px; padding-left: 20px;
}
.chat-bubble-bot li { margin-bottom: 3px; }
.chat-bubble-bot li::marker { color: var(--primary); }
.chat-bubble-bot h3, .chat-bubble-bot h4, .chat-bubble-bot h5, .chat-bubble-bot h6 {
    font-size: 14px; font-weight: 700; color: var(--text);
    margin: 10px 0 4px;
}
.chat-bubble-bot h3:first-child, .chat-bubble-bot h4:first-child { margin-top: 0; }
.chat-bubble-bot blockquote {
    border-left: 3px solid var(--primary); margin: 8px 0;
    padding: 4px 0 4px 12px; color: var(--text-secondary);
    font-style: italic;
}
.chat-bubble-bot hr {
    border: none; height: 1px; background: var(--border); margin: 10px 0;
}
/* Prevent markdown from blowing up bubble width */
.chat-bubble-bot img { display: none; }
.chat-bubble-bot table { display: none; }
/* h1/h2 → downgrade to h4 size (prevent giant text) */
.chat-bubble-bot h1, .chat-bubble-bot h2 {
    font-size: 14px; font-weight: 700; color: var(--text);
    margin: 10px 0 4px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
}
.chat-typing span {
    width: 7px; height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chat-panel-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.chat-panel-footer input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: var(--bg-alt);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-panel-footer input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,82,255,0.08);
}
.chat-panel-footer button {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.chat-panel-footer button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}
.chat-panel-footer button:active {
    transform: scale(0.95);
}

/* ===== CALL MODAL ===== */
.call-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.call-modal-overlay.open {
    opacity: 1; pointer-events: auto;
}
.call-modal {
    background: var(--bg); border-radius: var(--radius-lg);
    padding: 32px; max-width: 380px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s ease;
}
.call-modal-overlay.open .call-modal {
    transform: translateY(0) scale(1);
}
.call-modal-mascot {
    width: 80px; height: 80px; margin: 0 auto 16px;
    filter: drop-shadow(0 0 12px rgba(0,82,255,0.2));
}
.call-modal-mascot canvas {
    width: 100% !important; height: 100% !important;
}
.call-modal h3 {
    font-size: 20px; color: var(--text); margin-bottom: 8px;
}
.call-modal p {
    font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 20px;
}
.call-modal form {
    display: flex; flex-direction: column; gap: 12px;
}
.call-modal input, .call-modal textarea {
    padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
    font-family: var(--font-body); font-size: 16px; color: var(--text);
    background: var(--bg-alt); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.call-modal textarea {
    resize: vertical; min-height: 60px;
}
.call-modal input:focus, .call-modal textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,82,255,0.08);
}
.call-modal-actions {
    display: flex; gap: 10px; margin-top: 4px;
}
.call-modal-cancel {
    flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
    background: none; color: var(--text-secondary); font-family: var(--font-body);
    font-size: 15px; font-weight: 500; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.call-modal-cancel:hover {
    background: var(--bg-alt); color: var(--text);
}
.call-modal-submit {
    flex: 1; padding: 12px; border: none; border-radius: 10px;
    background: var(--primary); color: #fff; font-family: var(--font-body);
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.call-modal-submit:hover {
    background: var(--primary-dark); transform: scale(1.02);
}
.call-modal-submit:active {
    transform: scale(0.98);
}

/* ===== INFINITE LOGO MARQUEE ===== */
.trusted {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
}
.trusted-label {
    text-align: center; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 28px;
}
.marquee {
    display: flex; width: max-content;
    animation: marquee-scroll 40s linear infinite; /* JS recalculates on resize */
}
.marquee:hover { animation-play-state: paused; }
.marquee-group {
    display: flex; align-items: center; gap: 120px;
    padding-right: 120px;
    flex-shrink: 0;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.client-logo {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 700; font-size: 20px;
    color: var(--text); opacity: 0.35; transition: opacity 0.3s;
    white-space: nowrap; height: 64px; flex-shrink: 0;
}
.client-logo:hover { opacity: 0.85; }
.client-logo img {
    height: 56px; width: auto; max-width: 220px; object-fit: contain;
    filter: grayscale(100%); opacity: 0.55; mix-blend-mode: multiply;
    transition: filter 0.3s, opacity 0.3s;
}
.client-logo img.logo-dark {
    mix-blend-mode: normal;
    filter: grayscale(100%) brightness(0.6);
}
.client-logo:hover img.logo-dark {
    filter: grayscale(0%) brightness(1);
}
.client-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ===== ANIMATED GRADIENT DIVIDER ===== */
.gradient-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    background-size: 200% 100%;
    animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== STATS BANNER ===== */
.stats {
    background: radial-gradient(ellipse at center, var(--bg-dark) 0%, var(--bg-darker) 100%);
    padding: 72px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat h3 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; color: #fff; margin-bottom: 8px; }
.stat h3 .accent { color: var(--accent); }
.stat p { font-size: 15px; color: var(--text-muted); }

/* ===== SECTION UTILITIES ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-label { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--primary); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; max-width: 600px; margin-bottom: 16px; }
.section-subtitle { font-size: 17px; max-width: 560px; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-title, .section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== CARDS (shared tilt-ready base) ===== */
.tilt-card {
    transform-style: preserve-3d; perspective: 800px;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s cubic-bezier(.4,0,.2,1);
}
.tilt-card:hover { box-shadow: var(--shadow-lg); }

/* ===== SERVICES (bento grid) ===== */
.bento {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.bento-featured {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 48px 40px;
    position: relative; overflow: hidden;
    transition: box-shadow 0.3s;
}
.bento-featured:hover { box-shadow: var(--shadow-lg); }
.bento-num {
    font-family: var(--font-heading); font-size: 64px; font-weight: 700;
    color: var(--primary); opacity: 0.08; line-height: 1;
    position: absolute; top: 20px; right: 28px;
}
.bento-featured h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.bento-featured p { font-size: 16px; line-height: 1.7; max-width: 400px; }
.bento-item {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 28px;
    border-left: 3px solid var(--primary);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.bento-item:hover { border-left-color: var(--accent); box-shadow: var(--shadow-md); }
.bento-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.bento-item p { font-size: 14px; line-height: 1.6; }
/* Bottom 4 items in a 4-col sub-grid */
.bento-item:nth-child(3) { grid-column: 1; }
.bento-item:nth-child(4) { grid-column: 2; }
/* Switch to 4-col for the small items row */
@supports (grid-template-columns: subgrid) {
    .bento { grid-template-columns: repeat(4, 1fr); }
    .bento-featured { grid-column: span 2; }
}

/* ===== HOW IT WORKS (timeline) ===== */
.how-section { padding: 100px 0; background: var(--bg); }
.timeline { display: flex; align-items: flex-start; gap: 0; max-width: 960px; margin: 0 auto; }
.timeline-step { flex: 1; text-align: center; position: relative; }
.timeline-badge {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 24px;
    background: var(--primary); color: #fff;
    font-family: var(--font-heading); font-weight: 700; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,82,255,0.3);
    position: relative; z-index: 2;
}
.timeline-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.timeline-content p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); max-width: 280px; margin: 0 auto; }
.timeline-connector {
    width: 80px; min-width: 40px; height: 2px; flex-shrink: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: 28px;
    position: relative; z-index: 1;
}

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.price-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 32px; position: relative;
}
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-family: var(--font-heading); font-size: 12px; font-weight: 600; padding: 4px 16px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; }
.price-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.price-amount { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.price-amount span { font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.price-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-features { list-style: none; margin-bottom: 32px; }
.price-features li { font-size: 14px; color: var(--text-secondary); padding: 6px 0; display: flex; align-items: center; gap: 10px; }
.price-features li::before {
    content: ''; width: 18px; height: 18px; min-width: 18px; border-radius: 50%;
    background: var(--primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230052FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center/10px;
}
.price-card .btn { width: 100%; }

/* ===== ABOUT US ===== */
.about-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start;
}
.about-values { display: flex; flex-direction: column; gap: 80px; }
.about-value {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}
.about-value-icon {
    width: 48px; height: 48px; min-width: 48px; background: var(--primary-light); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.about-value-icon svg { width: 22px; height: 22px; }
.about-value h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.about-value p { font-size: 15px; line-height: 1.7; }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.team-card {
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; text-align: center;
}
.team-avatar {
    width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px;
    object-fit: cover; border: 3px solid var(--border);
}
.team-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 14px; color: var(--primary); font-weight: 600; }

/* ===== CASE STUDY ===== */
.case-study-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.case-study-content .section-label { text-align: left; }
.case-study-content .section-title { margin-bottom: 20px; }
.case-study-content p { font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.case-metric { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
.case-metric h4 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.case-metric p { font-size: 13px; color: var(--text-muted); }
.case-study-visual {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    border-radius: var(--radius-lg); padding: 48px;
    display: flex; align-items: center; justify-content: center; min-height: 380px;
}
.case-study-visual .mockup-text { text-align: center; color: #fff; }
.case-study-visual .mockup-text h3 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.case-study-visual .mockup-text p { color: var(--text-muted); font-size: 15px; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; margin-bottom: 16px; }
.contact-info > p { font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail { display: flex; align-items: center; gap: 16px; }
.contact-detail-icon { width: 44px; height: 44px; min-width: 44px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.contact-detail-icon svg { width: 20px; height: 20px; }
.contact-detail div p:first-child { font-weight: 600; color: var(--text); font-size: 15px; }
.contact-detail div p:last-child { font-size: 14px; }
.contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
    font-family: var(--font-body); font-size: 15px; color: var(--text); background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,82,255,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn { width: 100%; margin-top: 8px; }

/* ===== CTA ===== */
.cta { background: radial-gradient(ellipse at center, var(--bg-dark) 0%, var(--bg-darker) 100%); padding: 100px 0; text-align: center; }
.cta h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: #fff; margin-bottom: 16px; }
.cta p { color: var(--text-muted); font-size: 18px; max-width: 520px; margin: 0 auto 36px; }
.cta .btn-group { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }
.cta .cta-note { margin: 40px auto 0; font-size: 14px; color: var(--text-muted); letter-spacing: 0.3px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); display: inline-block; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-darker); padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-bottom-links a:hover { color: #fff; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.bento .fade-up:nth-child(2) { transition-delay: 0.1s; }
.bento .fade-up:nth-child(3) { transition-delay: 0.05s; }
.bento .fade-up:nth-child(4) { transition-delay: 0.1s; }
.bento .fade-up:nth-child(5) { transition-delay: 0.15s; }
.bento .fade-up:nth-child(6) { transition-delay: 0.2s; }
.pricing-grid .fade-up:nth-child(2) { transition-delay: 0.12s; }
.pricing-grid .fade-up:nth-child(3) { transition-delay: 0.24s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero .btn-group { justify-content: center; }
    .hero-visual { height: 320px; order: -1; }
    .hero-glow { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-featured { grid-column: auto; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .timeline { flex-direction: column; align-items: center; }
    .timeline-connector { width: 2px; height: 40px; min-width: 2px; margin-top: 0; }
    .case-study-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .about-values { gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--border); padding: 24px; gap: 20px; box-shadow: var(--shadow-md);
    }
    .hero { padding: 88px 0 32px; }
    .hero h1 { font-size: 32px; }
    .hero-visual { height: 240px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat h3 { font-size: 28px; }
    #mascot-canvas-wrap { width: 72px; height: 72px; }
    .mascot-chat { bottom: 16px; right: 16px; }
    .mascot-chat-msg { font-size: 12px; }
    .chat-panel {
        bottom: 0; right: 0; left: 0; top: auto;
        width: 100%; max-height: calc(100dvh - 24px); height: calc(100dvh - 24px);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .chat-panel.open {
        transform: translateY(0) scale(1);
    }
    .chat-panel-body { min-height: 0; max-height: none; flex: 1; }
    .section { padding: 64px 0; }
    .how-section { padding: 64px 0; }
    .bento { grid-template-columns: 1fr 1fr !important; gap: 14px; }
    .bento-featured { grid-column: 1 / -1 !important; padding: 28px 24px; }
    .bento-featured h3 { font-size: 18px; margin-bottom: 8px; }
    .bento-featured p { font-size: 13px; line-height: 1.6; }
    .bento-num { font-size: 44px; top: 14px; right: 18px; }
    .bento-item { grid-column: auto !important; padding: 20px; }
    .bento-item h3 { font-size: 15px; }
    .bento-item p { font-size: 13px; }
    .contact { padding: 64px 0; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .marquee-group { gap: 48px; padding-right: 48px; }
    .client-logo img { height: 40px; max-width: 160px; }
    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .team-card { padding: 20px 12px; }
    .team-avatar { width: 72px; height: 72px; margin-bottom: 12px; }
    .team-card h3 { font-size: 15px; }
    .team-role { font-size: 12px; }
    .about-values { gap: 16px; }
    .about-value { gap: 16px; }
    .about-value-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; }
    .about-value-icon svg { width: 18px; height: 18px; }
    .about-value h3 { font-size: 16px; }
    .about-value p { font-size: 14px; }
}

@media (max-width: 480px) {
    .hero .btn-group { flex-direction: column; }
    .hero .btn-group .btn { width: 100%; }
    .case-metrics { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr !important; gap: 12px; }
    .bento-featured { padding: 24px 20px; }
    .bento-featured h3 { font-size: 17px; }
    .bento-num { font-size: 36px; top: 12px; right: 14px; }
    .bento-item { padding: 16px; }
    .section-header { margin-bottom: 40px; }
    .section-subtitle { font-size: 15px; }
}
