/* ==========================================================================
   HabitGuard Custom Styling
   Aesthetics: Sleek, premium dark mode, tailored HSL gradients, glassmorphism.
   ========================================================================== */

/* Design Tokens & Root Variables */
:root {
    --bg-base: #080c14;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #1e293b;
    
    --primary: #1e6ffd;
    --primary-glow: rgba(30, 111, 253, 0.45);
    --primary-light: #4785ff;
    
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.4);
    
    --accent-emerald: #10b981;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    
    --container-width: 1200px;
}

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

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

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

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

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

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #105bd4 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px -6px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 111, 253, 0.12);
    border: 1px solid rgba(30, 111, 253, 0.2);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse 1.5s infinite alternate;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-orange);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8, 12, 20, 0.7);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

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

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

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

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

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

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -50px;
    right: 10%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 50px;
    left: 5%;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 32px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.metric-divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-color);
}

/* Phone Mockup Frame CSS */
.phone-frame-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 310px;
    height: 640px;
    background: #000000;
    border: 12px solid #27272a;
    border-radius: 44px;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 0 4px 2px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 10;
}

/* Notch & Details */
.phone-speaker {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #18181b;
    border-radius: 2px;
    z-index: 30;
}

.phone-camera {
    position: absolute;
    top: 11px;
    left: calc(50% + 42px);
    width: 10px;
    height: 10px;
    background: #09090b;
    border-radius: 50%;
    z-index: 30;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #121824;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: opacity var(--transition-slow) ease-in-out;
}

.phone-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    z-index: 30;
}

/* Floating badges in Hero */
.floating-badge {
    position: absolute;
    background: rgba(26, 37, 54, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    z-index: 20;
    transition: var(--transition-normal);
}

.floating-badge:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.badge-1 {
    top: 80px;
    left: -50px;
    animation: float 4s ease-in-out infinite alternate;
}

.badge-2 {
    bottom: 120px;
    right: -40px;
    animation: float 4.5s ease-in-out infinite alternate-reverse;
}

.badge-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.badge-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Section Header */
.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
    position: relative;
}

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

.feature-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ffffff;
}

.feature-icon.bg-blue { background: rgba(30, 111, 253, 0.15); color: var(--primary-light); }
.feature-icon.bg-cyan { background: rgba(6, 182, 212, 0.15); color: var(--secondary); }
.feature-icon.bg-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.feature-icon.bg-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.feature-icon.bg-orange { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.feature-icon.bg-red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

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

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

/* Showcase / Slider Section */
.showcase-section {
    padding: 100px 0;
}

.showcase-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.showcase-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-tab {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-normal);
    color: inherit;
}

.showcase-tab:hover {
    background: rgba(255, 255, 255, 0.02);
}

.showcase-tab.active {
    background: rgba(30, 111, 253, 0.05);
    border-color: rgba(30, 111, 253, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.tab-number {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.showcase-tab.active .tab-number {
    background: var(--primary);
    color: #ffffff;
}

.tab-info h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    transition: var(--transition-normal);
}

.showcase-tab.active .tab-info h4 {
    color: var(--primary-light);
}

.tab-info p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.showcase-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Carousel controls */
.carousel-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: var(--primary-light);
}

.carousel-indicator {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

#curr-slide {
    color: var(--text-primary);
}

/* Interactive Simulator Section */
.demo-section {
    padding: 120px 0;
    background: radial-gradient(circle at 80% 50%, rgba(30, 111, 253, 0.08) 0%, rgba(8, 12, 20, 0) 60%),
                rgba(255, 255, 255, 0.005);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.demo-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.demo-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.demo-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.demo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.demo-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.demo-list-icon {
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-list li div {
    font-size: 0.98rem;
    color: var(--text-secondary);
}

.demo-list li strong {
    color: var(--text-primary);
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.demo-instruction {
    background: rgba(30, 111, 253, 0.06);
    border-left: 3px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.demo-instruction p {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.demo-instruction ol {
    margin-left: 20px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pin-code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Simulator Device Casing & Screen Views */
.simulator-frame {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9),
                0 0 0 1px var(--primary-glow);
}

.sim-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.4s ease;
}

.sim-view.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

/* Locked Block Screen Overlay View */
#sim-view-locked {
    display: flex;
    flex-direction: column;
}

.instagram-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="600" viewBox="0 0 300 600"><rect width="300" height="600" fill="%23262626"/><circle cx="150" cy="150" r="40" fill="none" stroke="%23404040" stroke-width="2"/><line x1="30" y1="300" x2="270" y2="300" stroke="%23404040" stroke-width="2"/><line x1="30" y1="420" x2="270" y2="420" stroke="%23404040" stroke-width="2"/></svg>');
    filter: blur(10px);
    z-index: 1;
}

.block-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.93);
    padding: 36px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

.logo-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.block-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.overlay-app-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.overlay-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pin-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.pin-dots {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.pin-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #52525b;
    background: transparent;
    transition: var(--transition-fast);
}

.pin-dots .dot.filled {
    background: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.pin-error-msg {
    font-size: 0.78rem;
    color: var(--accent-red);
    margin-top: 10px;
    height: 16px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-weight: 600;
}

.pin-error-msg.visible {
    opacity: 1;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 80%;
    max-width: 220px;
}

.num-btn {
    aspect-ratio: 1.8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: var(--transition-fast);
}

.num-btn:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

.btn-clear, .btn-delete {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.overlay-ad-section {
    width: 100%;
    text-align: center;
}

.ad-or-text {
    position: relative;
    margin-bottom: 16px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ad-or-text::before, .ad-or-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.ad-or-text::before { left: 0; }
.ad-or-text::after { right: 0; }

.btn-watch-ad {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-watch-ad:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-watch-ad:active {
    transform: translateY(1px);
}

.ad-play-icon {
    font-size: 0.7rem;
}

/* Simulated Ad Playing View */
#sim-view-ad {
    background: #000;
}

.ad-player {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 16px 20px;
}

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

.ad-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-timer {
    color: #fff;
    font-size: 0.72rem;
}

.ad-video-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ad-graphic-animation {
    padding: 20px;
}

.ad-phone-bubble {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.bubble {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-purple);
    opacity: 0.6;
    animation: ripple 2s infinite ease-in-out;
}

.bubble-2 { animation-delay: -0.5s; background: var(--secondary); }
.bubble-3 { animation-delay: -1s; background: var(--primary); }

.ad-graphic-animation h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.ad-graphic-animation p {
    font-size: 0.78rem;
    color: #a1a1aa;
    margin-bottom: 20px;
}

.ad-download-mock-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--secondary);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #000;
}

.ad-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.ad-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-emerald);
    transition: width 1s linear;
}

/* Unlocked (Instagram Interface) View */
.instagram-unlocked-screen {
    width: 100%;
    height: 100%;
    background: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-top: 24px;
}

.insta-header {
    height: 44px;
    border-bottom: 1px solid #262626;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.insta-logo {
    font-size: 1.2rem;
    font-weight: 700;
    font-style: italic;
}

.insta-icons {
    display: flex;
    gap: 14px;
    font-size: 1.1rem;
}

.insta-feed-post {
    padding-top: 10px;
}

.insta-post-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 0.8rem;
}

