/*
Theme Name: TechFlow SaaS
Theme URI: https://example.com/techflow-saas
Author: Your Name
Copyright: Copyright (c) 2024 Your Name
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Description: A modern SaaS landing page theme with hero section, features, pricing, testimonials, and CTAs.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: techflow-saas
Tags: custom-background, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, translation-ready, block-styles
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.7; color: #1e293b; background-color: #0f172a; font-size: 16px; }

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #22d3ee;
    --accent: #f472b6;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --white: #ffffff;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-light: #1e293b;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(99, 102, 241, 0.3);
    --transition: all 0.3s ease;
    --container: 1200px;
    --border-radius: 12px;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; color: var(--white); line-height: 1.2; font-weight: 700; }
h1 { font-size: 3.5rem; } h2 { font-size: 2.5rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: var(--white); padding: 8px 16px; z-index: 100; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* Header */
.site-header { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #334155; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.site-branding { display: flex; align-items: center; gap: 1rem; }
.site-logo { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: bold; font-size: 1.25rem; }
.site-title { font-size: 1.25rem; font-weight: 700; color: var(--white); margin: 0; }
.main-navigation ul { display: flex; list-style: none; gap: 2rem; }
.main-navigation a { color: var(--text-light); font-weight: 500; font-size: 0.95rem; }
.main-navigation a:hover { color: var(--white); }
.cta-button { background: var(--primary); color: var(--white) !important; padding: 0.625rem 1.25rem !important; border-radius: 8px; font-weight: 600; font-size: 0.9rem; }
.cta-button:hover { background: var(--primary-dark); transform: translateY(-2px); }
.cta-button::after { display: none !important; }

/* Hero */
.hero-slider { position: relative; height: 90vh; min-height: 700px; overflow: hidden; background: var(--bg-dark); display: flex; align-items: center; }
.hero-slider::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%); }
.slider-container { height: 100%; position: relative; width: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: all 0.8s ease; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; text-align: center; padding: 2rem; }
.slide-content h1 { color: var(--white); font-size: 4rem; margin-bottom: 1.5rem; line-height: 1.1; }
.slide-content h1 span { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.slide-content p { font-size: 1.25rem; margin-bottom: 2rem; color: var(--text-light); max-width: 600px; margin-left: auto; margin-right: auto; }
.slide-button { display: inline-block; background: var(--primary); color: var(--white) !important; padding: 1rem 2rem; border-radius: 8px; font-weight: 600; font-size: 1rem; margin: 0 0.5rem; }
.slide-button:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4); }
.slide-button.secondary { background: transparent; border: 2px solid #475569; color: var(--white) !important; }
.slide-button.secondary:hover { border-color: var(--primary); background: rgba(99, 102, 241, 0.1); }

.slider-nav { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; z-index: 10; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: #475569; cursor: pointer; transition: var(--transition); }
.slider-dot.active, .slider-dot:hover { background: var(--primary); transform: scale(1.2); }
.slider-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 2rem; z-index: 10; }
.slider-arrow { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--white); font-size: 1.25rem; transition: var(--transition); border: 1px solid #334155; }
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }

/* Features */
.features-section { padding: 6rem 0; background: var(--bg-dark); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-light); font-size: 1.1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { background: var(--bg-card); padding: 2rem; border-radius: var(--border-radius); border: 1px solid #334155; transition: var(--transition); }
.feature-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-light); margin: 0; }

