:root {
    /* --- Proton-Inspired Palette --- */
    /* Backgrounds */
    --bg-core: #100f13;
    /* Deepest black/purple hue */
    --bg-surface: #1a191f;
    /* Light surface for cards */
    --bg-surface-hover: #24222b;

    /* Accents */
    --primary: #6d4aff;
    /* Proton Purple */
    --primary-hover: #5835ea;
    --accent-blue: #d8b4fe;
    /* Light purple accent (Updated) */

    /* Text - FORCED WHITE & BOLD */
    --text-main: #ffffff;
    --text-muted: #ffffff;
    --text-on-primary: #ffffff;

    /* Borders & Lines */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(109, 74, 255, 0.4);

    /* Spacing & Layout */
    --container-width: 1100px;
    --header-height: 70px;

    /* Fonts */
    --font-stack: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-core);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    /* Bold */
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

/* --- Typography Utilities --- */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-purple {
    color: var(--primary);
}

/* --- Interactive Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    /* Bold */
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-on-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109, 74, 255, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    font-weight: 700;
    /* Bold */
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(16, 15, 19, 0.85);
    /* Glass-like darkness */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: none;
}

/* Desktop Nav */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 30px;
    }

    .nav-links a {
        font-size: 0.9rem;
        color: var(--text-muted);
        /* Now White */
        font-weight: 700;
        /* Bold */
    }

    .nav-links a:hover {
        color: var(--text-main);
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 0%, #2a1e45 0%, var(--bg-core) 60%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    /* Now White */
    margin-bottom: 40px;
    font-weight: 700;
    /* Bold */
}

/* --- Cards Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
    border-color: var(--border-highlight);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(109, 74, 255, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    /* Now White */
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 700;
    /* Bold */
}

/* --- Footer --- */
.site-footer {
    background: #0b0a0d;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-form {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    /* Now White */
    font-weight: 700;
    /* Bold */
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-core);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    /* Semi-Bold inputs */
    transition: 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.1);
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.social-btn:hover {
    background: var(--primary);
    color: white;
}

/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-highlight);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

/* --- Responsive Text --- */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}