/* ========================================================= 
HERO — ULTRA SMOOTH VERSION
========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* GPU SAFE */
.hero,
.image-frame,
.floating-label,
.glass-card {
    will-change: transform, opacity;
}


/* =========================================================
GLOW (OPTIMIZED)
========================================================= */

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;

    background: radial-gradient(
        circle,
        rgba(0,102,255,0.18),
        transparent 70%
    );

    top: -150px;
    right: -150px;

    filter: blur(60px); /* reduced */
    opacity: 0.6;

    z-index: 0;
}


/* =========================================================
GRID
========================================================= */

.hero-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;
    gap: var(--space-7);
}

.hero-content {
    padding-right: 30px;
}


/* =========================================================
TEXT
========================================================= */

.hero-content h1 {
    margin-bottom: var(--space-4);
}

.hero-subtext {
    max-width: 520px;
    margin-bottom: var(--space-5);
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
}


/* =========================================================
BUTTON — FIXED PREMIUM
========================================================= */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.25s ease;
}

/* PRIMARY (main CTA) */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #fff;
    border: none;

    box-shadow: 0 10px 25px rgba(59,130,246,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59,130,246,0.45);
}

/* OUTLINE */
.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}


/* =========================================================
VISUAL
========================================================= */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


/* =========================================================
IMAGE FRAME
========================================================= */

.image-frame {
    position: relative;
    width: 100%;
    max-width: 520px;

    border-radius: var(--radius-2xl);
    overflow: hidden;

    background: var(--bg-elevated);
    box-shadow: var(--shadow-xl);

    transition: transform 0.3s ease;
}

.image-frame:hover {
    transform: translateY(-4px);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================================================
FLOATING LABEL (LIGHT VERSION)
========================================================= */

.floating-label {
    position: absolute;

    padding: 8px 14px;
    font-size: 12px;

    border-radius: 50px;

    background: rgba(255,255,255,0.6);
    border: 1px solid var(--border-color);

    font-weight: 600;

    animation: floatY 5s ease-in-out infinite;
}

.floating-label.top {
    top: 20px;
    right: 20px;
}

.floating-label.bottom {
    bottom: 20px;
    left: 20px;
}

@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}


/* =========================================================
GLASS CARD (PERFORMANCE SAFE)
========================================================= */

.glass-card {
    position: absolute;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);

    padding: 14px 18px;
    border-radius: var(--radius-xl);

    font-size: 12px;

    animation: floatY 7s ease-in-out infinite;
}

.glass-card span {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.card-1 {
    top: -20px;
    left: -30px;
}

.card-2 {
    bottom: -30px;
    right: -30px;
}


/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 992px) {

.hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
}

.hero-content {
    padding-right: 0;
}

.hero-buttons {
    justify-content: center;
}

.hero-visual {
    margin-top: var(--space-6);
}

/* REMOVE HEAVY ELEMENT */
.glass-card {
    display: none;
}

}                                                  

/* =========================================================
Floating Labels — PREMIUM UPGRADE
========================================================= */

.floating-label {
    position: absolute;
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 50px;
    background: var(--bg-elevated);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    font-weight: 600;
    z-index: 5;
    background: rgba(255,255,255,0.08);
    
    /* Upgrade: Random movement + scale + rotate */
    animation: floatLabelPremium 6s ease-in-out infinite;
}

/* Banyak titik float, mix posisi */
.floating-label.top-right    { top: 20px; right: 20px; }
.floating-label.bottom-left  { bottom: 20px; left: 20px; }
.floating-label.top-left     { top: 40px; left: 30px; }
.floating-label.bottom-right { bottom: 40px; right: 30px; }
.floating-label.middle-left  { top: 50%; left: 0; transform: translateY(-50%); }
.floating-label.middle-right { top: 50%; right: 0; transform: translateY(-50%); }

/* Floating Animation Upgrade */
@keyframes floatLabelPremium {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-6px) rotate(-2deg) scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-12px) rotate(2deg) scale(1.1);
        opacity: 0.95;
    }
    75% {
        transform: translateY(-6px) rotate(-1deg) scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.85;
    }
}

/* Responsive tweak */
@media (max-width: 992px) {
    .floating-label.top-right    { top: 18px; right: 18px; }
    .floating-label.bottom-left  { bottom: 18px; left: 18px; }
    .floating-label.top-left     { top: 30px; left: 20px; }
    .floating-label.bottom-right { bottom: 30px; right: 20px; }
    .floating-label.middle-left,
    .floating-label.middle-right {
        display: none; /* simplify on mobile */
    }
}      

/* =========================================================
WHY SECTION — ULTRA SMOOTH SLIDER (FIXED PERFECT)
========================================================= */

.why-header {
    margin-bottom: var(--space-5);
}

/* ================= SLIDER ================= */

