/* CSS Variables & Design System */
:root {
    --bg-primary: #070709;
    --bg-secondary: #0E0F12;
    --bg-tertiary: #16171D;
    --accent-red: #FF1E27;
    --accent-red-hover: #D6121B;
    --accent-red-glow: rgba(255, 30, 39, 0.18);
    --accent-red-glow-strong: rgba(255, 30, 39, 0.35);
    --accent-red-border: rgba(255, 30, 39, 0.25);
    
    --text-primary: #FFFFFF;
    --text-secondary: #B4B5BD;
    --text-muted: #72747D;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.12);
    
    --glass-bg: rgba(14, 15, 18, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    
    --font-title: 'Space Grotesk', 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --max-width-desktop: 1200px;
    --max-width-narrow: 800px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Selection & Scrollbar */
::selection {
    background-color: var(--accent-red);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

p {
    color: var(--text-secondary);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width-desktop);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--max-width-narrow);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 650px;
    margin: 1.5rem auto 0 auto;
    color: var(--text-secondary);
}

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

.text-highlight {
    color: var(--accent-red);
    background: linear-gradient(120deg, var(--accent-red) 0%, #ff6b70 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-red-glow-strong);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.badge-accent {
    border-color: var(--accent-red-border);
    color: var(--accent-red);
    background-color: rgba(255, 30, 39, 0.06);
}

/* Header & Floating Menu */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(7, 7, 9, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal), padding var(--transition-normal);
}

.header-container {
    max-width: var(--max-width-desktop);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    height: 42px;
    border-radius: 4px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.03);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-item {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width var(--transition-fast);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: background-color var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast), top var(--transition-fast);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-red-glow-strong) 0%, rgba(255, 30, 39, 0) 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.6;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent-red);
    background-color: rgba(255, 30, 39, 0.08);
    border: 1px solid var(--accent-red-border);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Terminal Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card-glowing {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(135deg, rgba(22, 23, 29, 0.8) 0%, rgba(14, 15, 18, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(255, 30, 39, 0.05);
    padding: 1px;
    position: relative;
}

.hero-card-glowing::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 10px;
    background: linear-gradient(to bottom right, var(--accent-red-border), transparent 50%, rgba(255,255,255,0.05));
    z-index: -1;
}

.card-glow-inner {
    background-color: var(--bg-secondary);
    border-radius: 9px;
    overflow: hidden;
    padding: 1.5rem;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-title {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.terminal-body {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.cmd-prompt {
    color: var(--accent-red);
    font-weight: bold;
}

.text-success { color: #27c93f; }
.text-warning { color: #ffbd2e; }

.terminal-progress {
    background-color: var(--bg-tertiary);
    height: 4px;
    border-radius: 2px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: var(--accent-red);
    height: 100%;
    width: 64%;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-red);
    animation: pulseWidth 3s ease-in-out infinite alternate;
}

.text-pulse {
    animation: textFlicker 1.5s infinite;
}

@keyframes pulseWidth {
    0% { width: 45%; }
    100% { width: 85%; }
}

@keyframes textFlicker {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 30, 39, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 30, 39, 0.03);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: rgba(255, 30, 39, 0.08);
    border: 1px solid var(--accent-red-border);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.service-details {
    flex-grow: 1;
}

.service-problem {
    background-color: var(--bg-secondary);
    border-left: 3px solid var(--accent-red);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
}

.service-problem strong {
    color: var(--text-primary);
}

.details-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.details-list {
    list-style: none;
    margin-bottom: 2rem;
}

.details-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.details-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.service-deliverable {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.deliverable-label {
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.deliverable-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Quiz Section */
.quiz-section {
    padding: 6rem 0;
    position: relative;
}

.quiz-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.quiz-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent 40%, rgba(255, 30, 39, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.quiz-progress-wrapper {
    margin-bottom: 2.5rem;
}

.quiz-progress-text {
    font-family: var(--font-title);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red) 0%, #ff5258 100%);
    border-radius: 10px;
    transition: width 0.4s ease-in-out;
    box-shadow: 0 0 10px var(--accent-red-glow-strong);
}

.question-slide {
    display: none;
}

.question-slide.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.question-text {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.quiz-option-btn {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition-fast);
    width: 100%;
    color: var(--text-secondary);
}

.quiz-option-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-red-border);
    color: var(--text-primary);
    transform: translateX(4px);
}

.quiz-option-btn.selected {
    background-color: rgba(255, 30, 39, 0.05);
    border-color: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 30, 39, 0.05);
}

.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.quiz-option-btn:hover .option-letter {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-primary);
}

.quiz-option-btn.selected .option-letter {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-primary);
}

.option-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Quiz Results Screen */
.quiz-results-screen {
    animation: fadeIn 0.6s ease-in-out;
}

.results-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.score-radial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
    padding: 1rem;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--score-color, var(--accent-red)) 0%, var(--bg-tertiary) 0%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position: relative;
    padding: 4px;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    z-index: 1;
}

.score-percent, .score-label {
    position: relative;
    z-index: 2;
}

.score-percent {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-red);
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.traffic-light-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 30px;
    width: fit-content;
}

.light-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #24252a;
    display: block;
    transition: all 0.3s ease;
}

.light-dot.red.active {
    background-color: #ff5f56;
    box-shadow: 0 0 15px #ff5f56;
}

.light-dot.yellow.active {
    background-color: #ffbd2e;
    box-shadow: 0 0 15px #ffbd2e;
}

.light-dot.green.active {
    background-color: #27c93f;
    box-shadow: 0 0 15px #27c93f;
}

.results-text-content {
    text-align: center;
    margin-bottom: 3rem;
}

.results-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.results-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Lead Form */
.lead-form {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    max-width: 650px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 30, 39, 0.1);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 1.5rem;
    animation: fadeIn 0.4s ease-in-out;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    border: 1px solid rgba(39, 201, 63, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
}

.success-message h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

.success-message p strong {
    color: var(--text-primary);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-color-hover);
}

.faq-question-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-normal), color var(--transition-fast);
    flex-shrink: 0;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
}

.faq-item:hover .faq-icon {
    color: var(--accent-red);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* FAQ Active State */
.faq-item.active {
    border-color: var(--accent-red-border);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-red);
}

.faq-item.active .faq-answer {
    max-height: 250px; /* Arbitrary large height to handle text expansion */
    transition: max-height var(--transition-normal) ease-in;
}

/* Contact CTA Section */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.cta-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.cta-subtext a {
    color: var(--accent-red);
    font-weight: 500;
}

.cta-subtext a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 36px;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
}

.footer-grid h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-red);
    transform: translateX(2px);
    display: inline-block;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Web Design (Mobile styles) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header-container {
        padding: 0.75rem 1.5rem;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        overflow: hidden;
        transition: height var(--transition-normal) ease-in-out;
        z-index: 999;
    }
    
    .nav-menu.open {
        height: calc(100vh - 65px);
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .nav-item {
        font-size: 1.25rem;
    }
    
    .nav-menu .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Toggle active state hamburger */
    .mobile-nav-toggle[aria-expanded="true"] .hamburger {
        background-color: transparent;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .quiz-box {
        padding: 2rem 1.5rem;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .results-visual {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
