/* ORBIT Design System & Styles */

:root {
    /* Colors */
    --bg-primary: #0f1115;
    --bg-secondary: #161920;
    --bg-tertiary: #1e222b;
    --bg-elevated: #252a35;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a855f7;

    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);

    --glow-sm: rgba(99, 102, 241, 0.15);
    --glow-md: rgba(99, 102, 241, 0.25);
    --glow-lg: rgba(99, 102, 241, 0.4);

    /* Dimensions & Spacing */
    --u-base: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-pill: 9999px;

    --container-max: 1200px;
    --nav-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky nav */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    user-select: none;
    /* Disable text selection globally */
    -webkit-user-select: none;
    position: relative;
}

/* Global Noise Overlay (Tileable PNG Dithering) 
   Breaks color banding by adding subtle grain */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    /* Tileable Noise Pattern */
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABMTExERERmZmYzMzNmZmYAAABV2ulMAAAAB3RSTlMABQUHCAkKCsXA9aEAAAAqSURBVDjLY2AYBaNgFIyCUTAKRsEoGAWjYBSMglEwCkbBKBgFo2AUjEQAABOAAAHc3eG+AAAAAElFTkSuQmCC");
    background-repeat: repeat;
    opacity: 0.06;
    /* Visible enough to dither, subtle enough to ignore */
    mix-blend-mode: overlay;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.t-center {
    text-align: center;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(2deg);
    }

    50% {
        transform: translateY(-12px) rotateX(2deg);
    }
}

@keyframes breath {

    0%,
    100% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--glow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-lg);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 600;
}

/* Components: Badges */
.badge-pill {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pill-glow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-pill);
    color: var(--accent-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 96px;
    width: auto;
    transition: transform 0.8s ease-in-out;
}

.brand:hover .brand-logo {
    transform: rotate(360deg);
}

.brand-name {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    isolation: isolate;
    /* Create stacking context for blend modes */
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 100px;
}

.hero-visual {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

/* Aurora Effect (FIXED: Volumetric Static Glow) */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    /* Extra large to avoid edges */
    height: 180%;
    /* Multi-layered radial gradient for depth and softness - No bandings */
    background:
        /* Inner intense core */
        radial-gradient(circle at center, rgba(99, 102, 241, 0.12) 0%, transparent 35%),
        /* Middle wash */
        radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 55%),
        /* Outer soft spill */
        radial-gradient(circle at center, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 1;
    pointer-events: none;
    /* Static - No animation for calm premium feel */
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(10deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

.window-frame {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 100px -20px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-secondary);
    animation: heroEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: transform 0.1s ease-out;
}

/* Realistic Sheen Effect */
.window-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 55%,
            transparent 70%);
    transform: translateX(var(--sheen-x, -100%));
    pointer-events: none;
    transition: transform 0.1s ease-out;
    mix-blend-mode: overlay;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.section-header h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 16px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Spotlight Effect Layer */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.06),
            /* Much subtler white */
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.features-grid:hover .feature-card::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--accent-secondary);
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover .card-icon {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px var(--glow-md);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Security Section */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.security-content h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.security-content p {
    font-size: 18px;
    line-height: 1.7;
}

.security-checklist {
    background: var(--bg-elevated);
    padding: 40px;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* REMOVED Scan Line for calmer feel */

.security-checklist:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}

.check-list li:last-child {
    margin-bottom: 0;
}

.check-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 50%;
    font-size: 14px;
}

/* Download Section */
.download-box {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-2xl);
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Removed Pulse Animation */
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.download-box:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 0 50px rgba(99, 102, 241, 0.2);
}

.download-box::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(99, 102, 241, 0.1);
    pointer-events: none;
}

.download-box h2 {
    font-size: 48px;
    margin-bottom: 40px;
}

.download-actions {
    margin-bottom: 24px;
}

.download-meta p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.note {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name-sm {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-right: 16px;
}

.copyright {
    color: var(--text-tertiary);
    font-size: 13px;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    color: var(--text-tertiary);
    font-size: 13px;
}

.footer-right a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 16px;
    }

    .cta-row {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .download-box {
        padding: 40px 24px;
    }

    .download-box h2 {
        font-size: 32px;
    }
}