/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color System */
    --color-cream: #FBF4E6;
    --color-cream-light: #FFFDF9;
    --color-cream-dark: #F2E9D8;
    --color-green-dark: #122B1E;
    --color-green: #1B3D2B;
    --color-green-light: #2A5A40;
    --color-gold: #FABF3A;
    --color-gold-light: #E8C26E;
    --color-gold-dark: #D49D25;
    --color-text-dark: #20352A;
    --color-text-muted: #5A7065;
    --color-white: #FFFFFF;
    
    /* Layout Variables */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-arabic: 'Amiri', serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --box-shadow-soft: 0 10px 30px rgba(27, 61, 43, 0.05);
    --box-shadow-medium: 0 15px 40px rgba(27, 61, 43, 0.1);
    --box-shadow-gold: 0 10px 25px rgba(250, 191, 58, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-cream);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container-narrow {
    max-width: 800px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

li {
    list-style: none;
}

/* Typography Utility Classes */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-green-dark);
    font-weight: 700;
}

.gold-text {
    color: var(--color-gold);
}

.gold-gradient-text {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-highlight {
    position: relative;
    display: inline-block;
    padding: 0 6px;
    z-index: 1;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M1,5 C20,1 40,8 60,5 C80,2 90,6 99,4" stroke="%23122b1e" stroke-width="4" fill="none" stroke-linecap="round"/></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
}



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

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--color-cream);
    box-shadow: 0 4px 15px rgba(27, 61, 43, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-green-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 61, 43, 0.25);
}

.btn-secondary {
    background-color: rgba(27, 61, 43, 0.06);
    color: var(--color-green);
    border: 1px solid rgba(27, 61, 43, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(27, 61, 43, 0.1);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-green-dark);
    box-shadow: var(--box-shadow-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(250, 191, 58, 0.35);
}

/* Border Beam Button (Gold Background with White Mono Beam) */
.btn-gold.btn-download-animate {
    position: relative;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%) !important; /* Reverted to gold background */
    color: var(--color-green-dark) !important; /* Dark green text */
    border: none;
    border-radius: 50px;
    z-index: 1;
    overflow: hidden;
    padding: 16px 36px;
    box-shadow: var(--box-shadow-gold);
    transition: var(--transition-smooth);
}

/* Downloading State Styles */
.btn-gold.btn-download-animate.downloading {
    pointer-events: none !important;
    opacity: 0.8;
    cursor: wait !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-gold.btn-download-animate.downloading::before {
    animation: rotateBeam 1.5s linear infinite !important; /* Spin the light beam faster during download */
}

/* Conic gradient behind the button contents acting as the rotating beam */
.btn-gold.btn-download-animate::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 80%,
        rgba(255, 255, 255, 0.9) 92%, /* White mono beam core */
        rgba(255, 255, 255, 0.3) 97%, /* White beam fade */
        transparent 100%
    );
    animation: rotateBeam 5s linear infinite; /* 5 seconds loop */
    z-index: -2;
}

/* Inner masking layer to cover the center of the conic-gradient, leaving only a 2px border */
.btn-gold.btn-download-animate::after {
    content: '';
    position: absolute;
    inset: 2px; /* 2px border width */
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    border-radius: 48px;
    z-index: -1;
    transition: var(--transition-smooth);
}

/* Keep the text and icon elements on top */
.btn-gold.btn-download-animate * {
    position: relative;
    z-index: 2;
}

/* Hover effects */
.btn-gold.btn-download-animate:hover {
    color: var(--color-green-dark) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(250, 191, 58, 0.45);
}

.btn-gold.btn-download-animate:hover::after {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
}

@keyframes rotateBeam {
    0% {
        transform: rotate(0deg); /* Reverted translate to rotate on one clean axis without wobble */
    }
    100% {
        transform: rotate(360deg);
    }
}



/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background-color: rgba(251, 244, 230, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 61, 43, 0.05);
    transition: var(--transition-smooth);
}

#main-header.scrolled {
    height: 70px;
    background-color: rgba(251, 244, 230, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

#app-logo-nav {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(27, 61, 43, 0.1));
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-green-dark);
}

#nav-menu ul {
    display: flex;
    gap: 32px;
}

#nav-menu a {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 550;
    color: var(--color-text-dark);
    padding: 8px 0;
    position: relative;
}

#nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

#nav-menu a:hover {
    color: var(--color-green-light);
}

