:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #10b981; /* Emerald green (UNJANI vibe) */
    --accent-color: #f59e0b; /* Amber/Yellow (UNJANI vibe) */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background animated blobs for modern feel */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.3); /* Green */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(245, 158, 11, 0.2); /* Yellow */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 60%;
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.2); /* Blue accent */
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Hero Section */
.hero {
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    width: 100%;
}

.hero.glass-panel {
    padding: 4rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-image-container {
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.logo-container {
    position: relative;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(0,0,0,0.6));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
}

.logo-pulse {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: var(--primary-color);
    z-index: -1;
    animation: pulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 90%;
    line-height: 1.7;
    margin: 0;
}

.logo-pulse {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: var(--primary-color);
    z-index: -1;
    animation: pulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

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

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Panel & Tabs */
.glass-panel {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 16px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tab-btn i {
    font-size: 1.25rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), rgba(16, 185, 129, 0.7));
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Content Area */
.tab-content-wrapper {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

.device-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

/* Interactive Stepper Styles */
.stepper-progress {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.step-indicator {
    width: 40px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.step-indicator.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    width: 60px;
}

.stepper-container {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item {
    display: none; /* Hidden by default */
    text-align: center;
    animation: zoomIn 0.5s ease-out forwards;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.step-item.active {
    display: block;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.step-icon-large {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.step-icon-large.success-icon {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.step-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
}

.step-item p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
}

.step-image-placeholder {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.step-img:hover {
    transform: scale(1.02);
}

.stepper-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-nav i {
    font-size: 1.2rem;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-next {
    background: linear-gradient(135deg, var(--primary-color), rgba(16, 185, 129, 0.8));
    border: none;
    margin-left: auto; /* Pushes next button to right if prev is hidden */
}

.btn-next:hover {
    background: linear-gradient(135deg, #0ea5e9, var(--primary-color));
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Edu Links */
.edu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.edu-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.edu-link i {
    color: var(--primary-color);
}

.edu-link:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

/* Footer */
footer {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero p {
        max-width: 100%;
    }
    
    .hero-visual {
        justify-content: center;
    }

    .hero-image-container {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero.glass-panel {
        padding: 2.5rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .glass-panel {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .step-item {
        padding: 1rem;
    }
    
    .step-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}