.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.slider {
    display: flex;
    gap: 20px;

    flex-wrap: nowrap;

    /* 🔥 REMOVE SCROLL SYSTEM */
    overflow: hidden;

    transform: translate3d(0,0,0);
}

/* ================= CARD ================= */

.why-card {
    min-width: 280px;
    max-width: 280px;

    flex-shrink: 0;

    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: 18px;

    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);

    transition: transform 0.2s ease;

    contain: content;
}

/* ================= IMAGE ================= */

.why-card img {
    width: 100%;
    height: 130px;

    object-fit: cover;

    border-radius: var(--radius-lg);
    margin-bottom: 12px;

    display: block;

    /* 🔥 PREVENT IMAGE LAG */
    backface-visibility: hidden;
}

/* ================= TEXT ================= */

.why-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.why-card p {
    font-size: 13.5px;
    line-height: 1.5;
    opacity: 0.75;
}

/* ================= HOVER ================= */

.why-card:hover {
    transform: translateY(-3px);
}

/* ================= PERFORMANCE ================= */

.slider,
.why-card {
    will-change: transform;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .why-card {
        min-width: 240px;
        max-width: 240px;
    }

    .why-card img {
        height: 110px;
    }

}

/* =====================================================
   SHOWCASE SECTION — Luxury Upgrade (Theme Safe)
===================================================== */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 70px;
}

/* ================================
   CARD BASE
================================ */

.showcase-card {
    border-radius: 30px;
    overflow: hidden;
    /* === UBAH === transition: all 0.4s ease; → transform + box-shadow === */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(6px); /* kalau scroll masih lag, tukar ke 6px */
    will-change: transform;
}

/* ================================
   🌙 DARK MODE
================================ */

[data-theme="dark"] .showcase-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

[data-theme="dark"] .showcase-card:hover {
    transform: translateY(-12px);
    border-color: rgba(59,130,246,0.6);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

[data-theme="dark"] .showcase-content h3 {
    color: #ffffff;
}

[data-theme="dark"] .showcase-content p {
    color: rgba(255,255,255,0.6);
}

/* ================================
   🌞 LIGHT MODE
================================ */

[data-theme="light"] .showcase-card {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .showcase-card:hover {
    transform: translateY(-12px);
    border-color: rgba(59,130,246,0.6);
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

[data-theme="light"] .showcase-content h3 {
    color: #111827;
}

[data-theme="light"] .showcase-content p {
    color: rgba(0,0,0,0.6);
}

/* ================================
   IMAGE AREA
================================ */

.showcase-image {
    height: 300px;
    background: linear-gradient(135deg, #141E2A, #0F1621);
}

.website-bg {
    background: linear-gradient(135deg, #1B2435, #0E1624);
}

.showcase-content {
    padding: 45px;
}

/* ================================
   BUTTON
================================ */

.showcase-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.showcase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59,130,246,0.4);
}

/* ================================
   Responsive
================================ */

@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================================
PRICING SECTION — PREMIUM CONVERSION SYSTEM
========================================================= */

.pricing-grid {
    margin-top: var(--space-7);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

/* =========================================================
CARD BASE
========================================================= */

.price-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    padding: 40px 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* =========================================================
FEATURED CARD
========================================================= */

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
}

/* =========================================================
HEADER
========================================================= */

.price-header {
    margin-bottom: 24px;
}

.price-header h3 {
    font-size: 20px;
    font-weight: 600;
}

/* =========================================================
PRICE STYLE (Animated Ready)
========================================================= */

.price {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

/* Hover grow effect */
.price-card:hover .price {
    transform: scale(1.06);
}

/* Featured highlight */
.price-card.featured .price {
    color: var(--primary);
}

/* Dark mode subtle glow */
body.dark .price {
    text-shadow: 0 0 30px rgba(59,130,246,0.25);
}

/* Custom price (no animation) */
.custom-price {
    font-size: 32px;
    font-weight: 700;
}

/* =========================================================
FEATURE LIST
========================================================= */

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    font-size: 14px;
    opacity: 0.85;
}

/* =========================================================
BUTTON
========================================================= */

.full {
    width: 100%;
    text-align: center;
}

/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
    .pricing-grid {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .price-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* =========================================================
FINAL CTA SECTION — SYSTEM CONSISTENT PREMIUM
========================================================= */

.final-cta {
    padding: var(--space-8) 0;
    position: relative;
}

/* Glass Card Container */
.final-cta .container {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle Accent Glow (uses your accent variable) */
.final-cta .container::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        var(--accent) 0%,
        transparent 70%
    );
    opacity: 0.08;
    top: -150px;
    right: -150px;
    z-index: 0;
}

/* Ensure content above glow */
.final-cta .container > * {
    position: relative;
    z-index: 2;
}

/* Headline */
.final-cta h2 {
    margin-bottom: var(--space-3);
}

/* Subtext */
.final-cta p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.75;
}

/* CTA Buttons */
.cta-actions {
    margin-top: var(--space-5);
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Slight upgrade to buttons inside CTA */
.final-cta .btn-primary {
    box-shadow: var(--glow-blue);
}

.final-cta .btn-primary:hover {
    transform: translateY(-3px);
}

.final-cta .btn-outline:hover {
    background: var(--bg-secondary);
}


/* =========================================================
FOOTER SYSTEM — ENTERPRISE SaaS v3 (FIXED + UPGRADED)
========================================================= */

.footer {
    position: relative;
    background: linear-gradient(
        to bottom,
        var(--bg-dark),
        rgba(0,0,0,0.02)
    );
    padding: 120px 0 50px;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

/* glow line */
.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent),
        transparent
    );
    opacity: 0.4;
}

/* background glow */
.footer::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(
        circle,
        var(--accent) 0%,
        transparent 70%
    );
    opacity: 0.04;
    bottom: -300px;
    left: -250px;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 2;
}

