:root {
    /* Colors - Deep Black Theme */
    --color-bg: #020202;
    --color-surface: #0A0A0A;
    --color-surface-glass: rgba(255, 255, 255, 0.03);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #9CA3AF;
    --color-accent: #2563EB;
    --color-accent-glow: rgba(37, 99, 235, 0.5);
    --gradient-accent: linear-gradient(135deg, #60A5FA, #2563EB, #7C3AED);

    /* Typography - Inter Scale 1.25 */
    --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-h1: clamp(2.5rem, 6vw, 5.5rem);
    --font-size-h2: clamp(1.8rem, 4vw, 3.5rem);
    --font-size-h3: clamp(1.25rem, 2vw, 2rem);
    --font-size-body: 1.125rem;
    --font-size-caption: 0.875rem;

    /* Spacing - 4px Grid */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 1rem;
    /* 16px */
    --space-4: 1.5rem;
    /* 24px */
    --space-6: 2.5rem;
    /* 40px */
    --space-8: 4rem;
    /* 64px */
    --space-12: 6rem;
    /* 96px */
    --space-16: 8rem;
    /* 128px */

    --container-width: 1440px;
    --header-height: 80px;

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --blur-glass: 20px;
    --shadow-1: 0 10px 40px -10px rgba(0, 0, 0, 0.5);

    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-h1);
    line-height: 1.05;
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-12) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--space-8);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin-top: var(--space-3);
}

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: var(--space-4);
}

.bento-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Span Utilities */
.span-2 {
    grid-column: span 2;
}

/* Mobile Responsive for Bento */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }
}

/* Bento Intenals */
.bento-content {
    position: relative;
    z-index: 2;
}

.bento-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.4;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-card:hover .bento-visual {
    opacity: 0.6;
}

/* Specific Visuals (Abstract Tech) */

/* Chat Visual */
.visual-chat {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 60%);
}

.mini-chat {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.bubble {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 60px;
}

.bubble:nth-child(2) {
    width: 40px;
}

.bubble.primary {
    width: 50px;
    background: var(--color-accent);
    opacity: 0.5;
}

/* Graph Visual */
.visual-graph {
    background: radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 50%);
}

.mini-graph-bars {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 20%;
}

.mini-graph-bars span {
    width: 15%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-graph-bars span:nth-child(1) {
    height: 30%;
}

.mini-graph-bars span:nth-child(2) {
    height: 50%;
}

.mini-graph-bars span:nth-child(3) {
    height: 80%;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.2), transparent);
    border-color: var(--color-accent);
}

.mini-graph-bars span:nth-child(4) {
    height: 60%;
}

/* Doc Visual */
.visual-doc {
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.02));
}

.mini-doc {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: rotate(10deg);
}

.mini-doc .line {
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
}

/* Chart Visual */
.visual-chart {
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05), transparent 70%);
}

.mini-chart-line {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.5;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass Panel Component */
.glass-panel {
    background: var(--color-surface-glass);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    font-size: 1rem;
    gap: var(--space-2);
}

.btn-primary {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25), 0 0 60px rgba(37, 99, 235, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* 
   ------------------------------
   SECTION SPECIFIC STYLES 
   ------------------------------
*/

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 2, 2, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    background: rgba(2, 2, 2, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: var(--space-6);
}

.nav-link {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-12);
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero h1 .accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    order: 1;
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
}

/* Hero Visual & Orb */
.hero-visual {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 600px;
}

/* Liquid Blob Animation */
.orb-container {
    width: 600px;
    height: 600px;
    margin-top: -8%;
    /* Lift up by 8% */
    right: 10%;
    /* Move left by 10% */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
    z-index: 0;
}

.orb-blob {
    width: 450px;
    height: 450px;
    /* Pure Red Pill (Primary) */
    background: radial-gradient(circle at 30% 30%,
            #ff0000 0%,
            rgb(150, 0, 0) 50%,
            rgba(2, 2, 2, 0) 75%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(30px);
    position: absolute;
    left: -10%;
    /* Move Red left */
    animation: blob-morph 5s ease-in-out infinite alternate, blob-rotate 10s linear infinite;
    box-shadow:
        inset -20px -20px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(255, 0, 0, 0.4);
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, border-radius;
}

.orb-blob.blue {
    width: 506px;
    height: 506px;
    /* Lighter Mint Green Pill (Secondary) */
    background: radial-gradient(circle at 70% 70%,
            #80ffcb 0%,
            rgb(40, 100, 80) 50%,
            rgba(2, 2, 2, 0) 75%);
    background: radial-gradient(circle at 70% 70%,
            #80ffcb 0%,
            rgb(40, 100, 80) 50%,
            rgba(2, 2, 2, 0) 75%);
    top: 25%;
    /* Moved up 5% */
    left: 50%;
    /* Moved left 10% */
    /* Switch to left positioning for better control */
    right: auto;
    z-index: -1;
    animation-duration: 7s, 15s;
    animation-delay: -2s;
    box-shadow:
        inset -20px -20px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(128, 255, 203, 0.4);
}

/* Inner highlight adjustment for blue */
.orb-blob.blue::after {
    top: 60%;
    left: 60%;
    transform: rotate(135deg);
}

/* Inner highlight */
.orb-blob::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    filter: blur(10px);
    transform: rotate(-45deg);
}

.orb-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    /* Ambient glow */
    z-index: -1;
    pointer-events: none;
}

