/* 
  HackLens Design System 
  Theme: Deep Space / Aurora
*/

:root {
    /* Colors */
    --color-bg-main: #020408; /* Ultra-dark navy/black */
    --color-bg-secondary: #0a0f18; /* Slightly lighter for cards */
    --color-primary: #ff6600; /* Brand Orange */
    --color-primary-glow: rgba(255, 102, 0, 0.4);
    --color-text-main: #ffffff;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.08);
    
    /* Gradients */
    --gradient-aurora: linear-gradient(135deg, #ff6600 0%, #a855f7 50%, #3b82f6 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(255, 102, 0, 0.15) 0%, transparent 70%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Effects */
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.5);
    --blur-glass: 12px;
}

[data-theme="light"] {
    --color-bg-main: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(255, 102, 0, 0.08) 0%, transparent 60%);
    --shadow-card: 0 4px 20px -5px rgba(0,0,0,0.1);
    
    /* Invert button text if needed, or keep primary button white text */
}

[data-theme="light"] h3 {
    color: #000000; /* Pure black for max contrast */
    font-weight: 700;
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-main);
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

[data-theme="light"] .mobile-menu-btn {
    color: var(--color-text-main);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section-padding {
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
}

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

/* Spacing Utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: 99px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-border);
    backdrop-filter: blur(10px);
    color: white;
}

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

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-enter {
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards;}
.delay-200 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards;}
.delay-300 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards;}

/* Header */
.site-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 4, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.logo img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(255, 102, 0, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    width: 100%; /* Changed from 90% to allow full width for text */
    max-width: 54rem; /* increased to ~864px to ensure first sentence fits on one line */
    margin: 1.5rem auto 2.5rem;
    text-wrap: pretty; /* Prevent widows */
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 99px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* Screenshots Section */
.screenshots-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 3rem 1.5rem;
    margin: 0; /* Reset negative margin since it is now container-fluid */
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.screenshots-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.screenshot-card {
    scroll-snap-align: center;
    flex: 0 0 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    border: 4px solid #1a1f2c;
    background: #000;
}

.screenshot-card:first-child {
    margin-left: auto;
}

.screenshot-card:last-child {
    margin-right: auto;
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 550px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 102, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 102, 0, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

/* About & Contact */
.bg-darker {
    background-color: #05080e;
}

.contact-card {
    display: inline-block;
    padding: 2rem 4rem;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: var(--gradient-card);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--color-primary);
    background: rgba(255, 102, 0, 0.05);
}

/* Footer */
.site-footer {
    background: #000;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-top {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a:hover {
    color: white;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 1;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block !important;
        margin-right: 0.5rem;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 8rem;
    }

    .screenshots-scroll {
        padding: 2rem 0;
    }
}


/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    z-index: 200;
    padding: 0.75rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 4, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.mobile-nav-links a {
    color: white;
    transition: color 0.2s;
}

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

/* Legal Pages / Content */
/* Legal Pages / Content */
.page-content {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--color-text-muted);
    padding: 0;
    margin-top: calc(var(--header-height) + 2rem);
    margin-bottom: 4rem;
}

.page-content h1 {
    font-size: 2.5rem;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.75rem;
    color: var(--color-text-main);
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.page-content ul, .page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.page-content a:hover {
    color: #ff8533;
    text-decoration: underline;
}

/* Fix for buttons inside page content */
.page-content a.btn {
    color: white !important;
    text-decoration: none;
}
.page-content a.btn:hover {
    color: white !important;
    text-decoration: none;
}

/* Light Mode Specifics for Header */
[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .logo {
    color: #0f172a;
}

[data-theme="light"] .screenshot-card {
    border-color: #cbd5e1;
    background: #e2e8f0;
}

[data-theme="light"] .bg-darker {
    background-color: #f1f5f9;
}

[data-theme="light"] .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .mobile-nav-links a {
    color: #0f172a;
}

[data-theme="light"] .mobile-nav-links a:hover {
    color: var(--color-primary);
}

/* Custom Cards inside content */
.card-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.card-box.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.card-box.warning p {
    color: #fca5a5;
    margin: 0;
}

.card-box.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.card-box.info p {
    color: #93c5fd;
    margin: 0;
}

[data-theme="light"] .card-box {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card-box.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .card-box.info p {
    color: #1e40af;
}

[data-theme="light"] .card-box.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .card-box.warning p {
    color: #991b1b;
}

/* Simple Header for pages (handled by site-header now, but keeping backup if needed) */
.back-link {
    font-weight: 600;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

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

/* Store Badges */
.store-badge {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    height: 60px; /* Adjust based on the SVGs actual visual weight */
}

.store-badge img {
    height: 100%;
    width: auto;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
