/* diffindo - index.css */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;
    --text-main: #111827;
    --text-light: #4B5563;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Ensures it stays above all other content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    /* Translucent effect */
    backdrop-filter: blur(10px);
    /* Modern frosted glass effect */
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Optional: Add a subtle border/shadow when the user scrolls */
nav.scrolled {
    border-bottom: 1px solid var(--border);
    padding: 12px 5%;
    /* Slightly shrink the bar on scroll for a polished feel */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.nav-logo {
    height: 80px;
    /* Reduced slightly from 90px to feel better in a sticky bar */
    width: auto;
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 5% 120px;
    background: radial-gradient(circle at 50% 0%, var(--primary-light) 0%, var(--white) 70%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

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

.feature-card h3 {
    margin-bottom: 16px;
    font-weight: 700;
}

/* Contact Form */
.contact-section {
    padding: 100px 5%;
    background-color: var(--bg-light);
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    ring: 2px solid var(--primary-light);
}

/* Success Message */
.success-msg {
    display: none;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
    text-align: center;
}

/* Footer */
footer {
    padding: 80px 5% 40px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.stripe-badge {
    color: #635bff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Mobile Tweaks */
@media (max-width: 640px) {
    .hero {
        padding: 60px 5% 80px;
    }

    .features {
        padding: 40px 5%;
    }
}