/* ==========================================================================
   Design System & Variables - Ultra Premium Fintech Aesthetic
   ========================================================================== */
:root {
    /* Colors - Deep Rich Navy & Vibrant Accents */
    --primary: #0A0F1C;
    --primary-light: #162032;
    --secondary: #DC2626;
    --secondary-hover: #B91C1C;
    --accent: #F87171;
    
    /* Backgrounds - Ultra Clean Light Theme */
    --bg-main: #FAFAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-glass: rgba(255, 255, 255, 0.7);
    --bg-light: #F1F5F9;
    
    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-on-dark: #FFFFFF;
    
    /* Gradients */
    --grad-blue: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    --grad-purple: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    --grad-teal: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    --grad-mesh: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    
    /* Status & Badges */
    --success: #10B981;
    --badge-public-bg: rgba(220, 38, 38, 0.1);
    --badge-public-text: #DC2626;
    --badge-internal-bg: rgba(244, 63, 94, 0.1);
    --badge-internal-text: #E11D48;
    
    /* UI Elements */
    --border: rgba(15, 23, 42, 0.06);
    --border-glass: rgba(255, 255, 255, 0.5);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Shadows - Deep, Soft Apple-style */
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.02);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 20px rgba(220, 38, 38, 0.3);
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-12: 6rem;

    /* Header height for offset calculations */
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Prevent iOS font size inflation */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll at body level */
    max-width: 100vw;
}

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

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

ul { list-style: none; }

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    /* Prevent text overflow */
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    overflow-wrap: break-word;
    word-break: break-word;
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.pt-0 { padding-top: 0; }
.pt-4 { padding-top: var(--space-4); }

.w-100 { width: 100%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }

.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.justify-center { justify-content: center; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    /* Prevent child content from overflowing */
    min-width: 0;
}

.section { padding: var(--space-12) 0; }
.section-public { background-color: var(--bg-main); }
.section-internal { background-color: var(--bg-surface); border-top: 1px solid var(--border); }

/* ==========================================================================
   Glass Card — Reusable Component
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-5);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px; /* Fully rounded premium feel */
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    /* Better tap targets for mobile */
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Prevent overflow in flex containers */
    min-width: 0;
    flex-shrink: 0;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 52px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--text-on-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.5);
    color: var(--text-on-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-secondary);
}

.btn-glass {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
}

.btn-glow:hover {
    box-shadow: var(--shadow-glow);
    background: var(--secondary);
}

/* Play Store Button */
.btn-store {
    background: #000;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.btn-store i { font-size: 1.75rem; flex-shrink: 0; }
.btn-store .store-text { display: flex; flex-direction: column; align-items: flex-start; }
.btn-store .store-sub { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; line-height: 1; }
.btn-store .store-main { font-size: 1.1rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; line-height: 1.2; }
.btn-store:hover { transform: scale(1.02); color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.btn-text {
    font-weight: 600;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.btn-text:hover { gap: 0.5rem; }

.app-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.badge-public { background: var(--badge-public-bg); color: var(--badge-public-text); }
.badge-internal { background: var(--badge-internal-bg); color: var(--badge-internal-text); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: var(--space-4) 0;
}

.header.scrolled {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}

.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-bold { font-weight: 800; }
.logo-light { font-weight: 500; color: var(--secondary); }

.nav-list { display: flex; gap: var(--space-5); align-items: center; }

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    /* Larger tap target */
    padding: 0.25rem 0;
    display: inline-block;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    /* Better tap target */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Header right group — Event button + hamburger */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Event CTA button in header */
.btn-event {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--secondary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 38px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-event::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.2s;
}
.btn-event:hover { 
    background: var(--secondary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}
.btn-event:hover::before { opacity: 1; }
.btn-event i { font-size: 1rem; }

/* Event badge dot — animated */
.btn-event-dot {
    width: 6px;
    height: 6px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Nav item khusus mobile */
.nav-item-mobile-only {
    display: none;
}
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* ==========================================================================
   Event Page Styles
   ========================================================================== */
.event-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--space-4);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.event-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(220, 38, 38, 0.2);
}

.event-card-visual {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.event-card-visual-icon {
    font-size: 5rem;
    opacity: 0.15;
    position: absolute;
    right: -1rem;
    bottom: -1rem;
}
.event-card-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-4);
}
.event-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: white;
    line-height: 1;
    opacity: 0.9;
}
.event-month {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.event-card-body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.event-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-3);
    width: fit-content;
}
.event-status-open {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}
.event-status-upcoming {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}
.event-status-closed {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}
.event-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.event-status-open .event-status-dot { animation: pulse 2s infinite; }

