/* ========================================
   SkyDesk Public Website - Dark Theme
   ======================================== */

:root {
    --primary: #d72638;
    --primary-dark: #b81e2e;
    --primary-light: #ff3d50;
    --primary-rgb: 215, 38, 56;

    --bg-body: #0d1117;
    --bg-dark: #0a0e14;
    --bg-card: #161b22;
    --bg-elevated: #21262d;
    --bg-input: #0d1117;
    --bg-hover: #21262d;

    --border-color: #30363d;
    --border-light: #21262d;

    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    --success: #2ea043;
    --warning: #d29922;
    --danger: #f85149;
    --info: #58a6ff;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --navbar-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

::selection {
    background: rgba(var(--primary-rgb), 0.3);
    color: var(--text-primary);
}

.text-primary {
    color: var(--primary) !important;
}

/* ========================================
   Navbar
   ======================================== */
#mainNavbar {
    background: transparent;
    padding: 16px 0;
    transition: all 0.3s ease;
    z-index: 1050;
    border-bottom: 1px solid transparent;
}

#mainNavbar.scrolled {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#mainNavbar .navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

#mainNavbar .navbar-brand:hover {
    color: var(--text-primary);
}

#mainNavbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

#mainNavbar .nav-link:hover {
    color: var(--text-primary);
}

#mainNavbar .nav-link.active {
    color: var(--primary-light);
}

#mainNavbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.lang-switcher-btn {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 6px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    background: linear-gradient(160deg, #0d1117 0%, #111827 40%, #1a1a2e 70%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(88, 166, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(var(--primary-rgb), 0.04) 0%, transparent 40%);
    z-index: 0;
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-bg-pattern::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    animation: heroFloat 6s ease-in-out infinite;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

.particle-1 {
    width: 4px; height: 4px;
    background: var(--primary-light);
    top: 20%; left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.particle-2 {
    width: 6px; height: 6px;
    background: var(--info);
    top: 60%; left: 85%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.particle-3 {
    width: 3px; height: 3px;
    background: var(--primary);
    top: 80%; left: 30%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.particle-4 {
    width: 5px; height: 5px;
    background: rgba(255, 255, 255, 0.4);
    top: 30%; left: 70%;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.particle-5 {
    width: 4px; height: 4px;
    background: var(--warning);
    top: 50%; left: 20%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.particle-6 {
    width: 3px; height: 3px;
    background: var(--success);
    top: 15%; left: 60%;
    animation-duration: 8s;
    animation-delay: 1.5s;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-120px) translateX(40px); opacity: 0; }
}

/* Glowing Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-orb-1 {
    width: 400px; height: 400px;
    background: rgba(var(--primary-rgb), 0.08);
    top: -10%; left: -5%;
    animation: orbPulse 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px; height: 300px;
    background: rgba(88, 166, 255, 0.06);
    bottom: 10%; right: -5%;
    animation: orbPulse 10s ease-in-out infinite 2s;
}

.hero-orb-3 {
    width: 200px; height: 200px;
    background: rgba(var(--primary-rgb), 0.05);
    top: 50%; left: 40%;
    animation: orbPulse 6s ease-in-out infinite 4s;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(5deg); opacity: 0.6; }
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
}

.hero-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.2); }
    50% { box-shadow: 0 0 20px 4px rgba(var(--primary-rgb), 0.15); }
}

/* Hero Title */
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(135deg, var(--primary-light) 0%, #ff6b7a 30%, var(--info) 70%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4rem;
    margin-top: 4px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 0 0;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .hero-subtitle {
        margin: 0 auto;
    }
}

/* Tech Badges */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.tech-badge:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
}

/* Hero Buttons */
.hero-btn-download {
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.hero-btn-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.hero-btn-download:hover::before {
    transform: translateX(100%);
}

.hero-btn-download:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
}

.hero-btn-learn {
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.hero-btn-learn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ========================================
   Hero Device Mockup
   ======================================== */
.hero-visual {
    position: relative;
    padding: 20px;
}

.hero-device {
    position: relative;
    animation: deviceFloat 5s ease-in-out infinite;
}

@keyframes deviceFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.device-frame {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(var(--primary-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.device-screen {
    position: relative;
}

.device-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.device-dots {
    display: flex;
    gap: 7px;
}

.device-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.device-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
    text-align: center;
    margin-right: 50px;
}

.device-content {
    padding: 24px 20px;
}

.device-id-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(88, 166, 255, 0.03));
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 16px;
}

.device-id-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.device-id-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 3px;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.id-group {
    background: rgba(var(--primary-rgb), 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--primary-light);
}

.device-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--success);
    margin-bottom: 16px;
    font-weight: 500;
}

.status-dot-online {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 160, 67, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(46, 160, 67, 0); }
}

