: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);

    /* Transitions */
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: #1e293b;
    --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);
    --primary-light: rgba(59, 130, 246, 0.15);
    /* Slightly lighter for glow */
}

* {
    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;
}

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

/* Header */
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),
        0 0 20px rgba(59, 130, 246, 0.15);
}

/* Dark mode specific radial glow removed in favor of glassmorphism wrapper above */

[data-theme="light"] .header-logo {
    mix-blend-mode: multiply;
}

[data-theme="dark"] .header-logo {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
    /* Tight shadow to clean up edges */
    opacity: 1;
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.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;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.5rem;
    text-align: center;
}

.tagline span:not(.tagline-divider) {
    white-space: nowrap;
}

@media (max-width: 580px) {
    .tagline-divider {
        display: none;
    }

    .tagline {
        flex-direction: column;
        row-gap: 0.25rem;
    }
}

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

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(15deg);
}

/* Main Content Wrapper */
main {
    padding: 4rem 0;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.hero-title {
    color: var(--text-main);
    margin-bottom: 2rem;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
}

.section-title .accent-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto;
}

/* Grids & Cards */
.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.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);
    /* Taking up half but centered in the row below */
}

@media (max-width: 768px) {
    .flex-grid-item {
        flex: 1 1 100%;
    }

    .flex-grid-item.centered {
        flex: 1 1 100%;
    }
}

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

.card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Center content by default for consistency */
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Glass Section Style */
.glass-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 4rem;
    margin-bottom: 5rem;
}

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

.form-header {
    background: var(--text-main);
    color: var(--bg-main);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

form {
    padding: 3rem;
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    border-radius: 0;
}

textarea {
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

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

.file-upload-box {
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.file-upload-box p {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1.25rem;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

/* FAQ Accordion */
.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 {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

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

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

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

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

.footer-company {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Helper Classes */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}