/* ==========================================================================
   RinaV Auto-Reconnecter — Landing Page Stylesheet
   Tailored HSL Palette & Responsive Design
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #080d1a;
    --bg-surface: #0f172a;
    --bg-card: #141e33;
    --bg-card-hover: #1a2744;
    --bg-input: #0b1222;
    
    --border-subtle: #1e293b;
    --border-card: #223252;
    --border-hover: #38bdf8;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --color-cyan: #06b6d4;
    --color-cyan-glow: rgba(6, 182, 212, 0.15);
    
    --color-emerald: #10b981;
    --color-emerald-glow: rgba(16, 185, 129, 0.15);
    
    --color-amber: #f59e0b;
    --color-amber-glow: rgba(245, 158, 11, 0.15);
    
    --color-red: #ef4444;
    --color-purple: #8b5cf6;

    /* Typography */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions & Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo {
    image-rendering: pixelated;
    border-radius: var(--radius-sm);
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.brand-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(6, 182, 212, 0.12);
    color: var(--color-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-main);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-download {
    text-align: left;
}

.btn-text-block {
    display: flex;
    flex-direction: column;
}

.btn-main-text {
    font-size: 16px;
    font-weight: 800;
}

.btn-sub-text {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
}

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

.hero-badge-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
}

.hero-download-counter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fde68a;
}

.counter-fire {
    font-size: 14px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 10px #a855f7;
}

.hero-badge-text {
    font-size: 12px;
    font-weight: 700;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #ffffff;
}

.text-highlight {
    color: #38bdf8;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono);
}

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

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-subtle);
}

/* App UI Mockup */
.app-card-mockup {
    background: #0b0f19;
    border: 1px solid #1f2d47;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #111827;
    border-bottom: 1px solid #1f2d47;
}

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

.ctrl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.app-window-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

.status-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.chip-online {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid #10b981;
}

.app-body {
    padding: 20px;
}

.app-header-area {
    margin-bottom: 16px;
}

.app-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    background: #4c1d95;
    color: #ddd6fe;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.app-title-txt {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.app-sub-txt {
    font-size: 11px;
    color: #94a3b8;
}

.app-hero-status-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #064e3b;
    border: 1px solid #10b981;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.status-icon-circle {
    font-size: 18px;
    color: #10b981;
}

.status-hero-title {
    font-size: 13px;
    font-weight: 700;
    color: #6ee7b7;
}

.status-hero-sub {
    font-size: 11px;
    color: #a7f3d0;
}

.app-server-info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    border: 1px solid #1f2d47;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 12px;
}

.server-info-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
    font-weight: 600;
}

.server-f8-badge {
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-cyan);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.app-terminal {
    background: #080d1a;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    min-height: 120px;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.term-line {
    margin-bottom: 4px;
}

.term-time { color: #64748b; }
.term-info { color: #cbd5e1; }
.term-detect { color: #f87171; font-weight: 700; }
.term-success { color: #34d399; font-weight: 700; }
.term-countdown { color: #fbbf24; font-weight: 700; }

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

.mock-btn-action {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.mock-btn-action:hover {
    background: #334155;
    color: #ffffff;
}

.mock-stats-txt {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}

/* Sections Shared */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: #ffffff;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.icon-cyan { background: var(--color-cyan-glow); }
.icon-red { background: rgba(239, 68, 68, 0.15); }
.icon-emerald { background: var(--color-emerald-glow); }
.icon-amber { background: var(--color-amber-glow); }
.icon-purple { background: rgba(139, 92, 246, 0.15); }
.icon-blue { background: rgba(59, 130, 246, 0.15); }

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-desc code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--color-cyan);
    font-size: 12px;
}

/* Interactive Simulator Card */
.simulator-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    background: linear-gradient(145deg, #0e1628, #141e33);
    border: 1px solid #223252;
    border-radius: var(--radius-xl);
    padding: 48px;
    align-items: center;
}

.simulator-heading {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.simulator-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.simulator-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.sim-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sim-action {
    width: 100%;
}

.code-box {
    background: #080d1a;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.code-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.code-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.code-content {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    color: #38bdf8;
    white-space: pre-wrap;
    min-height: 200px;
}

/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.step-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.step-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-desc code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-cyan);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 24px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Download Banner */
.cta-banner-section {
    padding-top: 40px;
}

.cta-banner-card {
    background: linear-gradient(135deg, #0369a1, #0f172a);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-banner-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.cta-banner-desc {
    font-size: 16px;
    color: #e0f2fe;
}

.btn-cta-download {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 36px 0;
    background: #050811;
}

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

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.footer-brand-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    gap: 12px;
}

.badge-secure {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .simulator-card {
        grid-template-columns: 1fr;
    }

    .cta-banner-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-title {
        font-size: 34px;
    }

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

    .hero-cta-group {
        flex-direction: column;
    }

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