/* How It Works */
.steps-section { padding: 6rem 0; background: var(--bg-card); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 40px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.step-item { text-align: center; position: relative; }
.step-number { width: 80px; height: 80px; background: var(--bg-dark); border: 2px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0 auto 1.5rem; position: relative; z-index: 1; }
.step-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-item p { font-size: 0.9rem; margin: 0; }

/* Pricing */
.pricing-section { padding: 6rem 0; background: var(--bg-dark); }
.pricing-section h2 { text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.pricing-card { background: var(--bg-card); border-radius: var(--border-radius); padding: 2.5rem; border: 1px solid #334155; text-align: center; transition: var(--transition); position: relative; }
.pricing-card.featured { border-color: var(--primary); transform: scale(1.05); box-shadow: var(--shadow-hover); }
.pricing-card.featured::before { content: 'POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); padding: 0.25rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.pricing-title { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-light); }
.pricing-price { font-size: 3rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.pricing-features li { padding: 0.75rem 0; border-bottom: 1px solid #334155; color: var(--text-light); display: flex; align-items: center; gap: 0.75rem; }
.pricing-features li::before { content: '✓'; color: var(--secondary); font-weight: bold; }
.pricing-button { display: block; padding: 1rem; background: var(--primary); color: var(--white); border-radius: 8px; font-weight: 600; margin-top: 1.5rem; }
.pricing-button:hover { background: var(--primary-dark); }
.pricing-card.featured .pricing-button { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

/* Testimonials */
.testimonials-section { padding: 6rem 0; background: var(--bg-card); }
.testimonials-section h2 { text-align: center; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.testimonial-card { background: var(--bg-dark); padding: 2rem; border-radius: var(--border-radius); border: 1px solid #334155; }
.testimonial-text { font-size: 1rem; line-height: 1.8; margin-bottom: 1.5rem; color: var(--text-light); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--white); }
.testimonial-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.testimonial-info span { font-size: 0.875rem; color: var(--text-light); }

/* Stats */
.stats-section { padding: 4rem 0; background: linear-gradient(135deg, var(--primary-dark), #312e81); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { color: var(--white); }
.stat-number { font-size: 3rem; font-weight: 700; margin-bottom: 0.5rem; }
.stat-label { font-size: 1rem; color: rgba(255,255,255,0.8); }

/* CTA */
.cta-section { padding: 6rem 0; background: var(--bg-dark); text-align: center; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { max-width: 600px; margin: 0 auto 2rem; }

/* Footer */
.site-footer { background: var(--bg-card); color: var(--white); padding: 4rem 0 2rem; border-top: 1px solid #334155; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .site-logo { width: 50px; height: 50px; font-size: 1.5rem; margin-bottom: 1rem; }
.footer-brand h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--text-light); margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 1rem; }
.social-link { width: 40px; height: 40px; background: #334155; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-link:hover { background: var(--primary); }
.footer-column h4 { font-size: 1rem; margin-bottom: 1.5rem; color: var(--white); }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column a { color: var(--text-light); font-size: 0.9rem; }
.footer-column a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; text-align: center; color: var(--text-light); font-size: 0.9rem; }

/* Mobile */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 25px; height: 3px; background: var(--white); margin: 5px 0; }

@media (max-width: 1024px) {
    .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .steps-grid::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; } h2 { font-size: 1.75rem; }
    .slide-content h1 { font-size: 2.5rem; }
    .menu-toggle { display: block; }
    .main-navigation ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 1rem 2rem; gap: 0; border-bottom: 1px solid #334155; }
    .main-navigation ul.active { display: flex; }
    .features-grid, .pricing-grid, .testimonials-grid, .steps-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Blog */
.blog-section { padding: 4rem 0; background: var(--bg-dark); min-height: 60vh; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; margin-top: 3rem; }
.post-card { background: var(--bg-card); border-radius: var(--border-radius); overflow: hidden; border: 1px solid #334155; transition: var(--transition); }
.post-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.post-thumbnail { height: 200px; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.post-content { padding: 1.5rem; }
.post-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.post-title a { color: var(--white); }
.post-title a:hover { color: var(--primary-light); }
.post-meta { font-size: 0.875rem; color: var(--text-light); margin-bottom: 1rem; }
.post-excerpt { color: var(--text-light); margin-bottom: 1rem; font-size: 0.9rem; }
.read-more { font-weight: 600; color: var(--primary-light); }
.pagination { margin-top: 3rem; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 0.5rem 1rem; margin: 0 0.25rem; background: var(--bg-card); border-radius: 5px; color: var(--text-light); border: 1px solid #334155; }
.pagination .page-numbers:hover, .pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Post */
.post-content { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.post-header { text-align: center; margin-bottom: 3rem; }
.post-title { font-size: 2.5rem; margin-bottom: 1rem; color: var(--white); }
.post-meta { color: var(--text-light); }
.entry-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-light); }
.entry-content p { color: var(--text-light); }
.entry-content h2, .entry-content h3 { color: var(--white); margin-top: 2rem; }

/* Comments */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #334155; }
.comments-title { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--white); }
.comment-list { list-style: none; }
.comment { margin-bottom: 2rem; }
.comment-body { background: var(--bg-card); padding: 1.5rem; border-radius: 8px; border: 1px solid #334155; }
.comment-author { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--white); }
.comment-meta { font-size: 0.875rem; color: var(--text-light); }
.comment-content { color: var(--text-light); }
.reply a { display: inline-block; padding: 0.5rem 1rem; background: var(--primary); color: var(--white); border-radius: 4px; font-size: 0.875rem; }
.comment-form { background: var(--bg-card); padding: 2rem; border-radius: 8px; border: 1px solid #334155; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--white); }
.comment-form input, .comment-form textarea { width: 100%; padding: 0.75rem; border: 1px solid #334155; border-radius: 8px; background: var(--bg-dark); color: var(--white); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary); }
.form-submit .submit { background: var(--primary); color: var(--white); border: none; padding: 0.875rem 2rem; border-radius: 8px; font-weight: 600; cursor: pointer; }
.form-submit .submit:hover { background: var(--primary-dark); }

/* Tags */
.tags-links { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #334155; }
.tags-links a { display: inline-block; padding: 0.25rem 0.75rem; margin-right: 0.5rem; background: var(--bg-card); border-radius: 4px; font-size: 0.875rem; color: var(--text-light); border: 1px solid #334155; }
.tags-links a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.bypostauthor { border-left: 4px solid var(--primary); }
.post-author { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: var(--bg-card); border-radius: 8px; margin-top: 2rem; border: 1px solid #334155; }
.post-author img { border-radius: 50%; }
.post-author h4 { font-size: 1rem; color: var(--white); margin-bottom: 0.25rem; }
.post-author p { font-size: 0.875rem; color: var(--text-light); margin: 0; }

/* WP Core */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--text-light); }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }

/* Buttons */
.button { display: inline-block; padding: 0.875rem 2rem; background: var(--primary); color: var(--white); border-radius: 8px; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; }
.button:hover { background: var(--primary-dark); color: var(--white); }
.button.secondary { background: transparent; border: 2px solid var(--primary); color: var(--primary-light); }
.button.secondary:hover { background: var(--primary); color: var(--white); }

/* Widgets */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1.25rem; margin-bottom: 1rem; color: var(--white); border-bottom: 2px solid var(--primary); padding-bottom: 0.5rem; }
.widget ul { list-style: none; }
.widget li { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid #334155; }
.widget a { color: var(--text-light); }
.widget a:hover { color: var(--primary-light); }
