/* ===================================
   DESIGN SYSTEM & CSS VARIABLES
   =================================== */

:root {
    /* Unified design system — matches syazwak.com */
    --bg: #050505;
    --bg-dark: #050505;
    --bg-card: rgba(15, 17, 21, 0.84);
    --bg-nav: rgba(5, 5, 5, 0.82);

    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.45);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.45);
    --accent: #6366f1;
    --accent-strong: #8b5cf6;
    --gold: #f59e0b;
    --platinum: #38bdf8;

    --text: #f5f7fb;
    --text-main: #f5f7fb;
    --muted: #a8b4ca;
    --text-muted: #a8b4ca;
    --text-dim: #64748b;
    --line: rgba(255, 255, 255, 0.10);

    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
    --gradient-dark: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

    --border: rgba(255, 255, 255, 0.10);
    --border-hover: rgba(255, 255, 255, 0.2);

    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --radius: 24px;

    --font-main: 'Manrope', sans-serif;
    --font-heading: 'Sora', sans-serif;

    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===================================
   BASE STYLES
   =================================== */

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

body {
    background:
        radial-gradient(ellipse at 80% 0%, rgba(99, 102, 241, 0.20) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 90%, rgba(139, 92, 246, 0.16) 0%, transparent 38%),
        linear-gradient(180deg, #050505 0%, #080a10 100%);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
    list-style: none;
}

/* ===================================
   UTILITIES
   =================================== */

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--gradient-1);
    color: #f8fafc;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: var(--line);
}

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

/* ===================================
   NAVIGATION — unified with syazwak.com
   =================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 5, 5, 0.82);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.brand {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-main);
    text-decoration: none;
    transition: opacity 0.2s;
}

.brand:hover { opacity: 0.75; }

.site-nav {
    display: flex;
    gap: 8px;
}

.site-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.site-nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
}

.site-nav a.nav-active {
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    padding: 8rem 0 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-links-row {
    margin-top: -1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-inline-link {
    color: var(--text-muted);
    font-weight: 600;
}

.hero-inline-link:hover {
    color: white;
}

.hero-main-visual {
    margin-top: 5rem;
    position: relative;
    transition: var(--transition);
}

.hero-mockup {
    width: 100%;
    max-width: 1000px;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
}

/* ===================================
   PRODUCT SHOWCASE
   =================================== */

.section-head {
    text-align: center;
    margin-bottom: 5rem;
}

.section-head h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 4rem 0;
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-row.vertical {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.product-row.vertical .product-info {
    text-align: center;
}

.product-row.vertical .info-list {
    text-align: left;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.product-row.vertical .feature-pills {
    justify-content: center;
}

.product-row.vertical .product-visual {
    width: 100%;
}

.product-row.vertical .test-credentials {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.product-row.reverse {
    direction: rtl;
}

.product-row.reverse>* {
    direction: ltr;
}

.product-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.product-info .info-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.product-info .info-list li {
    margin-bottom: 0.65rem;
}

.product-info .info-list li:last-child {
    margin-bottom: 0;
}

.product-info .info-list code {
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.pill {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.product-visual {
    position: relative;
}

.product-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-visual:hover img {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
}

.visual-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.badge-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.5rem;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    color: white;
}

.badge-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.badge-text .small {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.badge-text .large {
    font-size: 1rem;
    font-weight: 700;
}

.web-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 600;
}

.web-link:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.apk-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-main);
}

.apk-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.apk-link svg {
    color: var(--primary);
}

.test-credentials {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.cred-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cred-label {
    font-weight: 500;
}

.cred-value {
    font-family: 'Space Grotesk', monospace;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.cred-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ===================================
   CORE FEATURES (GRID)
   =================================== */

.features-section {
    padding: 10rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    border-radius: 24px;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.f-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: block;
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* ===================================
   TECH STACK
   =================================== */

.tech-section {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border);
}

.tech-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.tech-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.7);
    transition: var(--transition);
}

.tech-item:hover .tech-logo {
    filter: grayscale(0) opacity(1);
}

.tech-item span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.tech-item:hover span {
    color: var(--text-main);
}


/* ===================================
   FOOTER — unified with syazwak.com
   =================================== */

.site-footer {
    padding: 28px 0 44px;
    border-top: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.7);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-main);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-brand:hover { opacity: 0.75; }

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .product-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .site-nav {
        display: none;
    }

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

    .cta-card {
        padding: 3rem;
    }

    .cta-card h2 {
        font-size: 2.5rem;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ===================================
   LIGHTBOX MODAL
   =================================== */

.product-visual img,
.hero-mockup {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 4, 11, 0.9);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    object-fit: contain;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.modal-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(17, 18, 27, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 100px;
}
