/* CSS Variables & Theme */
:root {
    --primary-color: #0ea5e9; /* Sky 500 */
    --primary-dark: #0284c7; /* Sky 600 */
    --secondary-color: #6366f1; /* Indigo 500 */
    --accent-color: #14b8a6; /* Teal 500 */
    
    --bg-color: #0f172a; /* Slate 900 */
    --bg-card: #1e293b; /* Slate 800 */
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --border-radius: 12px;
    --transition: all 0.3s ease;
    
    --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-glow: 0 0 20px rgba(14, 165, 233, 0.3);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

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

.btn--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

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

.logo__accent {
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav__link:hover {
    color: var(--text-main);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle__bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--spacing-xl) + 60px);
    padding-bottom: var(--spacing-xl);
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.1), transparent 40%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: var(--spacing-sm);
}

.hero__visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    opacity: 0.6;
    animation: morph 8s ease-in-out infinite;
}

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

/* Services */
.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.section__subtitle {
    font-size: 1.125rem;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.services__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background-color: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.service-card__icon {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

/* Benefits */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.benefits__list {
    margin-top: var(--spacing-md);
}

.benefits__item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.check-icon {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.visual-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--bg-card), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.visual-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    filter: blur(80px);
    opacity: 0.3;
}

/* Use Cases */
.use-cases__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.case-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card__category {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* FAQ */
.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.faq__question {
    padding: var(--spacing-md);
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

details[open] .faq__question::after {
    content: '-';
}

.faq__answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: -10px;
    padding-top: 10px;
}

/* Contact */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background-color: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.contact__details {
    margin-top: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

/* Footer */
.footer {
    background-color: #020617;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer__col h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
}

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

.footer__col ul li a {
    color: var(--text-muted);
}

.footer__col ul li a:hover {
    color: var(--primary-color);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px; /* Header height */
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        padding: var(--spacing-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

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

    .nav__list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav__item {
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        margin: 0 auto var(--spacing-md);
    }

    .hero__actions {
        justify-content: center;
    }
    
    .hero__shape {
        width: 200px;
        height: 200px;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .contact__wrapper {
        grid-template-columns: 1fr;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
