@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Color variables from Boundry specs */
:root {
    --navy: #12213D;
    --accent: #2F6FED;
    --gray-neutral: #5B6472;
    --gray-light: #F2F3F5;
    --white: #FFFFFF;
    
    /* Cybersecurity Expanded Palette */
    --dark-slate: #0D192E;
    --frosted-gray: #E6E9EE;
    --safe-green: #10B981;
    --alert-red: #EF4444;
    
    /* Typography System */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    
    /* SaaS Status Badges (Soft, desaturated, B2B styling) */
    --status-success-bg: #E6F4EA;
    --status-success-text: #137333;
    --status-success-border: #CEEAD6;
    
    --status-error-bg: #FCE8E6;
    --status-error-text: #C5221F;
    --status-error-border: #FAD2CF;
}

*:focus {
    outline: none;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px !important;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body.nav-open {
    overflow: hidden !important;
    touch-action: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--gray-light);
    color: var(--navy);
    line-height: 1.5;
    /* Text Size 3: Body text (14px) */
    font-size: 0.875rem; 
}

.hero-section {
    padding: 5.5rem 2rem 5rem 2rem;
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
    border-bottom: 1px solid rgba(18, 33, 61, 0.15);
    width: 100%;
    box-sizing: border-box;
}

/* Header (Fixed/Sticky) */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(237, 235, 233, 0.8);
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo & Branding */
.brand-wrapper {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 2.25rem;
    width: 2.25rem;
    margin-right: 0.75rem; /* Protection zone */
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand {
    /* Text Size 1: Page Title (24px) */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: baseline;
}

.subbrand {
    /* Text Size 4: Legend / Small (12px) */
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-neutral);
    letter-spacing: normal;
    margin-left: 0.35rem;
}

.subtitle {
    /* Text Size 4: Legend / Small (12px) */
    font-size: 0.75rem;
    color: var(--gray-neutral);
    margin-top: 0.15rem;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Dashboard Cards */
.card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(18, 33, 61, 0.08);
    border-radius: 2px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(18, 33, 61, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 111, 237, 0.4);
    box-shadow: 0 12px 24px rgba(18, 33, 61, 0.05);
}

.card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.card:hover::before {
    top: 4px;
    left: 4px;
    opacity: 1;
}

.card:hover::after {
    bottom: 4px;
    right: 4px;
    opacity: 1;
}

.card-title {
    /* Text Size 2: Section Title (18px) */
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Links & Buttons */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #8A8886;
    border-radius: 2px;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    background-color: var(--white);
    color: #323130;
    transition: border-color 0.15s ease;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Microsoft Style Flat Title */
.premium-gradient-text {
    color: var(--navy);
    display: inline-block;
}


a:hover {
    color: #1e5ad4;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: var(--white);
    /* Text Size 3: Body (14px) */
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    border: 1px solid var(--accent);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    will-change: transform;
}

.btn:hover {
    background-color: #1e5ad4;
    border-color: #1e5ad4;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 111, 237, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--navy);
    border: 1px solid #8A8886;
    border-radius: 2px;
}

.btn-secondary:hover {
    background-color: var(--gray-light);
    border-color: #605E5C;
    color: var(--navy);
}

/* Table styles */
.table-container {
    overflow-x: auto;
    border: 1px solid #EDEBE9;
    border-radius: 2px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    /* Text Size 3: Body (14px) */
    font-size: 0.875rem;
}

th, td {
    padding: 0.875rem 1.25rem;
}

th {
    background-color: var(--gray-light);
    font-weight: 600;
    color: var(--gray-neutral);
    border-bottom: 1px solid #E2E8F0;
    text-transform: uppercase;
    /* Text Size 4: Small (12px) */
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

td {
    border-bottom: 1px solid #F0F2F5;
    color: var(--navy);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #F8FAFC;
}

/* Monospace output container */
pre {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    /* Text Size 4: Small (12px) */
    font-size: 0.75rem;
    color: var(--navy);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    /* Text Size 4: Small (12px) */
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pill.success {
    background-color: var(--status-success-bg);
    color: var(--status-success-text);
    border: 1px solid var(--status-success-border);
}

.status-pill.error {
    background-color: var(--status-error-bg);
    color: var(--status-error-text);
    border: 1px solid var(--status-error-border);
}

/* Empty State */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--gray-neutral);
}

.empty-state-title {
    /* Text Size 2: Section Title (18px) */
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* Utility classes */
.text-mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.text-muted {
    color: var(--gray-neutral);
}

.text-bold {
    font-weight: 600;
}

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

/* Alert styling inside tables */
.alert-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--status-error-bg);
    color: var(--status-error-text);
    border: 1px solid var(--status-error-border);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.alert-details {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--gray-neutral);
    background-color: #FAF9F9;
    border-left: 2px solid var(--status-error-text);
    padding: 0.35rem 0.6rem;
    border-radius: 0 0.25rem 0.25rem 0;
    line-height: 1.4;
}

