/* SysGuard Marketing Website - Professional Redesign */
/* Clean, minimal, enterprise-grade aesthetics */

/* ==================== DESIGN TOKENS ==================== */
:root {
    /* Color Palette - Deep blue-black with subtle blue accent */
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-tertiary: #0f1015;
    --bg-card: #12131a;
    --bg-elevated: #181a24;
    
    --accent: #3b82f6;
    --accent-muted: #2563eb;
    --accent-subtle: rgba(59, 130, 246, 0.1);
    --accent-glow: rgba(59, 130, 246, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-faint: #475569;
    
    --border: #1e293b;
    --border-subtle: #0f172a;
    
    --success: #22c55e;
    --error: #ef4444;
    
    /* Typography Scale */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.25rem;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 200ms;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==================== LAYOUT ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: var(--space-24) 0;
}

.section-dark {
    background: var(--bg-secondary);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-16);
}

.section-eyebrow {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--duration) var(--ease);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: var(--space-2) var(--space-5);
    font-weight: 600;
    color: var(--text-primary) !important;
    background: var(--accent);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
}

.nav-cta:hover {
    background: var(--accent-muted);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: var(--space-2);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4);
    flex-direction: column;
    gap: var(--space-1);
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
}

.mobile-menu a:hover {
    background: var(--bg-elevated);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Critical: Hero gradient for seamless blend */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to bottom, 
            rgba(5, 5, 8, 0.3) 0%,
            rgba(5, 5, 8, 0.4) 30%,
            rgba(5, 5, 8, 0.7) 60%,
            rgba(5, 5, 8, 0.9) 80%,
            var(--bg-primary) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: var(--space-24) var(--space-6);
    padding-top: 120px;
}

.hero-eyebrow {
    margin-bottom: var(--space-6);
}

.eyebrow-text {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    padding: var(--space-2) var(--space-4);
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
    border-radius: var(--radius-xl);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto var(--space-10);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-indicator span {
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
}

.scroll-indicator svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    color: white;
    background: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-muted);
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--text-secondary);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-outline {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.btn-full {
    width: 100%;
}

/* ==================== BRANDS / STATS BAR ==================== */
.section-brands {
    padding: var(--space-12) 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.brands-label {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}

.brands-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.brand-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-stat strong {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.brand-stat span {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
}

.feature-card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-5);
    color: var(--accent);
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
}

.feature-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== TECHNOLOGY SECTION ==================== */
.tech-showcase {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.tech-card {
    flex: 1;
    max-width: 400px;
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.tech-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.tech-icon {
    color: var(--accent);
}

.tech-badge {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: var(--space-1) var(--space-3);
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
}

.tech-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.tech-card > p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.tech-list svg {
    color: var(--accent);
    flex-shrink: 0;
}

.tech-divider {
    display: flex;
    align-items: center;
    color: var(--text-faint);
}

.tech-footer {
    text-align: center;
}

.tech-footer p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .tech-showcase {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-card {
        max-width: 100%;
    }
    
    .tech-divider {
        transform: rotate(90deg);
        margin: var(--space-4) 0;
    }
}

/* ==================== WORKFLOW STEPS ==================== */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.workflow-step {
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-5);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
    border-radius: 50%;
}

.step-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.step-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .workflow-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .workflow-steps {
        grid-template-columns: 1fr;
    }
}

/* ==================== PRICING ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
}

.pricing-card:hover {
    border-color: var(--border);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-subtle) 0%, var(--bg-card) 100%);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    background: var(--accent);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-xl);
}

.pricing-header h3 {
    font-size: var(--text-xl);
    font-weight: 600;
}

.pricing-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-5);
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    margin-bottom: var(--space-6);
}

.pricing-amount .currency {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.pricing-amount .price {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-amount .period {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
    color: var(--accent);
}

.pricing-features li.disabled {
    color: var(--text-faint);
}

.pricing-features li.disabled svg {
    color: var(--text-faint);
}

.pricing-card .btn {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== CTA SECTION ==================== */
.cta-card {
    padding: var(--space-16);
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.cta-eyebrow {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.cta-card h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.cta-card > p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
}

.signup-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.form-stack input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
}

.form-stack input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-stack input::placeholder {
    color: var(--text-muted);
}

.form-note {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-4);
}

.signup-success {
    padding: var(--space-8);
}

.success-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    color: white;
    background: var(--success);
    border-radius: 50%;
}

.signup-success h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.signup-success p {
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .cta-card {
        padding: var(--space-8);
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: var(--space-16);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 28px;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: var(--space-16);
}

.footer-col h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.footer-col a {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: var(--space-1) 0;
    transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: var(--text-muted);
    transition: color var(--duration) var(--ease);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: var(--space-10);
    }
    
    .footer-nav {
        gap: var(--space-10);
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s var(--ease) forwards;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-faint);
}