.device-connect-field {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.connect-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.connect-btn-mock {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 10px;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.3);
}

.device-activity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.activity-item i {
    font-size: 14px;
}

.activity-item small {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 11px;
}

/* Floating Badges around device */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(22, 27, 34, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.floating-badge i {
    font-size: 14px;
}

.fb-1 {
    top: 15%; right: -20px;
    animation: fbFloat1 4s ease-in-out infinite;
}
.fb-1 i { color: var(--success); }

.fb-2 {
    bottom: 25%; left: -25px;
    animation: fbFloat2 5s ease-in-out infinite 1s;
}
.fb-2 i { color: var(--warning); }

.fb-3 {
    top: 50%; right: -15px;
    animation: fbFloat3 4.5s ease-in-out infinite 0.5s;
}
.fb-3 i { color: var(--info); }

@keyframes fbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -8px); }
}

@keyframes fbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5px, 6px); }
}

@keyframes fbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -5px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Section Badge
   ======================================== */
.section-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary-light);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: linear-gradient(180deg, #0a0e14 0%, var(--bg-body) 100%);
    padding: 70px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-item {
    padding: 24px;
    background: rgba(var(--primary-rgb), 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s;
}

.stat-item:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
    background: rgba(var(--primary-rgb), 0.04);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-light);
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-value::after {
    content: '+';
    font-size: 2rem;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-body) 0%, #111520 50%, var(--bg-body) 100%);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.feature-card:hover .feature-card-glow {
    opacity: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--info));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(var(--primary-rgb), 0.05);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-light);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.feature-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

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

/* ========================================
   How It Works Section
   ======================================== */
.how-section {
    padding: 100px 0;
    background: var(--bg-body);
}

.steps-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 20px;
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
    box-shadow:
        0 4px 20px rgba(var(--primary-rgb), 0.4),
        0 0 40px rgba(var(--primary-rgb), 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.step-circle i {
    font-size: 28px;
}

.step-circle .step-number {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item:hover .step-circle {
    transform: scale(1.1);
    box-shadow:
        0 8px 30px rgba(var(--primary-rgb), 0.5),
        0 0 60px rgba(var(--primary-rgb), 0.15);
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    margin-bottom: 60px;
    flex-shrink: 0;
    position: relative;
}

.step-connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), 0.2));
}

.step-connector-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
    animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.3); }
}

.step-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 220px;
    margin: 0 auto;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #e02e40 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.cta-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cp-1 {
    width: 200px; height: 200px;
    top: -50px; left: -50px;
    animation: ctaFloat 8s ease-in-out infinite;
}

.cp-2 {
    width: 150px; height: 150px;
    bottom: -30px; right: 10%;
    animation: ctaFloat 10s ease-in-out infinite 2s;
}

.cp-3 {
    width: 80px; height: 80px;
    top: 20%; right: 20%;
    animation: ctaFloat 6s ease-in-out infinite 1s;
}

@keyframes ctaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    50% { transform: translate(20px, -20px) scale(1.1); opacity: 0.2; }
}

.cta-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    position: relative;
    animation: ctaIconPulse 3s ease-in-out infinite;
}

@keyframes ctaIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    position: relative;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 12px auto 0;
    position: relative;
}

