/* ==========================================================================
   RU Player Landing Page Stylesheet - Vanilla CSS
   ========================================================================== */

:root {
    --bg-primary: #0a0a0e;
    --bg-secondary: #121217;
    --bg-card: rgba(26, 26, 36, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.3);
    
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-primary) 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.btn-tertiary:hover {
    color: var(--accent);
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.btn-icon-right {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    transition: transform var(--transition-fast);
}

.btn-tertiary:hover .btn-icon-right {
    transform: translateX(4px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.accent-text {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-specs {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spec-item .bullet {
    color: var(--accent);
    margin-right: 4px;
    font-weight: bold;
}

/* Hero Visual & Mockup Frame */
.hero-visual {
    position: relative;
    z-index: 2;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.app-mockup {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform var(--transition-normal);
}

.mockup-wrapper:hover .app-mockup {
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) scale(1.02);
}

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
    background-color: #0b0b10;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.4rem;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
}

/* Colors for icon wrapper */
.bg-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.bg-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.bg-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.bg-violet { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.bg-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.bg-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Interactive Demonstration Section */
.interface {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.layout-visual {
    width: 100%;
}

.app-window-frame {
    width: 100%;
    background-color: #16161a;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.frame-header {
    height: 38px;
    background-color: #0f0f12;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 0 0 1rem;
    position: relative;
}

.frame-logo-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.frame-icon-img {
    width: 16px;
    height: 16px;
}

.frame-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.frame-controls {
    display: flex;
    margin-left: auto;
    height: 100%;
}

.win-btn {
    width: 46px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.win-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.win-btn.close:hover {
    background-color: #e81123;
    color: #ffffff;
}

.frame-body {
    padding: 0;
}

.player-view {
    height: 280px;
    background-color: #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-only-view {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: #0d0d12;
}

.audio-note {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.audio-note svg {
    width: 28px;
    height: 28px;
}

.audio-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.audio-mode {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.video-overlay-view {
    display: flex;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('assets/ruplayer_mockup.png') center/cover no-repeat;
    align-items: center;
    justify-content: center;
}

.video-play-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.video-play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.video-play-btn:hover {
    transform: scale(1.1);
}

.update-popup-mock {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 14, 0.85);
    align-items: center;
    justify-content: center;
}

.popup-box {
    width: 320px;
    background-color: #1c1c22;
    border: 1.5px solid var(--accent);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.popup-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.popup-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--accent);
    transition: width 0.1s linear;
}

.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.popup-btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.popup-btn.flat {
    background-color: transparent;
    color: var(--text-secondary);
}

.popup-btn.flat:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.popup-btn.accent {
    background-color: var(--accent);
    color: #ffffff;
}

.popup-btn.accent:hover {
    background-color: var(--accent-hover);
}

/* Layout Content (Interface Controls) */
.layout-content {
    display: flex;
    flex-direction: column;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.toggle-panel {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    color: #ffffff;
}

.toggle-btn.active {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

.details-box {
    min-height: 120px;
}

.details-item {
    display: none;
}

.details-item.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.details-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.details-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

/* Download Section */
.download-section {
    padding: 6rem 0;
    background-color: #0b0b10;
}

.download-card {
    position: relative;
    background: radial-gradient(100% 100% at 0% 0%, #1e1b4b 0%, #111115 100%);
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    padding: 4.5rem 3rem;
    text-align: center;
    overflow: hidden;
}

.download-card-glow {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.download-title {
    font-size: 2.8rem;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.download-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

.download-btns {
    margin-bottom: 2rem;
}

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

.separator {
    color: rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background-color: var(--bg-primary);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-specs {
        justify-content: center;
    }
    
    .app-mockup {
        transform: none;
    }
    
    .mockup-wrapper:hover .app-mockup {
        transform: scale(1.01);
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-links a:not(.btn) {
        display: none; /* Hide standard links on mobile to save space */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .download-card {
        padding: 3rem 1.5rem;
    }
    
    .download-title {
        font-size: 2.2rem;
    }
    
    .download-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .download-details .separator {
        display: none;
    }
    
    .footer-wrap {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Legal Document Page Styling
   ========================================================================== */
.doc-page {
    padding-top: 10rem;
    padding-bottom: 6rem;
    position: relative;
}

.doc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.doc-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3.5rem 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.doc-title {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
}

.doc-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.doc-content h3 {
    font-size: 1.35rem;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.doc-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.doc-content ul {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .doc-card {
        padding: 2rem 1.5rem;
    }
    .doc-title {
        font-size: 2rem;
    }
}
