/* ==========================================================================
   MOBILE AS A WEBCAM — OFFICIAL DOWNLOAD PAGE
   Inspired by Iriun Webcam & DroidCam.
   Clean, authentic, professional desktop software landing page.
   ========================================================================== */

:root {
    --bg-dark: #0c1017;
    --bg-card: rgba(18, 24, 38, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(56, 189, 248, 0.35);

    --primary-cyan: #38bdf8;
    --primary-blue: #0284c7;

    /* Iriun Signature Cyan Gradient */
    --iriun-gradient: linear-gradient(180deg, #38c3eb 0%, #22a3cb 50%, #1085aa 100%);
    --iriun-gradient-hover: linear-gradient(180deg, #4fd0f5 0%, #2db4dd 50%, #1597c2 100%);

    --text-white: #ffffff;
    --text-slate: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --radius-pill: 50px;
    --radius-card: 16px;
    --radius-window: 12px;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

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

/* ==========================================================================
   ANIMATED SPACE & AURORA BACKDROP (Iriun Atmosphere)
   ========================================================================== */
.space-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 12%, #131e33 0%, #0c1017 80%);
}

#starfieldCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* Floating Aurora Light Orbs with Continuous Ambient Motion */
.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    will-change: transform, opacity;
}

.orb-1 {
    width: 520px;
    height: 520px;
    background: #0284c7;
    top: -100px;
    right: 5%;
    opacity: 0.28;
    animation: floatOrb1 16s ease-in-out infinite alternate;
}

.orb-2 {
    width: 460px;
    height: 460px;
    background: #4f46e5;
    bottom: 10%;
    left: -80px;
    opacity: 0.22;
    animation: floatOrb2 20s ease-in-out infinite alternate;
}

.orb-3 {
    width: 380px;
    height: 380px;
    background: #0ea5e9;
    top: 45%;
    right: 30%;
    opacity: 0.16;
    animation: floatOrb3 24s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 40px) scale(1.12); opacity: 0.35; }
    100% { transform: translate(30px, -20px) scale(0.95); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.15); opacity: 0.3; }
    100% { transform: translate(-20px, 50px) scale(0.9); }
}

@keyframes floatOrb3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -30px) scale(1.1); opacity: 0.22; }
    100% { transform: translate(40px, 20px) scale(1); }
}

/* ==========================================================================
   CONTAINER & NAVIGATION
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(12, 16, 23, 0.85);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-slate);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--text-white);
}

.nav-download-btn {
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary-cyan) !important;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.nav-download-btn:hover {
    background: var(--primary-cyan) !important;
    color: #0b0f19 !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 64px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.app-symbol {
    width: 52px;
    height: 52px;
}

.lens-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.4));
}

.main-heading {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1;
}

.hero-pitch {
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-pitch strong {
    color: #ffffff;
}

/* ==========================================================================
   DOWNLOAD BUTTONS (Iriun Pill Style)
   ========================================================================== */
.client-downloads {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 440px;
    margin-bottom: 28px;
}

.btn-download-primary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 24px;
    background: var(--iriun-gradient);
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: #ffffff;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 6px 22px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(34, 163, 203, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-download-primary:hover {
    background: var(--iriun-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(34, 163, 203, 0.5);
}

.btn-download-primary .platform-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.btn-download-primary .platform-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.btn-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-subtitle {
    font-size: 0.76rem;
    opacity: 0.85;
    font-weight: 400;
}

.dl-arrow {
    margin-left: auto;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dl-arrow svg {
    width: 16px;
    height: 16px;
}

/* Secondary Button (Mac) */
.btn-download-secondary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(25, 33, 49, 0.55);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #94a3b8;
    cursor: default;
    transition: all 0.2s ease;
}

.btn-download-secondary .platform-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #94a3b8;
}

.btn-download-secondary .platform-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.btn-download-secondary .btn-title {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.btn-download-secondary .btn-subtitle {
    color: #64748b;
}

/* ==========================================================================
   OFFICIAL MOBILE STORE BADGES (Google Play & App Store)
   ========================================================================== */
.mobile-store-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 7px 14px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.store-pill:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: #111827;
    transform: translateY(-1px);
}

