/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-soft: #FFF7ED;
    --secondary: #15803D;
    --secondary-dark: #166534;
    --secondary-soft: #F0FDF4;
    --accent: #F59E0B;
    --bg: #F8FAFC;
    --surface: rgba(255, 255, 255, 0.9);
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: rgba(226, 232, 240, 0.8);
    --nav-bg: rgba(248, 250, 252, 0.8);
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    --grid-color: rgba(15, 23, 24, 0.04);
}

/* Dark Theme overrides */
[data-theme="dark"] {
    --bg: #0F172A;
    --surface: rgba(30, 41, 59, 0.5);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.93);
    --primary-soft: rgba(249, 115, 22, 0.15);
    --secondary-soft: rgba(21, 128, 61, 0.1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --grid-color: rgba(255, 255, 255, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.035;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Modern Studio Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10001;
    border-radius: 50%;
    transition: transform 0.1s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, width 0.3s ease, height 0.3s ease-in-out;
}

body:hover .cursor-dot, body:hover .cursor-outline { opacity: 1; }
.cursor-hover .cursor-outline { width: 60px; height: 60px; background: rgba(249, 115, 22, 0.05); border-color: var(--primary); }
.cursor-click .cursor-outline { transform: scale(0.8); background: rgba(249, 115, 22, 0.2); }
@media (max-width: 1024px) { .cursor-dot, .cursor-outline { display: none; } }

/* Navigation */
.nav-header {
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-header.scrolled {
    padding: 1rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container, .nav-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 2rem;
    transition: color 0.2s;
}

nav a:hover { color: var(--primary); }

.studio-badge {
    margin-left: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.pulse-dot {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Theme Toggle */
.theme-toggle {
    background: var(--primary-soft);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--primary);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    margin-left: 1rem;
    transition: all 0.3s ease;
}
.theme-toggle:hover { background: var(--primary); color: white; transform: rotate(15deg) scale(1.1); }
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="dark"] .theme-toggle { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.1); color: var(--accent); }
.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* Scroll Progress */
.scroll-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 1000;
}

/* Backgrounds */
.mesh-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; overflow: hidden; pointer-events: none; }
.grid-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(var(--grid-color) 1px, transparent 1px); background-size: 32px 32px; z-index: -3; pointer-events: none; }
.mesh-circle { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; }
.circle-1 { width: 600px; height: 600px; background: var(--primary-soft); top: -200px; right: -200px; }
.circle-2 { width: 500px; height: 500px; background: var(--secondary-soft); bottom: -150px; left: -150px; }

/* Hero Section */
.hero { padding: 8rem 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.hero-content .badge { animation-delay: 0.1s; }
.hero-content h1 { animation-delay: 0.2s; }
.hero-content .brand-definition { animation-delay: 0.3s; }
.hero-content p { animation-delay: 0.4s; }
.hero-content .hero-actions { animation-delay: 0.5s; }

.badge { display: inline-block; padding: 0.5rem 1rem; background: var(--primary-soft); color: var(--primary); border: 1px solid rgba(249, 115, 22, 0.2); border-radius: 99px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.brand-definition { display: flex; flex-wrap: wrap; gap: 0.75rem; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.brand-definition span { color: var(--primary); }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; }

.btn { padding: 1rem 2rem; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px 0 rgba(249, 115, 22, 0.4); }
.btn-secondary { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); }
.magnetic { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); display: inline-block; }

.hero-visual { position: relative; height: 400px; }
.abstract-shape { position: absolute; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: morph 20s linear infinite; z-index: -1; }
.shape-1 { width: 300px; height: 300px; background: linear-gradient(45deg, var(--primary-soft), var(--secondary-soft)); top: 10%; right: 10%; }
.shape-2 { width: 250px; height: 250px; background: linear-gradient(-45deg, var(--secondary-soft), #F0FDFA); bottom: 20%; left: 20%; animation-delay: -5s; }

.glass-card-preview { width: 280px; height: 360px; background: var(--surface); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-hover); margin: 0 auto; }
.preview-header { width: 60px; height: 60px; background: var(--primary-soft); border-radius: 12px; margin-bottom: 2rem; }
.preview-line { height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 1rem; }
.preview-line.long { width: 100%; }
.preview-line.med { width: 80%; }
.preview-line.short { width: 50%; }

@keyframes morph { 0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; } 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } }

