/* 
 * Security & IP Protection Operations Portal - Design System
 * Clean Corporate / Enterprise Dark Theme
 */

:root {
    color-scheme: light;
    
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.06);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Premium soft shadows for light theme */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02);
    
    --gradient-text: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    
    /* Glassmorphism Variables */
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --glass-blur: none;

    scrollbar-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0);
    scrollbar-width: thin;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text-primary); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
}

/* Scrollbar Customization for Legacy WebKit */
@supports not (scrollbar-color: auto) {
    body::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    body::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 9999px;
    }
    body::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* JS Scroll Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.button-primary {
    background: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.button-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
    color: #fff;
}
.button-primary svg { transition: transform 0.2s ease; }
.button-primary:hover svg { transform: translateX(3px); }

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.site-branding { display: flex; align-items: center; }
.text-logo { 
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700; color: var(--text-primary); 
}
.text-logo svg { color: var(--accent); }
.main-navigation { display: flex; align-items: center; gap: 28px; }
.main-navigation a { font-size: 13px; font-weight: 600; color: var(--text-secondary); transition: var(--transition); }
.main-navigation a:not(.header-cta-btn):hover { color: var(--text-primary); }

.header-cta-btn {
    padding: 8px 18px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-primary) !important;
    font-weight: 600;
}
.header-cta-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Bento Design System */
.bento-workspace {
    padding: 60px 0 100px;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Bento Box General Styles */
.bento-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: #0f172a;
}
.bento-box:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}
.bento-box-inner {
    padding: 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Customizer Badge */
.bento-badge {
    align-self: flex-start;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.bento-badge.blue-badge {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Category Label in boxes */
.box-category-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 18px;
    display: block;
}

/* Box titles */
.bento-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

/* Box 1: Bento Hero */
.bento-hero {
    grid-column: span 2;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.03), transparent 60%), #ffffff;
}
.hero-bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px), 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 100% 0%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at 100% 0%, black 40%, transparent 100%);
    pointer-events: none;
}
.hero-split {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    align-items: center;
}
.hero-text-side {
    display: flex;
    flex-direction: column;
}
.hero-visual-side {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-svg-graphic {
    width: 100%;
    max-width: 170px;
    height: auto;
    display: block;
}

.bento-hero .hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bento-hero .hero-subtitle {
    font-size: 15px;
    color: #475569;
    margin-bottom: 28px;
    max-width: 560px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; }

/* Micro-animations and Keyframes */
.float-item {
    animation: floatSlow 6s infinite ease-in-out;
}
.rotator-cw {
    transform-origin: center;
    animation: rotateCW 20s infinite linear;
}
.rotator-ccw {
    transform-origin: center;
    animation: rotateCCW 15s infinite linear;
}
.pulser {
    transform-origin: center;
    animation: pulseScale 3s infinite ease-in-out;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes rotateCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes rotateCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
@keyframes pulseScale {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; fill-opacity: 0.8; }
}

/* Sequential Stagger Delays for Reveal Items */
.delay-1 { transition-delay: 0.08s !important; }
.delay-2 { transition-delay: 0.16s !important; }
.delay-3 { transition-delay: 0.24s !important; }
.delay-4 { transition-delay: 0.32s !important; }

/* Breathing dot for active system protection status */
.breathing-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.breathing-dot.green {
    background-color: #10b981;
    animation: breathing 3s infinite ease-in-out;
}
@keyframes breathing {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.2); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* Box 3: Mandate directive */
.bento-mandate p {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

/* Box 4: Triage & Remediation Workflow Pipeline */
.bento-workflow {
    grid-column: span 2;
}
.bento-workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 14px;
}
.w-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.w-step .w-num {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.08);
}
.w-step h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.w-step p {
    font-size: 11px;
    line-height: 1.5;
    color: #475569;
}

/* Section Divider */
.bento-section-divider {
    grid-column: span 3;
    text-align: center;
    margin: 32px 0 12px;
    position: relative;
}
.bento-section-divider span {
    background-color: var(--bg-color);
    padding: 0 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
}
.bento-section-divider::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

/* Gateways highlight */
.border-blue-highlight {
    border-color: rgba(37, 99, 235, 0.25) !important;
}
.border-blue-highlight:hover {
    border-color: rgba(37, 99, 235, 0.6) !important;
}

