/* ===== CSS Variables ===== */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-secondary: #0ea5e9;
    --color-accent: #8b5cf6;

    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-light: #94a3b8;

    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-bg-darker: #020617;

    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    --color-success: #10b981;
    --color-success-bg: #ecfdf5;
    --color-error: #ef4444;
    --color-error-bg: #fef2f2;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #0ea5e9 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Cursor Glow ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: var(--gradient-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 0.5;
}

/* ===== Utilities ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.gradient-text-light {
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Section Tags ===== */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-nav {
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    font-size: 14px;
}

.btn-nav:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon-wrapper {
    position: relative;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    transition: transform var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: rotate(10deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn) {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-links a:not(.btn):hover {
    color: var(--color-text);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.2);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.2);
    top: 60%;
    right: -5%;
    animation-delay: -7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(14, 165, 233, 0.2);
    bottom: 20%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: floatIcon 6s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.floating-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

/* Hide floating icons on left side to not interfere with content */
.icon-1, .icon-2 {
    display: none;
}

.icon-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.icon-2 {
    top: 70%;
    left: 15%;
    animation-delay: -2s;
}

.icon-3 {
    top: 30%;
    right: 5%;
    animation-delay: -4s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-success);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 28px;
    animation: fadeInDown 0.6s ease-out;
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.reveal-text {
    display: inline-block;
    animation: revealText 0.8s ease-out forwards;
    opacity: 0;
}

.reveal-text.delay-1 {
    animation-delay: 0.2s;
}

@keyframes revealText {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-subtitle strong {
    color: var(--color-text);
    font-weight: 600;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-form {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-wrapper {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light);
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
    margin-top: 20px;
}

.hero-note svg {
    width: 16px;
    height: 16px;
    color: var(--color-success);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 1;
    animation: fadeInLeft 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-glow);
    filter: blur(60px);
    opacity: 0.6;
    animation: glowPulse 4s infinite ease-in-out;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.chat-preview {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.chat-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, white 100%);
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.chat-dots {
    display: flex;
    gap: 6px;
}

.chat-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.chat-dots span:hover {
    transform: scale(1.2);
}

.chat-dots span:nth-child(1) { background: #ef4444; }
.chat-dots span:nth-child(2) { background: #f59e0b; }
.chat-dots span:nth-child(3) { background: #22c55e; }

.chat-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-messages {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 420px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 90%;
    animation: messageSlide 0.5s ease-out forwards;
    opacity: 0;
}

.animate-message {
    animation: messageSlide 0.5s ease-out forwards;
}

.animate-message.delay-1 { animation-delay: 0.3s; }
.animate-message.delay-2 { animation-delay: 0.6s; }

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
}

.message-avatar svg {
    width: 18px;
    height: 18px;
}

.user-avatar {
    background: var(--color-primary);
    color: white;
}

.message.assistant .message-avatar {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, white 100%);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
}

.message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message.user p {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    border-bottom-right-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.message.assistant .message-content {
    background: var(--color-bg-secondary);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
}

.message.assistant p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}

.message strong {
    color: var(--color-primary);
    font-weight: 600;
}

.mini-chart {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    align-items: end;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
    height: 90px;
}

.chart-label {
    font-size: 11px;
    color: var(--color-text-light);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.mini-chart .bar {
    height: var(--bar-height);
    background: var(--color-border);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    min-width: 50px;
    animation: growBar 0.8s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.animate-bar { animation-delay: 0.5s; }
.animate-bar.delay-1 { animation-delay: 0.7s; }

@keyframes growBar {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.mini-chart .bar.highlight {
    background: var(--gradient-primary);
    color: white;
}

.mini-chart .bar span {
    transform: translateY(-28px);
}

.sources-tag {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 11px;
    color: var(--color-text-secondary);
}

.source svg {
    width: 12px;
    height: 12px;
}

.message.typing {
    align-items: center;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--color-text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Floating Document Icon */
.floating-doc {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatDoc 3s ease-in-out infinite;
}

.floating-doc svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

@keyframes floatDoc {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-60%) translateX(5px); }
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    opacity: 0.5;
}

.connection-svg {
    width: 100%;
    height: 100%;
}

.connection-path {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -1000; }
}

.connection-dot {
    fill: var(--color-primary);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { r: 4; }
    50% { r: 6; }
}

/* ===== Trust Section ===== */
.trust-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.trust-section .container {
    text-align: center;
}

.trust-title {
    font-size: 14px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    transition: transform var(--transition-normal);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

.trust-badge:hover {
    transform: translateY(-5px);
}

.trust-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.trust-badge:hover .trust-icon {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.trust-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
}

/* ===== Features Section ===== */
.features {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    position: relative;
    padding: 36px;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-normal);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

.feature-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover .feature-card-bg {
    opacity: 0.03;
}

.feature-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
    transition: color var(--transition-normal);
}

.feature-card:hover .feature-icon svg {
    color: white;
}

.feature-card h3 {
    position: relative;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-card p {
    position: relative;
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.feature-card p strong {
    color: var(--color-primary);
    font-weight: 600;
}

.feature-hover-icon {
    display: none;
}

/* ===== How it Works ===== */
.how-it-works {
    padding: 140px 0;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, white 100%);
}

.steps-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.steps-line {
    display: none;
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-secondary));
    transform: translateY(-50%);
    border-radius: 2px;
    opacity: 0.3;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    z-index: 1;
}

.step-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    animation: stepPulse 2s infinite;
}

@keyframes stepPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.step-content {
    transition: all var(--transition-normal);
}

.step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    margin: 0 auto 12px;
}

.step-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.step-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.step-content p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ===== Platform Preview Section ===== */
.platform-preview-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.platform-preview {
    margin-top: 60px;
}

.preview-window {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    display: grid;
    grid-template-columns: 180px 260px 1fr;
    height: 520px;
}

.preview-sidebar {
    background: linear-gradient(180deg, #1a1625 0%, #2d1f3d 100%);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    padding: 12px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.sidebar-item.active {
    background: rgba(99, 102, 241, 0.3);
    color: white;
    border-left: 3px solid var(--color-primary);
}

.sidebar-user {
    margin-top: auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.user-email {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
}

.preview-history {
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
}

.history-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border-light);
}

.history-header span {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
}

.btn-nuevo {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.history-list {
    flex: 1;
    overflow-y: auto;
}

.history-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.history-item:hover {
    background: white;
}

.history-num {
    color: var(--color-text-light);
    font-size: 11px;
    font-weight: 500;
}

.history-content strong {
    font-size: 13px;
    color: var(--color-text);
    display: block;
    margin-bottom: 4px;
}

.history-content p {
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.history-date {
    font-size: 10px;
    color: var(--color-text-light);
    margin-top: 4px;
    display: block;
}

.preview-main {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.main-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 14px 20px;
    margin: -24px -24px 24px -24px;
    font-weight: 600;
    font-size: 16px;
}

.main-welcome {
    text-align: center;
    padding: 20px 0;
}

.welcome-emoji {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.main-welcome h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.main-welcome p {
    font-size: 13px;
    color: var(--color-text-light);
}

.suggestions-group {
    margin-bottom: 20px;
}

.suggestions-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-chip {
    background: white;
    border: 1px solid var(--color-border);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.suggestion-chip.highlight {
    border-color: var(--color-primary-light);
    background: rgba(99, 102, 241, 0.05);
}

.suggestion-chip.highlight em {
    color: var(--color-primary);
    font-style: normal;
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
}

.preview-input {
    margin-top: auto;
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

.preview-input input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: var(--color-bg-secondary);
}

.btn-enviar {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .preview-window {
        grid-template-columns: 1fr;
        height: auto;
    }

    .preview-sidebar,
    .preview-history {
        display: none;
    }

    .preview-main {
        min-height: 400px;
    }
}

/* ===== Data Flow Section ===== */
.data-flow-section {
    padding: 100px 0;
    background: var(--color-bg-dark);
    overflow: hidden;
}

.data-flow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.data-source {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInRight 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.source-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.source-icon:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
}

.source-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary-light);
}

.source-icon.excel {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.source-icon.excel svg {
    color: var(--color-success);
}

.source-icon.docs {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.source-icon.docs svg {
    color: #f59e0b;
}

.data-source span {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
}

.flow-arrows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flow-arrow {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), var(--color-primary));
    border-radius: 2px;
    position: relative;
    animation: flowPulse 1.5s infinite;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    border: 5px solid transparent;
    border-left-color: var(--color-primary);
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.helyxa-hub {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    animation: hubGlow 3s infinite ease-in-out;
}

@keyframes hubGlow {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 0.8; }
}

.hub-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: hubRing 4s infinite linear;
}

@keyframes hubRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hub-core {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.hub-core svg {
    width: 40px;
    height: 40px;
    color: white;
}

.output-arrow {
    display: flex;
    align-items: center;
}

.flow-arrow.right {
    width: 80px;
}

.output-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.result-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-success);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.result-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.output-result span {
    font-size: 14px;
    color: white;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* ===== Benefits Section ===== */
.benefits {
    padding: 140px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.benefits-content h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.benefits-content > p {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 500;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

.benefit-check {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-success-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.benefit-check svg {
    width: 14px;
    height: 14px;
    color: var(--color-success);
}

.benefits-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
}

.stat-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #10b981;
}

.stat-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #3b82f6;
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    color: #8b5cf6;
}

.stat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}

.stat-value .counter {
    display: inline;
}

.stat-unit {
    font-size: 20px;
    font-weight: 600;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 6px;
}

.stat-detail {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--color-border);
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.stat-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-border-light);
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    animation: progressGrow 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes progressGrow {
    to { width: var(--width); }
}

/* ===== Why It Matters Section ===== */
.why-matters {
    padding: 140px 0;
    background: linear-gradient(180deg, white 0%, var(--color-bg-secondary) 100%);
}

.why-matters-content {
    text-align: center;
}

.why-matters-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.problem-card {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    text-align: left;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-border-light);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(45deg);
}

.card-ribbon.red {
    background: var(--color-error);
    color: white;
}

.card-ribbon.green {
    background: var(--color-success);
    color: white;
}

.problem-card.solution {
    border-color: var(--color-success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, white 100%);
}

.problem-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 24px;
}

