/* ═══════════════════════════════════════════════════════════════════════════
   MORPHIOUS CONNECT — LANDING PAGE
   Futuristic dark theme with glassmorphism, neon accents, animated orbs
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables (matching the Electron app) ─────────────────────────── */
:root {
    --bg-primary: #080510;
    --bg-secondary: #0f0a1e;
    --bg-card: rgba(15, 10, 30, 0.65);
    --bg-card-hover: rgba(20, 14, 40, 0.85);
    --bg-surface: rgba(25, 18, 50, 0.5);

    --accent: #a855f7;
    --accent-dim: #7c3aed;
    --accent-glow: rgba(168, 85, 247, 0.35);
    --accent-gradient: linear-gradient(135deg, #a855f7, #06b6d4);

    --accent-secondary: #06b6d4;
    --accent-tertiary: #ec4899;
    --glow-magenta: rgba(236, 72, 153, 0.2);
    --glow-cyan: rgba(6, 182, 212, 0.2);

    --text-primary: #f1f5f9;
    --text-secondary: #a5b4c8;
    --text-muted: #4a5578;

    --border: rgba(168, 85, 247, 0.1);
    --border-accent: rgba(168, 85, 247, 0.35);
    --glass-border: rgba(168, 85, 247, 0.08);

    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-glow-cyan: 0 0 30px var(--glow-cyan);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    left: -100px;
    animation-duration: 25s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    top: 40%;
    right: -150px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-tertiary);
    bottom: -100px;
    left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(60px, -40px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.95);
    }

    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 5, 16, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    filter: drop-shadow(0 0 12px var(--glow-cyan));
}

.navbar-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    position: relative;
}

.navbar-links a:hover {
    color: var(--text-primary);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: url('bg-hero.png') center top / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(8, 5, 16, 0) 0%,
            rgba(8, 5, 16, 0) 30%,
            rgba(8, 5, 16, 0.3) 55%,
            rgba(8, 5, 16, 0.85) 100%);
    z-index: -1;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.4));
    animation: logoFloat 6s ease-in-out infinite, fadeInUp 1s ease 0.2s both;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-tagline {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-description {
    max-width: 560px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 48px;
    animation: fadeInUp 1s ease 0.8s both;
}

/* Download buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 1s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #0a0e17;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 40px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-disabled {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: default;
    opacity: 0.6;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.coming-soon-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 1.4s both;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.5;
    }

    50% {
        transform: rotate(45deg) translate(4px, 4px);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════════════════════════════════ */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    background: rgba(168, 85, 247, 0.06);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
    position: relative;
}

.feature-icon.icon-purple {
    background: rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.feature-icon.icon-cyan {
    background: rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.feature-icon.icon-pink {
    background: rgba(236, 72, 153, 0.12);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.1);
}

.feature-icon.icon-green {
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════════════════ */
.steps-container {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
}

.step-number.sn-1 {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.step-number.sn-2 {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

.step-number.sn-3 {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-tertiary);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.15);
}

/* Connecting line between steps */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    opacity: 0.3;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLATFORMS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.platform-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.platform-card.active {
    border-color: var(--border-accent);
}

.platform-card.active:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.platform-card.disabled {
    opacity: 0.5;
}

.platform-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.platform-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.platform-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.platform-card .btn {
    width: 100%;
    justify-content: center;
}

.platform-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 12px;
}

.badge-available {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-soon {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 1;
    padding: 48px 24px 32px;
    border-top: 1px solid var(--glass-border);
    background: rgba(8, 5, 16, 0.8);
    backdrop-filter: blur(10px);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    filter: drop-shadow(0 0 8px var(--glow-cyan));
}

.footer-name {
    font-size: 14px;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS (Intersection Observer trigger)
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .navbar-links {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .section {
        padding: 60px 20px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }
}