/* ===================================
   CINEREO LANDING - MODERN GLASS & GRADIENT
   =================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Base Colors */
    --base-black: #050505;
    --base-dark: #0f0f0f;
    --base-grey-dark: #1f1f1f;
    --base-grey: #666666;
    --base-grey-light: #e0e0e0;
    --base-white: #ffffff;
    --base-off-white: #f8f9fa;
    
    /* Brand Colors */
    --brand-primary: #ffffff;
    --brand-secondary: #888888;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Raleway', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== DARK THEME (Default) ===== */
body[data-theme="dark"] {
    --bg-gradient: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #050505 100%);
    --bg-cards: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(20, 20, 20, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-hover: rgba(255, 255, 255, 0.25);
    
    --color-text: #ffffff;
    --color-text-secondary: #b0b0b0; /* Lighter for better readability */
    --color-text-tertiary: #666666;
    
    --color-accent: #ffffff;
    --color-accent-bg: #000000;
    
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(255, 255, 255, 0.05);

    /* Button Glow Gradient */
    --btn-glow-gradient: linear-gradient(45deg, #ff357a, #fff172);

    /* Particles */
    --particle-color: rgba(255, 255, 255, 0.15);
}

/* ===== LIGHT THEME (Improved) ===== */
body[data-theme="light"] {
    /* More depth in background to make glass visible */
    --bg-gradient: radial-gradient(circle at 50% 0%, #f0f2f5 0%, #dbe0e8 100%);
    
    /* More opaque white for cards to stand out against light bg */
    --bg-cards: rgba(255, 255, 255, 0.65); 
    --bg-glass: rgba(255, 255, 255, 0.8);
    
    /* Stronger borders for definition */
    --border-glass: rgba(0, 0, 0, 0.12);
    --border-glass-hover: rgba(0, 0, 0, 0.3);
    
    /* Darker text for sharp contrast */
    --color-text: #0a0a0a;
    --color-text-secondary: #444444;
    --color-text-tertiary: #666666;
    
    --color-accent: #000000;
    --color-accent-bg: #ffffff;
    
    /* Colored shadow for a modern feel */
    --shadow-card: 0 10px 40px -10px rgba(0, 20, 40, 0.1);
    --glow: 0 0 20px rgba(0, 0, 0, 0.1);

    --btn-glow-gradient: linear-gradient(45deg, #ff357a, #fff172);

    /* Particles - Dark for visibility */
    --particle-color: rgba(0, 0, 0, 0.15);
}

/* ===== AUTO THEME SUPPORT ===== */
@media (prefers-color-scheme: light) {
    body[data-theme="auto"] {
        --bg-gradient: radial-gradient(circle at 50% 0%, #f0f2f5 0%, #dbe0e8 100%);
        --bg-cards: rgba(255, 255, 255, 0.65);
        --bg-glass: rgba(255, 255, 255, 0.8);
        --border-glass: rgba(0, 0, 0, 0.12);
        --border-glass-hover: rgba(0, 0, 0, 0.3);
        
        --color-text: #0a0a0a;
        --color-text-secondary: #444444;
        --color-text-tertiary: #666666;
        
        --color-accent: #000000;
        --color-accent-bg: #ffffff;
        
        --shadow-card: 0 10px 40px -10px rgba(0, 20, 40, 0.1);
        --glow: 0 0 20px rgba(0, 0, 0, 0.1);

        --btn-glow-gradient: linear-gradient(45deg, #ff357a, #fff172);

        --particle-color: rgba(0, 0, 0, 0.15);
    }
}

/* ===== CORE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: color 0.3s ease, background 0.3s ease;
}

/* Glass Effect Utility */
.glass-panel {
    background: var(--bg-cards);
    backdrop-filter: blur(16px); /* Increased blur */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
    border-radius: 24px;
}

/* ===== CANVAS BACKGROUND ===== */
#gravity-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--color-text-secondary);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ===== COMPONENTS ===== */

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-accent);
    color: var(--color-accent-bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.cta-button.large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    width: 100%;
    max-width: 400px;
}

/* Glow Effect Button */
.cta-button.glow-effect {
    background: var(--color-accent-bg); /* Background inside the button */
    color: var(--color-text);
    border: 1px solid transparent; /* Transparent border for the gradient to show */
    background-clip: padding-box; /* Ensure background doesn't cover border area */
    position: relative;
}

.cta-button.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--btn-glow-gradient);
    z-index: -1;
    border-radius: 100px;
    filter: blur(10px);
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.cta-button.glow-effect::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: var(--btn-glow-gradient);
    z-index: -1;
    border-radius: 100px;
}

.cta-button.glow-effect:hover::before {
    opacity: 1;
    filter: blur(15px);
}

/* Cards - Generic */
.card-hover {
    transition: all var(--transition-normal);
}

.card-hover:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--glow);
}

/* ===== SECTIONS ===== */

/* Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(var(--color-accent), 0.1) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    margin-bottom: 2rem;
    font-family: var(--font-display); /* Raleway */
    font-weight: 900; /* Extra Bold */
    color: var(--color-text);
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--color-text), var(--color-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Comparison / Reality Check */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.comparison-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.comparison-card.highlighted {
    background: var(--bg-glass); /* Cleaner background for highlight */
    border-color: var(--color-text); /* Stronger border for highlight */
    position: relative;
    overflow: hidden;
}

.comparison-card.highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-text);
}