.user-info span {
    font-size: 0.65rem;
    color: #a8a8a8;
}

.insta-post-media {
    width: 100%;
    aspect-ratio: 1;
    background: #121212;
    border-top: 1px solid #262626;
    border-bottom: 1px solid #262626;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-media-graphic {
    width: 85%;
    height: 85%;
    border: 2px dashed #363636;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1rem;
}

.unlocked-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
    z-index: 15;
    white-space: nowrap;
    animation: bounce 1s infinite alternate;
}

.reset-sim-btn {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 15;
}

/* Onboarding Setup Guide Steps */
.setup-section {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.005);
}

.steps-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    flex: 1;
    position: relative;
    transition: var(--transition-normal);
}

.step-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.step-badge {
    position: absolute;
    top: -16px;
    left: 30px;
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.step-card h3 {
    font-size: 1.25rem;
    margin: 10px 0 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* FAQ Accordion List */
.faqs-section {
    padding: 100px 0;
}

.faq-accordion-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
}

.faq-trigger span {
    padding-right: 20px;
}

.faq-icon {
    color: var(--text-muted);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(30, 111, 253, 0.2);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.faq-content p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-content p strong {
    color: var(--text-primary);
}

/* Download Section (Call-to-Action) */
.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(30, 111, 253, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    position: relative;
    border-top: 1px solid var(--border-color);
}

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

.download-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.download-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.play-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    color: #000000;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.play-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.4);
    background: #f1f5f9;
}

.play-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.btn-text span {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-text strong {
    font-size: 1.15rem;
    font-family: var(--font-heading);
}

.build-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.build-info span {
    color: var(--text-secondary);
}

/* Footer styling */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    100% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px 4px rgba(16, 185, 129, 0.2); }
}

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

@keyframes ripple {
    0% { transform: scale(0.2); opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes bounce {
    0% { transform: translate(-50%, -50%) scale(0.96); }
    100% { transform: translate(-50%, -50%) scale(1.04); }
}

/* Google Play Badge Styling */
.play-store-badge-link {
    display: inline-block;
    transition: var(--transition-normal);
}

.play-store-badge-link:hover {
    transform: translateY(-4px);
    filter: brightness(1.08);
}

.google-play-badge-img {
    height: 52px; /* Standard badge height conforming to brand guidelines */
    width: auto;
    display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-metrics {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .floating-badge {
        display: none; /* Hide floating badges on smaller screens to prevent overlaps */
    }
    
    .showcase-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .showcase-visual {
        order: -1;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .steps-flow {
        flex-direction: column;
        gap: 40px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: -10px 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .nav-menu {
        display: none; /* Can implement basic mobile toggle, but keep it simple and clean */
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-lg {
        padding: 14px 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .download-content h2 {
        font-size: 2.2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
