:root {
    --primary-start: #6366f1;
    --primary-end: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --white: #ffffff;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.bg-darker {
    background-color: var(--bg-darker);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-start);
    color: var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* HEADER */
.gradient-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    padding: 20px 0;
}

.gradient-header.scrolled {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-gradient {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav a {
    margin-left: 30px;
    font-weight: 500;
    font-size: 0.95rem;
}

.desktop-nav a:hover {
    color: var(--primary-start);
}

.btn-nav {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-dark);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* HERO */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-start);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-end);
    bottom: -100px;
    right: -100px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

/* INTRO */
.intro-text h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.text-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    color: var(--text-gray);
}

/* BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: rgba(30, 41, 59, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

/* Gradient Border Trick */
.gradient-border-card {
    position: relative;
}
.gradient-border-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.bento-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

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

.bento-small {
    grid-column: span 1;
}

/* FEATURES WAVE */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--white), var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    gap: 4rem;
}

.feature-row.right {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-start);
}

.feature-text p {
    color: var(--text-gray);
}

.feature-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.03);
}

/* INTEGRATION GRID */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.integration-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 12px;
    transition: border-color 0.3s;
}

.integration-card:hover {
    border-color: var(--primary-start);
}

.integration-card h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.integration-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* NEWSLETTER */
.newsletter-gradient {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2);
    color: var(--white);
    font-family: var(--font-body);
}

/* CONTACT */
.contact-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(30, 41, 59, 0.3);
    padding: 3rem;
    border-radius: 20px;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-start);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.form-check a {
    color: var(--primary-start);
    text-decoration: underline;
}

/* FOOTER */
.gradient-footer {
    background: linear-gradient(to top, #000, var(--bg-dark));
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p, .footer-col ul li a {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a:hover {
    color: var(--primary-start);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    display: none; /* JS will toggle */
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-accept {
    background: var(--primary-start);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-reject {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-gray);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large { grid-column: span 2; }
    .bento-medium { grid-column: span 2; }
    .bento-small { grid-column: span 1; }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .text-cols,
    .feature-row,
    .feature-row.right,
    .integration-grid,
    .contact-modern,
    .footer-grid {
        display: flex;
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }

    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .feature-row {
        gap: 2rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-small { grid-column: span 1; }
}

/* Legal Page Specific Content wrapper */
.legal-content {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--white);
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}