.card-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
}

/* Technology Visuals */
.visual-comparison {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.visual-box {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    position: relative;
}

.visual-box.blurred {
    background: rgba(128, 128, 128, 0.1);
    backdrop-filter: blur(5px);
    border: 1px dashed var(--color-text-tertiary);
}

.visual-box.structured {
    background: rgba(var(--color-accent), 0.05);
    border: 1px solid var(--color-text);
}

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

.feature-card {
    padding: 2rem;
    text-align: left;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

/* Pricing */
.pricing-section {
    text-align: center;
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid var(--color-text); /* Stronger border */
    background: var(--bg-glass);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-accent-bg); /* Inverted text color */
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.price-current {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin: 1rem 0;
}

/* Use Cases (Examples) with Images */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.example-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.example-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.example-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.example-card:hover .example-image {
    transform: scale(1.05);
}

.example-content {
    padding: 1.5rem;
}

/* Contact */
.contact-form {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-cards); /* Adapts to light/dark */
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-text);
    box-shadow: 0 0 0 2px rgba(128,128,128,0.2);
}

.form-group input::placeholder {
    color: var(--color-text-tertiary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(0,0,0,0.05); /* Subtle darkness */
    padding: 4rem 0 2rem; 
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem; 
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

/* Footer Bottom Area */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.copyright {
    opacity: 0.6; /* Increased visibility */
    font-size: 0.9rem;
    text-align: left;
    color: var(--color-text-secondary);
}

/* Theme Switcher - Redesigned */
.theme-switcher {
    position: static; 
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 0.3rem;
    border-radius: 50px;
    display: flex;
    gap: 0.3rem;
    border: 1px solid var(--border-glass);
    box-shadow: none; 
    z-index: 10;
    transform: none; 
}

.theme-btn {
    width: 30px; 
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1rem; 
}

.theme-btn.active {
    background: var(--color-accent);
    color: var(--color-accent-bg);
}

.theme-btn:hover {
    color: var(--color-text);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-section { padding-top: 80px; min-height: auto; padding-bottom: 4rem; }
    .comparison-grid, .features-grid, .examples-grid { grid-template-columns: 1fr; }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
    }

    .copyright {
        text-align: left;
        font-size: 0.8rem;
        max-width: 60%; 
    }
    
    .theme-switcher {
        /* On mobile, it's already positioned correctly by flexbox in footer-bottom */
    }
}