.cta-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(var(--primary-rgb), 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cta-btn:hover::before {
    transform: translateX(100%);
}

.cta-btn:hover {
    background: var(--text-primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Page Header (Inner Pages)
   ======================================== */
.page-header {
    background: linear-gradient(160deg, #0d1117 0%, #111827 50%, #1a1a2e 100%);
    padding: 140px 0 60px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.06) 0%, transparent 60%);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
    margin-top: 10px;
}

/* ========================================
   Features Detail Page
   ======================================== */
.features-detail-section {
    padding: 80px 0;
}

.feature-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    display: flex;
    gap: 24px;
    transition: all 0.3s;
}

.feature-detail-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.feature-detail-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-light);
}

.feature-detail-card:hover .feature-detail-icon {
    background: var(--primary);
    color: white;
}

.feature-detail-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-detail-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.feature-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-detail-list li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 13.5px;
}

/* ========================================
   Download Page
   ======================================== */
.download-section { padding: 60px 0 80px; }
.download-main-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.download-card-header { padding: 24px 28px; border-bottom: 1px solid var(--border-color); background: var(--bg-elevated); }
.download-platform-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(var(--primary-rgb), 0.1); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--info); }
.download-card-body { padding: 28px; }
.download-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.download-info-item { display: flex; flex-direction: column; gap: 4px; }
.download-info-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.download-info-value { font-size: 15px; color: var(--text-primary); font-weight: 600; }
.download-hash-value { font-size: 11px; color: var(--text-muted); background: var(--bg-body); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-color); word-break: break-all; display: block; }
.download-btn { padding: 16px; font-size: 16px; font-weight: 700; border-radius: 12px; background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4); transition: all 0.3s; }
.download-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5); }
.system-req-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; }
.system-req-list { list-style: none; padding: 0; margin: 0; }
.system-req-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 13.5px; }
.system-req-list li:last-child { border-bottom: none; }
.req-label { color: var(--text-muted); font-weight: 500; min-width: 70px; }
.req-value { color: var(--text-secondary); text-align: right; }
.platform-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; }
.platform-item { display: flex; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--bg-body); border: 1px solid var(--border-light); color: var(--text-muted); font-size: 14px; font-weight: 500; }
.platform-item.disabled { opacity: 0.6; }
.accordion-dark .accordion-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px !important; margin-bottom: 8px; overflow: hidden; }
.accordion-dark .accordion-button { background: var(--bg-card); color: var(--text-primary); font-size: 14px; font-weight: 500; border: none; box-shadow: none; padding: 16px 20px; }
.accordion-dark .accordion-button:not(.collapsed) { background: var(--bg-elevated); color: var(--primary-light); box-shadow: none; }
.accordion-dark .accordion-button::after { filter: brightness(0.6); }
.accordion-dark .accordion-button:not(.collapsed)::after { filter: brightness(0.8) sepia(1) hue-rotate(-20deg); }
.accordion-dark .accordion-body { background: var(--bg-card); padding: 16px 20px; border-top: 1px solid var(--border-light); }

/* ========================================
   Contact Page
   ======================================== */
.contact-section { padding: 60px 0 80px; }
.contact-form-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; }
.contact-info-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 28px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon { width: 42px; height: 42px; min-width: 42px; border-radius: 10px; background: rgba(var(--primary-rgb), 0.1); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary-light); }
.contact-info-item h6 { color: var(--text-primary); font-size: 14px; font-weight: 600; }
.contact-social-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; }
.social-icon-lg { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-body); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-secondary); transition: all 0.2s; }
.social-icon-lg:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); }

/* ========================================
   FAQ Page
   ======================================== */