.event-card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    line-height: 1.3;
}
.event-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    flex: 1;
}
.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}
.event-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.event-meta-item i {
    color: var(--secondary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}
.event-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.event-cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: var(--space-8);
}
.event-cta-section .hero-glow-1,
.event-cta-section .hero-glow-2 {
    filter: blur(60px);
    opacity: 0.5;
}
.event-cta-content {
    position: relative;
    z-index: 2;
}
.event-cta-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: white;
    margin-bottom: var(--space-3);
}
.event-cta-desc {
    color: rgba(255,255,255,0.75);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto var(--space-5);
}

/* Responsive event */
@media (max-width: 768px) {
    .event-card-visual { height: 180px; }
    .btn-event span { display: none; }
    .btn-event { padding: 0.5rem 0.75rem; }
    .btn-event i { font-size: 1.15rem; }
}
@media (max-width: 480px) {
    .event-grid { gap: var(--space-4); }
    .event-card-body { padding: var(--space-4); }
}

/* ==========================================================================
   Event Banner Modal / Popup Dialog
   ========================================================================== */
.event-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 28, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.event-modal-overlay.is-open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.event-modal {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(10, 15, 28, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    transform: translateY(32px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    opacity: 0;
    max-height: 90vh;
    overflow-y: auto;
}
.event-modal-overlay.is-open .event-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.event-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 15, 28, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: background 0.2s, transform 0.2s;
    touch-action: manipulation;
}
.event-modal-close:hover {
    background: rgba(220, 38, 38, 0.85);
    transform: scale(1.1);
}

/* Banner image */
.event-modal-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary);
}
.event-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.event-modal:hover .event-modal-img {
    transform: scale(1.02);
}

/* Modal Body */
.event-modal-body {
    padding: 1.75rem 1.75rem 1.5rem;
}

.event-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
}

.event-modal-title {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

.event-modal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.event-modal-desc strong { color: var(--text-primary); }

/* Action buttons */
.event-modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.event-modal-cta {
    flex: 1;
    min-width: 160px;
    justify-content: center;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
    transition: var(--transition);
    text-decoration: none;
}
.event-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.4);
}

.event-modal-skip {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.event-modal-skip:hover { color: var(--text-primary); }

/* "Jangan tampilkan lagi" checkbox */
.event-modal-noshow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.event-modal-noshow input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--secondary);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .event-modal { border-radius: 20px 20px 0 0; max-height: 95vh; }
    .event-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .event-modal-body { padding: 1.25rem 1.25rem 1.5rem; }
    .event-modal-actions { flex-direction: column; gap: 0.5rem; }
    .event-modal-cta { width: 100%; }
}


/* Footer link classes */
.footer-desc { color: rgba(255,255,255,0.7); margin-bottom: var(--space-3); }
.footer-disclaimer { color: rgba(255,255,255,0.45); font-size: 0.8rem; line-height: 1.5; margin-bottom: 0; }
.footer-external-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-external-link i { font-size: 0.85rem; }

/* ==========================================================================
   Hero Section - Ultra Premium
   ========================================================================== */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-main);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    z-index: 0;
}

.hero-glow-1, .hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    /* Prevent glows from causing overflow */
    pointer-events: none;
}

.hero-glow-1 {
    top: -10%; left: 0%;
    width: 600px; height: 600px;
    background: rgba(220, 38, 38, 0.15);
}

