:root {
    --bg-dark: #000000;
    --bg-surface: #0a0a0c;
    --bg-card: rgba(20, 20, 22, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --accent-glow: rgba(0, 122, 255, 0.5);
    --accent-solid: #0A84FF;
    --gradient-1: linear-gradient(135deg, #0A84FF 0%, #B210FF 100%);
    --gradient-bg: linear-gradient(to right, rgba(10, 132, 255, 0.1), rgba(178, 16, 255, 0.1));
    --border-glass: rgba(255, 255, 255, 0.1);
    --blur-strong: blur(40px);
    --blur-medium: blur(20px);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-solid);
    color: #fff;
}

/* Background Effects */
.bg-gradient-top, .bg-gradient-bottom {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    animation: pulseGlow 10s infinite alternate linear;
}

.bg-gradient-top {
    top: -20vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.15), transparent 70%);
}

.bg-gradient-bottom {
    bottom: -20vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(178, 16, 255, 0.15), transparent 70%);
    animation-delay: -5s;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #fff;
    color: #000;
}

/* Typography & Utils */
.text-gradient {
    background: var(--gradient-1);
    -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: center;
    text-align: center;
    padding: 0 24px;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
}

.pre-title {
    font-size: 0.9rem;
    color: var(--accent-solid);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-secondary);
    position: relative;
    top: -12px;
}

/* CTA Group */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.input-glass {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 4px;
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
}

.email-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 1rem;
    outline: none;
    min-width: 250px;
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.btn-primary {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 26px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Details Section (Bento Grid) */
.details-section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

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

.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.glass:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

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

.card-wide {
    grid-column: span 3;
    grid-row: span 1;
    display: flex;
    align-items: center;
    padding: 0;
}

.card-content-side {
    padding: 32px;
    flex: 1;
    z-index: 1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    z-index: 1;
    position: relative;
}

.card-large h3 {
    font-size: 2rem;
}

.glass p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    z-index: 1;
    position: relative;
}

/* Mockups inside the glass cards */
.mockup-abstract {
    position: absolute;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.x-mockup-1 {
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 50%;
    border-top-left-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    box-shadow: -10px -10px 40px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-pulse {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-glow);
    box-shadow: 0 0 30px var(--accent-solid);
    animation: coreEnergy 2s infinite alternate ease-in-out;
}

@keyframes coreEnergy {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 50px 20px var(--accent-solid); }
}

.x-mockup-2 {
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    border-radius: 0;
    background: url('hero-abstract.png') no-repeat center/cover;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.card-wide.glass:hover .x-mockup-2 {
    opacity: 0.9;
}

/* Hardware Ecosystem Grid */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hardware-card {
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
}

.hardware-image {
    width: 100%;
    height: 200px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.hw-1::after {
    content: '';
    width: 100px; height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(10,132,255,0.4), transparent);
    box-shadow: 0 10px 40px rgba(10,132,255,0.8);
    animation: float 4s ease-in-out infinite;
}

.hw-2::after {
    content: '';
    width: 140px; height: 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
    transform: rotate(-15deg);
}

.hw-3::after {
    content: '';
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(178,16,255,0.8);
    box-shadow: inset 0 0 15px rgba(178,16,255,0.5), 0 0 20px rgba(178,16,255,0.4);
    position: relative;
}
.hw-3::before {
    content: '';
    position: absolute;
    width: 70px; height: 70px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.3);
    animation: spin 10s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.hardware-card h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.hardware-card p {
    font-size: 0.95rem;
}

/* Timeline */
.timeline-section {
    padding: 80px 24px 120px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-step {
    position: relative;
    margin-bottom: 56px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -37px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step-marker.active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.step-marker.glow {
    background: var(--accent-solid);
    border-color: var(--accent-solid);
    box-shadow: 0 0 15px var(--accent-glow);
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 24px;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.modal-body h3 {
    color: #fff;
    margin: 24px 0 12px;
    font-size: 1.3rem;
}

.modal-body p, .modal-body ul {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 24px;
    margin-top: 16px;
}

.modal-body li {
    margin-bottom: 12px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 60px 24px;
    background: var(--bg-surface);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

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

.copyright {
    color: #666;
    font-size: 0.85rem;
}

/* Animations Utils */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Scrollbar for Modals */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid, .hardware-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .card-large, .card-medium, .card-wide {
        grid-column: span 1;
    }
    
    .card-large {
        min-height: 400px;
    }
    
    .card-wide {
        flex-direction: column;
    }
    
    .x-mockup-2 {
        position: relative;
        width: 100%;
        height: 250px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-separator {
        font-size: 2.5rem;
    }
    
    .modal-content {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    .input-glass {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 12px;
    }
    .email-input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-glass);
        border-radius: 30px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 20, 22, 0.85);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: 1px solid var(--border-glass);
    padding: 16px 24px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: all;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.removing {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: #4CAF50;
}

.toast.error .toast-icon {
    color: #F44336;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