/* GRID */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 70px;
}

/* BRAND */
.footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.65;
    line-height: 1.7;
    max-width: 400px;
}

/* TITLES */
.footer-links h4 {
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* LINKS */
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 🔥 FIX BLUE LINK ISSUE */
.footer-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text); /* FORCE COLOR */
    opacity: 0.6;
    transition: var(--transition-fast);
    position: relative;
}

/* remove visited blue */
.footer-links a:visited {
    color: var(--text);
}

/* hover */
.footer-links a:hover {
    opacity: 1;
    transform: translateX(4px);
}

/* underline animation */
.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* 🔥 CONTACT STYLE (WS + EMAIL) */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.7;
    transition: 0.3s;
}

.contact-item:hover {
    opacity: 1;
    transform: translateX(4px);
}

/* emoji size fix */
.contact-item span {
    font-size: 16px;
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-item {
        justify-content: center;
    }
}





/* =========================================================
UIMASON TREE — OPTIMIZED (LOW-END FRIENDLY)
========================================================= */

.growth-tree {
    position: relative;
    overflow: hidden;
}

/* ================= WRAPPER ================= */

.tree-wrapper {
    position: relative;
    max-width: 900px;
    margin: auto;
    padding: 120px 20px 60px;
}

/* ================= CENTER LINE ================= */

.tree-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;

    background: linear-gradient(
        to bottom,
        transparent,
        #3b82f6,
        #7c3aed,
        transparent
    );

    transform: translateX(-50%);
    opacity: 0.4;
}

/* ================= TREE IMAGE ================= */

.tree-image {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;

    width: 140px;
    height: 140px;

    border-radius: 50%;
    overflow: hidden;

    border: 2px solid rgba(59,130,246,0.4);
    box-shadow: 0 10px 25px rgba(59,130,246,0.2);
}

.tree-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= NODE ================= */

.tree-node {
    position: relative;
    width: 45%;

    padding: 16px;
    margin: 50px 0;

    border-radius: 12px;

    background: var(--bg-elevated);
    border: 1px solid var(--border-color);

    box-shadow: var(--shadow-sm);

    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* LEFT / RIGHT */

.tree-node.left {
    margin-right: auto;
    text-align: right;
}

.tree-node.right {
    margin-left: auto;
}

/* DOT */

.tree-node::before {
    content: "";
    position: absolute;
    top: 18px;

    width: 10px;
    height: 10px;

    background: #3b82f6;
    border-radius: 50%;
}

/* dot position */

.tree-node.left::before {
    right: -22px;
}

.tree-node.right::before {
    left: -22px;
}

/* ================= TEXT ================= */

.tree-node h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.tree-node p {
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.5;
}

/* ================= REVEAL ================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= LIGHT MODE ================= */

[data-theme="light"] .tree-node {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    color: #111827;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* ================= MOBILE FIX ================= */

@media (max-width: 768px) {

    .tree-wrapper {
        padding: 80px 16px 40px;
    }

    .tree-line {
        left: 20px;
        transform: none;
    }

    .tree-image {
        left: 20px;
        transform: none;
        width: 90px;
        height: 90px;
    }

    .tree-node {
        width: 100%;
        margin: 30px 0 30px 40px;
        text-align: left !important;
    }

    .tree-node.left,
    .tree-node.right {
        margin-left: 40px;
        margin-right: 0;
    }

    .tree-node::before {
        left: -24px !important;
        right: auto;
    }
}




/* SINGLE SHOWCASE */

.showcase-single{
margin-top:50px;
display:flex;
justify-content:center;
}

.showcase-main-card{
display:grid;
grid-template-columns:1.2fr 1fr;
background:var(--card-bg);
border-radius:20px;
overflow:hidden;
max-width:1000px;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
transition:all .3s ease;
}

.showcase-main-card:hover{
transform:translateY(-6px);
}

.showcase-main-image{
background-size:cover;
background-position:center;
min-height:320px;
}

.showcase-main-content{
padding:40px;
display:flex;
flex-direction:column;
justify-content:center;
gap:18px;
}

.showcase-main-content h3{
font-size:26px;
}

.showcase-main-content p{
opacity:0.8;
line-height:1.6;
}

/* Responsive */

@media(max-width:768px){

.showcase-main-card{
grid-template-columns:1fr;
}

.showcase-main-image{
height:220px;
}

}


/* ===================================================== */
/* DEVICE TAB — PREMIUM 3D (FINAL CLEAN FIX) */
/* ===================================================== */

.device-stage {
  perspective: 2200px;
  display: flex;
  justify-content: center;
}

/* ================= DEVICE BODY ================= */
.device-frame {
  width: 720px;
  height: 440px;
  position: relative;

  border-radius: 28px;
  padding: 16px;

  transform-style: preserve-3d;
  background: var(--device-bg, #111);

  box-shadow:
    0 80px 160px rgba(0,0,0,0.7),
    0 30px 60px rgba(0,0,0,0.5),
    0 10px 20px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  transform: rotateX(8deg) rotateY(-8deg);
  transition: all 0.5s ease;
}

.device-frame:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(1.03);
}

/* EXTRA DEPTH */
.device-frame::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 32px;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.08),
    rgba(0,0,0,0.5)
  );

  z-index: -1;
  filter: blur(10px);
}