/* Gateway boxes */
.bento-gateway .gate-icon {
    width: 44px; height: 44px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--accent);
}
.bento-gateway p {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
}
.gate-link {
    display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: #0f172a;
    padding-top: 16px; border-top: 1px solid #e2e8f0; width: 100%; transition: var(--transition);
}
.gate-link svg { width: 14px; height: 14px; margin-left: 5px; transition: var(--transition); color: #64748b; }
.bento-gateway:hover .gate-link svg { transform: translateX(3px); color: #0f172a; }
.bento-gateway:hover .gate-link { color: var(--accent); }

/* Box 8: Submission Prerequisites Grid */
.bento-prereqs {
    grid-column: span 2;
}
.prereqs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 14px;
}
.prereq-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.prereq-col ul { list-style: none; padding: 0; margin: 0; }
.prereq-col li { font-size: 11px; color: #475569; line-height: 1.5; margin-bottom: 8px; position: relative; padding-left: 14px; }
.prereq-col li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 4px;
}

/* Box 9: FAQ Quick desk */
.faq-list-clean {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    height: 100%;
}
.faq-item-clean strong {
    font-size: 12px;
    display: block;
    margin-bottom: 2px;
    color: #0f172a;
}
.faq-item-clean p {
    font-size: 11px;
    line-height: 1.5;
    color: #475569;
}

/* Contact Operations Ingest */
.bento-contact-section { padding-top: 80px; }
.contact-split-container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
.contact-form-wrapper { padding: 40px; background: #ffffff; border-radius: 16px; border: 1px solid #e2e8f0; color: #0f172a; }
.contact-form-wrapper h3 { font-size: 20px; font-weight: 800; margin-bottom: 28px; letter-spacing: -0.02em; color: #0f172a; }
.contact-direct-side h2 {
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-size: 32px;
    font-weight: 800;
}

.direct-contacts { padding: 36px; background: #ffffff; margin-bottom: 28px; border-radius: 16px; border: 1px solid #e2e8f0; color: #0f172a; }
.direct-contacts h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.direct-contacts p { font-size: 13px; color: #475569; margin-bottom: 28px; }
.contact-method { margin-bottom: 20px; }
.contact-method:last-child { margin-bottom: 0; }
.method-label { display: block; font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-method a { font-size: 15px; font-weight: 600; color: var(--accent); transition: var(--transition); }
.contact-method a:hover { text-decoration: underline; }
.contact-method strong { font-size: 15px; font-weight: 600; color: #0f172a; }
.gpg-text { font-family: var(--font-mono); font-size: 13px !important; letter-spacing: 0.05em; }

.trust-badge { display: flex; align-items: center; gap: 12px; padding: 18px; background: rgba(37, 99, 235, 0.06); border: 1px solid rgba(37, 99, 235, 0.15); border-radius: 12px; color: #1d4ed8; }
.trust-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.trust-badge span { font-size: 12px; font-weight: 600; }

/* Contact Form Input Customize */
.ff-el-group { margin-bottom: 20px; }
.ff-el-input--label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.ff-el-form-control {
    width: 100%; background: #f8fafc; border: 1px solid #cbd5e1; color: #0f172a;
    padding: 12px 14px; border-radius: 8px; font-size: 14px; transition: var(--transition);
    font-family: var(--font-sans);
}
.ff-el-form-control:focus { outline: none; border-color: var(--accent); background: #ffffff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.ff-el-form-control::placeholder { color: #94a3b8; }
select.ff-el-form-control option {
    background-color: #ffffff;
    color: #0f172a;
}

.ff-btn-submit {
    width: 100%; 
    background: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600; padding: 12px; border-radius: 8px;
    cursor: pointer; transition: var(--transition); font-size: 14px; margin-top: 6px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.ff-btn-submit:hover { 
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px); 
}

/* Footer Styling */
.footer-contact-info { margin-top: 10px; font-size: 13px; color: #94a3b8; }
.footer-contact-info a { color: #60a5fa; font-weight: 600; }
.footer-contact-info a:hover { text-decoration: underline; }

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 0 30px;
    background: #0f172a;
    color: #94a3b8;
}
.footer-inner-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-branding .footer-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #f8fafc; }
.footer-branding .footer-desc { font-size: 13px; color: #94a3b8; max-width: 440px; line-height: 1.6; }

.footer-navigation h4 {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-navigation ul { list-style: none; padding: 0; margin: 0; }
.footer-navigation li { margin-bottom: 8px; }
.footer-navigation a { font-size: 13px; color: #94a3b8; transition: var(--transition); }
.footer-navigation a:hover { color: #ffffff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 20px; font-size: 12px; color: #64748b; text-align: center; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr; gap: 20px; }
    .bento-hero, .bento-workflow, .bento-prereqs, .bento-section-divider { grid-column: span 1; }
    .bento-workflow-steps, .prereqs-grid { grid-template-columns: 1fr; gap: 16px; }
    .bento-hero .hero-title { font-size: 32px; }
    .contact-split-container { grid-template-columns: 1fr; gap: 48px; }
    .footer-inner-2col { grid-template-columns: 1fr; gap: 32px; text-align: center; }
}

@media (max-width: 768px) {
    .main-navigation { display: none; }
}

.form-response {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
}
