/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
    --bg-main: #060713;
    --bg-card: rgba(13, 16, 37, 0.45);
    --bg-card-hover: rgba(20, 24, 56, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(138, 43, 226, 0.2);
    
    /* HSL Tailored Colors */
    --color-primary: hsl(270, 95%, 60%);       /* Electric Indigo */
    --color-primary-glow: rgba(147, 51, 234, 0.5);
    --color-secondary: hsl(180, 100%, 50%);    /* Neon Cyan */
    --color-secondary-glow: rgba(6, 182, 212, 0.5);
    --color-accent: hsl(290, 100%, 60%);       /* Magenta/Pink */
    
    --color-success: hsl(142, 76%, 45%);       /* Emerald Green */
    --color-danger: hsl(350, 89%, 60%);        /* Crimson Red */
    --color-warning: hsl(45, 93%, 47%);        /* Amber Warning */
    
    /* Text Colors */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-glow-purple: 0 0 30px rgba(147, 51, 234, 0.25);
    --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);
}

/* ==========================================
   RESET & FOUNDATIONS
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

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

ul {
    list-style: none;
}

/* Background Glowing Blobs */
.glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 80%);
}

.glow-2 {
    top: 50%;
    left: -200px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 80%);
    animation-delay: -5s;
}

.glow-3 {
    bottom: -100px;
    right: 20%;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 80%);
    animation-delay: -10s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.2) translate(50px, 50px); opacity: 0.22; }
}

/* ==========================================
   LAYOUT CONTAINERS & HELPERS
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-margin-top {
    margin-top: 5rem;
}

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

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 300;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

.glass-gradient {
    background: linear-gradient(135deg, rgba(20, 15, 45, 0.7) 0%, rgba(10, 25, 45, 0.7) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(138, 43, 226, 0.15);
    box-shadow: var(--shadow-premium), var(--shadow-glow-purple);
    border-radius: 16px;
}

/* ==========================================
   BUTTONS & ACCENTS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

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

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.5), var(--shadow-glow-purple);
}

.btn-secondary {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #060713;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5), var(--shadow-glow-cyan);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(147, 51, 234, 0.12);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: var(--color-accent);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-accent {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--color-secondary);
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--color-secondary);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 7, 19, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-icon {
    color: var(--color-primary);
}

.logo-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--color-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 0.45rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* ==========================================
   HERO SECTION & LIVE FLOW VISUAL
   ========================================== */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

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

.hero-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--color-secondary);
}

.stat-lbl {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Flowing Widget */
.hero-visual {
    position: relative;
}

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

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #eab308; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title-bar {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-body {
    padding: 1.5rem;
}

.attribution-flow-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flow-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.flow-icon {
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 6px;
}

.browser-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.server-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
}

.dest-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-secondary);
}

.flow-status {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.flow-status.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

.flow-status.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.flow-status.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-secondary);
}

/* Connector Line & Dot Flow Animation */
.flow-line-container {
    height: 12px;
    position: relative;
    margin-left: 22px;
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
}

.flow-line {
    position: absolute;
    top: 0;
    left: -2px;
    height: 100%;
    width: 2px;
}

.flow-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: -5px;
}

.dot-browser {
    background: var(--color-danger);
    animation: flowDownBrowser 2.5s infinite linear;
}

.dot-server {
    background: var(--color-success);
    animation: flowDownServer 1.8s infinite linear;
}

@keyframes flowDownBrowser {
    0% { top: 0; opacity: 1; }
    40% { top: 100%; opacity: 0; }
    100% { top: 100%; opacity: 0; }
}

@keyframes flowDownServer {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 1; }
}

/* ==========================================
   SILO & PROBLEM BROWSER
   ========================================== */
.problems-filter-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.filter-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.problem-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.problem-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.problem-tag:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: var(--color-primary);
    color: #ffffff;
}

.problem-tag.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.silo-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.silo-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.silo-tab:hover {
    color: #ffffff;
}

