/* Variation 3: Functional SaaS (Bento Grid / High Contrast Minimalist) */
:root {
    --bg-body: #000000;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;

    --primary-color: #ffffff;
    --accent-color: #3b82f6;
    /* Electric Blue */

    --text-main: #ffffff;
    --text-muted: #888888;

    --border-color: #333333;
    --border-radius: 12px;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
    /* Keep it uniform for SaaS look */

    --transition: all 0.2s ease-out;
}

/* Global Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 64px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Buttons - High Contrast */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: black;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid white;
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: white;
}

/* Header */
header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.2rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

nav ul li a:hover {
    color: white;
}

/* Features (Why Choose) - Bento Grid Style */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hero - Bento Style Layout */
.hero {
    padding: 140px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Dot Grid Pattern Background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.hero>.container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 30px;
    max-width: 900px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Services - Bento Grid */
.services {
    padding: 120px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: var(--y, -1000px);
    left: var(--x, -1000px);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Bento Spans */
.service-card:nth-child(1) {
    grid-column: span 2;
}

.service-card:nth-child(2) {
    grid-column: span 1;
}

.service-card:nth-child(3) {
    grid-column: span 1;
}

.service-card:nth-child(4) {
    grid-column: span 1;
}

.service-card:nth-child(5) {
    grid-column: span 2;
}

.service-card:nth-child(6) {
    grid-column: span 1;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

.pricing-card.featured {
    background: white;
    color: black;
    border-color: white;
}

.pricing-card.featured h3,
.pricing-card.featured .price .amount,
.pricing-card.featured .price .period,
.pricing-card.featured li {
    color: black;
}

.pricing-card.featured .btn-primary {
    background: black;
    color: white;
    border-color: black;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Pricing Features List */
.pricing-card ul.features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.pricing-card ul.features li {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.pricing-card ul.features li i {
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pricing-card.featured ul.features li i {
    color: black;
}

/* Contact Section - Increased Spacing */
.contact {
    padding: 120px 0;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: black;
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 120px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Logo Styles */
.logo-img {
    height: 40px;
    width: auto;
}

/* Video Showcase */
.video-showcase {
    margin-top: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
}

.video-frame {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-frame video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.video-heading {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.video-caption {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Blog Section */
.blog {
    padding: 120px 0;
    background: var(--bg-card);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.blog-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 48px;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--accent-color);
}

.blog-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.blog-tag {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.blog-content {
    margin-bottom: 32px;
}

.blog-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-content h4 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin: 28px 0 12px 0;
}

.blog-content pre {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px 20px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.blog-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.blog-content pre code {
    color: #e2e8f0;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.blog-list li {
    color: var(--text-muted);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

.blog-list li:last-child {
    border-bottom: none;
}

.blog-list li strong {
    color: var(--text-main);
}

.blog-list li code {
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Resources Section */
.resources {
    padding: 120px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    border-color: white;
    transform: translateY(-4px);
}

.resource-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.resource-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    width: fit-content;
}

.resource-badge.free {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.resource-badge.premium {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.resource-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.info-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.info-content p {
    color: var(--text-muted);
    margin: 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: white;
    border-color: white;
    color: black;
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-logo p {
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:nth-child(n) {
        grid-column: span 1;
    }

    .about-content,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    header .container {
        flex-direction: column;
        gap: 16px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 40px;
        padding-bottom: 24px;
    }

    .services,
    .pricing,
    .features,
    .about,
    .blog,
    .resources,
    .contact {
        padding: 80px 0;
    }

    .services-grid,
    .resources-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 32px;
    }

    .blog-card h3 {
        font-size: 1.5rem;
    }

    .blog-content pre {
        padding: 12px;
        font-size: 0.8rem;
        overflow-x: auto;
    }

    .blog-list li code {
        display: block;
        margin-top: 8px;
        word-break: break-all;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}