/* Apps Section */
.apps-section { padding: 8rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.125rem; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }

.app-card { background: var(--surface); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.15); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.03), var(--shadow); }
.app-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent); pointer-events: none; }
.app-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--primary-soft); }

.app-status-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.status-badge { font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em; }
.status-live { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }
.status-upcoming { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }

.app-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: white; }
.app-icon.offerlens { background: linear-gradient(135deg, #F97316, #EA580C); }
.app-icon.paywise { background: linear-gradient(135deg, #16A34A, #15803D); }
.app-icon.fincalc { background: linear-gradient(135deg, #10B981, #059669); }
.app-icon.securepass { background: linear-gradient(135deg, #064E3B, #065F46); }
.app-icon.feminaflow { background: linear-gradient(135deg, #F59E0B, #D97706); }
.app-icon.studysnap { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.app-icon svg { width: 32px; height: 32px; }

.app-card h3 { margin-bottom: 0.5rem; }
.app-card p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

.btn-store { text-decoration: none; background: #0F172A; color: #FFFFFF; padding: 0.85rem 1.5rem; border-radius: 14px; font-size: 0.875rem; font-weight: 600; transition: all 0.3s ease; display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-store:hover:not(.disabled) { background: #000; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.btn-store.disabled { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); cursor: not-allowed; box-shadow: none; border-color: transparent; pointer-events: none; }

.link-more { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.875rem; }

.app-privacy-link { text-align: right; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.app-privacy-link a { color: var(--text-muted); text-decoration: none; font-size: 0.75rem; font-weight: 500; transition: all 0.2s; letter-spacing: 0.02em; text-transform: uppercase; }
.app-privacy-link a:hover { color: var(--primary); }

/* About Section */
.about-section { padding: 8rem 0; background: var(--bg); position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.about-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--text-main); }
.about-content p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 1.5rem; opacity: 0.9; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-item { padding: 2rem; background: var(--surface); border-radius: var(--radius-md); text-align: center; border: 1px solid var(--border); }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--primary); font-family: 'Plus Jakarta Sans', sans-serif; }
.stat-label { color: var(--text-muted); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Support & Contact Section */
.support-section { padding: 8rem 0; position: relative; text-align: center; }
.contact-info h2 { font-size: 3.5rem; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-info p { color: var(--text-muted); font-size: 1.25rem; max-width: 600px; margin: 0 auto; }
.support-email { display: inline-block; font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--primary-soft); transition: all 0.2s; }
.support-email:hover { border-bottom-color: var(--primary); }

/* Modals */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 1.5rem; opacity: 0; transition: opacity 0.3s ease; }
.modal.active { display: flex; opacity: 1; }
.modal-content { background: var(--surface); padding: 3rem; border-radius: var(--radius-lg); max-width: 600px; width: 100%; position: relative; border: 1px solid var(--border); box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15); transform: scale(0.9) translateY(20px); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal.active .modal-content { transform: scale(1) translateY(0); }
.close-modal { position: absolute; top: 1.5rem; right: 1.5rem; text-decoration: none; color: var(--text-muted); font-size: 1.5rem; font-weight: 300; }

/* Footer */
.site-footer { padding: 4rem 0; border-top: 1px solid var(--border); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-content p { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 0.875rem; margin-left: 1.5rem; }
.footer-links a:hover { color: var(--primary); }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { height: auto; }
}
@media (max-width: 768px) {
    .navbar .container, .nav-header .container { flex-direction: column; gap: 1rem; }
    nav a { margin: 0 1rem; }
    .hero { padding: 4rem 0; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .apps-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-links a { margin: 0 0.75rem; }
}