.alert-details strong {
    color: var(--navy);
}

.alert-details span {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    background-color: var(--gray-light);
    padding: 0.05rem 0.2rem;
    border-radius: 0.15rem;
    word-break: break-all;
}

/* Navigation System */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}

.nav-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-neutral);
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-badge {
    background-color: var(--status-error-text);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 9999px;
    line-height: 1;
}

/* Statistics Grid for Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-neutral);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}

.stat-subtext {
    font-size: 0.75rem;
    color: var(--gray-neutral);
    margin-top: 0.15rem;
}

/* Severity/Risk Coloring */
.risk-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.risk-low {
    background-color: #E6F4EA;
    color: #137333;
    border: 1px solid #CEEAD6;
}

.risk-medium {
    background-color: #FEF7E0;
    color: #B06000;
    border: 1px solid #FFE0B2;
}

.risk-high {
    background-color: #FCE8E6;
    color: #C5221F;
    border: 1px solid #FAD2CF;
}


/* ---------------------------------------------------------------------------
   Boundry Expanded Design System & Marketing styles
   --------------------------------------------------------------------------- */

/* Font Family mappings */
h1, h2, h3, h4, h5, h6, .brand, .pricing-plan-title {
    font-family: var(--font-display);
}
.text-mono, pre, code {
    font-family: var(--font-mono);
}

body {
    font-family: var(--font-body);
    background-color: #F3F2F1;
    color: #323130;
}


/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Boundary Frame Signature Component (Microsoft Defender card with left color indicator) */
.boundary-frame {
    position: relative;
    border: 1px solid #EDEBE9;
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    padding: 2rem;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hide old custom corner decoration elements */
.boundary-frame::before,
.boundary-frame::after,
.boundary-frame .corner-bl,
.boundary-frame .corner-br {
    display: none !important;
}

.boundary-frame:hover {
    border-color: #EDEBE9;
    border-left-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}


/* Dark Slate Mode & Hero */
.bg-dark-slate {
    background-color: var(--gray-light);
    color: var(--navy);
}

.marketing-hero {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.marketing-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.marketing-hero p {
    font-size: 1.25rem;
    color: var(--gray-neutral);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Feature & Layout Grid */
.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-neutral);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pill-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgba(47, 111, 237, 0.1);
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

/* Trust Logos banner */
.trust-banner {
    padding: 3rem 2rem;
    background-color: var(--white);
    border-top: 1px solid var(--frosted-gray);
    border-bottom: 1px solid var(--frosted-gray);
    text-align: center;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3.5rem;
    margin-top: 1.5rem;
}

.trust-logo-item {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-neutral);
    letter-spacing: 0.05em;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.trust-logo-item:hover {
    opacity: 0.95;
}

/* Split layout columns */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 5rem 0;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-visual {
    flex: 1;
}

@media (max-width: 768px) {
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Pricing Grid & FAQ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    margin: 3rem 0;
}

.pricing-card {
    background-color: var(--white);
    border: 1px solid var(--frosted-gray);
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(47, 111, 237, 0.08);
}

.pricing-card.featured::after {
    content: 'CONSEILLÉ';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.05em;
}

.pricing-plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.pricing-plan-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.25rem 0;
}

.pricing-plan-price span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-neutral);
}

.pricing-features-list {
    list-style: none;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.pricing-features-list li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--gray-neutral);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features-list li::before {
    content: '✓';
    color: var(--status-success-text);
    font-weight: 700;
}

/* FAQ Accordion styled */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--frosted-gray);
    padding: 1.25rem 0;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 0.75rem;
    color: var(--gray-neutral);
    line-height: 1.6;
}

/* Architecture visualizer CSS */
.arch-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--frosted-gray);
    margin: 3rem 0;
}

