/* 
   AppLock Max - Titanium Theme V2 
   "Cyber Titanium" Aesthetic
*/

:root {
    /* Core Palette */
    --bg-dark: #000000;
    --bg-secondary: #0A0A0A;
    --surface: #141414;
    --surface-light: #1F1F1F;

    /* Titanium Accents */
    --primary: #3B82F6;
    /* Electric Blue */
    --accent-purple: #8B5CF6;
    --accent-cyan: #06B6D4;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;

    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 24px;

    /* Gradients */
    --gradient-titanium: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-glow: radial-gradient(circle at top center, rgba(59, 130, 246, 0.15), transparent 70%);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

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

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

.section-padding {
    padding: 120px 0;
}

.badge-outline {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    background: rgba(59, 130, 246, 0.05);
}

h2 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #9CA3AF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p[data-i18n^="sec"] {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 80px;
}

/* 
   ------------------------
   BENTO GRID SYSTEM 
   ------------------------
*/
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 24px;
}

.bento-item {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bento-item:active {
    transform: scale(0.98);
}

/* Highlight Animation for Smart Nav */
@keyframes highlight-pulse {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(59, 130, 246, 0.1);
        border-radius: 20px;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    }

    100% {
        background-color: transparent;
    }
}

.highlight-pulse {
    animation: highlight-pulse 2s ease-out;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.bento-large .bento-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
}

.bento-header {
    flex: 1.2;
    z-index: 2;
}

/* Security Badges */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.sec-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.sec-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Mini Pattern Lock UI */
.mini-pattern-lock {
    flex: 0.8;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    width: 160px;
    height: 160px;
    margin: auto 0;
    border: 1px solid var(--glass-border);
    justify-items: center;
    align-items: center;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform: scale(1.5);
}

.pattern-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.draw-path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawPattern 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px var(--primary));
}

@keyframes drawPattern {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .bento-large .bento-content {
        flex-direction: column;
    }

    .mini-pattern-lock {
        margin: 24px auto 0;
    }
}

.bento-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-content.center-align {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.icon-orb {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.icon-orb.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.icon-orb.info {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Visual Layers inside Bento */
.bento-visual {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), transparent);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
}

.text-gradient-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(to bottom right, #fff, #666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 
   ------------------------
   STICKY SCROLL EXPERIENCE 
   ------------------------
*/
.scroll-experience {
    background: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--surface-light);
    border-bottom: 1px solid var(--surface-light);
}

.sticky-container {
    display: flex;
    gap: 60px;
    position: relative;
}

.sticky-visual {
    flex: 1;
    height: 100vh;
    position: sticky;
    /* Magic happening here */
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame {
    width: 320px;
    height: 650px;
    border: 12px solid #222;
    border-radius: 48px;
    background: #000;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.phone-frame::before {
    /* Notch */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #222;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.screen-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.scroll-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.scroll-img.active {
    opacity: 1;
}

.scroll-content {
    flex: 1;
    padding-top: 30vh;
    /* Start content lower */
    padding-bottom: 30vh;
}

.scroll-step {
    min-height: 80vh;
    /* Each step takes full view height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s ease;
    padding-left: 40px;
}

.scroll-step.active-step {
    opacity: 1;
}

.step-badge {
    font-family: monospace;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.scroll-step h3 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.scroll-step p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Gradient Text Variants */
.gradient-text-gold {
    background: linear-gradient(to right, #FCD34D, #F59E0B);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
    background: linear-gradient(to right, #60A5FA, #2563EB);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
    background: linear-gradient(to right, #A78BFA, #7C3AED);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-red {
    background: linear-gradient(to right, #F87171, #DC2626);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-green {
    background: linear-gradient(to right, #34D399, #059669);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 
   ------------------------
   INFINITE MARQUEE SHOWCASE 
   ------------------------
*/
.showcase-infinite {
    overflow: hidden;
    position: relative;
    padding-bottom: 120px;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.screenshot-card {
    width: 260px;
    flex-shrink: 0;
}

.screenshot-card img {
    width: 100%;
    border-radius: 20px;
    border: 4px solid #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes content is duplicated once */
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-large {
        grid-column: span 2;
        height: 400px;
    }

    .sticky-container {
        flex-direction: column;
    }

    .sticky-visual {
        height: auto;
        position: relative;
        padding: 40px 0;
    }

    .scroll-content {
        padding-top: 0;
    }

    .scroll-step {
        min-height: auto;
        margin-bottom: 80px;
        opacity: 1;
    }
}

@media (max-width: 640px) {
    h2 {
        font-size: 2.2rem;
    }

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

    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 1;
        height: auto;
        min-height: 250px;
    }
}

/* 
   ------------------------
   HERO SECTION (TITANIUM)
   ------------------------
*/
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-text {
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    /* Massive Premium Title */
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 32px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--glass-border);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 100%;
    max-width: 380px;
    border-radius: 48px;
    border: 8px solid #111;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover .phone-mockup {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

.glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-10deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-5deg) rotateX(2deg);
    }

    100% {
        transform: translateY(0px) rotateY(-10deg) rotateX(5deg);
    }
}

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

/* 
   ------------------------
   NAVIGATION
   ------------------------
*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.btn-sm {
    padding: 10px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.05);
}

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

/* 
   ------------------------
   DOWNLOAD CTA & FOOTER
   ------------------------
*/
.cta-box {
    background: linear-gradient(180deg, var(--surface) 0%, #000 100%);
    border: 1px solid var(--glass-border);
    padding: 80px 40px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box::after {
    /* Glow at top */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

footer {
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
    padding: 80px 0 40px;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #111;
    color: #444;
    font-size: 0.85rem;
}

/* Add global glow background */
.bg-glow {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 16px 36px;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
}

/* 
   ------------------------
   MEDIA QUERIES (UPDATED)
   ------------------------
*/
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        /* Stack hero */
        text-align: center;
        gap: 60px;
    }

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

    .hero p {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        justify-content: center;
        border-top: none;
        padding-top: 0;
    }

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

    .bento-large {
        grid-column: span 2;
        height: 400px;
    }

    .sticky-container {
        flex-direction: column;
    }

    .sticky-visual {
        height: auto;
        position: relative;
        padding: 40px 0;
        top: 0;
    }

    .scroll-content {
        padding-top: 0;
    }

    .scroll-step {
        min-height: auto;
        margin-bottom: 80px;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 20px;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 140px;
    }

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

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 1;
        height: auto;
        min-height: 280px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }
}