.store-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-caption {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.store-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
}

/* ==========================================================================
   DEVICE MOCKUP (PC Receiver & Phone)
   ========================================================================== */
.hero-mockup-col {
    display: flex;
    justify-content: center;
    position: relative;
}

.mockup-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
}

/* PC App Window */
.pc-app-window {
    background: #111827;
    border-radius: var(--radius-window);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(56, 189, 248, 0.12);
    overflow: hidden;
}

.pc-titlebar {
    background: #1f2937;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-buttons {
    display: flex;
    gap: 6px;
}

.win-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.win-close { background: #ef4444; }
.win-min { background: #f59e0b; }
.win-max { background: #10b981; }

.pc-window-title {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 500;
    margin-right: auto;
}

.pc-fps-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 7px;
    border-radius: var(--radius-pill);
}

.pc-content {
    padding: 10px;
    background: #030712;
}

.camera-viewport {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.camera-stream-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stream-stat-bar {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.stat-pill {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.active-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
}

/* Smartphone Mockup */
.smartphone-frame {
    position: absolute;
    width: 155px;
    height: 285px;
    bottom: -24px;
    left: -20px;
    background: #111827;
    border-radius: 26px;
    border: 3px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

.phone-camera-punch {
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    margin: 3px auto 5px;
}

.phone-display {
    flex: 1;
    background: #030712;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.phone-live-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 2;
}

.phone-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-bottom-info {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 5px;
    padding: 3px 5px;
    font-size: 0.58rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
}

.phone-port {
    color: #38bdf8;
    font-weight: 700;
}

/* ==========================================================================
   FEATURES STRIP (DroidCam Icons)
   ========================================================================== */
.features-bar {
    padding: 36px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(17, 24, 39, 0.35);
}

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

.feature-col {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-ico {
    width: 42px;
    height: 42px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.feature-ico svg {
    width: 20px;
    height: 20px;
}

.feature-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.feature-sub {
    font-size: 0.82rem;
    color: var(--text-slate);
    line-height: 1.4;
}

/* ==========================================================================
   HOW IT WORKS (DroidCam 3 Simple Steps)
   ========================================================================== */
.how-section {
    padding: 72px 0 64px;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 42px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 4px;
}

.section-subheading {
    font-size: 0.95rem;
    color: var(--text-slate);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 28px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.step-box:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.step-box-highlight {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(14, 116, 144, 0.1);
}

.step-num {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.step-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    margin-bottom: 16px;
}

.step-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-slate);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.step-stores span {
    font-size: 0.8rem;
    color: #64748b;
}

.step-cta-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.step-cta-link:hover {
    text-decoration: underline;
}

.active-label {
    color: #10b981;
    font-weight: 600;
}

/* ==========================================================================
   COMPATIBILITY BAR
   ========================================================================== */
.compatibility-bar {
    padding: 30px 0 50px;
    text-align: center;
}

.compat-header {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.compat-chips {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-subtle);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    color: #cbd5e1;
}

.chip-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-cyan);
    border-radius: 50%;
}

/* ==========================================================================
   BOTTOM BANNER
   ========================================================================== */
.bottom-banner {
    padding: 30px 0 70px;
}

.banner-inner {
    background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.2) 0%, rgba(15, 23, 42, 0.5) 80%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-card);
    padding: 40px 24px;
    text-align: center;
}

.stars-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.star-icons {
    color: #facc15;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-caption {
    font-size: 0.88rem;
    color: var(--text-slate);
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 22px;
}

.banner-button-wrap {
    display: flex;
    justify-content: center;
}

.btn-large {
    max-width: 440px;
    width: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
    background: #090d14;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-slate);
}

.footer-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

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

.footer-links a {
    color: var(--text-slate);
    font-size: 0.84rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .brand-title-row {
        justify-content: center;
    }

    .client-downloads {
        margin: 0 auto 28px;
    }

    .mobile-store-badges {
        justify-content: center;
    }

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

    .steps-row {
        grid-template-columns: 1fr;
    }

    .smartphone-frame {
        display: none;
    }
}

@media (max-width: 600px) {
    .main-heading {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
    }

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

    .footer-wrap {
        flex-direction: column;
        text-align: center;
    }
}
