:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --background: #0f172a;
    --surface: #1e293b;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --success: #10b981;

    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    color: #fff;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.logo img {
    height: 32px;
    width: auto;
}

.logo-text {
    color: #fff;
}

.logo-highlight {
    color: #948fd1;
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

.nav-links a:hover {
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: #818cf8;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Chat Interface Mockup */
.chat-mockup {
    background: #1e293b;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

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

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.chat-icon {
    width: 40px;
    height: 40px;
    background-image: url('assets/img/matteria-logo-icon.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.chat-title {
    font-weight: 600;
    color: white;
}

.chat-status {
    font-size: 0.8rem;
    color: var(--success);
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.received {
    background: #334155;
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
}

.message.sent {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

/* Features */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-section.reverse {
    margin-bottom: 0px;
    direction: rtl;
}

.feature-section.reverse > * {
    direction: ltr;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.visual-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.visual-center {
    text-align: center;
}

.visual-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
}

.visual-text {
    color: var(--text-secondary);
    max-width: 300px;
}

.visual-column {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.visual-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-title {
    font-size: 1rem;
}

.stat-description {
    color: #94a3b8;
}

.section-title-primary {
    color: var(--primary);
    margin-top: 30px;
}

.report-mockup {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    transform: rotate(3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.report-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.report-subtitle {
    font-size: 0.8rem;
    color: #666;
}

.report-content {
    font-size: 0.85rem;
    line-height: 1.6;
}

.report-warning {
    margin-top: 10px;
    color: #d97706;
}

.report-progress {
    margin-top: 15px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.report-progress-bar {
    width: 75%;
    height: 100%;
    background: var(--success);
}

.integration-title {
    max-width: 800px;
    margin: 0 auto 20px;
}

.integration-description {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.integration-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.integration-box-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.integration-box-text {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    padding: 40px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.pricing-card.featured {
    background: linear-gradient(145deg, #1e293b, #2e1065);
    border: 1px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-description {
    font-size: 0.9rem;
}

.pricing-btn {
    width: 100%;
    margin-top: 20px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    margin-top: 100px;
    background: #0b1120;
}

.footer-copyright {
    margin-bottom: 20px;
    opacity: 0.5;
}

.footer-links {
    justify-content: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-grid,
    .feature-section,
    .feature-section.reverse {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .hero-badge {
        margin: 0 auto 24px;
    }

    .btn-group {
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .chat-mockup {
        margin: 0 auto;
        transform: none;
        max-width: 400px;
    }

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