/* SHADOW */
.device-frame::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;

  background: radial-gradient(ellipse, rgba(0,0,0,0.5), transparent);
  filter: blur(20px);
}

/* ================= SCREEN ================= */
.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #000;

  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.7),
    0 15px 40px rgba(0,0,0,0.6);
}

.device-screen::before {
  content: "";
  position: absolute;
  top: 0;
  height: 40%;
  width: 100%;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.08),
    transparent
  );
}

/* ================= CONTENT ================= */
.screen-content {
  position: absolute;
  width: 100%;
  height: 100%;

  opacity: 0;
  transform: scale(1.04); /* 🔥 kurang scale → less lag */

  transition: opacity 0.5s ease, transform 0.5s ease;
}

.screen-content.active {
  opacity: 1;
  transform: scale(1);
}

.screen-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= TEXT UI ================= */
.screen-overlay {
  position: absolute;
  bottom: 28px;
  left: 28px;

  max-width: 280px;

  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);

  padding: 18px 22px;
  border-radius: 16px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.6);

  /* ❌ buang translateZ (punca lag & keluar dari tab) */
}

.screen-overlay h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;

  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.screen-overlay p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}

/* ================= BUTTON CONTAINER ================= */
.device-nav {
  display: flex;
  justify-content: center;
  gap: 14px;

  margin-top: 30px;
  margin-bottom: 60px;

  /* ❌ BUANG kotak panjang */
  padding: 0;
  background: none;
  backdrop-filter: none;
}

/* ================= BUTTON ================= */
.device-btn {
  position: relative;
  padding: 12px 22px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.03);
  color: var(--text);

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  overflow: hidden;

  backdrop-filter: blur(10px);

  transition: all 0.35s cubic-bezier(.22,1,.36,1);
}

/* SHINE */
.device-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );

  transform: skewX(-20deg);
  transition: 0.6s;
}

.device-btn:hover::after {
  left: 140%;
}

.device-btn:hover {
  transform: translateY(-4px) scale(1.05);

  box-shadow:
    0 15px 35px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.device-btn.active {
  background: linear-gradient(
    135deg,
    var(--accent),
    rgba(255,255,255,0.2)
  );

  color: #fff;

  box-shadow:
    0 20px 40px rgba(0,0,0,0.6),
    0 0 25px rgba(255,255,255,0.2);

  transform: translateY(-3px) scale(1.06);
}

.device-btn:active {
  transform: scale(0.96);
}

/* ================= LIGHT MODE ================= */
html[data-theme="light"] .device-frame {
  --device-bg: #f4f4f4;

  box-shadow:
    0 50px 100px rgba(0,0,0,0.2),
    0 20px 40px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(0,0,0,0.06);
}

html[data-theme="light"] .device-screen {
  background: #fff;
}

html[data-theme="light"] .screen-overlay {
  background: rgba(255,255,255,0.75);
  color: #000;
}

html[data-theme="light"] .device-nav {
  background: none;
}

html[data-theme="light"] .device-btn {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
}

html[data-theme="light"] .device-btn:hover {
  background: rgba(0,0,0,0.06);
}

html[data-theme="light"] .device-btn.active {
  color: #000;
}