/* ===== PAIRFORM AI - HIGH-END ENTERPRISE THEME ===== */
/* v4.0 - Stripe/Linear Aesthetic */

:root {
    /* === Core High-End Palette === */
    --bg-page: #F1F5F9;
    /* Slate 100 - Main Background */
    --bg-surface: #FFFFFF;
    /* Pure White - Cards/Sections */
    --bg-tertiary: #E2E8F0;
    /* Slate 200 - Dividers */

    /* Noise Texture (Data URI) */
    --bg-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");

    /* === Typography & Text === */
    --font-heading: 'Outfit', -apple-system, system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --text-main: #0F172A;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-muted: #64748B;
    /* Slate 500 */
    --text-micro: #94A3B8;
    /* Slate 400 */

    /* === Accents === */
    --accent-primary: #2563EB;
    /* Royal Blue */
    --accent-glow: rgba(37, 99, 235, 0.2);
    --accent-orange: #F97316;
    /* For CTA overlap if needed */

    --status-success: #10B981;
    --status-warning: #F59E0B;

    /* === Spacing & Grid (Responsive) === */
    --unit: 8px;
    --space-1: calc(var(--unit) * 1);
    --space-2: calc(var(--unit) * 1.5);
    --space-3: calc(var(--unit) * 2);
    --space-4: calc(var(--unit) * 3);
    --space-6: calc(var(--unit) * 4);
    --space-8: calc(var(--unit) * 5);
    --space-12: clamp(2.5rem, 8vw, 4rem);
    /* Responsive Section Spacing */
    --container-width: 1200px;
    --nav-height: 70px;

    /* === Borders & Shadows === */
    --border-light: 1px solid rgba(0, 0, 0, 0.06);
    --border-hover: 1px solid rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px -10px var(--accent-glow);

    /* === Motion === */
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-elastic: cubic-bezier(0.5, 1.25, 0.4, 1);

    /* === Glassmorphism System === */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --glass-dark-bg: rgba(15, 23, 42, 0.8);
    --glass-dark-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-dark-blur: blur(16px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

.glass-card-dark {
    background: var(--glass-dark-bg);
    backdrop-filter: var(--glass-dark-blur);
    -webkit-backdrop-filter: var(--glass-dark-blur);
    border: var(--glass-dark-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-heading);
    /* Keeping Outfit as primary */
    font-weight: 400;
    line-height: 1.6;
}

/* Noise Overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--bg-noise);
    opacity: 0.6;
    pointer-events: none;
    z-index: 9999;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.micro-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: var(--space-2);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), #60A5FA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== UTILITIES ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section-padding {
    padding: var(--space-12) 0;
}

/* ===== NAVIGATION (System Style) ===== */
.system-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    justify-content: space-between;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: height 0.3s ease, background 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
}

.nav-brand img {
    height: 32px;
    width: auto;
}

.mobile-hamburger {
    display: none;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.nav-modules {
    display: flex;
    gap: var(--space-1);
}

.nav-module {
    padding: var(--space-1) var(--space-2);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-module:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
}

.nav-module.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-primary);
    font-weight: 500;
}

.module-icon {
    font-size: 1.1em;
}

/* Special characters */

.nav-cta {
    background: var(--text-main);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.nav-login {
    background: transparent;
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--accent-primary);
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-login:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

/* ===== CUSTOM LANGUAGE SELECTOR ===== */
.translate-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Language Button */
.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-page);
    color: var(--text-main);
}

.language-btn .globe-icon {
    font-size: 1.1rem;
}

.language-btn .current-lang {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.language-btn .dropdown-arrow {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.translate-container.open .language-btn .dropdown-arrow {
    transform: rotate(180deg);
}

/* Language Dropdown Menu */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.translate-container.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
}

.language-option:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-primary);
}

.language-option.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-primary);
    font-weight: 500;
}

.language-option .flag {
    font-size: 1.2rem;
}

.language-option .lang-name {
    flex: 1;
}