.silo-tab.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* Silo Details Layout */
.silo-details-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: 2.5rem;
}

.silo-meta-pane h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.silo-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.silo-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.silo-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.silo-features-list i {
    color: var(--color-secondary);
    width: 18px;
    height: 18px;
}

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

.child-page-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.25rem;
    transition: var(--transition-fast);
}

.child-page-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.child-page-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.child-page-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.tag-popular {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* ==========================================
   AD LEAKAGE & ROAS CALCULATOR
   ========================================== */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: stretch;
}

.calculator-inputs {
    padding: 2.5rem;
}

.calc-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

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

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix, .input-suffix {
    position: absolute;
    font-size: 1.15rem;
    color: var(--text-muted);
    pointer-events: none;
}

.input-prefix { left: 1rem; }
.input-suffix { right: 1rem; }

.input-wrapper input[type="number"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-wrapper input[type="number"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.2);
}

.input-wrapper input#input-adspend { padding-left: 2rem; }
.input-wrapper input#input-roas, .input-wrapper input#input-leakage { padding-right: 2rem; }

/* Custom Sliders */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-secondary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: var(--transition-fast);
}

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

/* Calculator Results */
.calculator-results {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.results-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

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

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 12px;
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    font-size: 2.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.danger-text { color: var(--color-danger); }
.success-text { color: var(--color-success); }

.result-desc {
    font-size: 0.75rem;
    color: var(--text-dark);
}

/* Comparison bar displays */
.visual-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.comparison-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.comparison-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comparison-track {
    background: rgba(255, 255, 255, 0.05);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.danger-bg {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.4) 0%, var(--color-danger) 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.success-bg {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.4) 0%, var(--color-success) 100%);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.results-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.cta-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ==========================================
   FRAMEWORKS & CASE STUDIES
   ========================================== */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.framework-card {
    padding: 2.5rem 2rem;
}

.framework-icon-container {
    width: 48px;
    height: 48px;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.frame-icon {
    width: 24px;
    height: 24px;
}

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

.framework-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.framework-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.framework-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.check-icon {
    width: 14px;
    height: 14px;
    color: var(--color-secondary);
}

/* Case Study Tabs */
.case-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.case-tab-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.case-tab-btn:hover {
    border-color: var(--color-secondary);
    color: #ffffff;
}

.case-tab-btn.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Case Spotlight Layout */
.case-spotlight {
    padding: 3rem;
}

.case-header {
    margin-bottom: 2.5rem;
}

.case-header h2 {
    font-size: 2.2rem;
    margin-top: 0.5rem;
}

.case-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.case-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.case-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.case-results-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.badge-result {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.badge-num {
    display: block;
    font-size: 1.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--color-secondary);
}

.badge-lbl {
    font-size: 0.7rem;
    color: var(--text-dark);
}

/* Case study graphic graph */
.case-graph {
    padding: 2rem;
    border-radius: 12px;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tag-live {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.graph-visual-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stream-line {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stream-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stream-bar {
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    transition: var(--transition-smooth);
    white-space: nowrap;
    min-width: 170px;
}

.bar-total {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bar-broken {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.6) 100%);
    border: 1px solid var(--color-danger);
}

.bar-fixed {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.7) 100%);
    border: 1px solid var(--color-secondary);
}

/* ==========================================
   AEO / GEO SIMULATOR
   ========================================== */
.aeo-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.5rem;
    align-items: stretch;
}

.aeo-sidebar {
    padding: 2rem;
}

.aeo-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.aeo-prompts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aeo-prompt-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.aeo-prompt-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.aeo-prompt-btn.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--color-secondary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

/* AI Terminal Simulator output screen */
.aeo-terminal {
    background: #04050a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.terminal-dot:nth-child(1) { background: #ef4444; }
.terminal-dot:nth-child(2) { background: #eab308; }
.terminal-dot:nth-child(3) { background: #22c55e; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-left: auto;
    font-family: 'Space Grotesk', sans-serif;
}

.terminal-body {
    padding: 2rem;
    flex-grow: 1;
    min-height: 350px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

.terminal-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
}

.sparkles-icon {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

/* Simulation styling */
.ai-sim-response {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-query-input {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.ai-response-content {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.ai-response-content strong {
    color: #ffffff;
}

.ai-citations-area {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.citation-header {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    font-weight: 700;
}

.citation-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.citation-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.citation-chip:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--color-secondary);
}

/* ==========================================
   DIAGNOSTIC AUDIT QUIZ
   ========================================== */
.audit-wrapper {
    padding: 4rem 3rem;
}

.quiz-wizard {
    max-width: 600px;
    margin: 2.5rem auto 0 auto;
}

.quiz-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transition: var(--transition-smooth);
}

.quiz-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.quiz-option.selected {
    background: rgba(147, 51, 234, 0.12);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.15);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
}

.hidden {
    visibility: hidden;
    pointer-events: none;
}

.hidden-display {
    display: none !important;
}

/* Quiz Report styling */
.quiz-report-card {
    text-align: center;
}

.score-radial {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 4px solid var(--color-danger);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.score-num {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1;
}

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

.report-lead {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.report-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    background: #03040b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}

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

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

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

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

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-disclaimer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ==========================================
   CONTACT & AUDIT REQUEST SECTION
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-steps {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2rem;
}

.contact-step-item {
    display: flex;
    gap: 1.25rem;
}

.step-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.step-icon-box i {
    width: 20px;
    height: 20px;
}

.contact-step-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.contact-step-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-form-container {
    padding: 3rem 2.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    z-index: 2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.autofill-notification {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
    margin-bottom: 0.25rem;
}

.autofill-notification.active {
    display: flex;
}

.autofill-notification i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes slideDown {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.form-highlight-glow {
    animation: borderGlowPulse 2.0s ease-out;
}

@keyframes borderGlowPulse {
    0% { box-shadow: var(--shadow-premium), 0 0 0px rgba(6, 182, 212, 0); border-color: rgba(138, 43, 226, 0.15); }
    30% { box-shadow: var(--shadow-premium), 0 0 40px rgba(6, 182, 212, 0.6); border-color: var(--color-secondary); }
    100% { box-shadow: var(--shadow-premium), var(--shadow-glow-purple); border-color: rgba(138, 43, 226, 0.15); }
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: var(--transition-fast);
    resize: none;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

/* Success box styling */
.contact-success-box {
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-icon-container {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-success);
    margin-bottom: 0.5rem;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-container i {
    width: 32px;
    height: 32px;
}

.contact-success-box h3 {
    font-size: 1.5rem;
    color: #ffffff;
}

.contact-success-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.success-followup {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ==========================================
   TRUST BAR SECTION
   ========================================== */
.trust-bar-section {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

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

.trust-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.trust-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.trust-logo:hover {
    opacity: 1;
    color: var(--color-secondary);
}

}

/* ==========================================
   PROCESS SECTION
   ========================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-step-card {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.process-step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(147, 51, 234, 0.25);
    box-shadow: var(--shadow-premium), var(--shadow-glow-purple);
}

.process-number {
    font-size: 3.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.08;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

.process-step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    padding-right: 2.5rem;
}

.process-step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================
   GUARANTEE CARD
   ========================================== */
.guarantee-card {
    margin-top: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: start;
    padding: 1.75rem;
    border-color: rgba(34, 197, 94, 0.2) !important;
    background: rgba(34, 197, 94, 0.02) !important;
}

.guarantee-card:hover {
    border-color: rgba(34, 197, 94, 0.35) !important;
    background: rgba(34, 197, 94, 0.04) !important;
}

.guarantee-icon {
    color: var(--color-success);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.guarantee-content h4 {
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.guarantee-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}


/* ==========================================
   ATTRIBUTION MODEL SIMULATOR
   ========================================== */
.model-simulator {
    padding: 3rem;
    margin-top: 4rem;
}

.simulator-journey {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.journey-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.journey-timeline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.journey-node {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
    opacity: 0.45;
}

.journey-node i {
    width: 15px;
    height: 15px;
}

.journey-connector {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.journey-node.active {
    opacity: 1;
    color: #ffffff;
}

#journey-node-fb.active {
    background: rgba(147, 51, 234, 0.12);
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.2);
}

#journey-node-email.active {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

#journey-node-google.active {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.simulator-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    flex-wrap: wrap;
}

.sim-model-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.simulator-explanation {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 0 1rem;
    min-height: 4.5rem;
}

@media (max-width: 768px) {
    .journey-connector {
        display: none;
    }
    .journey-timeline {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    .journey-node {
        width: 100%;
        justify-content: center;
    }
}

.simulator-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.channel-sim-card {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.channel-header-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.chan-icon {
    width: 24px;
    height: 24px;
}

.chan-icon.fb { color: #1877f2; }
.chan-icon.google { color: var(--color-secondary); }
.chan-icon.email { color: var(--color-accent); }

.channel-bar-wrapper {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.channel-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.channel-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chan-percent {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.chan-credit {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

/* ==========================================
   HASHING SIMULATOR
   ========================================== */
.hashing-simulator {
    padding: 3rem;
}

.hash-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.hash-inputs {
    padding-right: 1rem;
}

.hash-inputs input[type="email"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.hash-inputs input[type="email"]:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.hash-form {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.hash-output {
    background: #04050a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

/* JSON Terminal Syntax Highlighting */
.json-key { color: #f472b6; font-weight: 500; }      /* Pink/Magenta keys */
.json-string { color: #34d399; }   /* Emerald green string values */
.json-number { color: #f59e0b; }   /* Amber yellow number values */
.json-boolean { color: #60a5fa; }  /* Blue boolean values */
.json-null { color: #c084fc; }     /* Purple null values */
.json-comment { color: #6b7280; font-style: italic; } /* Gray comments */

/* ==========================================
   FLOATING ROAS ALERT BUBBLE
   ========================================== */
.roas-alert-bubble {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    padding: 1.25rem;
    border-radius: 12px;
    max-width: 320px;
    display: flex;
    gap: 1rem;
    align-items: start;
    box-shadow: var(--shadow-premium), var(--shadow-glow-cyan);
    border-color: rgba(6, 182, 212, 0.2) !important;
    background: rgba(6, 7, 19, 0.85) !important;
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
}

.roas-alert-bubble.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.alert-trend-icon {
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

.alert-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alert-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.alert-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================
   RESPONSIVE LAYOUTS (MOBILE & TABLET)
   ========================================== */
@media (max-width: 1150px) {
    .hero-grid, .calculator-grid, .case-content-grid, .aeo-grid, .contact-grid, .process-grid, .simulator-channels-grid, .hash-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual, .case-graph {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }
    
    .silo-details-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Collapse Navbar to Hamburger on Tablet & below */
    .mobile-nav-toggle {
        display: block;
    }
    
    .roas-alert-bubble {
        display: none !important;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 7, 19, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-premium);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .nav-menu .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .framework-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .trust-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .trust-logos {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .silo-children-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .case-results-badges {
        grid-template-columns: 1fr;
    }

    /* Padding reductions for visual containers on mobile */
    .model-simulator,
    .hashing-simulator,
    .case-spotlight,
    .calculator-inputs,
    .calculator-results,
    .audit-wrapper,
    .contact-form-container {
        padding: 1.5rem !important;
    }

    /* Case study switcher buttons padding on mobile */
    .case-tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Modeling Simulator controls vertical stack */
    .simulator-controls {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1rem;
    }

    .sim-model-btn {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* Stack hashing inputs vertically on mobile */
    .hash-form {
        flex-direction: column;
    }

    .hash-inputs {
        padding-right: 0;
    }
}