#nav-menu a:hover::after {
    width: 100%;
}

/* GitHub CTA in Navigation */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.github-cta-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.github-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(27, 61, 43, 0.05);
    border: 1px solid rgba(27, 61, 43, 0.1);
    color: var(--color-green);
    font-size: 1.35rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 10;
}

.github-icon-btn:hover {
    background-color: var(--color-green-dark);
    color: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 4px 12px rgba(27, 61, 43, 0.15), var(--box-shadow-gold);
    transform: translateY(-2px);
}

.star-pointer {
    display: flex;
    align-items: center;
    position: absolute;
    right: 46px; /* Places it to the left of the GitHub icon */
    top: 54%;
    transform: translateY(-35%);
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}

.star-text {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    margin-right: 6px;
    letter-spacing: 0.5px;
    transform: rotate(-6deg) translateY(-2px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    animation: gentleNudge 3s ease-in-out infinite;
}

.handwritten-arrow {
    color: var(--color-gold-dark);
    width: 32px;
    height: 18px;
    transform: rotate(-2deg); /* Middle ground rotation */
    animation: gentleSway 3s ease-in-out infinite;
}

@keyframes gentleNudge {
    0%, 100% { transform: rotate(-6deg) translateY(-2px); }
    50% { transform: rotate(-8deg) translateY(-4px) scale(1.05); }
}

@keyframes gentleSway {
    0%, 100% { transform: rotate(-5deg) translateX(0); }
    50% { transform: rotate(-2deg) translateX(2px); }
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background-color: var(--color-cream-light);
    overflow: hidden;
}

.hero-bg-ornament {
    position: absolute;
    top: 5%;
    right: -10%;
    width: 600px;
    height: 600px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="%231b3d2b" stroke-opacity="0.02" stroke-width="0.3"><polygon points="50,5 95,50 50,95 5,50"/><polygon points="50,15 85,50 50,85 15,50"/><polygon points="50,25 75,50 50,75 25,50"/><circle cx="50" cy="50" r="5" fill="%23fabf3a" fill-opacity="0.05"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(27, 61, 43, 0.06);
    border: 1px solid rgba(27, 61, 43, 0.1);
    color: var(--color-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-quick-features {
    display: flex;
    gap: 24px;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-quick-features i {
    color: var(--color-gold);
    margin-right: 6px;
}

/* Floating Mockup Presentation */
.hero-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-bg-glow {
    position: absolute;
    width: 380px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 191, 58, 0.22) 0%, rgba(27, 61, 43, 0.08) 55%, rgba(251, 244, 230, 0) 75%);
    filter: blur(45px);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
        filter: blur(50px);
    }
}



.phone-mockup-container {
    position: relative;
    z-index: 2;
    width: 292px;
    height: 595px;
    border-radius: 44px;
    background-color: #122B1E; /* Bezel hitam pekat bernuansa hijau botol */
    padding: 10px;
    border: 2px solid var(--color-gold); /* Chamfer tepi emas premium */
    box-shadow: 0 25px 60px -10px rgba(18, 43, 30, 0.45), inset 0 0 4px rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

/* Tombol Fisik Samping iPhone */
.phone-physical-button {
    position: absolute;
    background: linear-gradient(to bottom, var(--color-gold-dark), var(--color-gold));
    width: 3px;
    border-radius: 2px 0 0 2px;
    z-index: 1;
    box-shadow: -1px 0 2px rgba(0,0,0,0.15);
}

.silent-switch {
    left: -3px;
    top: 75px;
    height: 14px;
}

.volume-up {
    left: -3px;
    top: 110px;
    height: 26px;
}

.volume-down {
    left: -3px;
    top: 148px;
    height: 26px;
}

.power-btn {
    right: -3px;
    top: 125px;
    height: 45px;
    border-radius: 0 2px 2px 0;
    box-shadow: 1px 0 2px rgba(0,0,0,0.15);
}

/* Layar Internal */
.phone-screen-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background-color: #000;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9);
}

/* Dynamic Island (Pill Notch) */
.phone-dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 23px;
    background-color: #000000;
    border-radius: 12px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.08);
}

.island-camera {
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, #10243b 0%, #050b12 80%);
    border-radius: 50%;
    opacity: 0.65;
}

.island-speaker {
    width: 30px;
    height: 2px;
    background-color: #121212;
    border-radius: 2px;
    opacity: 0.8;
}