.hero-glow-2 {
    bottom: -10%; right: 0%;
    width: 500px; height: 500px;
    background: rgba(248, 113, 113, 0.15);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
    align-items: center;
    position: relative;
    z-index: 2;
    /* Prevent child overflow */
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
    /* Prevent overflow on small screens */
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.badge-dot {
    width: 8px; height: 8px;
    min-width: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: var(--space-4);
    /* Remove nowrap to allow natural wrapping on small screens */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Override any inline white-space:nowrap on hero spans */
.hero-title span[style*="white-space"] {
    white-space: normal !important;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Hero Visual Composition */
.hero-visual { position: relative; height: 500px; }

.visual-composition {
    position: relative;
    width: 100%; height: 100%;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: absolute;
}

.el-1 {
    top: 10%; left: 10%;
    width: 240px; padding: var(--space-4);
    z-index: 3;
    animation: float 6s infinite ease-in-out alternate;
}

.el-header { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }
.el-header i { color: var(--secondary); }
.skeleton-line { height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 0.5rem; }

.el-2 {
    bottom: 15%; right: 5%;
    width: 200px; padding: var(--space-4);
    z-index: 2;
    animation: float 8s infinite ease-in-out alternate-reverse;
}

.chart-bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 100px; }
.bar { flex: 1; background: var(--border); border-radius: 4px 4px 0 0; }
.bar.h-40 { height: 40%; }
.bar.h-70 { height: 70%; background: var(--secondary); }
.bar.h-100 { height: 100%; background: var(--primary); }
.bar.h-60 { height: 60%; }

.el-3 {
    top: 40%; right: 20%;
    width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    z-index: 4;
    animation: float 7s infinite ease-in-out alternate;
}
.icon-xl { font-size: 3rem; }

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

/* ==========================================================================
   Public App Showcase
   ========================================================================== */
.section-header {
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.premium-app-showcase {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.showcase-content { padding: var(--space-8); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.showcase-title { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: var(--space-2); }
.showcase-desc { color: var(--text-secondary); margin-bottom: var(--space-4); }

.showcase-features { display: flex; flex-direction: column; gap: 1rem; margin-bottom: var(--space-4); }
.feat-item { display: flex; align-items: center; gap: 1rem; font-weight: 500; }
.feat-icon {
    width: 40px; height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

.showcase-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }

/* Store buttons group */
.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.showcase-visual {
    position: relative;
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-6);
    overflow: hidden;
    min-height: 300px;
}

.mesh-gradient-bg {
    position: absolute;
    inset: 0;
    background: var(--grad-mesh);
    opacity: 0.6;
    z-index: 1;
}

.phone-frame {
    position: relative; z-index: 2;
    width: 260px; height: 540px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    /* Scale down automatically if too wide */
    max-width: 100%;
}

.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 100px; height: 25px; background: #000; border-radius: 0 0 15px 15px; z-index: 3; }
.phone-ui-img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; display: block; }

/* ==========================================================================
   Bento Grid - Internal Apps
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: var(--space-4);
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    /* Prevent internal content from overflowing */
    min-width: 0;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(220, 38, 38, 0.2);
}

.bento-wide {
    grid-column: 1 / -1;
}

.bento-icon-wrapper {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: white;
    margin-bottom: var(--space-4);
}

.bento-app-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    border-radius: 25%;
    margin-bottom: var(--space-4);
    object-fit: cover;
    background: #FFFFFF;
    border: 2px solid #FFFFFF;
    box-shadow: 
        6px 6px 12px rgba(15, 23, 42, 0.08), 
        -6px -6px 12px rgba(255, 255, 255, 1),
        0 0 0 1px rgba(15, 23, 42, 0.02);
}

.app-icon-md {
    width: 68px; height: 68px;
    min-width: 68px;
    border-radius: 25%;
    margin-bottom: var(--space-3);
    object-fit: cover;
    background: #FFFFFF;
    border: 3px solid #FFFFFF;
    box-shadow: 
        8px 8px 16px rgba(15, 23, 42, 0.1), 
        -8px -8px 16px rgba(255, 255, 255, 1),
        0 0 0 1px rgba(15, 23, 42, 0.03);
}

.app-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-3);
    min-width: 0;
}
.app-title-group .bento-app-icon,
.app-title-group .app-icon-md {
    margin-bottom: 0;
}
.app-title-group .showcase-title,
.app-title-group .bento-title {
    margin-bottom: 0;
    min-width: 0;
}

.blue-gradient { background: var(--grad-blue); }
.purple-gradient { background: var(--grad-purple); }
.teal-gradient { background: var(--grad-teal); }

