/* =========================================
   PROFILIO DESIGN SYSTEM & CSS
   Inspired by "Limitless" Framer Template
   ========================================= */

/* --- Variables --- */
:root {
    /* Colors matches app screenshot and Limitless template */
    --bg-dark: #000000;
    --bg-surface: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #263447;
    
    --primary: #38bdf8; /* Bright Sky Blue from Profilio App */
    --primary-hover: #1aaaf4;
    --primary-glow: rgba(56, 189, 248, 0.4);
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography styles */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--text-muted); /* or keep white, depending on context */
}

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

ul {
    list-style: none;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-12 { margin-top: 3rem; }
.w-full { width: 100%; }

.border-top {
    border-top: 1px solid var(--border-color);
}

/* --- Abstract Background Glows --- */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}
.glow-top-left {
    top: -200px;
    left: -200px;
}
.glow-bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(147,51,234,0.1) 0%, rgba(0,0,0,0) 70%); /* subtle purple touch */
}

/* --- Premium Glassmorphism --- */
.glass-panel {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Spotlight Hover Effect */
.glass-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
        rgba(255, 255, 255, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.glass-panel:hover::before {
    opacity: 1;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}
.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}
.glow-btn {
    box-shadow: 0 0 20px var(--primary-glow);
}
.glow-btn:hover {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--text-main);
}
.btn-ghost {
    background-color: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover {
    color: var(--text-main);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    font-size: 1.2rem;
}
.logo-text {
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}
.logo-img {
    height: 32px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-link:hover {
    color: var(--text-main);
}
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- Hero Section --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}
.badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 10px #22c55e;
}
.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.app-mockup {
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.mockup-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Sections --- */
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Bento Grid (Features) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(280px, auto);
}
.bento-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
}
.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 3D Moving Parallax Grid Background */
.bento-card::after {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    /* Move opposite to the mouse pointer for depth effect */
    transform: translate(
        calc(var(--mouse-x-norm, 0) * -20px),
        calc(var(--mouse-y-norm, 0) * -20px)
    );
    -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

.bento-card:hover::after {
    opacity: 1;
}
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}
.bento-wide {
    grid-column: span 3;
}
.card-content {
    position: relative;
    z-index: 2;
}
.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.card-content p {
    color: var(--text-muted);
}

/* --- Process Section --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.step-card {
    padding: 2rem 0;
}
.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.8;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1;
}
.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
}
.pricing-card {
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}
.popular {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
    z-index: 10;
    overflow: visible;
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pricing-card h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}
.plan-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}
.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}
.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}
.features-list {
    margin-bottom: 2.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}
.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.features-list li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 0.75rem;
    font-weight: bold;
}

/* --- Footer --- */
.footer-content {
    display: flex;
    justify-content: space-between;
}
.footer-desc {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 250px;
    font-size: 0.9rem;
}
.footer-links {
    display: flex;
    gap: 4rem;
}
.link-group h4 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.link-group a:hover {
    color: var(--text-main);
}
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .bento-grid, .process-steps, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    .popular {
        transform: scale(1);
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .header-actions .btn-ghost {
        display: none;
    }
    .hero-cta {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
    .py-24 { padding-top: 4rem; padding-bottom: 4rem; }
    .hero-title { font-size: 2.5rem; }
}
