:root {
    --bg-dark: #07090e;
    --bg-card: rgba(14, 18, 28, 0.75);
    --bg-card-hover: rgba(22, 28, 44, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 229, 255, 0.35);
    
    --accent-red: #ff1e42;
    --accent-red-glow: rgba(255, 30, 66, 0.3);
    --accent-cyan: #00e5ff;
    --accent-cyan-glow: rgba(0, 229, 255, 0.25);
    --accent-purple: #9d4edd;
    --accent-gold: #f59e0b;
    --accent-emerald: #00f59b;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 80% 5%, rgba(255, 30, 66, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 15% 30%, rgba(0, 229, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(157, 78, 221, 0.06) 0%, transparent 50%);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==============================================================
   Header Navigation Bar
   ============================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: inherit;
    font-family: var(--font-heading);
    transition: transform var(--transition);
}
.brand-link:hover {
    transform: scale(1.02);
}

.brand-logo-m {
    width: 34px;
    height: 32px;
    object-fit: contain;
    margin-right: -4px;
    filter: drop-shadow(0 2px 10px rgba(255, 30, 66, 0.6));
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-title-rest {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.brand-badge {
    background: linear-gradient(135deg, #ff1e42, #ff477e);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.brand-sub {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Ecosystem Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.nav-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    right: 0;
    width: 290px;
    background: #0d111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-info {
    display: flex;
    flex-direction: column;
}

.dropdown-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
}

.dropdown-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Header CTAs */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff1e42, #ff477e);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 18px var(--accent-red-glow);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 30, 66, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
    color: #ffffff;
}

.btn-gold:hover {
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

/* ==============================================================
   Hero Section
   ============================================================== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 30, 66, 0.1);
    border: 1px solid rgba(255, 30, 66, 0.3);
    color: #ff6b8b;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 auto 20px;
}

.hero h1 .highlight-cyan {
    background: linear-gradient(135deg, #00e5ff, #00f59b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 .highlight-red {
    background: linear-gradient(135deg, #ff1e42, #ff85a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Download Dropdown */
.download-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.download-options-menu {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 290px;
    background: #0e121a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 999;
    text-align: left;
}

.download-options-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.download-dropdown-wrap:hover .download-options-menu,
.download-dropdown-wrap:focus-within .download-options-menu {
    display: flex;
}

.dl-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background var(--transition);
}

.dl-link:hover {
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent-cyan);
}

/* ==============================================================
   Screenshots & Device Showcase
   ============================================================== */
.showcase {
    margin: 40px auto 80px;
    text-align: center;
}

.showcase-frame {
    background: rgba(14, 18, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 229, 255, 0.1);
    padding: 12px;
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.showcase-frame img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

/* Grid of features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin: 60px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ==============================================================
   Comparison Table (Free vs Pro)
   ============================================================== */
.comparison-section {
    margin: 80px 0;
    text-align: center;
}

.comparison-table-wrap {
    max-width: 800px;
    margin: 32px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-heading);
    font-weight: 700;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ==============================================================
   Apps Catalog Page (apps.html)
   ============================================================== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
    margin: 50px 0;
}

.app-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition);
    position: relative;
}

.app-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.app-badge-tag {
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-stream {
    background: rgba(157, 78, 221, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.tag-download {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.tag-soon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.app-product-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.app-product-card p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.55;
}

.app-perks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.app-perks-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.app-perks-list li > span:first-child {
    flex-shrink: 0;
    margin-top: 1px;
}

.app-card-top-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-watch-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 30, 66, 0.12);
    border: 1px solid rgba(255, 30, 66, 0.35);
    color: #ff4d6d;
    font-family: var(--font-main);
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition);
}

.btn-watch-badge:hover {
    background: rgba(255, 30, 66, 0.22);
    border-color: #ff1e42;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 30, 66, 0.4);
    transform: translateY(-1px);
}

.btn-watch-badge svg {
    fill: currentColor;
    transition: transform var(--transition);
}

.btn-watch-badge:hover svg {
    transform: scale(1.15);
}

.app-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.app-card-main-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
}

.app-card-sub-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.app-card-sub-actions .btn-secondary {
    flex: 1;
    justify-content: center;
    font-size: 0.82rem;
    padding: 8px 12px;
    text-align: center;
}

.btn-watch-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 30, 66, 0.08);
    border: 1px solid rgba(255, 30, 66, 0.28);
    color: #f8fafc;
    cursor: pointer;
}

.btn-watch-action:hover {
    background: rgba(255, 30, 66, 0.18);
    border-color: rgba(255, 30, 66, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 30, 66, 0.25);
    transform: translateY(-1px);
}

.play-icon-glow {
    color: #ff1e42;
    filter: drop-shadow(0 0 6px rgba(255, 30, 66, 0.6));
    transition: transform var(--transition);
}

.btn-watch-action:hover .play-icon-glow {
    transform: scale(1.15);
}

/* ==============================================================
   Video Showcase Lightbox Modal
   ============================================================== */
.video-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 7, 13, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal-container {
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85),
                0 0 50px rgba(255, 30, 66, 0.18);
    width: 100%;
    max-width: 960px;
    overflow: hidden;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-backdrop.is-open .video-modal-container {
    transform: scale(1) translateY(0);
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 20, 34, 0.7);
}

.video-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-modal-pill {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ff3366;
    background: rgba(255, 30, 66, 0.12);
    border: 1px solid rgba(255, 30, 66, 0.3);
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
}

.video-modal-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.video-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.video-modal-close:hover {
    background: rgba(255, 30, 66, 0.2);
    border-color: rgba(255, 30, 66, 0.4);
    color: #ffffff;
    transform: scale(1.08);
}

.video-modal-body {
    position: relative;
    background: #000000;
    width: 100%;
}

.video-modal-body .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: #000;
}

.video-modal-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

/* ==============================================================
   Footer
   ============================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    margin-top: 80px;
    background: rgba(5, 7, 11, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 820px) {
    .nav-links {
        display: none;
    }
    .hero {
        padding: 50px 0 40px;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary,
    .download-dropdown-wrap {
        width: 100%;
    }
    .app-card-actions {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
