:root {
    --primary: #4f46e5; /* Indigo */
    --primary-dark: #4338ca;
    --accent: #8b5cf6; /* Violet */
    --bg-color: #f9fafb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --white: #ffffff;
    --border: #e5e7eb;
    
    --font-stack: 'Inter', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Header */
.saas-header { 
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.logo-shape { width: 30px; height: 30px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 8px; }

.saas-nav { display: flex; gap: 30px; }
.saas-nav a { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.saas-nav a:hover, .saas-nav a.active { color: var(--primary); }

.header-actions { display: flex; gap: 20px; align-items: center; }
.link-login { font-weight: 600; color: var(--text-main); }
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white); padding: 10px 20px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}
.btn-gradient:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: var(--white); z-index: 2000; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; transition: 0.3s; }
.mobile-menu.active { right: 0; }
.close-menu { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; background: none; border: none; cursor: pointer; }
.mobile-menu a { font-size: 1.5rem; font-weight: 600; }

/* Hero */
.hero-saas { padding: 100px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.badge-new { background-color: #e0e7ff; color: var(--primary); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; display: inline-block; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.cta-row { display: flex; gap: 15px; margin-bottom: 30px; }
.btn-gradient.large { padding: 15px 35px; font-size: 1.1rem; }
.btn-secondary { background: var(--white); border: 1px solid var(--border); color: var(--text-main); padding: 15px 35px; border-radius: var(--radius); font-weight: 600; font-size: 1.1rem; }
.btn-secondary:hover { background: #f3f4f6; }
.trust-text { font-size: 0.9rem; color: var(--text-muted); }

/* Mockup */
.app-mockup { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-2deg); transition: 0.5s; }
.app-mockup:hover { transform: rotate(0); }
.mockup-header { padding: 15px; background: #f9fafb; border-bottom: 1px solid var(--border); display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #f59e0b; } .green { background: #10b981; }
.mockup-body { padding: 40px; height: 300px; position: relative; }
.skeleton-line { height: 12px; background: #e5e7eb; border-radius: 6px; margin-bottom: 20px; }
.w-80 { width: 80%; } .w-60 { width: 60%; }
.skeleton-btn { height: 40px; width: 120px; background: var(--primary); border-radius: 8px; margin-top: 40px; opacity: 0.2; }
.success-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #10b981; color: white; padding: 10px 20px; border-radius: 50px; font-weight: bold; box-shadow: var(--shadow); }

/* Pricing */
.section-padding { padding: 80px 20px; }
.center-head { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.center-head h2 { font-size: 2.5rem; margin-bottom: 10px; }
.toggle-container { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 20px; font-weight: 600; }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }

/* Pricing Cards */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.price-card { background: var(--white); padding: 40px; border-radius: 20px; border: 1px solid var(--border); text-align: center; position: relative; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); transform: scale(1.05); z-index: 2; }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; }
.price { font-size: 3rem; font-weight: 800; margin: 20px 0 10px; color: var(--text-main); }
.price-card ul { list-style: none; margin: 30px 0; text-align: left; padding-left: 20px; }
.price-card li { margin-bottom: 15px; color: var(--text-muted); }
.price-card li::before { content: "✓"; color: var(--primary); font-weight: bold; margin-right: 10px; }
.btn-card { display: block; width: 100%; padding: 15px; background: #e0e7ff; color: var(--primary); border-radius: var(--radius); font-weight: 600; transition: 0.3s; }
.btn-card:hover { background: #c7d2fe; }
.full { width: 100%; display: block; text-align: center; }

/* Features */
.hero-small { text-align: center; padding: 60px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.feature-row { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feat-text { flex: 1; }
.icon-box { font-size: 3rem; margin-bottom: 20px; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { margin-bottom: 10px; font-weight: 600; }
.check-list li::before { content: "•"; color: var(--primary); margin-right: 10px; }

.feat-visual { flex: 1; height: 350px; border-radius: 20px; position: relative; display: flex; align-items: center; justify-content: center; }
.bg-blue { background: #e0e7ff; }
.bg-purple { background: #f3e8ff; }
.floating-card { background: white; padding: 15px 30px; border-radius: 10px; box-shadow: var(--shadow); position: absolute; font-weight: bold; animation: float 3s infinite ease-in-out; }
.delay { animation-delay: 1.5s; top: 60%; left: 60%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Login */
.support-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.login-wrapper { background: var(--white); padding: 40px; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.saas-form input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 15px; }
.forgot-link { display: block; text-align: center; margin-top: 15px; color: var(--text-muted); font-size: 0.9rem; }
.faq-box details { margin-bottom: 15px; background: #f9fafb; padding: 15px; border-radius: 8px; cursor: pointer; }
.faq-box summary { font-weight: 600; }

/* Footer */
.saas-footer { background: var(--white); border-top: 1px solid var(--border); padding: 50px 0; }
.footer-grid { display: flex; justify-content: space-between; }
.f-col a { display: block; margin-bottom: 10px; color: var(--text-muted); }
.f-col a:hover { color: var(--primary); }

/* Legal Text */
.legal-doc { max-width: 800px; margin: 0 auto; background: var(--white); padding: 60px; border-radius: 20px; }

@media (max-width: 900px) {
    .saas-nav, .header-actions { display: none; }
    .mobile-toggle { display: block; }
    .hero-grid, .pricing-grid, .feature-row, .support-layout { grid-template-columns: 1fr; flex-direction: column; }
    .price-card.featured { transform: scale(1); }
    .feature-row.reverse { flex-direction: column; }
}