.language-option .check-icon {
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.language-option.active .check-icon {
    opacity: 1;
}

/* Hide default Google Translate elements and prevent flicker */
#google_translate_element,
.goog-te-gadget,
.goog-te-banner-frame,
.goog-te-banner,
.goog-te-balloon-frame,
.goog-te-menu-frame,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

body,
html {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Specific fix for the Google Translate banner iframe */
iframe.goog-te-banner-frame {
    display: none !important;
}

/* Hide the "original text" tooltip on hover */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ===== HERO SECTION (Index) ===== */
.hero-section {
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-12);
    border-bottom: var(--border-light);
    background: var(--bg-surface);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-title {
    margin-bottom: var(--space-3);
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
    max-width: 480px;
}

.hero-visual {
    height: 500px;
    background: var(--bg-surface);
    position: relative;
    border-radius: 24px;
    /* Canvas fills this */
}

#hero-canvas {
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s var(--ease-elastic);
}

/* Magnetic Button Style */
.btn-magnetic {
    background: var(--accent-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: 100px;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-magnetic:hover {
    box-shadow: 0 8px 15px -3px rgba(37, 99, 235, 0.4);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
}

.btn-primary:hover {
    background: #1D4ED8;
}

/* ===== SERVICES LIST SECTION ===== */
.section-services {
    padding: var(--space-12) 0;
}

.section-header {
    text-align: left;
    margin-bottom: var(--space-8);
}


.services-list {
    border-top: var(--border-light);
}

.service-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: var(--border-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-items: center;
}

.service-row:hover {
    background-color: white;
}

.service-index {
    font-family: var(--font-mono);
    color: var(--text-micro);
    font-size: 12px;
}

.service-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.service-info p {
    font-size: 0.95rem;
    margin: 0;
}

.service-action {
    opacity: 0;
    transform: translateX(-10px);
    color: var(--accent-primary);
    font-weight: 700;
    transition: all 0.3s var(--ease-elastic);
}

.service-row:hover .service-action {
    opacity: 1;
    transform: translateX(0);
}


/* ===== LEGACY / SUB-PAGE COMPATIBILITY ===== */
/* Restoring .infrastructure-grid and .infra-card styles for sub-pages */

.section-infrastructure {
    padding: var(--space-12) 0;
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
}

.infra-card {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 12px;
    padding: var(--space-6);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.infra-card:hover {
    border: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card-status {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.1);
    /* Green tint */
    color: var(--status-success);
    text-transform: uppercase;
}

.card-metrics {
    margin-top: var(--space-6);
    display: flex;
    gap: var(--space-6);
    border-top: var(--border-light);
    padding-top: var(--space-4);
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: white;
    border-top: var(--border-light);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-links {
    display: flex;
    gap: var(--space-8);
}

.footer-column h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

.footer-column a {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: var(--border-light);
    padding-top: var(--space-6);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.legal-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.desktop-separator {
    color: var(--bg-tertiary);
    font-size: 0.8em;
}

/* Animations (GSAP handles initial state dynamically to avoid invisible text on failure) */
.reveal,
.reveal-stagger>* {
    will-change: opacity, transform;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    padding: var(--space-8);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: var(--border-light);
    border-radius: 6px;
    font-family: inherit;
    background: var(--bg-page);
}

.form-group input:focus {
    outline: 2px solid var(--accent-primary);
    border-color: transparent;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Grid overlay for debugging or texture - hiding standard grid lines */
.grid-bg {
    display: none;
}

/* ===== PAGE HEADER (Sub-pages) ===== */
.page-header {
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-8);
    background: var(--bg-surface);
    border-bottom: var(--border-light);
}

.page-header h1 {
    margin-bottom: var(--space-3);
}

.page-intro {
    font-size: 1.125rem;
    max-width: 600px;
    color: var(--text-secondary);
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 8px;
    border: var(--border-light);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    overflow: hidden;
}

.hero-visual-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== TRUST SECTION ===== */
.section-trust {
    background: var(--bg-surface);
    border-bottom: var(--border-light);
    padding: var(--space-8) 0;
}

.trust-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.trust-logo {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.6;
}

/* ===== METHODOLOGY SECTION ===== */
.section-methodology {
    background: var(--bg-surface);
}

.section-header.center {
    text-align: center;
}

.section-header.center p {
    max-width: 500px;
    margin: var(--space-2) auto 0;
}

.methodology-steps {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.method-step {
    flex: 1;
    text-align: center;
    padding: var(--space-4);
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    right: var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-micro);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.method-step h4 {
    margin-bottom: var(--space-1);
}

.method-step p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===== STATS SECTION ===== */
.section-stats {
    background: var(--text-main);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.section-cta {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1D4ED8 100%);
}

.cta-box {
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.cta-box h2 {
    color: white;
    margin-bottom: var(--space-3);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
}

.cta-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.section-footer {
    margin-top: var(--space-6);
    text-align: center;
}

/* ===== ABOUT PAGE ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.content-text h2 {
    margin-bottom: var(--space-4);
}

.value-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.value-card {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 12px;
    padding: var(--space-4);
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}

.value-icon {
    font-size: 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.value-card h4 {
    margin-bottom: 4px;
}

.value-card p {
    margin: 0;
    font-size: 0.9rem;
}

.section-vision {
    background: var(--bg-tertiary);
}

.vision-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.vision-box h2 {
    margin-bottom: var(--space-4);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.benefit-card {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 12px;
    padding: var(--space-6);
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
}

.team-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.team-value {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 12px;
    padding: var(--space-6);
    text-align: center;
}

/* ===== SERVICES DETAIL PAGE ===== */
.service-detail {
    border-bottom: var(--border-light);
    padding: var(--space-8) 0;
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.3;
    line-height: 1;
}

.service-tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-8);
}

.service-benefits h4 {
    margin-bottom: var(--space-3);
    color: var(--text-main);
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    padding: var(--space-2) 0;
    border-bottom: var(--border-light);
    color: var(--text-secondary);
}

.benefit-list li:last-child {
    border-bottom: none;
}

/* ===== CASE STUDIES ===== */
.case-study {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 16px;
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: var(--border-light);
}

.case-client {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.case-logo {
    font-size: 2rem;
    background: rgba(37, 99, 235, 0.1);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.case-client h3 {
    margin-bottom: 4px;
}

.case-industry {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.case-type {
    background: var(--accent-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.case-challenge h4,
.case-solution h4 {
    margin-bottom: var(--space-2);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.case-results h4 {
    margin-bottom: var(--space-4);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.result-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-page);
    border-radius: 12px;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== TESTIMONIALS ===== */
.section-testimonials {
    background: var(--bg-tertiary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.testimonial-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: var(--space-6);
    border: var(--border-light);
}

.testimonial-content {
    margin-bottom: var(--space-4);
    font-style: italic;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.blog-card {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card.featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.blog-image {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #60A5FA 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card.featured .blog-image {
    height: auto;
    min-height: 250px;
}

.blog-emoji {
    font-size: 4rem;
}

.blog-content {
    padding: var(--space-4);
}

.blog-category {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.blog-card h2,
.blog-card h3 {
    margin-bottom: var(--space-2);
}

.blog-meta {
    display: flex;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--space-3);
}

.newsletter-box {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: var(--space-8);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: var(--border-light);
}

.newsletter-form {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: var(--border-light);
    border-radius: 8px;
    font-family: inherit;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-8);
}

.contact-form-wrapper {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 16px;
    padding: var(--space-6);
}

.contact-form-wrapper h2 {
    margin-bottom: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: var(--border-light);
    border-radius: 6px;
    font-family: inherit;
    background: var(--bg-page);
    resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-primary);
    border-color: transparent;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.info-card {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 12px;
    padding: var(--space-4);
}

.info-card.highlight {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1D4ED8 100%);
    color: white;
    border: none;
}

.info-card.highlight h3,
.info-card.highlight p {
    color: white;
}

.info-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: var(--space-2);
}

.info-card h3 {
    margin-bottom: 4px;
}

.info-card p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--space-3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

    .hero-grid,
    .content-grid,
    .service-detail-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .methodology-steps {
        flex-wrap: wrap;
    }

    .method-step {
        flex: 1 1 45%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid,
    .team-values,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card.featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    :root {
        --nav-height: 60px;
        --space-4: 1.5rem;
        --space-6: 2rem;
        --space-8: 2.5rem;
        --space-12: 3rem;
    }

    .system-nav {
        padding: 0 var(--space-3);
    }

    .nav-brand span {
        font-size: 1rem;
    }

    .nav-brand img {
        height: 24px;
    }

    .nav-modules {
        display: none;
    }

    .nav-actions {
        gap: var(--space-2);
    }

    .nav-login,
    .nav-cta {
        padding: 6px 12px;
        font-size: 0.75rem;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-section {
        padding-top: calc(var(--nav-height) + var(--space-6));
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-visual {
        height: 280px;
        margin-top: var(--space-4);
    }

    .methodology-steps,
    .stats-grid,
    .benefits-grid,
    .team-values,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
    }

    .method-step {
        flex: 1 1 100%;
    }

    .blog-card.featured {
        grid-column: span 1;
    }

    .results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--space-4);
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        display: none;
    }

    .nav-cta {
        display: none !important;
        /* Force hide in favor of mobile menu */
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .container {
        padding: 0 var(--space-4);
    }
}

/* ===== HERO IMAGE ANIMATION ===== */
/* Animated hero image with flowing data effect */
.hero-animate {
    animation: heroFloat 6s ease-in-out infinite, heroGlow 4s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(37, 199, 235, 0.3));
}

/* Gentle floating animation */
@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

/* Pulsing glow animation around the sphere */
@keyframes heroGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(37, 199, 235, 0.3)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(37, 199, 235, 0.5)) drop-shadow(0 0 60px rgba(168, 85, 247, 0.4));
    }
}

/* Container with data flow particles */
.hero-visual-inner {
    position: relative;
    overflow: visible;
}

.hero-visual-inner::before {
    content: "";
    position: absolute;
    inset: -20px;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 199, 235, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 30%);
    animation: dataFlowPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    border-radius: 24px;
}

@keyframes dataFlowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Shimmer effect for data flow visualization */
.hero-visual::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 24px;
}

@keyframes shimmer {

    0%,
    100% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        left: 200%;
        opacity: 1;
    }

    60%,
    100% {
        opacity: 0;
    }
}

/* Floating particles effect (documents flowing) */
.hero-visual-inner::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(2px 2px at 10% 30%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 15% 45%, rgba(37, 199, 235, 0.8), transparent),
        radial-gradient(3px 3px at 8% 60%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 20% 25%, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(2px 2px at 5% 55%, rgba(255, 255, 255, 0.5), transparent);
    animation: particleFlow 5s linear infinite;
    pointer-events: none;
    opacity: 0.8;
    border-radius: 24px;
}

@keyframes particleFlow {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }
}

/* ===== LOGIN SIDEBAR ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.sidebar-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== MOBILE NAVIGATION MENU ===== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: pointer;
}

.mobile-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2002;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: var(--border-light);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-main);
}

.mobile-menu-content {
    flex: 1;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-8);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    transform: translateX(4px);
}

.mobile-nav-item.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-primary);
}

.mobile-nav-item .module-icon {
    font-size: 1.2rem;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: var(--border-light);
}

.login-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 2000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.login-sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: var(--border-light);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-page);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: var(--bg-tertiary);
}

.sidebar-content {
    flex: 1;
    padding: var(--space-6);
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-logo span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.login-sidebar .form-group {
    margin-bottom: var(--space-4);
}

.login-sidebar .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.login-sidebar .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-page);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-sidebar .form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-sidebar .form-error {
    color: #EF4444;
    font-size: 0.875rem;
    margin: var(--space-2) 0;
    min-height: 20px;
}

.sidebar-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: var(--border-light);
    text-align: center;
}

.sidebar-footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.sidebar-footer a {
    color: var(--accent-primary);
    font-weight: 500;
}

.demo-hint {
    margin-top: var(--space-6);
    padding: var(--space-3);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.demo-hint p {
    margin: 0 0 4px 0;
    font-size: 0.75rem;
}

/* ===== SIDEBAR DEMO ACCOUNTS ===== */
.sidebar-demo-accounts {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: var(--border-light);
}

.sidebar-admin-toggle {
    width: 100%;
    padding: 10px 12px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.sidebar-admin-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.sidebar-admin-password {
    margin-top: var(--space-2);
    display: flex;
    gap: var(--space-2);
}

.sidebar-admin-password input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.85rem;
}

.sidebar-admin-password button {
    padding: 8px 16px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.sidebar-admin-password button:hover {
    background: #1D4ED8;
}

.sidebar-admin-credentials {
    margin-top: var(--space-3);
    padding: var(--space-3);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
}

.sidebar-admin-credentials p {
    font-size: 0.75rem;
    margin-bottom: var(--space-1);
    color: var(--text-secondary);
}

.sidebar-admin-credentials p:last-child {
    margin-bottom: 0;
}

.sidebar-reset-section {
    margin-top: var(--space-3);
    text-align: center;
}

.sidebar-reset-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.sidebar-reset-btn:hover {
    color: var(--text-secondary);
}

/* ===== AUTH CONTAINER & USER MENU ===== */
.auth-container {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent-primary), #1D4ED8);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-menu-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.user-avatar {
    font-size: 1.1rem;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-page);
}

.logout-btn {
    color: #EF4444;
    border-top: var(--border-light);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.05);
}

/* Button as nav-login */
button.nav-login {
    background: transparent;
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

button.nav-login:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .login-sidebar {
        width: 100%;
        right: 0;
        transform: translateX(100%);
    }

    /* Scaling fixes for login screen */
    .sidebar-header {
        padding: var(--space-2) var(--space-3);
    }

    .sidebar-header h2 {
        font-size: 1rem;
    }

    .sidebar-content {
        padding: var(--space-3);
    }

    .sidebar-logo {
        margin-bottom: var(--space-4);
        gap: var(--space-1);
    }

    .sidebar-logo img {
        height: 24px;
    }

    .sidebar-logo span {
        font-size: 0.9rem;
    }

    /* Login & CTA button scaling in nav */
    .nav-login {
        padding: 6px 12px;
        font-size: 0.75rem;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .nav-cta {
        padding: 6px 12px;
        font-size: 0.75rem;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .mobile-hamburger {
        display: block;
        margin-right: -4px;
    }

    .nav-brand {
        gap: 6px;
    }

    .nav-brand span {
        display: block;
        font-size: 0.85rem;
        font-weight: 700;
        /* Hidden on very small screens in the 480px block above */
    }

    .nav-brand img {
        height: 28px;
        /* Slightly smaller logo */
    }

    .nav-modules {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    /* More compact buttons */
    .nav-login,
    .nav-cta {
        padding: 4px 10px;
        font-size: 0.7rem;
        height: 32px;
    }

    .system-nav {
        height: var(--nav-height);
    }

    .hero-section {
        padding-top: calc(var(--nav-height) + var(--space-6));
        padding-bottom: var(--space-6);
    }

    .hero-title {
        font-size: 1.75rem !important;
        margin-bottom: var(--space-2);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--space-4);
    }

    .section-padding {
        padding: var(--space-6) 0;
    }

    .mobile-nav-item {
        padding: var(--space-2) var(--space-3);
        font-size: 0.85rem;
        border-right: 3px solid transparent;
        /* Reserve space */
        transition: all 0.2s ease;
    }

    .mobile-nav-item.active {
        background: rgba(30, 64, 175, 0.08);
        /* Subtle cobalt tint */
        color: var(--accent-primary);
        border-right-color: var(--accent-primary);
        font-weight: 600;
    }

    .mobile-menu-header {
        padding: var(--space-3);
    }

    .login-sidebar .sidebar-content {
        overscroll-behavior: contain;
    }

    .login-sidebar .form-group input {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .sidebar-admin-toggle {
        padding: 6px 8px;
        font-size: 0.7rem;
    }

    .user-name {
        display: none;
    }

    .user-menu-trigger {
        padding: 4px 8px;
    }
}

/* ===== ROI CALCULATOR ===== */
.section-roi-calculator {
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface) 100%);
}

.roi-calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.roi-calculator-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.roi-calculator-header h2 {
    font-size: 2rem;
    margin-bottom: var(--space-2);
}

.roi-calculator-header p {
    color: var(--text-secondary);
}

.roi-calculator {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 20px;
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.calculator-inputs {
    display: grid;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.calculator-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.calculator-input-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.roi-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--accent-primary) 0%, var(--accent-primary) 50%, var(--bg-tertiary) 50%, var(--bg-tertiary) 100%);
    outline: none;
    transition: background 0.2s ease;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.roi-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.slider-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.calculator-results .result-card {
    background: var(--bg-page);
    border-radius: 12px;
    padding: var(--space-4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-results .result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.calculator-results .result-card.primary {
    background: linear-gradient(135deg, var(--accent-primary), #1D4ED8);
    color: white;
}

.calculator-results .result-card.primary .result-label,
.calculator-results .result-card.primary .result-value {
    color: white;
}

.calculator-results .result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.calculator-results .result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.calculator-cta {
    text-align: center;
}

/* ===== QUICK DEMO SECTION ===== */
.section-demo {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.demo-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.demo-content .micro-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #60A5FA;
}

.demo-content h2 {
    color: white;
    margin-bottom: var(--space-2);
}

.demo-content p {
    color: rgba(255, 255, 255, 0.7);
}

.demo-credentials {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--space-6);
}

.demo-credentials h4 {
    color: white;
    margin-bottom: var(--space-4);
    font-size: 1rem;
}

.credential-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

.credential-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    min-width: 120px;
}

.credential-row code {
    background: rgba(37, 99, 235, 0.2);
    color: #60A5FA;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-results {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    /* ROI Compact Overrides */
    .roi-calculator {
        padding: var(--space-5) var(--space-4);
        border-radius: 12px;
    }

    .calculator-inputs {
        gap: var(--space-4);
        margin-bottom: var(--space-6);
    }

    .calculator-results .result-card {
        padding: var(--space-3);
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .calculator-results .result-label {
        margin-bottom: 0;
        font-size: 0.8rem;
    }

    .calculator-results .result-value {
        font-size: 1.1rem;
    }

    .efficiency-game {
        padding: var(--space-4);
    }

    .demo-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .credential-row {
        justify-content: center;
    }
}

/* ===== POWER CASE CARDS ===== */
.power-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.power-case-card {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 20px;
    padding: clamp(var(--space-4), 5vw, var(--space-8));
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
}

.power-case-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), #60A5FA);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.power-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.power-case-card:hover::before {
    opacity: 1;
}

.power-case-sector {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.power-case-headline {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.power-case-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.power-case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: var(--border-light);
    margin-top: auto;
}

.power-case-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.power-case-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
}

.power-case-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.2;
    margin-top: 4px;
    word-wrap: break-word;
    display: block;
}

@media (max-width: 1024px) {
    .power-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== COMING SOON BANNER ===== */
.coming-soon-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    border: 2px dashed var(--accent-primary);
    border-radius: 16px;
    padding: var(--space-8);
    text-align: center;
    margin-top: var(--space-8);
}

.coming-soon-banner h3 {
    color: var(--accent-primary);
    margin-bottom: var(--space-2);
}

.coming-soon-banner p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== SOCIAL PROOF BOX ===== */
.social-proof-box {
    background: linear-gradient(135deg, var(--status-success) 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-proof-box .proof-icon {
    font-size: 2rem;
}

.social-proof-box .proof-text {
    font-weight: 600;
}

/* ===== ROI FIRST PHILOSOPHY ===== */
.philosophy-box {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(37, 99, 235, 0.02) 100%);
    border: var(--border-light);
    border-left: 4px solid var(--accent-primary);
    border-radius: 12px;
    padding: var(--space-6);
    margin: var(--space-6) 0;
}

.philosophy-box h3 {
    color: var(--accent-primary);
    margin-bottom: var(--space-2);
}

.philosophy-box p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== SERVICE PACKAGES ===== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.package-card {
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 20px;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--ease-smooth);
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.package-card.featured {
    border: 2px solid var(--accent-primary);
    position: relative;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.02) 0%, var(--bg-surface) 100%);
}

.package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.package-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.package-tag {
    background: var(--accent-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.package-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.package-subtitle {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-4);
}

.package-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
    flex: 1;
}

.package-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-tertiary);
    font-size: 0.95rem;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-result {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-page);
    border-radius: 8px;
    margin-bottom: var(--space-4);
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.package-result .result-icon {
    font-size: 1.25rem;
}

