/* Google Fonts: Outfit for headings, Inter for body copy */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0B0F19;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(255, 255, 255, 0.2);
    
    /* Branding Colors */
    --accent-blue: #2F80ED;
    --accent-orange: #FF5E62;
    --accent-teal: #00F2FE;
    --accent-violet: #8E2DE2;
    
    /* Gradients */
    --grad-nexus: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-orange) 100%);
    --grad-glow: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-violet) 100%);
    --grad-dark-glow: linear-gradient(180deg, rgba(142, 45, 226, 0.1) 0%, rgba(11, 15, 25, 0) 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Sizes */
    --max-width: 1200px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: #F3F4F6;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(142, 45, 226, 0.15) 0%, rgba(11, 15, 25, 0) 60%),
                radial-gradient(circle at 10% 40%, rgba(0, 242, 254, 0.08) 0%, rgba(11, 15, 25, 0) 50%);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: #9CA3AF;
    font-weight: 300;
    margin-bottom: 1rem;
}

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

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

.section {
    padding: 6rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1-indexed); /* standard: repeat(3, 1fr) */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

/* Navigation Header */
header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

/* Logo Design - Workflow Nexus */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.89rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.logo-icon {
    display: flex;
    align-items: center;
    position: relative;
    width: 80px;
    height: 56px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text span {
    color: var(--accent-orange);
    font-size: 1.33rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 0.95rem;
    color: #9CA3AF;
    font-weight: 400;
}

.nav-link:hover {
    color: #FFFFFF;
}

/* Glassmorphic Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-active);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Button & Link Styles */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--grad-nexus);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 98, 0.45);
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #FFFFFF;
}

.cta-sub {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.75rem;
    display: block;
    text-decoration: underline;
}

.cta-sub:hover {
    color: #FFFFFF;
}

.trust-line {
    font-size: 0.825rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
}

.hero-content h1 span {
    background: var(--grad-nexus);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-dashboard-mock {
    width: 100%;
    max-width: 500px;
    height: 320px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(8px);
}

.hero-dashboard-mock::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.mock-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.mock-row {
    display: flex;
    gap: 1rem;
}

.mock-widget {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 70%;
}
.mock-bar.short { width: 40%; }
.mock-bar.long { width: 90%; }
.mock-bar.accent-blue { background: var(--accent-blue); width: 80%; }
.mock-bar.accent-orange { background: var(--accent-orange); width: 65%; }

.mock-chart {
    height: 90px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 0.5rem 0.5rem 0.5rem;
}

.mock-chart-bar {
    width: 24px;
    background: linear-gradient(180deg, var(--accent-blue) 0%, rgba(47, 128, 237, 0.2) 100%);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.mock-chart-bar:hover {
    background: linear-gradient(180deg, var(--accent-orange) 0%, rgba(255, 94, 98, 0.2) 100%);
}

/* Sound Familiar - Pain section */
.pain-card {
    text-align: left;
}

.pain-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--accent-orange);
}

.pain-card p {
    font-size: 0.95rem;
}

/* Solution section */
.bullet-list {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bullet-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: #E5E7EB;
}

.bullet-list li::before {
    content: '✓';
    color: var(--accent-teal);
    font-weight: bold;
    font-size: 1.1rem;
}

/* How It Works - Visual Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.step-card {
    position: relative;
    padding-top: 2rem;
}

.step-num {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--grad-nexus);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
}

.step-card p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Multi-Step Form container (#audit) */
.form-section {
    background: var(--grad-dark-glow);
}

.form-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 11.1%; /* 1/9 initial */
    background: var(--grad-nexus);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-wizard {
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-step.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.form-step.exit-left {
    opacity: 0;
    transform: translateX(-100px);
}

.form-label {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.form-helper {
    font-size: 0.9rem;
    color: #9CA3AF;
    margin-bottom: 1.5rem;
    display: block;
}

/* Radio and Checkbox Styling */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.option-box {
    display: flex;
    align-items: center;
    padding: 1.15rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.option-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color-active);
}

.option-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.option-text {
    font-size: 1.05rem;
    color: #E5E7EB;
    padding-left: 2rem;
    position: relative;
    user-select: none;
}

/* Custom Checkbox/Radio Markers */
.option-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    transition: var(--transition);
}

