/* CSS Reset and Variables */
:root {
    --bg-dark: #07090e;
    --navy-deep: #0f172a;
    --cyan: #2cd3f8;
    --magenta: #ff00ff;
    --green: #4dff88;
    --purple: #b84dff;
    --amber: #ff9800;
    --white: #ffffff;
    --text-muted: #94a3b8;
    
    --font-header: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-cyan: 0 0 20px rgba(44, 211, 248, 0.45);
    --shadow-magenta: 0 0 20px rgba(255, 0, 255, 0.45);
    --shadow-green: 0 0 20px rgba(77, 255, 136, 0.45);
    --shadow-purple: 0 0 20px rgba(184, 77, 255, 0.45);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Ambient Glows */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: pulse 15s infinite alternate ease-in-out;
}

.glow-cyan {
    width: 450px;
    height: 450px;
    background: var(--cyan);
    top: 10%;
    left: -150px;
}

.glow-magenta {
    width: 500px;
    height: 500px;
    background: var(--magenta);
    bottom: 10%;
    right: -150px;
    animation-delay: 3s;
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.12;
    }
    100% {
        transform: scale(1.2) translate(50px, 50px);
        opacity: 0.22;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--cyan);
    text-shadow: var(--shadow-cyan);
    transform: rotate(45deg);
    display: inline-block;
}

.logo-text {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

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

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

.nav-link:hover {
    color: var(--white);
}

.nav-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link-btn:hover {
    color: var(--white);
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(90vh - 80px);
    padding: 4rem 0;
    gap: 4rem;
}

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

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-header);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.highlight-text {
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

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

.play-icon {
    font-size: 0.8rem;
}

/* Simulated Board / Visuals */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    width: 320px;
    height: 640px;
    background: #0d1117;
    border: 10px solid #1f2937;
    border-radius: 40px;
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-glass), 0 0 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 25px;
    background: #1f2937;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: #080b11;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.simulated-board {
    display: grid;
    grid-template-columns: repeat(4, 55px);
    grid-template-rows: repeat(4, 55px);
    gap: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.3);
}

.board-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.board-arrow .arrow-body {
    position: absolute;
    border-radius: 99px;
}

.board-arrow .arrow-head {
    font-size: 1.1rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

/* Arrow specifics */
.cyan {
    border: 2px solid var(--cyan);
    box-shadow: var(--shadow-cyan);
    color: var(--cyan);
}
.cyan .arrow-body {
    width: 6px;
    height: 70%;
    background: var(--cyan);
    bottom: 12px;
}
.cyan:hover {
    background: rgba(44, 211, 248, 0.1);
    transform: scale(1.05);
}

.magenta {
    border: 2px solid var(--magenta);
    box-shadow: var(--shadow-magenta);
    color: var(--magenta);
}
.magenta .arrow-body {
    height: 6px;
    width: 70%;
    background: var(--magenta);
    left: 12px;
}
.magenta:hover {
    background: rgba(255, 0, 255, 0.1);
    transform: scale(1.05);
}

.green {
    border: 2px solid var(--green);
    box-shadow: var(--shadow-green);
    color: var(--green);
}
.green .arrow-body {
    width: 6px;
    height: 70%;
    background: var(--green);
    top: 12px;
}
.green:hover {
    background: rgba(77, 255, 136, 0.1);
    transform: scale(1.05);
}

.purple {
    border: 2px solid var(--purple);
    box-shadow: var(--shadow-purple);
    color: var(--purple);
}
.purple .arrow-body {
    height: 6px;
    width: 70%;
    background: var(--purple);
    right: 12px;
}
.purple:hover {
    background: rgba(184, 77, 255, 0.1);
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.55);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.font-cyan { color: var(--cyan); text-shadow: var(--shadow-cyan); }
.font-magenta { color: var(--magenta); text-shadow: var(--shadow-magenta); }
.font-green { color: var(--green); text-shadow: var(--shadow-green); }
.font-purple { color: var(--purple); text-shadow: var(--shadow-purple); }

.feature-card h3 {
    font-family: var(--font-header);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

/* Footer styling */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    background: rgba(7, 9, 14, 0.8);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider {
    color: rgba(255, 255, 255, 0.15);
}

.footer-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-link-btn:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Native Dialog Modals Styling */
.glass-dialog {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    padding: 2.5rem;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.glass-dialog::backdrop {
    background: rgba(5, 8, 16, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Custom Scrollbar for Dialog */
.glass-dialog::-webkit-scrollbar {
    width: 8px;
}

.glass-dialog::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.glass-dialog::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.glass-dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.dialog-header h2 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 700;
}

.dialog-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.dialog-close-btn:hover {
    color: var(--white);
}

.dialog-body {
    overflow-y: auto;
    max-height: 50vh;
    padding-right: 0.5rem;
}

.dialog-body h3 {
    font-family: var(--font-header);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cyan);
}

.dialog-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.btn-dialog-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-dialog-close:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        max-width: 600px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 1.2rem 5%;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .device-mockup {
        width: 280px;
        height: 560px;
    }
    
    .simulated-board {
        grid-template-columns: repeat(4, 48px);
        grid-template-rows: repeat(4, 48px);
        gap: 10px;
    }
    
    .glass-dialog {
        padding: 1.5rem;
    }
}
