/* ===== CSS RESET & VARIABLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: #12121f;
    --bg-card-hover: #1a1a2e;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 210, 255, 0.15);

    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;

    --cyan: #00d2ff;
    --purple: #7b2ff7;
    --cyan-glow: rgba(0, 210, 255, 0.15);
    --purple-glow: rgba(123, 47, 247, 0.15);
    --gradient: linear-gradient(135deg, #00d2ff 0%, #7b2ff7 100%);
    --gradient-hover: linear-gradient(135deg, #00e5ff 0%, #9147ff 100%);
    --green: #28a745;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 100px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

code {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    background: rgba(0, 210, 255, 0.08);
    color: var(--cyan);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85em;
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== NAVIGATION ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    transition: var(--transition) !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
    transform: translateY(-1px);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: var(--transition);
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 30px rgba(0, 210, 255, 0.2), 0 0 60px rgba(0, 210, 255, 0.05);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: 0 8px 40px rgba(0, 210, 255, 0.35), 0 0 80px rgba(0, 210, 255, 0.1);
    transform: translateY(-2px);
}

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ===== HERO ===== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--cyan);
    top: 10%;
    left: -10%;
    opacity: 0.08;
    animation: glow-float 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    bottom: 10%;
    right: -5%;
    opacity: 0.1;
    animation: glow-float 8s ease-in-out infinite 4s;
}

@keyframes glow-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 28px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 210, 255, 0); }
}

#hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.25s; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.55s backwards;
}

.hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-meta-item svg {
    color: var(--text-muted);
    opacity: 0.7;
}

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

/* ===== HERO VISUAL - ORBIT ===== */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.device-ring {
    position: relative;
    width: 380px;
    height: 380px;
}

.ring-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 210, 255, 0.1);
    animation: ring-expand 4s ease-out infinite;
}

.ring-pulse-2 {
    animation-delay: 2s;
}

@keyframes ring-expand {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(0, 210, 255, 0.15), inset 0 0 30px rgba(0, 210, 255, 0.05);
    z-index: 2;
}

.center-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.orbit-device {
    position: absolute;
    width: 72px;
    text-align: center;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform:
        rotate(var(--angle))
        translate(170px)
        rotate(calc(-1 * var(--angle)));
    animation: fadeInOrbit 0.8s ease-out backwards;
    animation-delay: calc(0.5s + var(--delay));
}

@keyframes fadeInOrbit {
    from {
        opacity: 0;
        transform:
            rotate(var(--angle))
            translate(100px)
            rotate(calc(-1 * var(--angle)))
            scale(0.5);
    }
}

.device-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.orbit-device:hover .device-icon {
    border-color: var(--border-glow);
    box-shadow: 0 4px 30px rgba(0, 210, 255, 0.15);
    transform: scale(1.1);
}

.orbit-device span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== SECTIONS SHARED ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: var(--radius-full);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== FEATURES ===== */
#features {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 210, 255, 0.05);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    margin-bottom: 20px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.08);
    border-radius: 14px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

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

/* ===== HOW IT WORKS ===== */
#how-it-works {
    position: relative;
    padding: 120px 0;
    background: var(--bg-secondary);
    z-index: 1;
}

#how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.15), transparent);
}

#how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123, 47, 247, 0.15), transparent);
}

.pipeline-visual {
    max-width: 700px;
    margin: 0 auto;
}

.pipeline-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
}

.pipeline-step.animate-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pipeline-connector {
    display: flex;
    align-items: center;
    padding-left: 23px;
    height: 48px;
}

.connector-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 210, 255, 0.3), rgba(123, 47, 247, 0.3));
    border-radius: 1px;
}

.connector-dot {
    display: none;
}

/* ===== TECH STACK ===== */
#tech {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.tech-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.tech-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px) !important;
}

.tech-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 16px;
}

.tech-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tech-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.stat.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== DOWNLOAD CTA ===== */
#download {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.download-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 210, 255, 0.08), rgba(123, 47, 247, 0.05), transparent 70%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.download-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.download-actions {
    margin-bottom: 24px;
}

.download-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

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

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-copy {
    margin-top: 8px;
    font-size: 0.8rem !important;
    color: var(--text-muted);
    opacity: 0.6;
}

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

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .performance-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        padding: 120px 24px 60px;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-visual {
        max-width: 320px;
    }

    .device-ring {
        width: 300px;
        height: 300px;
    }

    .orbit-device {
        transform:
            rotate(var(--angle))
            translate(130px)
            rotate(calc(-1 * var(--angle)));
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .performance-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 32px 24px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
    }

    .download-card {
        padding: 48px 24px;
    }

    .download-info {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .device-ring {
        width: 260px;
        height: 260px;
    }

    .orbit-device {
        transform:
            rotate(var(--angle))
            translate(110px)
            rotate(calc(-1 * var(--angle)));
    }

    .device-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .performance-stats {
        grid-template-columns: 1fr 1fr;
    }

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