.bento-content { position: relative; z-index: 2; min-width: 0; }
.bento-title { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin-bottom: 0.5rem; }
.bento-desc { color: var(--text-secondary); margin-bottom: 0; }

.bento-arrow {
    margin-top: auto; align-self: flex-end;
    width: 40px; height: 40px;
    min-width: 40px;
    border-radius: 50%; background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.bento-card:hover .bento-arrow { background: var(--text-primary); color: white; transform: rotate(45deg); }

.bento-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: center; height: 100%; min-width: 0; }

.bento-visual-bg {
    position: absolute; right: -5%; bottom: -10%;
    z-index: 1; opacity: 0.05;
    pointer-events: none;
}
.bg-icon { font-size: 20rem; color: var(--primary); }

/* ==========================================================================
   App Detail & Other Pages
   ========================================================================== */
.app-detail-header {
    position: relative;
    padding: 12rem 0 6rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 40px 40px;
    margin-bottom: 4rem;
    z-index: 1;
}
.internal-header { background: var(--bg-surface); }
.public-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
    border: none;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    /* Better tap target */
    min-height: 44px;
    touch-action: manipulation;
}
.back-link:hover { color: var(--primary); transform: translateX(-4px); }
.public-header .back-link { color: rgba(255,255,255,0.8); }
.public-header .back-link:hover { color: white; }

.app-detail-top {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    position: relative;
    z-index: 2;
    /* Allow wrapping on small screens */
    flex-wrap: wrap;
}
.app-icon-large {
    width: 120px; height: 120px;
    min-width: 120px;
    border-radius: 28px;
    display: flex; align-items: center; justify-content: center;
    background: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.app-icon-large:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
.app-icon-large img { width: 100%; height: 100%; object-fit: cover; }

.app-detail-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}
.public-header .app-detail-title { color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.app-detail-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 400;
    overflow-wrap: break-word;
    word-break: break-word;
}
.public-header .app-detail-subtitle { color: rgba(255,255,255,0.9); }

.app-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
    align-items: start;
}
.app-detail-sidebar { position: sticky; top: 120px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-5); }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }

.internal-feature-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: var(--space-6); }
.internal-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    /* Ensure content doesn't overflow */
    min-width: 0;
}
.internal-feature-list li:hover { transform: translateX(8px); background: white; box-shadow: var(--shadow-sm); border-color: rgba(220, 38, 38, 0.1); }
.internal-feature-list i { color: var(--secondary); font-size: 2rem; flex-shrink: 0; }
.feature-text-block { min-width: 0; }
.feature-text-block strong { display: block; font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.feature-text-block span { color: var(--text-secondary); line-height: 1.6; display: block; font-size: 1rem; }

.alert-box { background: var(--badge-internal-bg); color: var(--badge-internal-text); padding: var(--space-3); border-radius: var(--radius-md); display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; font-weight: 500; }

.app-meta { display: flex; flex-direction: column; gap: 1rem; }
.meta-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; display: block; margin-bottom: 0.25rem; }
.meta-value { font-weight: 600; color: var(--text-primary); display: block; }
.meta-item { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.meta-item:last-child { border-bottom: none; padding-bottom: 0; }

.page-header { padding: 12rem 0 6rem; background: var(--primary); color: white; text-align: center; }
.page-title { color: white; margin-bottom: var(--space-3); }

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-8); }

.contact-item { display: flex; gap: var(--space-4); margin-bottom: var(--space-5); }
.contact-icon { width: 56px; height: 56px; min-width: 56px; border-radius: 16px; background: var(--bg-light); color: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.contact-details h4 { margin-bottom: 0.25rem; }

/* Contact channel grid — mobile-safe */
.contact-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--primary); color: white; padding: var(--space-12) 0 var(--space-4); }
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}
.footer-brand .logo { color: white; margin-bottom: var(--space-4); }
.footer-title { color: white; margin-bottom: var(--space-4); font-size: 1.125rem; }
.footer-links { display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-weight: 500; min-height: 36px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); font-size: 0.875rem; }

/* ==========================================================================
   Animations & Scroll
   ========================================================================== */
