:root {
    --bg-color: #0B0B0F;
    --surface-color: rgba(28, 28, 34, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-glow: #4facfe;
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --font-main: 'Outfit', sans-serif;
}

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

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

html {
    scroll-behavior: smooth;
}

/* Background Glowing Orbs */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}
.glow-bg.bg-2 {
    top: 40%;
    left: auto;
    right: -200px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(11, 11, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--surface-border);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--accent-gradient);
    z-index: -1;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.btn-glow:hover::after {
    opacity: 0.8;
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Typography elements */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 4rem;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 30px;
    color: var(--accent-glow);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: slideUp 0.8s ease-out 0.6s both;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    animation: fadeIn 1.2s ease-out 0.8s both;
}

.mac-window {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/10;
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mac-window:hover {
    transform: rotateY(-5deg) rotateX(5deg) translateY(-10px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(79, 172, 254, 0.1);
}

.mac-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

.mac-dots span:nth-child(1) { background: #FF5F56; }
.mac-dots span:nth-child(2) { background: #FFBD2E; }
.mac-dots span:nth-child(3) { background: #27C93F; }

.mac-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    align-items: stretch;
}

.grid-layout {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    position: relative;
}

.grid-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    position: absolute;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Initial scattered state -> animated into positions via JS or CSS */
.item-left {
    top: 0; left: 0; bottom: 0; right: 50%;
    margin-right: 0.5rem;
    animation: snapLeft 4s infinite alternate ease-in-out;
}
.item-top-right {
    top: 0; left: 50%; bottom: 50%; right: 0;
    margin-left: 0.5rem; margin-bottom: 0.5rem;
    animation: snapTopRight 4s infinite alternate ease-in-out;
}
.item-bottom-right {
    top: 50%; left: 50%; bottom: 0; right: 0;
    margin-left: 0.5rem; margin-top: 0.5rem;
    animation: snapBottomRight 4s infinite alternate ease-in-out;
}

@keyframes snapLeft {
    0%, 20% { transform: translate(-30px, -20px) scale(0.9) rotate(-2deg); opacity: 0.5; }
    80%, 100% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; box-shadow: 0 0 20px rgba(79, 172, 254, 0.2); border-color: rgba(79, 172, 254, 0.5); }
}
@keyframes snapTopRight {
    0%, 20% { transform: translate(20px, -30px) scale(0.9) rotate(2deg); opacity: 0.5; }
    80%, 100% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); border-color: rgba(0, 242, 254, 0.5); }
}
@keyframes snapBottomRight {
    0%, 20% { transform: translate(30px, 30px) scale(0.9) rotate(-1deg); opacity: 0.5; }
    80%, 100% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; box-shadow: 0 0 20px rgba(79, 172, 254, 0.2); border-color: rgba(79, 172, 254, 0.5); }
}

/* Features Section */
.features {
    padding: 8rem 5%;
    position: relative;
    z-index: 10;
}

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

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

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 172, 254, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 172, 254, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.3);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 5% 4rem;
}

.legal-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--accent-glow);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Shortcuts Table */
.shortcuts-table {
    overflow-x: auto;
    margin-top: 1rem;
}

.shortcuts-table table {
    width: 100%;
    border-collapse: collapse;
}

.shortcuts-table th,
.shortcuts-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--surface-border);
}

.shortcuts-table th {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shortcuts-table td {
    color: var(--text-secondary);
}

.shortcuts-table tr:hover td {
    color: var(--text-primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 5%;
    margin-top: 4rem;
    background: rgba(11, 11, 15, 0.5);
    backdrop-filter: blur(10px);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .mac-window {
        transform: rotateY(0) rotateX(0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