.faq-section { padding: 60px 0 80px; }
.faq-tabs .nav-link { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: 8px; padding: 8px 20px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.faq-tabs .nav-link:hover { color: var(--text-primary); border-color: var(--primary); }
.faq-tabs .nav-link.active { background: var(--primary); border-color: var(--primary); color: white; }
.faq-cta { padding: 30px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; }

/* ========================================
   Forms (Public)
   ======================================== */
.form-control, .form-select { background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 10px; padding: 12px 16px; font-size: 14px; transition: all 0.2s; }
.form-control:focus, .form-select:focus { background: var(--bg-input); border-color: var(--primary); color: var(--text-primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15); }
.form-control::placeholder { color: var(--text-muted); }
.form-label { font-weight: 500; font-size: 13.5px; color: var(--text-secondary); margin-bottom: 6px; }
.input-group-text { background: var(--bg-elevated); border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 10px 0 0 10px; }
.invalid-feedback { font-size: 12.5px; }

/* ========================================
   Buttons
   ======================================== */
.btn-primary { background: var(--primary); border-color: var(--primary); color: white; font-weight: 600; border-radius: 10px; transition: all 0.3s; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.btn-outline-primary { color: var(--primary-light); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: white; }
.btn-outline-light { color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.2); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: white; }

/* ========================================
   Alerts / Badges
   ======================================== */
.alert { border-radius: 12px; font-size: 14px; border: none; }
.alert-success { background: rgba(46, 160, 67, 0.1); color: #3fb950; }
.alert-danger { background: rgba(248, 81, 73, 0.1); color: #f85149; }
.alert-warning { background: rgba(210, 153, 34, 0.1); color: #d29922; }
.alert-info { background: rgba(88, 166, 255, 0.1); color: #58a6ff; }
.alert .btn-close { filter: brightness(0.5); }
.badge { font-weight: 500; font-size: 12px; padding: 5px 12px; border-radius: 6px; }

/* ========================================
   Footer
   ======================================== */
.site-footer { background: var(--bg-dark); border-top: 1px solid var(--border-color); padding-top: 20px; }
.footer-heading { color: var(--text-primary); font-weight: 600; font-size: 15px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a { color: var(--text-secondary); font-size: 14px; transition: all 0.2s; }
.footer-links li a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-contact li { display: flex; align-items: center; }
.social-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-secondary); transition: all 0.2s; }
.social-icon:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); }
.footer-bottom { padding: 20px 0; border-top: 1px solid var(--border-color); margin-top: 10px; }
.footer-lang-switcher a { color: var(--text-muted); font-size: 13px; transition: color 0.2s; }
.footer-lang-switcher a:hover, .footer-lang-switcher a.active { color: var(--primary-light); }

/* ========================================
   Dropdown Menu Dark
   ======================================== */
.dropdown-menu-dark { background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); padding: 6px; }
.dropdown-menu-dark .dropdown-item { color: var(--text-secondary); font-size: 13.5px; padding: 8px 14px; border-radius: 6px; transition: all 0.15s; }
.dropdown-menu-dark .dropdown-item:hover, .dropdown-menu-dark .dropdown-item:focus { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-menu-dark .dropdown-item.active { background: rgba(var(--primary-rgb), 0.15); color: var(--primary-light); }

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.5rem; }
    .hero-title-gradient { font-size: 3rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .section-title { font-size: 1.8rem; }
    .steps-wrapper { flex-direction: column; }
    .step-connector { width: 2px; height: 40px; margin-bottom: 0; flex-direction: column; }
    .step-connector-line { width: 2px; height: 100%; background: linear-gradient(180deg, var(--primary), rgba(var(--primary-rgb), 0.2)); }
    .step-connector-dot { top: 50%; left: 50%; transform: translate(-50%, -50%); }
    #mainNavbar .navbar-collapse { background: rgba(13, 17, 23, 0.98); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; margin-top: 10px; }
    #mainNavbar .nav-link.active::after { display: none; }
    .feature-detail-card { flex-direction: column; }
    .download-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 2rem; }
    .hero-title-gradient { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-btn-download, .hero-btn-learn { width: 100%; max-width: 280px; }
    .stat-value { font-size: 2.2rem; }
    .page-title { font-size: 2rem; }
    .cta-title { font-size: 1.8rem; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.7rem; }
    .hero-title-gradient { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .contact-form-card, .contact-info-card { padding: 20px; }
}

/* ========================================
   Animations / Transitions
   ======================================== */
.feature-card,
.feature-detail-card,
.stat-item,
.step-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.feature-detail-card.visible,
.stat-item.visible,
.step-item.visible {
    opacity: 1;
    transform: translateY(0);
}

main {
    animation: fadeInUp 0.4s ease-out;
}

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