/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */

:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #1F9CED; /* Brand Blue */
    --primary-hover-color: #1a8bd4; /* Darker Brand Blue */
    --secondary-color: #3f3f46; /* Zinc 700 */
    --secondary-hover-color: #52525b; /* Zinc 600 */
    --secondary-accent-color: #08d9d6; /* Vibrant cyan */
    --secondary-accent-hover: #00b3b0;
    --text-primary-color: #f5f5f5; /* Zinc 100 */
    --text-secondary-color: #a1a1aa; /* Zinc 400 */
    --border-color: #2a3b5a; /* Blue-tinted border */
    --featured-glow: 0 0 30px rgba(59, 130, 246, 0.5);
    --accent-glow: 0 0 20px rgba(8, 217, 214, 0.4);
    --background-gradient: radial-gradient(ellipse at top, #1c263c, #121212);
    --font-family: 'Inter', sans-serif;
    --border-radius: 8px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--background-color);
    background-image: var(--background-gradient);
    color: var(--text-primary-color);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
a {
    color: var(--primary-color);
    text-decoration: none;
}
h1, h2 {
    font-weight: 700;
}

/* Buttons */
.button-primary, .button-secondary {
    display: inline-block;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.button-primary {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}
.button-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.button-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: var(--featured-glow);
}
.button-primary:hover::before {
    width: 300px;
    height: 300px;
}
.button-secondary {
    background-color: var(--secondary-color);
    color: white;
}
.button-secondary:hover {
    background-color: var(--secondary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* New accent button style */
.button-accent {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-accent-color);
    border: 2px solid var(--secondary-accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.button-accent:hover {
    background-color: var(--secondary-accent-color);
    color: var(--background-color);
    box-shadow: var(--accent-glow);
    transform: translateY(-2px);
}
.button-primary:active, .button-secondary:active {
    transform: scale(0.98);
}

/* Header */
.main-header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.main-header .logo:hover {
    opacity: 0.8;
}
.main-header .logo-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
}
.main-header .logo span {
    display: inline-block;
    vertical-align: middle;
}
.main-header nav a {
    color: var(--text-secondary-color);
    margin: 0 1rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.main-header nav a:hover {
    color: var(--text-primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2rem;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #b8b8b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary-color);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-cta {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* --- Layered Image Effect --- */
.effect-container {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-image-container {
    max-width: 700px;
    margin: 2rem auto 0;
}
.bg-image, .fg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Make images non-interactive */
}
.bg-image {
    z-index: 1;
}
.fg-image {
    z-index: 3;
}
.midground-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-weight: 900;
    color: var(--text-primary-color);
    opacity: 0.95;
    z-index: 2; /* This is the key: between bg and fg */
    text-shadow: 0 5px 15px rgba(0,0,0,0.4);
    line-height: 1;
    pointer-events: none;
}
/* --- End Layered Image Effect --- */


/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    text-align: center;
}
.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.gallery-section .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary-color);
    margin-bottom: 3rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 900px; /* Limit to 2 columns max */
    margin: 0 auto;
}
.gallery-item {
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.03);
}
/* We need a 'base' image for the gallery item to take its size from */
.gallery-item .bg-image {
    position: static; /* Let this one define the box size */
    display: block; /* Ensures it takes up space */
}
.gallery-item .fg-image, .gallery-item .midground-text {
    position: absolute; /* These overlay the static bg image */
    top: 0;
    left: 0;
}


/* How It Works Section */
.how-it-works-section {
    padding: 6rem 0;
    background-color: var(--surface-color);
    text-align: center;
}
.how-it-works-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}
.step {
    max-width: 300px;
}
.step-number {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.step p {
    color: var(--text-secondary-color);
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    text-align: center;
}
.pricing-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.pricing-section > p {
    color: var(--text-secondary-color);
    margin-bottom: 3rem;
}
.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.plan {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.plan.featured {
    border-color: var(--primary-color);
    box-shadow: var(--featured-glow);
}
.plan.featured:hover {
     box-shadow: var(--featured-glow), 0 5px 20px rgba(0,0,0,0.3);
}
.plan h3 {
    font-size: 1.25rem;
}
.plan .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}
.plan .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary-color);
}
.plan .credits {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.plan ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.plan ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}
.plan ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}
.plan .pricing-button {
    width: 100%;
}