/* Efek Kilau Kaca Layar */
.phone-screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0) 65%);
    pointer-events: none;
    z-index: 90;
}

/* Home Indicator Garis Bawah */
.phone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 4px;
    background-color: rgba(18, 43, 30, 0.35); /* Warna hijau gelap transparan */
    border-radius: 2px;
    z-index: 100;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px;
    transform: scale(1.05); /* Skala proporsional untuk memotong sudut putih secara aman */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-screenshot-active {
    opacity: 1;
    display: block;
}

.hero-screenshot-hidden {
    opacity: 0;
    display: none;
}

.mockup-indicator-dots {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.mockup-indicator-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(27, 61, 43, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mockup-indicator-dots .dot.active {
    background-color: var(--color-green);
    width: 20px;
    border-radius: 10px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.animated-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.animated-float {
    animation: float 4s ease-in-out infinite;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
#fitur {
    padding: 100px 0;
    background-color: var(--color-cream);
}

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

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--color-cream-light);
    padding: 40px 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(27, 61, 43, 0.03);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-green);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-medium);
    border-color: rgba(250, 191, 58, 0.15);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(27, 61, 43, 0.05);
    border-radius: var(--border-radius-md);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background-color: var(--color-green);
    color: var(--color-gold);
    transform: rotate(5deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   SIMULATOR SECTION
   ========================================================================== */
#simulator {
    position: relative;
    padding: 100px 0;
    background-color: var(--color-green-dark);
    color: var(--color-cream);
    overflow: hidden;
}

#simulator h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#simulator p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    max-width: 500px;
}

.simulator-ornament-left, .simulator-ornament-right {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="%23fabf3a" stroke-opacity="0.04" stroke-width="0.3"><polygon points="50,5 95,50 50,95 5,50"/><circle cx="50" cy="50" r="10"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.simulator-ornament-left {
    bottom: -5%;
    left: -5%;
}

.simulator-ornament-right {
    top: -5%;
    right: -5%;
}

.gold-badge {
    background-color: rgba(250, 191, 58, 0.15);
    border-color: rgba(250, 191, 58, 0.3);
    color: var(--color-gold);
}

.simulator-container {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 60px;
    align-items: center;
}

/* Controls */
.simulator-controls {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 32px;
}

.control-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-input option {
    background-color: var(--color-green-dark);
    color: var(--color-white);
}

.control-row {
    display: flex;
    gap: 16px;
}

.half-width {
    width: 50%;
}

.btn-toggle {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255,255,255,0.4);
    font-family: var(--font-display);
    font-weight: 600;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-toggle.active {
    background-color: rgba(250, 191, 58, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.simulator-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-md);
    padding: 16px;
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-gold);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Simulated Phone UI */
.simulator-phone-wrapper {
    display: flex;
    justify-content: center;
}

.sim-phone {
    width: 290px;
    height: 560px;
    background-color: #0c1c14;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--color-gold-light);
    position: relative;
}

.sim-phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--color-cream);
    color: var(--color-text-dark);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.sim-phone-header {
    height: 40px;
    padding: 12px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: var(--color-cream);
    font-size: 0.75rem;
    font-weight: 600;
}

.sim-brand-title i {
    margin-right: 4px;
    color: var(--color-gold);
}

.sim-phone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 12px 16px 20px;
}

.sim-dome-arch {
    display: none; /* Replaced by sim-inverse-dome */
}

/* Header Green Panel with cream dome arch inside */
.sim-phone-header {
    background-color: var(--color-green);
    height: 35px;
    padding: 10px 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: var(--color-cream);
    font-size: 0.7rem;
    font-weight: 600;
}

.sim-inverse-dome {
    width: 100%;
    height: 150px;
    background-color: var(--color-green);
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.sim-inverse-dome::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 125px;
    background-color: var(--color-cream);
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    border: 2px solid var(--color-gold-light);
    border-bottom: none;
    z-index: 1;
}

.sim-dhikr-display {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.sim-arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.65rem;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 2px;
}

/* Thin horizontal line with diamond decoration */
.sim-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    margin: 4px 0;
    opacity: 0.65;
}

.sim-line {
    height: 1px;
    background-color: var(--color-text-muted);
    flex: 1;
}

.diamond-icon {
    font-size: 4px;
    color: var(--color-gold-light);
    margin: 0 8px;
    transform: rotate(45deg);
}

#simulator .sim-latin-text {
    color: var(--color-text-dark); /* Warna hijau gelap untuk kontras tinggi */
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