.package-card .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-main);
    color: white;
    padding: var(--space-4) var(--space-6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.cookie-consent-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    flex: 1;
    max-width: 700px;
}

.cookie-content h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-1);
    font-weight: 600;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: #60A5FA;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #93C5FD;
}

.cookie-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--accent-primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Footer cookie settings link */
.cookie-settings-link {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cookie-settings-link:hover {
    color: var(--accent-primary);
}

/* Responsive cookie banner */
@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-4);
        gap: var(--space-3);
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
    }
}

/* ===== COOKIE SETTINGS MODAL ===== */
.cookie-settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.cookie-settings-modal.active {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: var(--space-4);
}

.cookie-settings-header {
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: var(--border-light);
}

.cookie-settings-header h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.cookie-settings-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-settings-body {
    padding: var(--space-4) var(--space-6);
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: var(--border-light);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.cookie-option-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.cookie-option-info .required-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border-radius: 26px;
    transition: background 0.3s;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background: var(--accent-primary);
}

.cookie-toggle input:checked+.cookie-toggle-slider:before {
    transform: translateX(22px);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle input:disabled:checked+.cookie-toggle-slider {
    background: var(--status-success);
}

.cookie-settings-footer {
    padding: var(--space-4) var(--space-6);
    border-top: var(--border-light);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

.cookie-settings-footer .cookie-btn {
    min-width: 120px;
}

@media (max-width: 480px) {
    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
}

/* ===== ADMIN CREDENTIALS TOGGLE ===== */
.admin-credentials-toggle {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: var(--border-light);
}

.admin-toggle-btn {
    background: transparent;
    border: 1px dashed var(--text-muted);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.admin-toggle-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.admin-password-input {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.admin-password-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg-page);
}

.admin-password-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.admin-password-input button {
    padding: 8px 16px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-password-input button:hover {
    background: #1D4ED8;
}

.admin-credentials-content {
    margin-top: 16px;
    padding: 16px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ===== SIDEBAR ADMIN TOGGLE ===== */
.sidebar-demo-accounts {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: var(--border-light);
}

.sidebar-admin-toggle {
    background: transparent;
    border: 1px dashed var(--text-muted);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.sidebar-admin-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.sidebar-admin-password {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.sidebar-admin-password input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-page);
}

.sidebar-admin-password input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.sidebar-admin-password button {
    padding: 6px 12px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ===== ULTIMATE RESPONSIVE REFINEMENTS ===== */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column !important;
        width: 100%;
        max-width: 100% !important;
    }

    .newsletter-form input {
        width: 100% !important;
        margin-bottom: var(--space-2);
    }

    .newsletter-form .btn {
        width: 100% !important;
    }

    .coming-soon-banner,
    .newsletter-box,
    .package-card {
        padding: var(--space-4) !important;
    }

    /* Footer Grid Fix */
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6) var(--space-4);
        text-align: left;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: var(--space-6);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: var(--space-2);
    }

    .footer-column a {
        font-size: 0.85rem;
        padding: 2px 0;
        display: block;
    }

    /* Mobile Footer Bottom Refinement */
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--space-3);
    }

    .legal-nav {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }

    .desktop-separator {
        display: none;
    }

    .copyright {
        margin-bottom: var(--space-2);
        display: block;
    }

    /* Hide the pipes/separators on mobile to prevent weird wrapping */
    .footer-bottom p::after {
        content: none;
    }
}

