/* =========================================================================
   OpsLogic Brand Style Guide
   =========================================================================
   Primary (Core): #102A52
   Action (Logic): #00BCD4
   Security (Alert): #FFB300
   Neutral (UI): #F4F7F9

   Typography: 
   Primary: Montserrat (Bold/Semi-Bold)
   Secondary: Inter (Regular/Medium)
   ========================================================================= */

:root {
    --color-primary: #102A52;
    --color-primary-dark: #0a1b38;
    --color-primary-light: #1a3c74;
    --color-action: #00BCD4;
    --color-action-glow: rgba(0, 188, 212, 0.4);
    --color-security: #FFB300;
    --color-neutral: #F4F7F9;
    --color-text-dark: #222B36;
    --color-text-light: #8E9BAE;
    --color-white: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --shadow-soft: 0 10px 30px rgba(16, 42, 82, 0.08);
    --shadow-glow: 0 0 20px var(--color-action-glow);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-neutral);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

.text-cyan { color: var(--color-action); }
.text-amber { color: var(--color-security); }
.text-navy { color: var(--color-primary); }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================================================
   Buttons & Status Badges
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

.btn-action {
    background-color: var(--color-action);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 15px var(--color-action-glow);
}

.btn-action:hover {
    background-color: #00d3f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-action-glow);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.alert-badge {
    background: rgba(255, 179, 0, 0.1);
    border-color: rgba(255, 179, 0, 0.3);
    color: var(--color-security);
}

/* Status Indicator Dots */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.sync-dot {
    background-color: var(--color-action);
    box-shadow: 0 0 8px var(--color-action);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 188, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0); }
}

/* =========================================================================
   Canvas Background
   ========================================================================= */
#circuitCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

/* =========================================================================
   Navbar
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(16, 42, 82, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--color-action);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--color-action);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .navbar .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    .brand-logo {
        font-size: 1.25rem !important;
    }
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-trust {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
}

/* =========================================================================
   Highlights Strip
   ========================================================================= */
.highlights-strip {
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 3rem 0;
    position: relative;
    z-index: 20;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

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

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.highlight-item i {
    font-size: 2rem;
    background: rgba(0, 188, 212, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.highlight-text h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.highlight-text p {
    color: var(--color-text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   General Sections
   ========================================================================= */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* =========================================================================
   Persona Cards (Glassmorphism + UI)
   ========================================================================= */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.glass-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 42, 82, 0.12);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.glass-card.featured {
    border: 1px solid var(--color-action);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.1);
}

.glass-card.featured::before {
    background: var(--color-action);
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-neutral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.featured .card-icon {
    background: rgba(0, 188, 212, 0.1);
    color: var(--color-action);
}

.persona-desc {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    height: 50px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--color-primary-dark);
}

@media (max-width: 992px) {
    .persona-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .persona-grid {
        grid-template-columns: 1fr;
    }
    .persona-desc {
        height: auto;
    }
}

/* =========================================================================
   Compliance Section
   ========================================================================= */
.compliance-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-dark h2 {
    color: var(--color-white);
    font-size: 2.5rem;
}

.security-features {
    margin-top: 3rem;
}

.sec-feat {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sec-icon {
    color: var(--color-action);
    font-size: 1.5rem;
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.sec-feat h4 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.sec-feat p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* UI Device Mockup */
.device-mockup {
    background: #0f172a;
    border-radius: var(--radius-lg);
    border: 1px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: monospace;
}

.mockup-header {
    background: #1e293b;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #334155;
    color: #94a3b8;
}

.mockup-body {
    padding: 2rem;
}

.code-line {
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFade 0.5s forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.8s; }
.code-line:nth-child(3) { animation-delay: 1.4s; }
.code-line:nth-child(4) { animation-delay: 2.0s; }

.auth-success {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid var(--color-action);
    border-radius: var(--radius-sm);
    color: var(--color-action);
    text-align: center;
    font-weight: bold;
    font-family: var(--font-body);
    opacity: 0;
    animation: fadeIn 0.5s 2.6s forwards;
}

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 992px) {
    .compliance-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Final CTA
   ========================================================================= */
.final-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.final-cta h2 {
    font-size: 2.5rem;
}

.final-cta p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 5rem 0 2rem 0;
}

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

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin: 1.5rem 0;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

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

.link-column h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.link-column a {
    display: block;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.link-column a:hover {
    color: var(--color-action);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}