.fade-in-up {
    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);
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Responsive — Tablet (max 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero { text-align: center; padding: 10rem 0 5rem; min-height: auto; }
    .hero-badge { margin: 0 auto var(--space-4); }
    .hero-actions { justify-content: center; }

    .premium-app-showcase { grid-template-columns: 1fr; }
    .showcase-visual { padding: 4rem 2rem; }
    .showcase-content { padding: var(--space-6); }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-layout { grid-template-columns: 1fr; }

    .app-detail-content { grid-template-columns: 1fr; }
    .app-detail-sidebar { position: static; top: auto; }

    .about-content,
    .contact-grid { grid-template-columns: 1fr; }

    .footer-container { grid-template-columns: 1fr 1fr; gap: var(--space-5); }

    .app-detail-header {
        padding: 9rem 0 4rem;
        border-radius: 0 0 24px 24px;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   Responsive — Mobile (max 768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --space-12: 4rem;
        --space-8: 3rem;
        --space-6: 2rem;
    }

    /* Mobile Nav */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100dvh - var(--header-height));
        background: var(--bg-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-5) var(--space-4);
        transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
    }
    .nav.active { left: 0; }
    .nav-list { flex-direction: column; width: 100%; align-items: flex-start; gap: var(--space-2); }
    .nav-link {
        display: block;
        padding: var(--space-3) 0;
        font-size: 1.25rem;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .nav-list li:last-child .nav-link { border-bottom: none; }
    .nav-item-mobile-only {
        display: block;
        width: 100%;
        margin-top: var(--space-3);
    }
    .nav-link-event-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, var(--secondary) 0%, #B91C1C 100%);
        color: #ffffff !important;
        font-weight: 700;
        font-size: 1.1rem;
        border-radius: 100px;
        padding: 0.85rem 1.25rem !important;
        border-bottom: none !important;
        text-align: center;
        box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
        text-decoration: none;
    }
    .nav-toggle { display: inline-flex; }

    .hero { padding: 8rem 0 4rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }

    .showcase-content { padding: var(--space-4); }
    .showcase-actions { flex-direction: column; align-items: stretch; }
    .showcase-actions .btn { justify-content: center; width: 100%; }
    .store-buttons { flex-direction: column; }
    .store-buttons .btn-store { width: 100%; }

    .bento-card { padding: var(--space-4); }
    .bento-grid { grid-auto-rows: auto; }
    .feature-grid { grid-template-columns: 1fr; }

    .footer-container { grid-template-columns: 1fr; }

    .section { padding: var(--space-8) 0; }

    .app-detail-header {
        padding: 7rem 0 3rem;
        border-radius: 0 0 20px 20px;
        margin-bottom: 1.5rem;
    }
    .app-detail-top { gap: var(--space-4); }
    .internal-feature-list { gap: 1rem; }
    .internal-feature-list li { padding: 1.25rem; }

    .contact-channels { gap: 1.25rem; margin-bottom: 3rem; }
}

/* ==========================================================================
   Responsive — Small Mobile (max 480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root {
        --space-8: 2.5rem;
        --space-6: 1.75rem;
        --space-5: 1.5rem;
        --space-4: 1.25rem;
    }

    .container { padding: 0 1rem; }

    .bento-card { padding: var(--space-3); }
    .showcase-visual { padding: 2rem 1rem; min-height: 250px; }
    .phone-frame {
        width: min(220px, 70vw);
        height: auto;
        aspect-ratio: 220 / 460;
    }

    .app-detail-top {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: var(--space-3);
    }
    .app-icon-large { width: 96px; height: 96px; min-width: 96px; }

    .internal-feature-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .contact-card { padding: 2rem 1.25rem !important; }

    .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
    .btn-store .store-main { font-size: 1rem; }

    .hero-badge { font-size: 0.8rem; padding: 0.4rem 0.75rem; }

    .glass-card { padding: var(--space-4); border-radius: var(--radius-md); }

    .app-detail-header {
        padding: 6rem 0 2.5rem;
    }

    .showcase-content { padding: var(--space-3); }
}

/* ==========================================================================
   Responsive — Very Small (max 360px)
   ========================================================================== */
@media (max-width: 360px) {
    .container { padding: 0 0.875rem; }
    .hero { padding: 7rem 0 3rem; }
    .btn-store { padding: 0.5rem 1rem; }
}
