/*
   Shrelix ERP Landing Page Styles
   Premium SaaS Design
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #F8FAFC;
    --bg-surface: #FFFFFF;
    --primary: #4F46E5;
    --primary-glow: rgba(79, 70, 229, 0.3);
    --secondary: #818CF8;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-light: rgba(15, 23, 42, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --font-primary: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] {
    --bg-dark: #09090F;
    --bg-surface: #11111B;
    --primary: #6C63FF;
    --primary-glow: rgba(108, 99, 255, 0.4);
    --secondary: #8F88FF;
    --text-main: #FFFFFF;
    --text-muted: #A0A0C0;
    --border-light: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(9, 9, 15, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ghost {
    color: var(--text-main);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.1) 0%, transparent 50%);
    z-index: 0;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through to content */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    text-align: center;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-badge:hover {
    transform: scale(1.05);
    background: rgba(79, 70, 229, 0.1);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Trust Section */
.trust {
    padding: 3rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface), transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    align-items: center;
}

.marquee-content span {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Features Bento Grid */
.features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: default;
}

.bento-item:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item.large {
    grid-column: span 2;
}

.bento-icon {
    width: 44px;
    height: 44px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.bento-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-item p {
    color: var(--text-muted);
}

/* Product Showcase */
.showcase {
    padding: 5rem 2rem;
    background: var(--bg-surface);
    overflow: hidden;
}

.mockup-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    perspective: 1000px;
}

.mockup {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    transform: rotateX(10deg);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.mockup.revealed {
    transform: rotateX(0deg);
}

/* Pricing */
.pricing {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    background: rgba(79, 70, 229, 0.03);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.15);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 25px 30px -5px rgba(79, 70, 229, 0.25);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-usd {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
}

.yearly-offer {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.yearly-offer strong {
    color: var(--text-main);
    font-size: 1.1rem;
}

.yearly-offer .price-usd {
    font-size: 0.9rem;
}

.offer-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* CTA & Footer */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--bg-surface));
}

.footer {
    border-top: 1px solid var(--border-light);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-surface);
    font-size: 0.9rem;
}

/* Scroll Reveal Utility (Disabled as requested) */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item.large {
        grid-column: span 1;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-stats { gap: 2rem; flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.faq-item {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Premium Features Section */
.premium-features-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.premium-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05), 0 10px 20px -5px rgba(79, 70, 229, 0.1);
}

.premium-card:hover::before {
    opacity: 1;
}

.premium-card .icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.premium-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary);
    color: white;
}

.premium-card .icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.premium-card h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 700;
}

.premium-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Trust Section */
.trust {
    padding: 3rem 0 2rem 0;
    background: transparent;
    border: none;
    overflow: hidden;
    position: relative;
}

.trust-label {
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}