@keyframes blob-morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    33% {
        border-radius: 60% 40% 30% 70% / 50% 30% 70% 40%;
    }

    66% {
        border-radius: 30% 70% 50% 50% / 60% 40% 30% 70%;
    }

    100% {
        border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
    }
}

@keyframes blob-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Floating Cards in Hero - Stay above Canvas */








/* Cards & Services */
.card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    display: block;
}

/* Demo Section */
.demo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.demo-content {
    width: 100%;
    max-width: 900px;
}

.demo-placeholder {
    width: 100%;
    margin-top: var(--space-8);
}

.chat-interface {
    background: #111111;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    height: 500px;
    /* Fixed height for scroll */
    max-width: 600px;
    margin: 0 auto;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-2);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    /* Online green */
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-right: var(--space-2);
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 3px;
}

.message {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 1rem;
    max-width: 85%;
    line-height: 1.5;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message.user {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message.ai {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #E0E7FF;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* Chat Input */
.chat-input-form {
    flex-shrink: 0;
    margin-top: var(--space-2);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-3) var(--space-12) var(--space-3) var(--space-4);
    color: var(--color-text-primary);
    font-family: var(--font-family-base);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.input-wrapper button {
    position: absolute;
    right: var(--space-1);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.input-wrapper button:hover {
    transform: translateY(-50%) scale(1.05);
    background: #1d4ed8;
}

.input-wrapper button iconify-icon {
    font-size: 1.25rem;
}

.typing-indicator {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #E0E7FF;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Case Studies */
.case-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.case-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
    filter: blur(40px);
}

.case-number {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.case-result {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.step {
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    position: relative;
    transition: var(--transition-base);
}

.step:hover {
    border-top-color: var(--color-accent);
}

.step-num {
    font-size: 1.5rem;
    /* 24px */
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    font-family: monospace;
}

.step h3 {
    margin-bottom: var(--space-2);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 800px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: var(--space-6);
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.faq-content {
    overflow: hidden;
    padding: 0 var(--space-6);
    opacity: 0;
    min-height: 0;
    /* Important for grid collapse */
    transition: opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-content {
    padding-bottom: var(--space-6);
    opacity: 1;
}

.faq-item.active .faq-question iconify-icon {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-12);
    padding-bottom: var(--space-6);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-6);
    margin-top: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-contacts {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 0 40px;
    /* Shift right (~1cm) */
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.contact-link iconify-icon {
    font-size: 1.2rem;
}

.contact-link.phone {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

.cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-12) var(--space-4);
    gap: var(--space-4);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.03), transparent);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.cta-box:hover {
    border-color: rgba(37, 99, 235, 0.2);
    transform: none;
}

.cta-box h2 {
    max-width: none;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cta-box h2 {
        white-space: normal;
    }
}

.cta-box p {
    max-width: 500px;
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.cta-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--space-2);
}

.cta-actions .btn-primary {
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(255, 255, 255, 0.08);
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.slide-up {
    transform: translateY(40px);
}

.reveal.slide-left {
    transform: translateX(40px);
}

.reveal.slide-right {
    transform: translateX(-40px);
}

.reveal.scale-in {
    transform: scale(0.95);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Legacy support */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .fade-in-section {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-12);
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        min-height: 400px;
    }

    .hero-actions {
        justify-content: center;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

    .orb-container {
        width: 400px;
        height: 400px;
    }

    .orb-blob {
        width: 350px;
        height: 350px;
    }

    .orb-blob.blue {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header-container {
        padding: 0 var(--space-3);
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid var(--color-border);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .mobile-hidden {
        display: none;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--space-8) 0;
    }

    .hero {
        min-height: auto;
        padding-bottom: var(--space-8);
    }

    .hero-visual {
        min-height: 300px;
        overflow: visible;
    }

    .orb-container {
        width: 260px;
        height: 260px;
    }

    .orb-blob {
        width: 220px;
        height: 220px;
        filter: blur(20px);
    }

    .orb-blob.blue {
        width: 240px;
        height: 240px;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-3);
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .chat-interface {
        height: 400px;
        padding: var(--space-4);
    }

    .message {
        max-width: 90%;
        font-size: 0.9rem;
    }

    .input-wrapper input {
        font-size: 0.9rem;
        padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
    }

    .footer-contacts {
        margin: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .case-metrics {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .carousel-nav {
        align-self: flex-end;
    }

    .cta-box {
        padding: var(--space-8) var(--space-3);
    }

    .bento-card {
        padding: var(--space-4);
    }

    .bento-card h3 {
        font-size: 1.25rem;
    }

    .tabs-nav {
        gap: var(--space-1);
    }

    .tab-btn {
        padding: var(--space-1) var(--space-3);
        font-size: 0.8rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .step-num {
        font-size: 1.25rem;
    }

    .result-value {
        font-size: 1.4rem;
    }
}

/* =========================================
   Calculator Section
   ========================================= */
#calculator {
    position: relative;
    z-index: 1;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

@media (min-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
        align-items: start;
    }
}

/* Inputs Column */
.calc-inputs {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.calc-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    outline: none;
    transition: var(--transition-base);
    font-family: var(--font-family-base);
}

.calc-input:focus {
    border-color: var(--color-accent);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.calc-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Helper text */
.helper-text {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Results Column */
.calc-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.result-card {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    border-radius: var(--radius-md);
    background: var(--color-surface-glass);
}

.result-card.highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: rgba(37, 99, 235, 0.3);
}

.result-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.calc-disclaimer {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    margin-top: var(--space-2);
}

/* Specific button style for calc */
.full-width {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: var(--space-2);
    display: inline-flex;
}

/* =========================================
   Cases Carousel
   ========================================= */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-6);
}

.carousel-nav {
    display: flex;
    gap: var(--space-2);
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.nav-btn:hover:not(:disabled) {
    background: var(--color-surface-glass);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Track & Viewport */
.carousel-viewport {
    overflow: hidden;
    /* Hide scrollbars but allow JS scroll */
    margin: 0 calc(var(--space-4) * -1);
    /* Negative margin on mobile to edge */
    padding: 0 var(--space-4);
    /* Inner padding */
}

.carousel-track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-4);
    /* Space for shadow/scroll */
    scrollbar-width: none;
    /* Firefox */
    cursor: grab;
    /* Enable grab cursor */
}

.carousel-track.active {
    cursor: grabbing;
    /* Change to grabbing when active */
    scroll-snap-type: none;
    /* Disable snap during drag for smoothness */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Carousel Item */
.carousel-item {
    flex: 0 0 85%;
    /* Mobile: 85% width */
    scroll-snap-align: center;
    min-height: 420px;
    background: var(--color-surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-base);
}

/* Tablet */
@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(50% - var(--space-4));
        /* 2 items */
        scroll-snap-align: start;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .carousel-viewport {
        margin: 0;
        padding: 0;
        overflow: visible;
        /* Allow overflow on large screens if desired, or keep hidden */
    }

    .carousel-track {
        overflow-x: hidden;
        /* Hide scrollbar, use buttons */
        padding-bottom: 0;
    }

    .carousel-item {
        flex: 0 0 calc(33.333% - var(--space-4) * 2 / 3);
        /* 3 items */
    }
}

/* Content Styles within Card */
.case-niche {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
    display: block;
}

.case-details {
    margin: var(--space-4) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.detail-row .label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.detail-row .val {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.case-metrics {
    display: flex;
    gap: var(--space-4);
    /* margin-bottom removed for correct spacing after button removal */
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric .val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.metric .label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}



.disclaimer-text {
    margin-top: var(--space-6);
    text-align: center;
    padding: 0 var(--space-4);
}

.disclaimer-text p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.5;
}



/* Remove old glass effect conflict if any, keep base */
.carousel-item::before {
    display: none;
    /* Remove orb blob effect from old card style if needed, or keep for style */
}

/* =========================================
   Integrations Section
   ========================================= */
#integrations {
    background-color: var(--color-bg);
    /* Keep it consistent with page flow */
    padding-top: var(--space-6);
    padding-bottom: var(--space-8);
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: 999px;
    /* Pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.tab-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Integrations Carousel */
.integrations-carousel .carousel-track {
    /* reuse scroll snap from cases, but maybe Adjust gap */
    gap: var(--space-4);
    padding: var(--space-2) 0;
}

.integration-card {
    flex: 0 0 140px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    transition: var(--transition-base);
    cursor: pointer;
    scroll-snap-align: start;
}

.integration-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.integration-card iconify-icon {
    font-size: 2.5rem;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-base);
}

.integration-card:hover iconify-icon {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.integration-card span {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Integrations Footer */
.integrations-footer {
    text-align: center;
    margin-top: var(--space-6);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .integration-card {
        flex: 0 0 120px;
        height: 90px;
    }

    .integration-card iconify-icon {
        font-size: 2rem;
    }

}

/* =========================================
   FAQ Section
   ========================================= */
#faq {
    background-color: var(--color-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.accordion-item.open {
    border-color: var(--color-accent);
    background: rgba(139, 92, 246, 0.05);
}

.accordion-header {
    width: 100%;
    padding: var(--space-6) var(--space-8);
    /* Generous padding: top/bottom=space-6, left/right=space-8 */
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    color: var(--color-text);
    font-size: 1.25rem;
    /* Larger, dominant */
    font-weight: 600;
    gap: var(--space-4);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.accordion-body {
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-body {
    height: auto;
}

.accordion-body p {
    padding: 0 var(--space-8) var(--space-8);
    /* Match header padding */
    padding-bottom: var(--space-8);
    color: rgba(255, 255, 255, 0.7);
    /* Lower contrast */
    line-height: 1.7;
    /* Good rhythm */
    font-size: 1rem;
    max-width: 65ch;
    /* Limit line width for readability */
    margin: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .accordion-header {
        padding: var(--space-5) var(--space-5);
        font-size: 1.1rem;
    }

    .accordion-body p {
        padding: 0 var(--space-5) var(--space-5);
        padding-bottom: var(--space-6);
    }
}

.faq-footer {
    text-align: center;
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.faq-footer p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Quick Start Chips */
.quick-start-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
    align-items: flex-start;
    animation: popIn 0.4s ease-out 0.2s backwards;
}

.quick-start-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-align: left;
    white-space: normal;
    max-width: 100%;
}

.quick-start-chip:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--color-accent);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.quick-start-chip:active {
    transform: scale(0.98);
    background: rgba(139, 92, 246, 0.2);
}

.quick-start-chip:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Footer Legal Block */
.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-4) 0;
    text-align: center;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-base);
    opacity: 0.8;
}

.legal-links a:hover {
    color: var(--color-text-primary);
    opacity: 1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.legal-links a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.legal-links .separator {
    color: var(--color-text-secondary);
    opacity: 0.4;
    font-size: 0.85rem;
}

.legal-micro {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    opacity: 0.5;
    max-width: 400px;
    line-height: 1.4;
    margin: 0;
}

/* Footer Logic Adjustments */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    /* Increase gap to accommodate new block */
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .footer-legal {
        order: 2;
        /* Place in middle or end */
        flex-grow: 1;
        margin: 0 var(--space-4);
    }

    .footer-contacts {
        order: 1;
    }

    .copyright {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: var(--space-4);
        opacity: 0.5;
    }

    /* Alternative: if we want a single line for desktop */
    .legal-links {
        gap: var(--space-3);
    }
}

@media (min-width: 1024px) {
    .footer-bottom {
        flex-wrap: nowrap;
    }

    .copyright {
        width: auto;
        margin-top: 0;
        text-align: right;
        font-size: 0.8rem;
    }
}

/* ===== Audit Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-4);
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-lg);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.is-open .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-full);
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.modal-form-state h3,
.modal-success-state h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: var(--space-2);
    text-align: center;
}

.modal-subtitle {
    color: var(--color-text-secondary);
    text-align: center;
    font-size: var(--font-size-caption);
    margin-bottom: var(--space-6);
    line-height: 1.5;
}

/* Form Fields */
.modal-field {
    margin-bottom: var(--space-4);
}

.modal-field label {
    display: block;
    font-size: var(--font-size-caption);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-1);
}

.modal-field label .optional {
    opacity: 0.5;
    font-weight: 400;
}

.modal-field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-field input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.modal-field input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.modal-field input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

#audit-form .btn-primary {
    margin-top: var(--space-2);
    font-size: 1rem;
    padding: 16px;
}

/* Divider */
.modal-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-6) 0;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.modal-divider span {
    color: var(--color-text-secondary);
    font-size: var(--font-size-caption);
    white-space: nowrap;
}

/* Messenger Links */
.modal-messengers {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--font-size-caption);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    flex: 1;
    justify-content: center;
}

.messenger-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.messenger-link iconify-icon {
    font-size: 20px;
}

/* Success State */
.modal-success-state {
    text-align: center;
    padding: var(--space-6) 0;
}

.modal-success-state h3 {
    margin-top: var(--space-4);
}

.modal-success-state p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

/* Body scroll lock */
body.modal-open {
    overflow: hidden;
}

/* Mobile: bottom sheet */
@media (max-width: 560px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-box {
        max-width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: var(--space-6) var(--space-4);
        transform: translateY(100%);
    }

    .modal-overlay.is-open .modal-box {
        transform: translateY(0);
    }
}