@media (max-width: 400px) {
    .nav-actions .nav-login {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .nav-brand img {
        height: 24px;
    }

    h1 {
        font-size: 1.75rem !important;
    }
}

/* Ensure privacy and terms table are scrollable on all small devices */
.cookie-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-4);
}

.cookie-table {
    min-width: 500px;
}

/* Fix for the blog coming soon banner specifically */
.section-coming-soon .coming-soon-banner {
    padding: var(--space-6) var(--space-4);
    margin-left: var(--space-2);
    margin-right: var(--space-2);
}

/* ===== OUR STORY SECTION ===== */
.section-story {
    background: var(--bg-surface);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
    align-items: start;
}

.story-content h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-top: var(--space-3);
    margin-bottom: var(--space-4);
}

.story-lead {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-3);
}

.story-milestone {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    padding: var(--space-4);
    margin: var(--space-6) 0;
}

.milestone-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.milestone-content h4 {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-1);
}

.milestone-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.story-visual {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-4));
}

.story-values-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.story-value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    background: var(--bg-page);
    border: var(--border-light);
    border-radius: 12px;
    padding: var(--space-4);
    transition: all 0.3s var(--ease-smooth);
}

.story-value-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.story-value-item .value-number {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: 10px;
    border: var(--border-light);
}