/* Footer */
footer.main-footer {
    padding: 1rem 0;
    text-align: center;
    color: var(--text-secondary-color);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

footer.main-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

footer.main-footer .coffee-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #444;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

footer.main-footer .coffee-link:hover {
    border-color: #FFDD00;
    color: #FFDD00;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-table {
        grid-template-columns: 1fr;
    }
    .plan {
        margin-bottom: 1rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    .step {
        margin-bottom: 2rem;
    }
}
@media (max-width: 768px) {
    .main-header nav {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero, .gallery-section, .pricing-section, .how-it-works-section {
        padding: 4rem 0;
    }
    .midground-text {
        font-size: 15vw !important; /* Use important to override inline styles for smaller screens if needed */
    }
    .container {
        padding: 0 1rem;
    }
}

/* Animations and Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(8, 217, 214, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(8, 217, 214, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(8, 217, 214, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Scroll animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax effect for hero */
.hero-image-container {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.hero-image-container .bg-image {
    will-change: transform;
}

.hero-image-container .fg-image {
    will-change: transform;
}

/* Enhanced gallery hover */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.gallery-item:hover .midground-text {
    animation: pulse 1.5s infinite;
}

/* Feature cards hover */
.plan {
    transition: all 0.3s ease;
}

.plan:hover {
    transform: translateY(-5px);
}

.plan.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
}

/* Step cards animation */
.step {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.step:nth-child(1) {
    animation-delay: 0.1s;
}

.step:nth-child(2) {
    animation-delay: 0.2s;
}

.step:nth-child(3) {
    animation-delay: 0.3s;
}

/* CTA button pulse */
.hero-cta {
    animation: pulse 2s infinite;
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
    color: var(--secondary-accent-color);
    font-size: 2rem;
    cursor: pointer;
}


/* New Page Styles for About, Pro, Examples */
.about-main,
.pro-main,
.examples-main {
    min-height: calc(100vh - 200px);
}

.hero-minimal {
    padding: 4rem 0;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary-color);
    max-width: 600px;
    margin: 1.5rem auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.tech-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00B4D8;
}

.stat-label {
    color: var(--text-secondary-color);
    margin-top: 0.5rem;
}

/* Pro Page Specific */
.pro-hero {
    text-align: center;
    padding: 4rem 0 5rem;
}

.pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--background-color);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comparison-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.plan-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.plan-column.featured {
    border-color: #00B4D8;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #00B4D8, #0077BE);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header h3 {
    margin-bottom: 1rem;
}

.plan-features {
    margin: 2.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.feature-item.disabled {
    opacity: 0.5;
}

.feature-item .check {
    color: #4CAF50;
}

.feature-item .x {
    color: #FF4757;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-detail {
    text-align: center;
    padding: 1rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.faq-item {
    padding: 1rem;
}

.faq-item h4 {
    color: #00B4D8;
    margin-bottom: 1rem;
}

/* Examples Page Specific */
.examples-hero {
    text-align: center;
    padding: 3rem 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #00B4D8;
    color: white;
    border-color: #00B4D8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px; /* Limit to 2 columns max */
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item .effect-container {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.gallery-item-info {
    padding: 1.5rem;
}

.gallery-item-info h3 {
    margin-bottom: 0.5rem;
}

.gallery-item-info p {
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

.placeholder-container {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.placeholder-text {
    color: var(--text-secondary-color);
    margin-top: 1rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case {
    text-align: center;
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Pro page section spacing */
.comparison-section,
.pro-features-detail,
.faq-section,
.cta-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.comparison-section {
    padding-top: 3rem; /* Less space after hero */
}

.comparison-section h2,
.pro-features-detail h2,
.faq-section h2,
.cta-section h2 {
    margin-bottom: 3rem;
    text-align: center;
}