.arch-node {
    flex: 1;
    background-color: var(--gray-light);
    border: 1px solid var(--frosted-gray);
    padding: 1.5rem;
    border-radius: 0.375rem;
    text-align: center;
    max-width: 250px;
    color: var(--navy);
}

.arch-node.active-sec {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(47, 111, 237, 0.2);
}

.arch-arrow {
    flex: 0.5;
    text-align: center;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 600px) {
    .arch-diagram {
        flex-direction: column;
        gap: 1.5rem;
    }
    .arch-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

/* Contact / Signup forms */
.auth-container {
    max-width: 450px;
    margin: 4rem auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    margin-bottom: 0.35rem;
}



/* Demo banner warning */
.demo-banner {
    background-color: #FEF7E0;
    border-bottom: 1px solid #FFE0B2;
    color: #B06000;
    padding: 0.5rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1000;
}

.boundary-frame {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(18, 33, 61, 0.08);
    border-radius: 2px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(18, 33, 61, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.boundary-frame:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 111, 237, 0.4);
    box-shadow: 0 12px 24px rgba(18, 33, 61, 0.05);
}

.boundary-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.boundary-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.boundary-frame:hover::before {
    top: 4px;
    left: 4px;
    opacity: 1;
}

.boundary-frame:hover::after {
    bottom: 4px;
    right: 4px;
    opacity: 1;
}

.premium-title-gradient {
    background: linear-gradient(135deg, var(--navy) 20%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(237, 235, 233, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(237, 235, 233, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Microsoft Security left-border indicators */
.boundary-frame.success {
    border-left: 4px solid var(--safe-green);
}
.boundary-frame.warning {
    border-left: 4px solid #F5A623;
}
.boundary-frame.error {
    border-left: 4px solid var(--alert-red);
}

/* Scroll Reveal Fade-in effect */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}



.demo-banner a {
    color: #B06000;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 0.5rem;
}

.page-auth {
    background: linear-gradient(135deg, rgba(243, 242, 241, 0.95) 0%, rgba(243, 242, 241, 0.92) 100%), url('/static/img/ms_security_banner_1787679223170.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* ==========================================================================
   Responsive Mobile & Tablet Design System
   ========================================================================== */

/* ==========================================================================
   Responsive Mobile & Tablet Design System (Smartphones & Touch Devices)
   ========================================================================== */

/* Global Mobile Guards against horizontal overflow */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Nav mobile actions container */
.nav-mobile-actions {
    display: none;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    color: var(--white);
}

.simulator-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

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

/* Nav toggle button (Accessible 44x44 tap target) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000001 !important;
    border-radius: 6px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-toggle:active {
    background: rgba(18, 33, 61, 0.08);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2.2px;
    background-color: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1),
.nav-toggle.active span:nth-child(1) { transform: translateY(7.2px) rotate(45deg); }
.nav-toggle.open span:nth-child(2),
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3),
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.2px) rotate(-45deg); }

/* Billing toggle container */
.billing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0 3.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM (Ultra-Clean, 100% Opaque, Modern UX)
   ========================================================================== */

@media (max-width: 900px) {

    /* ---- Header on Mobile & Tablet ---- */
    header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100000 !important;
        background-color: #FFFFFF !important;
        background: #FFFFFF !important;
        border-bottom: 1px solid #E5E7EB !important;
        padding: 0.75rem 1.25rem !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Hide desktop header action buttons on mobile */
    .header-actions {
        display: none !important;
    }

    /* Show hamburger toggle */
    .nav-toggle {
        display: flex !important;
    }

    /* Full-width 100% SOLID OPAQUE slide-down menu */
    .nav-links {
        display: none;
        position: fixed !important;
        top: 57px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        width: 100% !important;
        height: calc(100vh - 57px) !important;
        height: calc(100dvh - 57px) !important;
        background-color: #FFFFFF !important;
        background: #FFFFFF !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: 1px solid #E5E7EB !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 1rem 1.25rem 3rem 1.25rem !important;
        z-index: 999999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: none !important;
        animation: mobileNavFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes mobileNavFadeIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.open,
    .nav-links.active {
        display: flex !important;
    }

    .nav-links .nav-item {
        padding: 1.1rem 0.75rem !important;
        border-bottom: 1px solid #F1F5F9 !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        color: var(--navy) !important;
        width: 100% !important;
        text-align: left;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        border-radius: 6px;
        transition: background 0.15s, color 0.15s;
        box-sizing: border-box !important;
    }

    .nav-links .nav-item:active,
    .nav-links .nav-item:hover {
        background-color: #F8FAFC !important;
        color: var(--accent) !important;
    }

    .nav-links .nav-item.active {
        color: var(--accent) !important;
        font-weight: 700 !important;
    }

    .nav-mobile-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        margin-top: 1.5rem !important;
        padding-top: 1.25rem !important;
        border-top: 1px solid #E5E7EB !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .nav-mobile-actions .btn {
        width: 100% !important;
        min-height: 48px !important;
        padding: 0.85rem 1.25rem !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 8px rgba(18, 33, 61, 0.08) !important;
        box-sizing: border-box !important;
    }

    /* Brand Header Adjustments */
    .brand {
        font-size: 1.15rem !important;
    }
    .subbrand {
        display: inline-block !important;
        font-size: 0.75rem !important;
    }
    .subtitle {
        display: none !important;
    }

    /* ---- Hide raster watermark banner backgrounds on mobile (Eliminate text collision) ---- */
    .parallax-bg-wrapper,
    .ken-burns-bg,
    .hero-grid-overlay {
        display: none !important;
    }

    /* Hero section padding and dark gradient */
    .hero-section,
    section.hero-section,
    section[style*="background-color: var(--navy)"],
    section[style*="background-color: #12213D"],
    section[style*="background-color:#12213D"],
    .page-auth main,
    body.page-auth main {
        padding: 2.75rem 1.25rem 3.5rem 1.25rem !important;
        background: radial-gradient(circle at 50% 0%, #1A3668 0%, #12213D 65%, #0D192E 100%) !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* ---- Hero section responsive ---- */
    .hero-grid-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-grid-container .reveal {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-grid-container h1 {
        font-size: clamp(1.6rem, 6.8vw, 2.25rem) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.02em !important;
        margin: 0 0 1rem 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .hero-grid-container p {
        font-size: clamp(0.9rem, 3.8vw, 1.02rem) !important;
        line-height: 1.6 !important;
        margin: 0 auto 1.75rem auto !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        color: #CBD5E1 !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    .hero-actions-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .hero-actions-group .btn {
        width: 100% !important;
        min-height: 48px !important;
        justify-content: center !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        box-sizing: border-box !important;
    }

    /* Mockup console on mobile */
    .boundary-frame {
        padding: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Tabs inside console mockup */
    .mockup-tabs {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        scrollbar-width: none;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .mockup-tabs::-webkit-scrollbar {
        display: none;
    }
    .mockup-tabs button {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    /* ---- Section & grids responsive ---- */
    .simulator-grid-container {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1.75rem !important;
    }

    .marketing-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1.25rem !important;
    }

    .pricing-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1.5rem !important;
        margin: 1.5rem 0 !important;
    }

    .pricing-card {
        padding: 1.75rem 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .pricing-card .btn {
        min-height: 46px !important;
        font-size: 0.95rem !important;
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column !important;
        gap: 1.75rem !important;
    }

    .split-layout > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .container {
        padding: 0 1.25rem !important;
        margin: 1.25rem auto !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    section:not(.bnd-canvas-section):not(.bnd-royal-banner):not(.bnd-connect-section):not(.legal-hero):not(.cookie-hero) {
        padding: 2.5rem 1.15rem !important;
    }

    .section-title,
    .premium-title-gradient {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
    }

    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 1rem -1rem !important;
        padding: 0 1rem !important;
        width: calc(100% + 2rem) !important;
        border-radius: 0 !important;
    }

    table {
        min-width: 480px !important;
    }

    /* Forms on Mobile */
    .auth-container {
        margin: 1.5rem auto !important;
        padding: 0 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .auth-container .card {
        padding: 1.5rem 1.25rem !important;
        border-radius: 8px !important;
    }
}

/* ==============================================================================
   SPLIT-SCREEN AUTHENTICATION DESIGN SYSTEM (Boundry v2.7)
   ============================================================================== */

.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #FFFFFF;
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* LEFT VISUAL BRAND PANEL */
.auth-visual-col {
    flex: 0 0 45%;
    min-width: 420px;
    max-width: 600px;
    background: linear-gradient(150deg, #091224 0%, #101F38 45%, #0B162C 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.25rem 3rem;
    color: #FFFFFF;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-visual-col::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -15%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(47, 111, 237, 0.24) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.auth-visual-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 1;
}

/* Brand Boundary Geometric Brackets */
.auth-bracket-tl {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 24px;
    height: 24px;
    border-top: 2px solid rgba(47, 111, 237, 0.5);
    border-left: 2px solid rgba(47, 111, 237, 0.5);
    z-index: 2;
}

.auth-bracket-br {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 24px;
    height: 24px;
    border-bottom: 2px solid rgba(47, 111, 237, 0.5);
    border-right: 2px solid rgba(47, 111, 237, 0.5);
    z-index: 2;
}

.auth-visual-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.auth-brand-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.auth-brand-logo {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 2px 8px rgba(47, 111, 237, 0.35));
}

.auth-brand-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-brand-tagline {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-pitch-section {
    margin: auto 0;
    padding: 2rem 0;
}

.auth-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(47, 111, 237, 0.15);
    border: 1px solid rgba(47, 111, 237, 0.35);
    color: #60A5FA;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.auth-pitch-heading {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.auth-pitch-heading span {
    background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-pitch-desc {
    color: #94A3B8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Visual Trust Proof Cards */
.auth-trust-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.auth-trust-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2F6FED;
}

.auth-trust-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.auth-trust-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #F8FAFC;
}

.auth-live-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.auth-trust-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #64748B;
    background: rgba(0,0,0,0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.auth-compliance-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.auth-comp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.auth-visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64748B;
    font-size: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* RIGHT FORM PANEL */
.auth-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem;
    background-color: #FFFFFF;
    min-height: 100vh;
    overflow-y: auto;
}

.auth-form-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2rem;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748B;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-back-link:hover {
    color: #1E293B;
}

.auth-switch-link {
    font-size: 0.85rem;
    color: #64748B;
}

.auth-switch-link a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.25rem;
}

.auth-switch-link a:hover {
    text-decoration: underline;
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 1rem 0;
}

.auth-header-block {
    margin-bottom: 2rem;
}

.auth-header-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.auth-header-subtitle {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.5;
}

/* Alerts */
.auth-alert-error {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert-success {
    background-color: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #15803D;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Controls */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-field-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.auth-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.auth-field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E293B;
}

.auth-forgot-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

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

.auth-input-icon {
    position: absolute;
    left: 0.9rem;
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0.65rem 0.9rem 0.65rem 2.6rem;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.92rem;
    color: #0F172A;
    background-color: #FFFFFF;
    transition: all 0.18s ease;
    box-sizing: border-box;
}

.auth-input.no-icon {
    padding-left: 0.9rem;
}

.auth-input:focus {
    border-color: #2F6FED;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
    outline: none;
}

.auth-input::placeholder {
    color: #94A3B8;
}

.auth-form-container.wide {
    max-width: 560px;
}

.auth-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 640px) {
    .auth-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.auth-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #E2E8F0;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.auth-select {
    width: 100%;
    height: 46px;
    padding: 0.65rem 2.2rem 0.65rem 2.6rem;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    color: #0F172A;
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.18s ease;
    box-sizing: border-box;
}

.auth-select.no-icon {
    padding-left: 0.85rem;
}

.auth-select:focus {
    border-color: #2F6FED;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
    outline: none;
}

.auth-pwd-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.auth-pwd-toggle:hover {
    color: #475569;
}

/* Password Strength Meter */
.auth-pwd-strength {
    margin-top: 0.5rem;
}

.auth-pwd-bars {
    display: flex;
    gap: 4px;
    height: 4px;
    margin-bottom: 0.4rem;
}

.auth-pwd-bar-seg {
    flex: 1;
    border-radius: 2px;
    background-color: #E2E8F0;
    transition: background-color 0.25s ease;
}

.auth-pwd-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.5rem;
}

.auth-pwd-check-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.auth-pwd-check-item.valid {
    color: #059669;
    font-weight: 600;
}

.auth-pwd-check-item.valid svg {
    color: #059669;
}

/* Primary Button */
.auth-btn-primary {
    width: 100%;
    height: 48px;
    background-color: #2F6FED;
    color: #FFFFFF;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #2F6FED;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(47, 111, 237, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
}

.auth-btn-primary:hover {
    background-color: #2558BE;
    border-color: #2558BE;
    box-shadow: 0 4px 14px rgba(47, 111, 237, 0.35);
    transform: translateY(-1px);
}

.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(47, 111, 237, 0.2);
}

/* Separator / Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem;
    color: #94A3B8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #E2E8F0;
}

/* OAuth Placeholders */
.auth-oauth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.auth-oauth-btn {
    height: 42px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background-color: #F8FAFC;
    color: #64748B;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: not-allowed;
    position: relative;
    transition: border-color 0.15s ease;
}

.auth-oauth-btn:hover {
    border-color: #CBD5E1;
}

.auth-oauth-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    background: #0F172A;
    color: #94A3B8;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Legal Footer */
.auth-legal-footer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #94A3B8;
    text-align: center;
    line-height: 1.5;
}

.auth-legal-footer a {
    color: #64748B;
    text-decoration: underline;
    font-weight: 500;
}

.auth-legal-footer a:hover {
    color: #1E293B;
}

/* QR Code & MFA Boxes */
.auth-mfa-qr-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 1.25rem 0;
}

.auth-mfa-qr-card img {
    width: 180px;
    height: 180px;
    border-radius: 4px;
    display: block;
}

.auth-secret-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #0F172A;
}

.auth-secret-code {
    flex: 1;
    letter-spacing: 0.05em;
    user-select: all;
    overflow-x: auto;
    white-space: nowrap;
}

.auth-copy-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.15s ease;
}

.auth-copy-btn:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #94A3B8;
}

.auth-totp-input {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    text-align: center;
    font-weight: 700;
    height: 52px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 960px) {
    .auth-split-wrapper {
        flex-direction: column;
    }

    .auth-visual-col {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 2.25rem 1.75rem 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .auth-pitch-section {
        padding: 1.25rem 0 1rem;
    }

    .auth-pitch-heading {
        font-size: 1.45rem;
    }

    .auth-trust-card {
        display: none; /* Hide heavy card on mobile banner to prioritize form */
    }

    .auth-form-col {
        flex: none;
        width: 100%;
        padding: 2rem 1.5rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .auth-visual-col {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .auth-pitch-desc {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .auth-form-col {
        padding: 1.5rem 1.25rem;
    }

    .auth-header-title {
        font-size: 1.4rem;
    }

    .auth-input {
        font-size: 16px !important; /* Prevents iOS auto zoom */
        height: 46px;
    }

    .auth-oauth-grid {
        grid-template-columns: 1fr;
    }

    .auth-form-top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   BOUNDRY COOKIE & PRIVACY CONSENT BANNER
   ========================================================================== */
.boundry-cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 440px;
    width: calc(100vw - 32px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(18, 33, 61, 0.12), 0 8px 10px -6px rgba(18, 33, 61, 0.08);
    padding: 1.25rem 1.25rem 1.15rem 1.25rem;
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.boundry-cookie-banner.boundry-cookie-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.boundry-cookie-banner.boundry-cookie-hidden {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    pointer-events: none;
}

.boundry-cookie-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.boundry-cookie-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.boundry-cookie-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #EFF6FF;
    flex-shrink: 0;
}

.boundry-cookie-title {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #12213D;
    line-height: 1.2;
}

.boundry-cookie-text {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.825rem;
    line-height: 1.45;
    color: #475569;
    margin: 0;
}

.boundry-cookie-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
}

.boundry-cookie-link {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748B;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.boundry-cookie-link:hover {
    color: #12213D;
}

.boundry-cookie-btn {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.825rem;
    font-weight: 600;
    color: #FFFFFF;
    background: #2F6FED;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(47, 111, 237, 0.2);
}

.boundry-cookie-btn:hover {
    background: #1B4EB8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(47, 111, 237, 0.25);
}

.boundry-cookie-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .boundry-cookie-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}



/* ==========================================================================
   BOUNDRY GLOBAL SHOWCASE DESIGN SYSTEM (#256BEF Royal Blue + Windowed Canvas)
   ========================================================================== */
:root {
    --accent: #256BEF;
}

body {
    background-color: #FFFFFF;
    background-image: url('/static/img/bg_cyber_windows.svg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.auth-visual-col {
    background: #256BEF !important;
}

.auth-form-col {
    background-color: #FFFFFF !important;
    background-image: url('/static/img/bg_cyber_windows.svg') !important;
    background-size: cover !important;
    background-position: center !important;
}

.auth-header-title {
    color: #256BEF !important;
    font-weight: 800 !important;
}

.stat-card, .boundary-frame {
    border-color: #CFE0FE;
    background-color: rgba(255, 255, 255, 0.96);
}

@media (max-width: 820px) {
    .bnd-dash-showcase-banner {
        grid-template-columns: minmax(0, 1fr) !important;
        text-align: center;
    }
}

/* ==========================================================================
   BOUNDRY SMARTPHONE & MOBILE RESPONSIVE OVERHAUL (320px - 960px)
   ========================================================================== */

/* Hamburger Toggle Button & Slide-down Drawer for .bnd-topbar */
.bnd-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: #F0F6FF;
    border: 1.5px solid #256BEF;
    border-radius: 4px;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.bnd-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2.2px;
    background-color: #256BEF;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.bnd-topbar.menu-open .bnd-mobile-toggle span:nth-child(1) {
    transform: translateY(7.2px) rotate(45deg);
}
.bnd-topbar.menu-open .bnd-mobile-toggle span:nth-child(2) {
    opacity: 0;
}
.bnd-topbar.menu-open .bnd-mobile-toggle span:nth-child(3) {
    transform: translateY(-7.2px) rotate(-45deg);
}

.bnd-mobile-drawer {
    display: none;
    flex-direction: column;
    background: #FFFFFF;
    border-top: 1.5px solid #CFE0FE;
    border-bottom: 4px solid #256BEF;
    padding: 0.85rem 1.15rem 1.25rem;
    margin-top: 0.65rem;
    box-shadow: 0 14px 28px rgba(18, 33, 61, 0.12);
}

.bnd-mobile-drawer a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.5rem;
    color: #12213D;
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none;
    border-bottom: 1px solid #EEF2FF;
}

.bnd-mobile-drawer a:hover,
.bnd-mobile-drawer a.active {
    color: #256BEF;
}

.bnd-mobile-drawer-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.bnd-mobile-drawer-cta a {
    justify-content: center;
    text-align: center;
    padding: 0.7rem 0.75rem;
    border-radius: 3px;
    font-size: 0.88rem;
    font-weight: 800;
}

.bnd-mobile-drawer-cta a.drawer-btn-outline {
    background: #F0F6FF;
    border: 1.5px solid #256BEF;
    color: #256BEF;
}

.bnd-mobile-drawer-cta a.drawer-btn-solid {
    background: #256BEF;
    border: 1.5px solid #256BEF;
    color: #FFFFFF;
}

@media (max-width: 920px) {
    /* 1. Topbar Responsive Layout */
    .bnd-topbar {
        padding: 0.65rem 1rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10000 !important;
    }

    .bnd-topbar-links {
        display: none !important;
    }

    .bnd-topbar-cta {
        gap: 0.5rem !important;
    }

    .bnd-topbar-cta .bnd-btn-outline-top {
        display: none !important;
    }

    .bnd-topbar-cta .bnd-btn-solid-top {
        padding: 0.45rem 0.85rem !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    .bnd-mobile-toggle {
        display: inline-flex !important;
    }

    .bnd-topbar.menu-open .bnd-mobile-drawer {
        display: flex !important;
    }

    /* 2. Console Header Actions on Tablet/Mobile */
    .header-container .header-right-actions {
        display: none !important;
    }

    /* 3. Prevent Double Section Padding */
    .bnd-canvas-section {
        padding: 0 !important;
    }

    /* 4. Collapse All Multi-Column Showcase Layouts to 1 Column */
    .bnd-hero-container,
    .bnd-auth-split,
    .bnd-onboarding-split,
    .bnd-royal-banner-inner,
    .bnd-connect-inner,
    .bnd-live-tools-wrap,
    .bnd-pillar-row,
    .bnd-arch-grid,
    .bnd-features-grid,
    .bnd-trust-strip,
    .legal-hero-content,
    .cookie-hero-content,
    .bnd-dash-showcase-banner,
    .bnd-responsive-grid,
    .dashboard-layout,
    .dev-grid,
    .sandbox-layout,
    .settings-layout,
    .grid-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .bnd-hero-container,
    .bnd-auth-split,
    .bnd-onboarding-split {
        padding: 1.75rem 1.15rem 2.25rem !important;
        gap: 1.65rem !important;
    }

    /* On Auth & Onboarding pages, keep illustration compact on mobile */
    .bnd-auth-illus,
    .bnd-hero-illustration {
        max-width: 310px !important;
        margin: 0 auto !important;
    }

    .bnd-royal-banner,
    .bnd-connect-section {
        padding: 2.65rem 1.15rem !important;
    }

    .bnd-pillar-block,
    .bnd-features-section {
        padding: 2.5rem 1.15rem !important;
    }

    .bnd-pillar-row {
        padding: 1.4rem 1.15rem !important;
        margin-bottom: 1.35rem !important;
        gap: 1.35rem !important;
    }

    .bnd-royal-form-card,
    .bnd-royal-wizard-card {
        padding: 1.65rem 1.25rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Console Showcase Banner */
    .bnd-dash-showcase-banner {
        padding: 1.25rem 1.15rem !important;
        gap: 1.15rem !important;
        text-align: center !important;
    }

    .bnd-dash-showcase-banner img {
        max-width: 240px !important;
        margin: 0 auto !important;
    }

    /* Console KPI Stats Grid: 2x2 on Tablet/Large Phone */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
    }

    /* Demo Dashboard Sidebar on Mobile */
    .dashboard-layout .sidebar {
        border-right: none !important;
        border-bottom: 2px solid #CFE0FE !important;
        padding: 1rem !important;
    }
    .dashboard-layout .sidebar-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-top: 0.75rem !important;
    }
    .dashboard-layout .main-content {
        padding: 1.25rem 1rem !important;
        max-height: none !important;
    }

    /* Footer on Mobile */
    .bnd-clean-footer {
        padding: 1.75rem 1.15rem !important;
    }
    .bnd-clean-footer-inner {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.85rem !important;
    }
    .bnd-clean-footer-inner > div {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.65rem 1rem !important;
    }
}

@media (max-width: 560px) {
    /* Smartphones (320px - 560px) */
    .bnd-topbar {
        padding: 0.55rem 0.85rem !important;
    }

    .bnd-topbar-brand {
        font-size: 1.05rem !important;
        gap: 0.45rem !important;
    }

    .bnd-topbar-brand img {
        width: 26px !important;
        height: 26px !important;
    }

    .bnd-mobile-drawer-cta {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .bnd-hero-container,
    .bnd-auth-split,
    .bnd-onboarding-split {
        padding: 1.25rem 0.95rem 1.85rem !important;
        gap: 1.25rem !important;
    }

    .bnd-hero-title,
    .bnd-auth-hero-title,
    .bnd-royal-title,
    .bnd-connect-title {
        font-size: clamp(1.7rem, 7.2vw, 2.2rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 0.75rem !important;
        word-break: break-word !important;
    }

    .bnd-hero-subtitle,
    .bnd-auth-hero-sub,
    .bnd-royal-lead,
    .bnd-connect-sub {
        font-size: 0.94rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.15rem !important;
    }

    /* Editorial Status Pill: Allow wrapping on narrow phones */
    .bnd-status-pill-tag {
        font-size: 0.66rem !important;
        padding: 0.3rem 0.65rem !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .bnd-hero-btn,
    .bnd-connect-submit {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.85rem 1.25rem !important;
        font-size: 0.95rem !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .bnd-royal-form-card,
    .bnd-royal-wizard-card {
        padding: 1.35rem 1rem !important;
        border-radius: 4px !important;
    }

    .bnd-form-title,
    .wizard-step-title {
        font-size: 1.4rem !important;
    }

    /* Prevent iOS Safari zoom on input focus */
    input,
    select,
    textarea,
    .bnd-input,
    .bnd-connect-input,
    .bnd-connect-textarea,
    .form-input {
        font-size: 16px !important;
    }

    /* 1-Column Forms, Checklists & Stats on Smartphones */
    .stats-grid,
    .bnd-connect-row,
    .grid-options,
    .choice-grid,
    .bnd-pwd-checklist,
    .form-row,
    .presets-grid,
    .param-grid,
    .api-run-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .wizard-footer-nav {
        flex-direction: column-reverse !important;
        gap: 0.65rem !important;
    }

    .wizard-footer-nav button,
    .wizard-footer-nav a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Legal Pages Mobile Padding */
    .legal-hero,
    .cookie-hero {
        padding: 1.75rem 1rem 2rem !important;
    }
    .legal-page-layout {
        padding: 0 0.95rem !important;
        margin: 1.5rem auto 2.5rem !important;
    }
    .content-card {
        padding: 1.25rem 1rem !important;
    }
}