.checkbox-type .option-text::before {
    border-radius: 4px;
}

.radio-type .option-text::before {
    border-radius: 50%;
}

.option-box input:checked ~ .option-text::before {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.option-box input:checked ~ .option-text::after {
    content: '';
    position: absolute;
    transition: var(--transition);
}

.checkbox-type input:checked ~ .option-text::after {
    left: 7px;
    top: 5px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-type input:checked ~ .option-text::after {
    left: 6px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.option-box.checked {
    border-color: var(--accent-orange);
    background: rgba(255, 94, 98, 0.04);
}

/* Textarea & Select Styling */
.form-textarea, .form-select, .form-input {
    width: 100%;
    padding: 1.15rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 1.05rem;
    outline: none;
    transition: var(--transition);
}

.form-select option {
    background-color: #0B0F19; /* Solid dark background matching theme */
    color: #FFFFFF;            /* White text */
}

.form-textarea:focus, .form-select:focus, .form-input:focus {
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.04);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #4B5563;
}

.other-reveal {
    margin-top: 1rem;
    display: none;
}

.other-reveal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Contact Info Form Fields */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-field.full-width {
    grid-column: span 2;
}

.contact-field label {
    font-size: 0.9rem;
    color: #9CA3AF;
    font-weight: 500;
}

.contact-field span {
    font-size: 0.8rem;
    color: #4B5563;
}

/* Form Action Navigation */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.microcopy-under {
    text-align: center;
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 1rem;
    line-height: 1.5;
}

/* FAQ Accordion Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    width: 18px;
    height: 18px;
    position: relative;
    transition: var(--transition);
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent-teal);
    transition: var(--transition);
}

.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 8px;
    left: 0;
}

.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 8px;
    top: 0;
}

.faq-item.active {
    border-color: var(--accent-teal);
    background: rgba(0, 242, 254, 0.02);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #9CA3AF;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-answer-inner a {
    color: var(--accent-teal);
    text-decoration: underline;
}

/* Standalone AI Page specific styles */
.ai-intro {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 2rem auto;
}

.ai-intro h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.ai-intro h1 span {
    background: var(--grad-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-intro-sub {
    font-size: 1.25rem;
    color: #E5E7EB;
    font-weight: 300;
}

.ai-content {
    max-width: 800px;
    margin: 0 auto;
}

.ai-intro-paragraph {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.ai-content h2 {
    text-align: left;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.ai-content h2.danger {
    color: var(--accent-orange);
    border-color: rgba(255, 94, 98, 0.2);
}

.ai-content h2.success {
    color: var(--accent-teal);
    border-color: rgba(0, 242, 254, 0.2);
}

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

.ai-point-card {
    padding: 2rem;
    border-left: 4px solid var(--accent-teal);
}

.ai-point-card.danger {
    border-left-color: var(--accent-orange);
}

.ai-point-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.ai-point-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.ai-point-card blockquote {
    background: rgba(255, 255, 255, 0.01);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    color: #9CA3AF;
    font-style: italic;
    font-size: 0.9rem;
}

/* Calculator Sliders and Tables */
.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: flex-start;
}

.calc-sliders {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.slider-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-teal);
    font-weight: 700;
}

/* Custom Neon Range Slider Input */
.calc-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    outline: none;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 10px var(--accent-teal);
    cursor: pointer;
    transition: var(--transition);
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-panel {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
}

.calc-panel-header {
    font-size: 0.95rem;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
}

.calc-panel-big-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    background: var(--grad-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.calc-panel-sub {
    font-size: 0.95rem;
    color: #E5E7EB;
    margin-bottom: 1.5rem;
}

.calc-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
}

.metric-title {
    font-size: 0.8rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
}

/* Comparison Table Design */
.comparison-section {
    margin-top: 5rem;
}

.comp-table-container {
    overflow-x: auto;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    text-align: left;
}

.comp-table th {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    color: #FFFFFF;
}

.comp-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: #9CA3AF;
}

.comp-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.comp-table tr.highlight {
    background: rgba(0, 242, 254, 0.03);
}

.comp-table tr.highlight td {
    color: #FFFFFF;
    font-weight: 500;
}

.comp-table tr.highlight td:first-child {
    border-left: 4px solid var(--accent-teal);
}

/* Confirmation Page Styles */
.confirm-wrapper {
    max-width: 720px;
    margin: 4rem auto;
    text-align: center;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--accent-teal);
    margin: 0 auto 2rem auto;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.confirm-headline {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.confirm-body {
    font-size: 1.15rem;
    color: #D1D5DB;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-align: left;
}

.dynamic-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: left;
    margin-bottom: 3rem;
    border-left: 6px solid var(--accent-orange);
    position: relative;
    overflow: hidden;
}

.dynamic-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 94, 98, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.dynamic-block-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.dynamic-block-text {
    font-size: 1.05rem;
    color: #E5E7EB;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer Section */
footer {
    background: #060910;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    margin-top: auto;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 380px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #9CA3AF;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #4B5563;
}

/* Case study formatting */
.case-studies-grid {
    margin-top: 2rem;
}

.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.case-problem {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.case-built {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    border-left: 2px solid var(--accent-blue);
    color: #FFFFFF;
}

.case-result {
    font-size: 0.95rem;
    color: var(--accent-teal);
    font-weight: 500;
}

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

@keyframes slideIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
    html {
        font-size: 15px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero {
        text-align: center;
        padding: 4rem 0;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .step-card {
        padding-top: 1.5rem;
    }
    
    .step-num {
        left: 1rem;
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-field.full-width {
        grid-column: span 1;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.25rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Modal Popup Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 16, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay.active .glass-card {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3.5rem 2.5rem 2.5rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalScaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    outline: none;
    color: #9CA3AF;
    font-size: 2.25rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 100;
}

.modal-close:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Ensure form wizard has correct min-height in modal and apply tight overrides */
.modal-overlay .glass-card {
    padding: 1rem 1.5rem 0.75rem 1.5rem;
    max-width: 720px; /* Wider container to comfortably accommodate 2 columns */
}

.modal-overlay .form-label {
    font-size: 11pt;
    margin-bottom: 0.15rem;
    font-weight: 700;
}

.modal-overlay .form-helper {
    font-size: 8.5pt;
    margin-bottom: 0.4rem;
}

.modal-overlay .options-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop/tablet */
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.modal-overlay .option-box {
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border-width: 1px;
}

.modal-overlay .option-text {
    font-size: 9.5pt;
    padding-left: 1.5rem;
    line-height: 1.2;
}

.modal-overlay .option-text::before {
    width: 13px;
    height: 13px;
    top: 2px;
    border-width: 1.5px;
}

.modal-overlay .checkbox-type input:checked ~ .option-text::after {
    left: 4px;
    top: 4px;
    width: 4px;
    height: 6px;
}

.modal-overlay .radio-type input:checked ~ .option-text::after {
    left: 4px;
    top: 5px;
    width: 5px;
    height: 5px;
}

.modal-overlay .form-textarea, 
.modal-overlay .form-select, 
.modal-overlay .form-input {
    padding: 0.4rem 0.65rem;
    font-size: 10.5pt;
    border-radius: 6px;
    border-width: 1px;
}

.modal-overlay .form-textarea {
    min-height: 60px;
    height: 60px;
}

.modal-overlay .contact-grid {
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.modal-overlay .contact-field label {
    font-size: 8.5pt;
    margin-bottom: 2px;
    font-weight: 500;
}

.modal-overlay .form-actions {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
}

.modal-overlay .btn {
    padding: 0.45rem 1.15rem;
    font-size: 10.5pt;
    border-radius: 6px;
}

.modal-overlay .progress-bar-container {
    height: 4px;
    margin-bottom: 0.75rem;
}

.modal-overlay .microcopy-under {
    margin-top: 0.4rem;
    font-size: 8px;
    color: #6B7280;
}

.modal-overlay .form-wizard {
    min-height: 200px; /* Reduced wizard container height to fit any screen height */
}

/* On mobile viewports, stack options vertically but keep spacing tight */
@media (max-width: 600px) {
    .modal-overlay .options-list {
        grid-template-columns: 1fr;
    }
    .modal-overlay .glass-card {
        padding: 0.75rem;
    }
}