.problem-icon svg {
    width: 32px;
    height: 32px;
}

.problem-icon.red {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.problem-icon.green {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.problem-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.problem-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.problem-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.problem-card li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.problem-card:not(.solution) li svg {
    color: var(--color-error);
}

.problem-card.solution li svg {
    color: var(--color-success);
}

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

.vs-divider span {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 140px 0;
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

.cta-card {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(20px);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-form {
    max-width: 680px;
    margin: 0 auto 28px;
}

.form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.cta-form .input-wrapper {
    flex: 1;
    max-width: none;
}

.cta-form .input-wrapper input {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 16px 16px 16px 16px;
    font-size: 15px;
}

.cta-form .input-wrapper input::placeholder {
    color: var(--color-text-light);
}

.cta-form .input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.cta-form .input-icon {
    color: var(--color-text-light);
}

.cta-form .btn {
    width: 100%;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light);
}

.cta-features svg {
    width: 18px;
    height: 18px;
    color: var(--color-success);
}

/* ===== Footer ===== */
.footer {
    padding: 100px 0 50px;
    background: var(--color-bg-darker);
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-brand .logo-icon {
    color: var(--color-primary-light);
}

.footer-brand p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.social-links a:hover svg {
    color: white;
}

.footer-links {
    display: flex;
    gap: 100px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-column a {
    display: block;
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 14px;
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    position: relative;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.modal {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    padding: 56px;
    max-width: 440px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-bounce);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-text-light);
    background: var(--color-bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-text);
    background: var(--color-border);
}

.modal-icon {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-success-bg);
    border-radius: 50%;
    margin: 0 auto 28px;
}

.modal-icon-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--color-success);
    border-radius: 50%;
    animation: modalRing 1s ease-out;
}

@keyframes modalRing {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-success);
    animation: modalCheck 0.5s ease-out 0.2s forwards;
    opacity: 0;
    transform: scale(0);
}

