/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
   :root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #7c3aed;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --bg-sec: #f9fafb;
    --border: #e5e7eb;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', sans-serif;
}

body.dark-mode {
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --secondary: #a78bfa;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --bg-main: #0f172a;
    --bg-sec: #1e293b;
    --border: #334155;
    --card-bg: #1e293b;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--text-main); background-color: var(--bg-main); line-height: 1.6; overflow-x: hidden; transition: background-color 0.3s, color 0.3s; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--text-main); }
h1 { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 24px; }
h2 { font-size: 2.5rem; margin-bottom: 16px; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
p { color: var(--text-muted); }

.text-gradient { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* 3D Logo Effect */
.logo-3d {
    font-size: 1.5rem; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px;
    text-shadow: 1px 1px 0px #c7c7c7, 2px 2px 0px #b3b3b3, 3px 3px 0px #999999, 4px 4px 6px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}
body.dark-mode .logo-3d {
    color: #ffffff;
    text-shadow: 1px 1px 0px var(--primary), 2px 2px 0px var(--primary), 3px 3px 0px var(--primary-hover), 4px 4px 6px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; text-align: center; border: none; transition: var(--transition); font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important; box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5); transform: translateY(-2px); }
.btn-secondary { background-color: var(--card-bg); color: var(--text-main) !important; border: 1px solid var(--border); }
.btn-secondary:hover { background-color: var(--bg-sec); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-main); }
.btn-ghost:hover { color: var(--primary); }
.btn-large { padding: 14px 32px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* Utilities */
.text-center { text-align: center; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header p { font-size: 1.125rem; }
section { padding: 100px 0; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: var(--transition); }
.navbar.scrolled { border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
#dark-mode-toggle { background: none; border: none; cursor: pointer; color: var(--text-main); display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 50%; transition: var(--transition); }
#dark-mode-toggle:hover { background-color: var(--bg-sec); }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background-color: var(--text-main); transition: var(--transition); }

/* Hero */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-bg-gradient { position: absolute; top: -20%; right: -10%; width: 60%; height: 80%; background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(255,255,255,0) 70%); z-index: -1; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge { display: inline-block; padding: 6px 16px; background-color: rgba(79, 70, 229, 0.1); color: var(--primary); border-radius: 20px; font-size: 0.875rem; font-weight: 600; margin-bottom: 24px; }
.hero-content p { font-size: 1.25rem; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; }
.abstract-shape { position: relative; width: 100%; max-width: 500px; margin: 0 auto; }
.floating-card { position: absolute; background: var(--card-bg); padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-weight: 600; animation: float 4s ease-in-out infinite; border: 1px solid var(--border); }
.floating-card.c-1 { top: 20%; left: -20px; animation-delay: 0s; }
.floating-card.c-2 { bottom: 20%; right: -20px; animation-delay: 2s; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* Features */
.features { background-color: var(--bg-sec); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.feature-card { background: var(--card-bg); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-icon { width: 48px; height: 48px; background: rgba(79, 70, 229, 0.1); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 1.5rem;}

/* How It Works */
.how-it-works { background-color: var(--bg-main); }
.timeline { display: flex; justify-content: space-between; position: relative; gap: 24px; }
.timeline::before { content: ''; position: absolute; top: 24px; left: 5%; width: 90%; height: 2px; background: var(--border); z-index: 1; }
.timeline-step { position: relative; z-index: 2; flex: 1; text-align: center; }
.step-number { width: 48px; height: 48px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; margin: 0 auto 16px; box-shadow: 0 0 0 8px var(--bg-main); }

/* Dashboard Mockup */
.dashboard-preview { background-color: var(--bg-sec); }
.mockup-window { background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; overflow: hidden; height: 600px; }
.mockup-sidebar { width: 240px; background: var(--bg-sec); border-right: 1px solid var(--border); padding: 24px; }
.mockup-logo { font-weight: 700; font-size: 1.2rem; margin-bottom: 40px; color: var(--primary); }
.mockup-nav { display: flex; flex-direction: column; gap: 16px; }
.mockup-nav li { padding: 10px 16px; border-radius: 8px; color: var(--text-muted); font-weight: 500; cursor: pointer; }
.mockup-nav li.active { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.mockup-main { flex: 1; padding: 32px; background: var(--bg-main); overflow-y: auto; }
.mockup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.user-avatar { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; }
.mockup-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.mockup-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.canvas-container { position: relative; height: 250px; width: 100%; margin-top: 16px; }
.side-cards { display: flex; flex-direction: column; gap: 16px; background: transparent; border: none; padding: 0; box-shadow: none; }
.mini-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.mini-card.highlight { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border: none; }
.mini-card.highlight h5, .mini-card.highlight p { color: rgba(255,255,255,0.8); }
.mini-card h5 { color: var(--text-muted); font-size: 0.875rem; text-transform: uppercase; }
.text-green { color: #10b981; } .text-sm { font-size: 0.8rem; }

/* Pricing */
.pricing { background: var(--bg-main); }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; font-weight: 500; }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--border); transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(22px); }
.discount-badge { background: rgba(16, 185, 129, 0.1); color: #10b981; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; margin-left: 8px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: center; }
.pricing-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; position: relative; box-shadow: var(--shadow-sm); transition: var(--transition); }
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pricing-card.pro { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); transform: scale(1.05); }
.pricing-card.pro:hover { transform: scale(1.05) translateY(-5px); }
.most-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.price { margin: 24px 0 16px; }
.currency { font-size: 1.5rem; font-weight: 600; vertical-align: top; }
.amount { font-size: 3rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.period { color: var(--text-muted); font-weight: 500; }
.features-list { margin-bottom: 32px; }
.features-list li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.features-list li::before { content: "✓"; color: var(--primary); font-weight: bold; }

/* FAQ */
.faq { background: var(--bg-main); }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 24px 0; font-size: 1.125rem; font-weight: 600; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question .icon { font-size: 1.5rem; transition: transform 0.3s; color: var(--primary); }
.faq-question.active .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-bottom: 24px; }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, var(--primary), var(--secondary)); padding: 100px 0; color: #fff; }
.final-cta h2 { color: #fff; margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,0.9); margin-bottom: 40px; font-size: 1.2rem; }
.cta-form { display: flex; max-width: 500px; margin: 0 auto; gap: 12px; }
.cta-form input { flex: 1; padding: 14px 20px; border-radius: 8px; border: none; font-size: 1rem; outline: none; }
.cta-form .btn { background: #fff; color: var(--primary) !important; box-shadow: none; }
.form-msg { margin-top: 16px !important; font-size: 0.9rem !important; display: none; }

/* AdSense Optimized SEO Block */
.seo-block { background: var(--bg-sec); padding: 80px 0; border-top: 1px solid var(--border); }
.seo-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .seo-grid { grid-template-columns: 1fr 1fr; } }

/* Inner Page Headers & Content */
.page-header { background: linear-gradient(135deg, var(--bg-sec), var(--card-bg)); padding: 160px 0 60px; text-align: center; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 3rem; margin-bottom: 16px; color: var(--primary); }
.content-section { padding: 60px 0; background: var(--bg-main); }
.content-wrapper { max-width: 900px; margin: 0 auto; background: var(--card-bg); padding: 48px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.content-wrapper h2 { margin: 40px 0 20px; font-size: 2rem; color: var(--text-main); }
.content-wrapper h3 { margin: 30px 0 16px; font-size: 1.5rem; color: var(--text-main); }
.content-wrapper p { margin-bottom: 24px; font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }
.content-wrapper ul, .content-wrapper ol { margin: 0 0 24px 24px; font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; }
.content-wrapper li { margin-bottom: 12px; }

/* Massive Testimony Grid */
.massive-testimony-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }

/* Interactive Modals */
.interactive { cursor: pointer; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.interactive:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.mt-3 { margin-top: 16px; }
.mb-3 { margin-bottom: 16px; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-main); width: 90%; max-width: 600px; max-height: 90vh;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    position: relative; transform: translateY(20px); transition: transform 0.3s ease;
    display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border);
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute; top: 16px; right: 24px; background: transparent; border: none; font-size: 2rem;
    color: var(--text-muted); cursor: pointer; transition: color 0.3s; z-index: 10;
}
.modal-close:hover { color: var(--primary); }
.modal-header { padding: 32px 32px 16px; border-bottom: 1px solid var(--border); background: var(--bg-sec); }
.modal-header h2 { margin-bottom: 8px; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.modal-header p { font-size: 0.95rem; }
.modal-body { padding: 32px; overflow-y: auto; flex: 1; }

/* Modal Forms */
.tool-form { display: flex; flex-direction: column; gap: 16px; }
.tool-form label { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.tool-form input, .tool-form select, .tool-form textarea {
    width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-main); color: var(--text-main); font-family: var(--font-family); font-size: 1rem; outline: none; transition: border-color 0.3s;
}
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus { border-color: var(--primary); }

.tool-loader { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 16px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.tool-result { display: none; background: var(--bg-sec); padding: 24px; border-radius: 8px; border: 1px solid var(--border); margin-top: 20px; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.day-card { border-left: 3px solid var(--primary); padding-left: 16px; margin-bottom: 24px; }
.day-card h4 { color: var(--primary); margin-bottom: 8px; }
.day-card ul { margin-left: 0; padding-left: 0; list-style: none; }
.day-card li { font-size: 0.95rem; margin-bottom: 6px; position: relative; padding-left: 16px; }
.day-card li::before { content: "•"; color: var(--secondary); position: absolute; left: 0; font-weight: bold; }

.price-card { display: flex; justify-content: space-between; align-items: center; background: var(--card-bg); padding: 16px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 12px; }
.price-card h4 { margin: 0; font-size: 1rem; }
.price-card .cost { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

.budget-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.budget-item { display: flex; justify-content: space-between; padding: 10px; background: var(--card-bg); border-radius: 6px; border: 1px solid var(--border); }
.budget-total { font-size: 1.25rem; font-weight: bold; text-align: right; color: var(--text-main); border-top: 2px solid var(--border); padding-top: 16px; }

/* Footer */
.footer { background: var(--bg-main); padding: 80px 0 24px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { margin: 16px 0; font-size: 0.9rem; }
.footer-links h4 { margin-bottom: 24px; font-size: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.875rem; }

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .hero-container { gap: 32px; }
    .pricing-card.pro { transform: scale(1); }
    .mockup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: 72px; left: -100%; width: 100%; height: calc(100vh - 72px); background: var(--nav-bg); flex-direction: column; align-items: center; padding-top: 40px; transition: 0.3s; backdrop-filter: blur(10px); }
    .nav-links.active { left: 0; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-btns { justify-content: center; }
    .timeline { flex-direction: column; gap: 40px; }
    .timeline::before { top: 0; left: 24px; width: 2px; height: 100%; }
    .timeline-step { display: flex; text-align: left; align-items: flex-start; gap: 24px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mockup-window { flex-direction: column; height: auto; }
    .mockup-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
    .content-wrapper { padding: 32px 24px; }
}
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
}