.story-value-item h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: var(--space-1);
}

.story-value-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobile responsive for story section */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .story-visual {
        position: relative;
        top: 0;
    }

    .story-content h2 {
        font-size: 1.5rem;
    }

    .story-lead {
        font-size: 1.1rem;
    }

    .story-milestone {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }

    /* Google Translate Widget - Mobile */
    .translate-container {
        display: none;
    }
}

/* Google Translate Widget - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .translate-container::before {
        display: none;
    }

    .goog-te-gadget .goog-te-combo {
        padding: 5px 24px 5px 8px !important;
        font-size: 0.8rem !important;
    }
}

/* ===== CHANGELOG / ALERTS DROPDOWN ===== */
.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    position: relative;
    background: transparent;
}

.nav-icon-btn:hover,
.nav-icon-btn.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-primary);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    border: 2px solid white;
}

.changelog-container {
    position: relative;
    margin-right: var(--space-2);
}

.changelog-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -50px;
    /* Align slightly more to center relative to button */
    width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    z-index: 1001;
    display: none;
    /* Hidden by default */
    transform-origin: top right;
    animation: fadeInScale 0.2s ease-out;
}

.changelog-dropdown.active {
    display: block;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-light);
}

.changelog-header h3 {
    font-size: 1rem;
    margin: 0;
}

.changelog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    /* Removed max-height/overflow to let it grow naturally */
}

.changelog-item {
    padding: 0;
}

.changelog-link {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: var(--space-2);
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
}

.changelog-link:hover {
    background-color: var(--bg-tertiary);
    transform: translateX(2px);
}

.changelog-text h4 {
    font-size: 0.9rem;
    margin: 0 0 4px 0;
    color: var(--text-main);
    transition: color 0.2s;
}

.changelog-link:hover .changelog-text h4 {
    color: var(--accent-primary);
}

.changelog-text p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Badges */
.badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-top: 2px;
}

.badge-new {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-primary);
}

.badge-update {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.badge-fix {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}