﻿/* ===========================
   SKY Fub - Premium Dark Style
   High-End Technical Service Design
   =========================== */

/* === Root Variables === */
:root {
    /* Color Palette - Deep Space & Neon Blue */
    --primary-color: #38bdf8;       /* Sky 400 - Vivid for dark mode */
    --primary-hover: #0ea5e9;       /* Sky 500 */
    --primary-glow: rgba(56, 189, 248, 0.4);
    
    --secondary-color: #94a3b8;     /* Slate 400 */
    
    --bg-body: #0f172a;             /* Slate 900 - Deep Background */
    --bg-surface: #1e293b;          /* Slate 800 - Cards/Sections */
    --bg-surface-hover: #334155;    /* Slate 700 */
    --bg-white: #1e293b;            /* Map legacy white to dark surface */
    
    --text-main: #f1f5f9;           /* Slate 100 - High Contrast Text */
    --text-muted: #cbd5e1;          /* Slate 300 - Secondary text */
    --text-light: #64748b;          /* Slate 500 - GHOST text */
    
    --border-color: #334155;        /* Slate 700 */
    --border-hover: #475569;        /* Slate 600 */
    
    /* Shadows - Glowy for Dark Mode */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Manrope', 'Inter', sans-serif;
    
    /* Spacing */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Subtle Grid Override */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* === Layout === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    /* Transparent by default to show starry/deep background */
    background-color: transparent;
    position: relative;
}

/* === Typography Helpers === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.025em; /* Tighter tracking for headings */
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: 1200px; /* Slightly tighter width for readability */
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
    /* Clean background, no automatic alternation unless specified */
}

/* Section Backgrounds - Dark Glass Styling */
.features, .pricing {
    background-color: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.hero {
    background: transparent; /* Use body grid */
}

/* === Navbar (Dark Glass) === */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 72px;
    background-color: rgba(15, 23, 42, 0.85); /* Deep slate translucent */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80px; /* Increased by 1.5x from 40px */
    width: auto;
    display: block;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem; /* More airy */
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.user-menu-btn:hover {
    background-color: var(--bg-body);
}

/* Force showing menu when active class is present (assuming JS adds .active) */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    z-index: 1001;
}

/* We need JS to toggle display, or use :hover for CSS-only dropdown if JS is simple */
.user-dropdown:hover .user-menu,
.user-dropdown.active .user-menu { 
    display: flex;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-decoration: none;
}

.user-menu a:hover {
    background-color: var(--bg-body);
    color: var(--primary-color);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Buttons - Technical Style === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem; /* Slightly smaller, more tech */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm); /* Sharper */
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    outline: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-muted);
    border-color: var(--border-color);
    border-width: 1px;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--text-main);
    background-color: calc(var(--primary-color) * 0.1);
    background-color: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* === Cards - Dark Glass & Neon Strokes === */
.feature-card, .pricing-card, .step {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover, .pricing-card:hover, .step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    background: var(--bg-surface-hover);
}

