/* Design System & Tokens */
:root {
    --bg-primary: #0F172A; /* Deep Slate */
    --bg-secondary: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent: #38BDF8; /* Sky Blue */
    --accent-hover: #0EA5E9;
    --accent-glow: rgba(56, 189, 248, 0.2);
    --border: #334155;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --container-width: 1100px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-section: 6rem;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Repeated Visual Motif: Grid Texture */
.grid-mesh {
    position: relative;
}

.grid-mesh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    z-index: -1;
    pointer-events: none;
}

/* Section Contrast & Spacing */
.section {
    padding: var(--space-section) 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-alt {
    background-color: var(--bg-secondary);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Typography Hierarchy */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.1; margin-bottom: var(--space-md); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; margin-bottom: var(--space-md); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }

p { color: var(--text-secondary); margin-bottom: var(--space-md); }

.title-accent { color: var(--accent); }

/* Unified Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 1rem;
    outline-offset: 4px;
}

.btn:active {
    transform: scale(0.97);
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    background-color: rgba(56, 189, 248, 0.05);
}

.btn-full { width: 100%; }

/* Layout Grid System */
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    :root { --space-section: 4rem; }
}

/* Hero Component */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    background: radial-gradient(circle at center, transparent, var(--bg-primary) 80%);
}

.img-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-actions { display: flex; gap: var(--space-md); }

/* Demo Widget (Glassmorphism) */
.demo-window {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin: var(--space-xl) auto;
}

.chat-column { display: flex; flex-direction: column; min-height: 300px; }

.chat-bubble {
    padding: 12px 18px;
    border-radius: 14px;
    margin-bottom: var(--space-sm);
    max-width: 85%;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.chat-bubble.visible { opacity: 1; transform: translateY(0); }

.user-message {
    background: var(--bg-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-message {
    background: var(--accent);
    color: var(--bg-primary);
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

/* Card Visual System */
.card-v2 {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition-base);
}

.card-v2:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.step-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

/* Calculator Visual System */
.calculator-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.calc-input { margin-bottom: var(--space-xl); }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); }
.calc-label { color: var(--text-secondary); font-weight: 500; }
.calc-value { color: var(--accent); font-weight: 800; font-size: 1.25rem; }

.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #334155; /* Solid visible track */
    border-radius: 100px;
    outline: none;
    cursor: pointer;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.calc-results {
    background: rgba(56, 189, 248, 0.05);
    padding: var(--space-xl);
    border-radius: 12px;
    text-align: center;
    border: 1px dashed rgba(56, 189, 248, 0.2);
}

.results-title { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }
.results-value { font-size: 4rem; font-weight: 800; color: var(--accent); line-height: 1; margin: var(--space-xs) 0; }
.results-subtext { font-size: 0.95rem; color: var(--text-secondary); }

/* FAQ Accordion Styles */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    padding: var(--space-lg) 0 !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 1.15rem !important;
    color: var(--text-primary) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: var(--transition-fast) !important;
}

.faq-question:hover { color: var(--accent); }
.faq-question:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.faq-question::after {
    content: '+';
    font-size: 1.75rem;
    color: var(--accent);
    transition: var(--transition-base);
}

.faq-item.active .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: var(--space-md);
    transition: max-height 0.4s ease-in;
}

/* Form Styles */
.contact-form {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: 16px;
    display: grid;
    gap: var(--space-md);
    border: 1px solid var(--border);
}

.input-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.input-label { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }

.form-input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: white;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Footer Section */
.footer-main {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-section);
}

.footer-content {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Utility Tokens */
.shadow-lg { box-shadow: var(--shadow-lg); }

.text-center { text-align: center; }
.badge {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: inline-block;
}

.mb-20 { margin-bottom: 1.25rem; }
.mb-24 { margin-bottom: 1.5rem; }
.mb-40 { margin-bottom: 2.5rem; }
.mb-50 { margin-bottom: 3rem; }
.mb-60 { margin-bottom: 3.75rem; }
.mt-16 { margin-top: 1rem; }
.mt-30 { margin-top: 1.875rem; }
/* CTA Banner Refinement */
.cta-banner {
    position: relative;
    padding: var(--space-xl) var(--space-xl);
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    margin: var(--space-section) auto; /* Symmetric margin for equal spacing above/below */
}

.cta-banner .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-banner .background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-secondary) 40%, transparent);
    z-index: 1;
}

.cta-banner .content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.cta-banner h2 {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.cta-banner-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.flex-align-center { align-items: center; }
.flex-center { justify-content: center; }
