:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-primary: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 150, 0.05) 0%, transparent 20%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

strong {
    color: #fff;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Download Info */
.download-info {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.download-note {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.arch-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arch-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.arch-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.arch-list li strong {
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
}

.cta-group {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.primary-btn,
.secondary-btn {
    padding: 1.1rem 2.2rem;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.primary-btn {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

/* Bento Grid Section */
.bento-section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Card Sizes */
.bento-card.large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-card.tall {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-card.wide {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-card.medium {
    grid-column: span 1;
    grid-row: span 1;
}

/* Card Content */
.card-content {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(20px);
    /* 3D Depth */
}

.card-content.no-padding {
    padding: 0;
}

.card-content.row {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.card-content.center-content {
    justify-content: center;
}

/* Icons & Glows */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.glow-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.glow-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.glow-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.glow-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.2);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.bento-card p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* App Previews in Bento */
.app-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-card:hover .app-preview-img {
    transform: scale(1.05);
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateZ(30px);
}

.overlay-text h4 {
    color: #fff;
    font-size: 1.2rem;
}

.overlay-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Troubleshooting Overlay Styling */
.troubleshoot-overlay {
    background: linear-gradient(to top, rgba(255, 68, 68, 0.95), rgba(0, 0, 0, 0.7));
}

.troubleshoot-overlay h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.troubleshoot-overlay p {
    color: #fff;
    font-size: 0.9rem;
    opacity: 1;
}

/* Support Section */
.support-section {
    padding: 8rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.05));
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    background: #FFDD00;
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 221, 0, 0.3);
}

.support-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 221, 0, 0.5);
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--border-color);
    background: #020202;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

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

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

.footer-links a:hover {
    color: #fff;
}

/* Legal Pages */
.legal-page {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    background-color: var(--bg-dark);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

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

.legal-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.legal-container p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-container ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-container li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-container a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-container a:hover {
    color: #5b9df9;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.large,
    .bento-card.wide {
        grid-column: span 2;
    }
}

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

    h2 {
        font-size: 2.2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin-bottom: 4rem;
    }

    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-card.large,
    .bento-card.tall,
    .bento-card.wide,
    .bento-card.medium {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 300px;
    }
}