/* Icons - Neon Glow */
.feature-icon, .step-icon {
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Typography refinements */
.hero-title {
    font-weight: 800;
    /* Clean, blocky font */
    letter-spacing: -0.04em;
    color: var(--secondary-color);
}

.title-main {
    color: var(--primary-color);
    display: inline-block; /* Keep inline flow usually */
}

.hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
    background: transparent;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.title-main {
    display: block;
    color: var(--primary-color);
}

.title-sub {
    font-size: 2.25rem;
    display: block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Technical & Architectural Layouts */

/* Hero Image/Diagrams - Dark Tech */
.conversion-visual {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.doc-source, .doc-target {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.doc-source:hover, .doc-target:hover {
    border-color: var(--primary-color);
    transform: none; /* Stable feel */
    box-shadow: 0 0 20px var(--primary-glow);
}

.arrow-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 8px var(--primary-color);
    border: none;
    opacity: 0.8;
}

/* Modals - Clean Engineering */
.modal-content {
    border-radius: var(--radius-sm); /* Sharper */
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-input {
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    font-family: monospace; /* Tech feel for inputs */
    font-size: 0.95rem;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

/* Pricing - Blueprint Style */
.pricing-card {
    border-top: 4px solid var(--border-color);
}

.pricing-card:hover {
    border-top-color: var(--primary-color);
}

.pricing-badge {
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    box-shadow: none;
    background: var(--primary-dark);
}

section:nth-child(even) {
     /* Override the blank override to set specific distinct bg for variety */
     background-color: var(--bg-body); /* Subtle grey for alternating sections */
     border-top: 1px solid #e2e8f0;
     border-bottom: 1px solid #e2e8f0;
}

.doc-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.doc-source .doc-icon { color: var(--primary-color); }
.doc-target .doc-icon { color: #10b981; }

.doc-label {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.doc-format {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.conversion-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    position: relative;
    width: 100px;
}

.arrow-line {
    width: 100%;
    height: 2px;
    background: var(--border-color);
    position: absolute;
    top: 50%;
    z-index: 1;
}

.conversion-icon {
    background: var(--bg-white);
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    z-index: 2;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    font-size: 1.25rem;
}

/* Floating Elements - Simplified */
.float-element {
    position: absolute;
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.25rem;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.element-1 { top: 10%; left: 5%; animation-delay: 0s; }
.element-2 { bottom: 10%; left: 15%; animation-delay: 1.5s; font-size: 1.5rem; color: var(--primary-color); }
.element-3 { top: 15%; right: 5%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* === Features Section === */
.features {
    background-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    /* Ensure text is readable */
    color: var(--text-muted);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* === How It Works === */
.how-it-works {
    background-color: transparent;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.step:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    background: var(--bg-surface-hover);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    opacity: 0.8; /* Subtle watermark look */
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* === Contact Section overrides/placeholders === */
.contact {
    background-color: var(--bg-white);
}

/* === Background elements override === */
.bg-grid, .bg-particles {
    display: none; /* Hide old effects for clean look */
}

/* === Footer === */
footer {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    padding: 4rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

/* === Modals === */
/* Standardize modal appearance if present */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    margin: 1rem;
    position: relative;
    color: var(--text-main);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }

    .title-sub {
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }

    .nav-menu {
        display: none;     /* Hide menu on mobile */
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-body);
        flex-direction: column;
        padding: 2rem 1.5rem;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.25rem;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-actions {
        /* On mobile, we might want to put login inside the menu or separate */
        /* For now, keep as is, but hide buttons if space is tight */
    }
    
    .nav-actions .btn {
        display: none; /* Simplified for mobile */
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

/* === Modal & Form Styles === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-main);
    background-color: var(--bg-body);
    border-radius: 50%;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
    background-color: var(--bg-surface-hover);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem;
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 1.5rem 0;
    cursor: pointer;
}

.checkbox input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox a {
    color: var(--primary-color);
    font-weight: 500;
}

.checkbox a:hover {
    text-decoration: underline;
}

.form-footer, .link {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.link {
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
}

.link:hover {
    text-decoration: underline;
}


/* === Pricing === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background-color: var(--bg-surface);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 0.25rem;
    color: var(--text-muted);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-features li i {
    color: #10b981; /* Green check */
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--text-light);
    text-decoration: line-through;
}

.pricing-features li.disabled i {
    color: var(--text-light);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

/* === Technical Footer === */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color) 0,
        var(--primary-color) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.2;
}


/* === New 3D Visualization Styles === */
.hero-visual-container {
    perspective: 1200px;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Allow 3D elements to slightly overflow */
}

.scene-3d {
    position: relative;
    width: 600px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-15deg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* Platform Base */
.platform-base {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) rotateX(90deg) translateZ(-50px);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.platform-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(0deg); /* Adjust for flat look */
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* 3D Files */
.file-wrapper {
    position: relative;
    width: 120px;
    height: 160px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.file-wrapper:hover {
    transform: translateY(-15px) rotateY(10deg);
}

.file-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: float3d 4s ease-in-out infinite;
}

.basis-style {
    animation-delay: 2s;
}

@keyframes float3d {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.face {
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1) inset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.face.front  { width: 120px; height: 160px; transform: translateZ(10px); }
.face.back   { width: 120px; height: 160px; transform: translateZ(-10px) rotateY(180deg); }
.face.right  { width: 20px; height: 160px; transform: rotateY(90deg) translateZ(110px); } /* (120/2) + (20/2) = Error in logic? No: translateZ(width/2 - thickness/2) is wrong. Correct: translateZ(width/2) */
/* Re-check transforms for thickness */
/* Thickness = 20px. Width = 120. translateZ should be 60px if centered, but we are just making a box. */
/* Let's simplify: simple box. */
.face.front { transform: translateZ(10px); }
.face.back  { transform: translateZ(-10px) rotateY(180deg); }
.face.right { width: 20px; height: 160px; left: 110px; transform: rotateY(90deg); } /* left = 120 - 10? No. */
/* Better Approach: transform-origin center */
.face.right { width: 20px; height: 160px; transform: rotateY(90deg) translateZ(50px); left: 50px; } /* Wait, standard box logic */
/* Let's stick to standard cube logic for 120x160x20 box */
.file-3d .front { width: 120px; height: 160px; transform: translateZ(10px); }
.file-3d .back  { width: 120px; height: 160px; transform: translateZ(-10px) rotateY(180deg); }
.file-3d .right { width: 20px;  height: 160px; left: 50px; transform: rotateY(90deg) translateZ(60px); }
.file-3d .left  { width: 20px;  height: 160px; left: 50px; transform: rotateY(-90deg) translateZ(60px); }
.file-3d .top   { width: 120px; height: 20px;  top: 50px;  transform: rotateX(90deg) translateZ(80px); }
.file-3d .bottom{ width: 120px; height: 20px;  top: 50px;  transform: rotateX(-90deg) translateZ(80px); }


.face.front {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    font-size: 1.5rem;
    gap: 0.5rem;
}

.face.front i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.basis-style .face.front {
    border-color: #10b981; /* Emerald 500 */
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.basis-style .face.front i {
    color: #10b981;
}

.label-3d {
    text-align: center;
    margin-top: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    transform: translateZ(20px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.file-shadow {
    position: absolute;
    width: 100px;
    height: 20px;
    background: rgba(0,0,0,0.4);
    filter: blur(10px);
    bottom: -40px;
    left: 10px;
    border-radius: 50%;
    transform: rotateX(90deg) translateZ(-50px);
    animation: shadowScale 4s ease-in-out infinite;
}

@keyframes shadowScale {
    0%, 100% { transform: rotateX(90deg) translateZ(-50px) scale(1); opacity: 0.4; }
    50% { transform: rotateX(90deg) translateZ(-50px) scale(0.8); opacity: 0.2; }
}

/* Conversion Stream */
.conversion-stream {
    flex: 1;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
     margin: 0 2rem;
}

.energy-beam {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), #10b981, transparent);
    box-shadow: 0 0 15px var(--primary-color);
    position: absolute;
    animation: beamPulse 2s infinite linear;
}

.stream-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-left: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: rotateY(90deg);
}

.r1 { left: 20%; animation: ringSpin 3s infinite linear; }
.r2 { left: 50%; animation: ringSpin 3s infinite linear 1s; width: 50px; height: 50px; border-color: rgba(255,255,255,0.1); border-top: 2px solid #10b981; }
.r3 { right: 20%; animation: ringSpin 3s infinite linear 0.5s; }

@keyframes ringSpin {
    0% { transform: rotateY(90deg) rotate(0deg) scale(0.8); opacity: 0; }
    50% { opacity: 1; transform: rotateY(90deg) rotate(180deg) scale(1.2); }
    100% { transform: rotateY(90deg) rotate(360deg) scale(0.8); opacity: 0; }
}

.particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    opacity: 0;
}

.particles span:nth-child(1) { top: 40%; left: 0; animation: particleMove 2s infinite ease-out; }
.particles span:nth-child(2) { top: 50%; left: 10%; animation: particleMove 2s infinite ease-out 0.6s; }
.particles span:nth-child(3) { top: 60%; left: 0; animation: particleMove 2s infinite ease-out 1.2s; }

@keyframes particleMove {
    0% { left: 0; opacity: 1; transform: scale(1); }
    100% { left: 100%; opacity: 0; transform: scale(0.5); }
}

@keyframes beamPulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; filter: brightness(1.5); }
    100% { opacity: 0.5; }
}



/* Added File Title Styles */
.file-title-card {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: auto; /* Push to top */
    padding-top: 15px;
    font-weight: 800;
}

.face.front {
    justify-content: flex-start; /* Change from center to allow spacing */
    padding-bottom: 20px;
}

.face.front i {
    margin-top: auto;
    margin-bottom: 10px;
}

.face.front span {
    margin-bottom: 20px;
    font-family: monospace;
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}



/* File Icon Image Style */
.file-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-top: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}



/* =========================================
   NEW VISUAL ANIMATION (SkyFub 2026)
   ========================================= */

.conversion-scene-v2 {
    position: relative;
    width: 300px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.card-container-3d {
    width: 220px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    animation: cardFloat 6s ease-in-out infinite;
    transform: rotateX(10deg) rotateZ(-2deg); /* Initial natural tilt */
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotateX(10deg) rotateZ(-2deg); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateZ(2deg); } /* Breathing tilt */
}

.flipping-card {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Animation Cycle: 10s total
       0-1s: Fly In
       1-5s: Progress (4s)
       5-7s: Slow Flip (2s)
       7-9s: Show Result
       9-10s: Reset/Fade
    */
    animation: flipCycle 10s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Simplified opacity swap */
@keyframes opacitySwapFront {
    0% { opacity: 1; visibility: visible; }
    49.9% { opacity: 1; visibility: visible; }
    50% { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes opacitySwapBack {
    0% { opacity: 0; visibility: hidden; }
    49.9% { opacity: 0; visibility: hidden; }
    50% { opacity: 1; visibility: visible; }
    100% { opacity: 1; visibility: visible; }
}

@keyframes flipCycle {
    0% { transform: rotateY(0deg) scale(0.8); }
    5% { transform: rotateY(0deg) scale(1); opacity: 1; }
    45% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(90deg) scale(1.6); } /* Stronger Zoom (1.6x) */
    55% { transform: rotateY(180deg) scale(1); }
    90% { transform: rotateY(180deg) scale(1); opacity: 1; }
    95% { opacity: 0; }
    100% { transform: rotateY(180deg) scale(0.8); opacity: 0; }
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Keep backface visibility ON to allow opacity trick to work reliably */
    backface-visibility: visible; 
    -webkit-backface-visibility: visible;
    border-radius: 16px;
    background: rgba(30, 41, 59, 1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.card-front {
    background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    z-index: 2;
    animation: opacitySwapFront 10s infinite linear;
}

.card-back {
    /* Rotating back face 180deg so it matches the container's 180deg end state */
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15) inset;
    z-index: 1;
    animation: opacitySwapBack 10s infinite linear;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    padding: 20px 0;
}

.card-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.basis-header {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.card-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
}

.card-file-name {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-top: auto;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: fillProgress 10s linear infinite;
}

@keyframes fillProgress {
    0%, 5% { width: 0%; }
    45% { width: 100%; } /* Fills over 4s (from 5% to 45%) */
    100% { width: 100%; }
}

.success-badge {
    color: #4ade80; /* Green 400 */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin-top: auto;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.95); }
}

.platform-glow-v2 {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.6) 0%, transparent 70%);
    filter: blur(10px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; width: 200px; }
    50% { opacity: 0.8; width: 250px; }
}

/* =========================================
   DYNAMIC PARTICLES (Realistic Effect)
   ========================================= */

.scene-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.scene-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    border-radius: 50%;
    opacity: 0;
}

/* Particle Positions & Animations */
.p1 { top: 20%; left: 10%; animation: particleFloat1 4s infinite ease-in-out; }
.p2 { top: 60%; left: 85%; animation: particleFloat2 5s infinite ease-in-out 1s; width: 6px; height: 6px; background: rgba(16, 185, 129, 0.4); box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
.p3 { top: 80%; left: 30%; animation: particleFloat1 6s infinite ease-in-out 2.5s; }
.p4 { top: 15%; left: 70%; animation: particleFloat2 4.5s infinite ease-in-out 0.5s; width: 3px; height: 3px; }
.p5 { top: 40%; left: 5%; animation: particleFloat1 5.5s infinite ease-in-out 3s; background: rgba(56, 189, 248, 0.5); }
.p6 { top: 90%; left: 60%; animation: particleFloat2 5s infinite ease-in-out 1.5s; width: 5px; height: 5px; }

@keyframes particleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    50% { transform: translate(20px, -30px) scale(1.2); opacity: 0.8; }
}

@keyframes particleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    50% { transform: translate(-20px, -20px) scale(1.2); opacity: 0.8; }
}