#simulator .sim-meaning-text {
    color: #40554b; /* Warna abu-hijau gelap untuk legibilitas maksimal */
    font-size: 0.7rem;
    font-style: italic;
    margin-top: 3px;
}

/* Large Circle Counter, Progress SVG, and Green Inner Circle */
.sim-counter-ring-box {
    width: 170px;
    height: 170px;
    position: relative;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.sim-progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    position: absolute;
    top: 0;
    left: 0;
}

.sim-progress-bg {
    fill: none;
    stroke: rgba(27, 61, 43, 0.12);
    stroke-width: 2.5px;
}

.sim-progress-bar {
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-dasharray: 477.5; /* 2 * PI * 76 */
    stroke-dashoffset: 477.5;
    transition: stroke-dashoffset 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gold Dot at the head of the progress track */
.sim-progress-dot {
    fill: var(--color-gold);
    stroke: var(--color-cream-light);
    stroke-width: 1px;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 85px 85px;
}

.sim-counter-green-circle {
    width: 136px;
    height: 136px;
    background-color: var(--color-green);
    border-radius: 50%;
    border: 2px solid var(--color-gold-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(18, 43, 30, 0.2);
    z-index: 6;
}

.sim-counter-label {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.sim-counter-digits {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: #FFE5AD;
    line-height: 1.05;
    margin: 1px 0;
}

.sim-circle-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    margin: 2px 0 6px;
    opacity: 0.35;
}

.sim-line-sm {
    height: 1px;
    background-color: var(--color-white);
    flex: 1;
}

.diamond-icon-sm {
    font-size: 3px;
    color: var(--color-white);
    margin: 0 5px;
    transform: rotate(45deg);
}

.sim-cycle-oval {
    color: var(--color-white);
    border: 1px solid rgba(250, 191, 58, 0.45);
    background-color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1px 12px;
    border-radius: 50px;
    line-height: 1.4;
}

/* Tap Hint text */
.sim-tap-hint {
    margin-top: 35px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--color-text-muted);
}

/* Bottom circular controls row */
.sim-bottom-actions-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    margin-top: 25px;
    margin-bottom: 5px;
    z-index: 10;
}

.sim-round-btn {
    background-color: var(--color-cream-light);
    border: 2px solid var(--color-cream-dark);
    color: var(--color-green);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(27, 61, 43, 0.06);
    transition: var(--transition-fast);
    outline: none;
}

.sim-round-btn:hover {
    transform: translateY(-2px);
    border-color: var(--color-gold-light);
    box-shadow: 0 6px 15px rgba(27, 61, 43, 0.1);
}

.sim-round-btn:active {
    transform: scale(0.95);
}

.btn-reset-click, .btn-settings-click {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 0.95rem;
}

.btn-history-click {
    width: 80px;
    height: 44px;
    border-radius: 30px;
    font-size: 0.72rem;
    text-transform: capitalize;
}

/* Mobile Simulator Bottom Sheet */
.sim-bottom-sheet {
    display: none; /* Replaced by the bottom circular buttons row */
}

/* Dynamic Flash effect overlay for haptics */
.sim-haptic-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 191, 58, 0.4);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.05s ease-out;
}

.sim-haptic-flash.flash-active {
    opacity: 1;
    transition: none; /* Instant trigger */
}

/* ==========================================================================
   9 BACAAN DETAILS SECTION
   ========================================================================== */
#bacaan {
    padding: 100px 0;
    background-color: var(--color-cream-light);
}

.dhikr-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.dhikr-card {
    background-color: var(--color-cream);
    border: 1px solid rgba(27, 61, 43, 0.05);
    border-radius: var(--border-radius-md);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-smooth);
}

.dhikr-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
    border-color: var(--color-gold-light);
}

.dhikr-number {
    position: absolute;
    top: 15px;
    left: 20px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    opacity: 0.7;
}