@keyframes modalCheck {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.modal h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Contact Modal */
.modal-contact {
    max-width: 480px;
    text-align: left;
}

.modal-contact h3 {
    text-align: center;
    margin-bottom: 8px;
}

.modal-subtitle {
    text-align: center;
    margin-bottom: 24px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.modal-input-group input {
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all var(--transition-fast);
}

.modal-input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.modal-input-group input::placeholder {
    color: var(--color-text-light);
}

/* ===== Animations for scroll ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

[data-animate="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-left"] {
    transform: translateX(50px);
}

[data-animate="fade-left"].visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(-50px);
}

[data-animate="fade-right"].visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="zoom-in"] {
    transform: scale(0.9);
}

[data-animate="zoom-in"].visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .chat-preview {
        max-width: 500px;
        margin: 0 auto;
        transform: none;
    }

    .chat-preview:hover {
        transform: none;
    }

    .chat-messages {
        max-height: none;
        padding: 16px;
        gap: 16px;
    }

    .floating-icon {
        display: none;
    }

    .floating-doc {
        display: none;
    }

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

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .benefits-content {
        text-align: center;
    }

    .benefits-list {
        align-items: center;
    }

    .stat-card:hover {
        transform: none;
    }

    .why-matters-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vs-divider {
        padding: 20px 0;
    }

    .section-header h2,
    .benefits-content h2 {
        font-size: 40px;
    }

    .cta-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        height: 70px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 20px 24px;
        background: var(--color-bg, #fff);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a:not(.btn) {
        padding: 14px 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links .btn {
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-form {
        flex-direction: column;
        align-items: center;
    }

    .input-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .trust-badges {
        gap: 30px;
    }

    .trust-badge {
        flex: 1 1 calc(50% - 15px);
    }

    .section-header h2,
    .benefits-content h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .steps-line {
        display: none;
    }

    .step {
        padding: 24px 16px;
    }

    .data-flow-visual {
        flex-direction: column;
        gap: 30px;
    }

    .flow-arrows {
        transform: rotate(90deg);
    }

    .output-arrow .flow-arrow {
        transform: rotate(90deg);
    }

    .form-row {
        flex-direction: column;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-features {
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 50px;
    }

    .footer-links {
        gap: 50px;
    }

    .problem-card {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .section-header h2,
    .benefits-content h2 {
        font-size: 28px;
    }

    .feature-card {
        padding: 28px;
    }

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

    .chat-messages {
        padding: 12px;
        gap: 12px;
    }

    .message.user p,
    .message.assistant .message-content {
        padding: 12px 14px;
    }

    .stat-card {
        padding: 20px;
        gap: 16px;
    }

    .stat-value {
        font-size: 32px;
    }

    .modal {
        padding: 40px 24px;
        margin: 16px;
    }
}
