:root {
    /* Color Palette - Light Mode */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #0891b2;
    --accent: #f59e0b;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-inverse: #ffffff;
    --border: #e2e8f0;
    --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);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: rgba(59, 130, 246, 0.15);
    --secondary: #06b6d4;
    --bg-main: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-alt: #0d0d0e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;
    --border: #334155;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
p { margin-bottom: 1rem; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Logo */
header {
    background-color: var(--bg-surface);
    border-bottom: 4px solid var(--primary);
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper {
    padding: 1.5rem 3.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: fit-content;
}

[data-theme="dark"] .logo-wrapper {
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .header-logo { mix-blend-mode: multiply; }
.header-logo { width: 600px; max-width: 90vw; height: auto; object-fit: contain; }

.tagline {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Main Sections */
main { padding: 4rem 0; }
.hero-section { text-align: center; max-width: 800px; margin: 0 auto 5rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .accent-line { width: 60px; height: 4px; background: var(--primary); margin: 1rem auto; }

/* Grid System */
.grid { display: grid; gap: 2rem; margin-bottom: 4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.flex-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-bottom: 4rem; }
.flex-grid-item { flex: 1 1 calc(50% - 1rem); min-width: 300px; }
.flex-grid-item.centered { flex: 0 1 calc(50% - 1rem); }

.card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); }

/* FAQ - FIXED LOGIC */
.faq-item {
    background: var(--bg-surface);
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
    opacity: 1;
}

.faq-item.active .faq-question { color: var(--primary); }

/* Form Styles */
.form-container {
    background: var(--bg-surface);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem;
}

.form-header {
    background: var(--text-main);
    color: var(--bg-main);
    padding: 1.5rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    margin: -2rem -2rem 2rem -2rem;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.875rem; text-transform: uppercase; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--bg-surface-alt); color: var(--text-main); font-family: inherit; }

.btn-submit { background: var(--primary); color: white; padding: 1.25rem; border: none; border-radius: 1rem; width: 100%; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: var(--transition); }
.btn-submit:hover { background: var(--primary-hover); }

/* --- THE NETLIFY VISIBILITY FIX --- */
.card, .form-container, .section-title, .glass-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.hidden { display: none !important; }