.dhikr-arabic {
    font-family: var(--font-arabic);
    font-size: 2.2rem;
    color: var(--color-green);
    margin-top: 12px;
    margin-bottom: 12px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhikr-info-block h4 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.dhikr-info-block .meaning {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ==========================================================================
   TECHNICAL STACK SECTION
   ========================================================================== */
#teknis {
    padding: 100px 0;
    background-color: var(--color-cream);
}

.tech-box {
    background-color: var(--color-cream-light);
    border: 1px solid rgba(27, 61, 43, 0.05);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    padding: 40px;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.tech-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tech-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(27, 61, 43, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-green);
    flex-shrink: 0;
}

.tech-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.tech-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.tech-terminal-notes {
    background-color: var(--color-green-dark);
    border-radius: var(--border-radius-md);
    padding: 24px;
    color: rgba(255, 255, 255, 0.95);
    font-family: monospace;
    border: 1px solid rgba(250, 191, 58, 0.15);
}

.terminal-title {
    color: var(--color-gold);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.tech-terminal-notes pre {
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Play Protect Mock Warning styling */
.protect-visual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-primary);
}

.play-protect-mock {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 24px;
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #3c4043;
    max-width: 340px;
    width: 100%;
    text-align: left;
}

.protect-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 12px;
}

.protect-shield-icon {
    color: #ea4335; /* Play Protect Red Warning */
    font-size: 1.4rem;
}

.protect-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5f6368;
    margin-bottom: 20px;
}

.protect-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8eaed;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.mock-btn-secondary {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a73e8; /* Android Link Blue */
    cursor: pointer;
    border: 2px dashed #1a73e8;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: rgba(26, 115, 232, 0.05);
    transition: var(--transition-fast);
}

.mock-btn-primary {
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #1a73e8;
    padding: 8px 20px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}

.protect-expanded-details {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #5f6368;
}

.mock-link-btn {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ea4335; /* Play Protect warning red link */
    border: 2px solid #ea4335;
    padding: 6px 14px;
    border-radius: 4px;
    background-color: rgba(234, 67, 53, 0.08);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: mockButtonPulse 2.5s infinite;
}

@keyframes mockButtonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 67, 53, 0.4);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 12px 4px rgba(234, 67, 53, 0.2);
    }
}

/* ==========================================================================
   DOWNLOAD SECTION
   ========================================================================== */
#unduh {
    padding: 80px 0 100px;
    background-color: var(--color-cream-light);
}

.download-card {
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    border-radius: var(--border-radius-xl);
    padding: 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    color: var(--color-cream);
    box-shadow: 0 20px 50px rgba(18, 43, 30, 0.25);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="%23fabf3a" stroke-opacity="0.02" stroke-width="0.2"><circle cx="50" cy="50" r="40"/><polygon points="50,10 90,50 50,90 10,50"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.download-content h2 {
    color: var(--color-white);
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 16px;
    font-weight: 800;
}

.download-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.download-buttons-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.apk-badge-notes {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.apk-badge-notes i {
    color: var(--color-gold);
    margin-right: 4px;
}

.download-mascot {
    display: flex;
    justify-content: center;
}

.mascot-img-download {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--color-green-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer .brand-name {
    color: var(--color-white);
}

.footer-dev-card {
    display: flex;
    flex-direction: column;
}

.dev-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-avatar-link {
    position: relative;
    display: inline-block;
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.footer-avatar-link:hover {
    transform: scale(1.03); /* Stable scaling, no tilting */
}

#avatar-three-container {
    position: absolute;
    top: -36px;
    left: -36px;
    width: 140px;
    height: 140px;
    z-index: 1;
    pointer-events: none;
}

#avatar-three-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.footer-avatar {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 14px; /* Square rounded */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Muted dark shadow, no yellow glow */
    object-fit: cover;
    background-color: var(--color-green-dark);
    z-index: 2;
}

.footer-dev-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 2px;
}

.footer-dev-badge {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gold-light);
    letter-spacing: 0.5px;
    opacity: 0.95;
    margin-top: -2px;
    transform: rotate(-2deg);
}



.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-links-grid h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-grid ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-grid a {
    font-size: 0.9rem;
}

.footer-links-grid a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   ANIMATION & SCROLL EFFECTS
   ========================================================================== */
.scroll-reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .simulator-container {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px;
    }
    
    .download-content h2 {
        font-size: 1.95rem;
    }
    
    .download-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .download-buttons-group {
        justify-content: center;
    }
    
    .apk-badge-notes {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #nav-menu {
        display: none; /* Simple offscreen layout could be implemented if required, keeping simple here */
    }
    
    .star-pointer {
        display: none !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .download-content h2 {
        font-size: 1.65rem;
    }
    
    .download-content p {
        font-size: 0.95rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .control-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .half-width {
        width: 100%;
    }
    
    .download-buttons-group {
        flex-direction: column;
        width: 100%;
    }
    
    .apk-badge-notes {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}
