/* 
  BIMetic Ultra-Premium Web Theme 
  Aesthetic: Deep Dark Mode, Vibrant Accents, High-End SaaS 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    /* Premium "Expensive Black" Dark Mode Defaults */
    --bg-main: #050507; /* Super deep dark instead of flat black */
    --text-primary: #FFFFFF;
    --text-secondary: #A0AABF;
    --text-muted: #5e6b82;
    --bg-card: rgba(18, 18, 20, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(0, 122, 255, 0.6);
    
    --primary-blue: #007AFF;
    --primary-blue-hover: #3395FF;
    --primary-glow: rgba(0, 122, 255, 0.4); /* Stronger glow in dark mode */
    --button-shadow: 0 4px 20px rgba(0, 122, 255, 0.5);
    
    --nav-bg: rgba(5, 5, 7, 0.85);
    --footer-bg: #050507;
    --title-gradient: linear-gradient(135deg, #FFFFFF 40%, #A0AABF 100%);
    
    --transition-smooth: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
    /* Premium Apple Light Mode */
    --bg-main: #F4F6F9;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(0, 122, 255, 0.4);
    
    --primary-blue: #007AFF;
    --primary-blue-hover: #0056b3;
    --primary-glow: rgba(0, 122, 255, 0.2);
    --button-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    
    --nav-bg: rgba(244, 246, 249, 0.85);
    --footer-bg: #F4F6F9;
    --title-gradient: linear-gradient(135deg, #111827 30%, #4B5563 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3 {
    letter-spacing: -0.03em;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
    padding: 8px 12px;
}

.logo:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.6);
}

.logo img {
    height: 45px;
    margin: -5px -10px; /* Crops out the internal white space of the image */
    object-fit: contain;
    display: block;
}

/* Specific styling for the Live Preview Logo */
.logo-preview {
    background: #ffffff;
    border-radius: 8px;
    padding: 4px 12px;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.5);
    display: flex;
    align-items: flex-start; /* Align to top to force bottom cropping */
    justify-content: center;
    overflow: hidden;
    width: fit-content;
    height: 36px; /* Strict height to chop off the bottom */
}

.logo-preview img {
    height: 46px; /* Larger than container to push white space out */
    margin-top: -5px; /* Slight top crop */
    margin-left: -4px;
    margin-right: -4px;
    object-fit: cover;
    object-position: top;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
}

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

.btn-nav, .btn-hero, .btn-price-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 50px; /* High-end rounded pill shape */
    box-shadow: var(--button-shadow);
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.btn-nav::after, .btn-hero::after, .btn-price-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50px;
    pointer-events: none;
}

.btn-nav:hover, .btn-hero:hover, .btn-price-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-nav {
    padding: 10px 24px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    margin-top: 24px;
    animation: smoothSlideUp 0.8s ease-out 0.5s both;
}

/* Hamburger Menu CSS */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links.active { display: flex; }
}

/* Header Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 5% 4rem;
    min-height: 60vh;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-blue);
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1.1;
    animation: smoothSlideUp 0.8s ease-out 0.2s both;
}

.highlight {
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: smoothSlideUp 0.8s ease-out 0.4s both;
}

/* Demo Section */
.demo-container {
    padding: 0 5% 6rem;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    animation: smoothSlideUp 1s ease-out 0.6s both;
}

.demo-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 4px;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, var(--primary-blue), transparent 30%);
    animation: rotate 4s linear infinite;
    z-index: -1;
    opacity: 0.3;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.demo-inner {
    background: var(--bg-main);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.demo-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.demo-controls span {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-left: 6px;
}
.demo-controls span:nth-child(1) { background: #ff453a; }
.demo-controls span:nth-child(2) { background: #ffd60a; }
.demo-controls span:nth-child(3) { background: #30d158; }

.demo-animation {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
}

.demo-live-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-viewpoint-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.demo-viewpoint-item:hover {
    transform: translateX(5px);
    background: rgba(0, 122, 255, 0.05);
    border-color: var(--primary-blue);
}

.demo-old {
    color: var(--text-secondary);
    transition: opacity 0.3s ease;
}

.demo-arrow {
    width: 10%;
    text-align: center;
    color: var(--primary-blue);
    font-weight: bold;
    animation: fadeIn 0.4s ease-out;
}

.demo-new {
    width: 50%;
    color: var(--text-primary);
    font-weight: 600;
}

.demo-badge {
    background: rgba(255, 159, 10, 0.2);
    color: var(--warning-color, #FF9F0A);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

/* Custom Checkbox Toggle for Live Preview */
.config-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.config-toggle input {
    display: none;
}

.toggle-track {
    width: 32px;
    height: 18px;
    background: var(--primary-blue);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.4);
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
}

/* Features Section */
.features-section {
    padding: 2rem 5% 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 3rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
    background: rgba(0, 122, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ROI Calculator */
.roi-section {
    padding: 2rem 5% 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.roi-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.roi-sliders {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.highlight-text {
    color: var(--primary-blue);
    font-weight: bold;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: var(--border-color);
    border-radius: 3px;
}

.roi-results {
    background: rgba(0, 122, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 122, 255, 0.2);
    text-align: center;
}

.roi-stat { margin-bottom: 24px; }
.roi-stat:last-child { margin-bottom: 0; }

.roi-stat h4 {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.roi-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
}

.roi-disclaimer {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.7;
}

/* Pricing Section */
.pricing-section {
    padding: 2rem 5% 8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-bg {
    background: var(--bg-card);
    padding: 4px;
    border-radius: 30px;
    display: inline-flex;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    padding: 8px 24px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.toggle-btn.active {
    background: var(--primary-blue);
    color: white;
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.pricing-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.pricing-card.popular {
    border-color: var(--primary-blue);
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-tier {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
    min-height: 42px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.pricing-features li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-blue);
    font-weight: bold;
    margin-right: 12px;
}

.btn-price {
    width: 100%;
    padding: 14px 0;
    border-radius: 50px; /* Make consistent with other buttons */
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
    text-decoration: none;
}

.btn-price-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-price-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--footer-bg);
}

.footer img {
    height: 30px;
    margin-bottom: 20px;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin: 0 16px;
    font-weight: 600;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-blue);
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.pulse-anim {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

.animate-on-scroll { opacity: 0; }
.animate-on-scroll.visible {
    animation: smoothSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Docs / Help Page */
.docs-container {
    padding: 2rem 5% 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.docs-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.docs-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.docs-section p, .docs-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.docs-section ul {
    margin-left: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navbar & Hamburger */
    .hamburger {
        display: flex;
        cursor: pointer;
        z-index: 1000;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }
    .nav-links.active {
        display: flex;
    }
    
    /* Hero Section */
    .hero {
        padding: 6rem 5% 4rem;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    
    /* Live Preview Dashboard */
    .demo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .demo-header button {
        width: 100%;
        margin-top: 10px !important;
    }
    .config-toggle {
        width: 100%;
    }
    .demo-new {
        font-size: 12px;
    }
    .demo-old {
        font-size: 12px;
    }
    
    /* Pricing */
    .pricing-toggle {
        flex-direction: column;
        align-items: center;
    }
    .pricing-card {
        margin-bottom: 24px;
    }
    
    /* ROI */
    .roi-container {
        flex-direction: column;
    }
    .roi-sliders {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    /* Footer */
    .footer div {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .footer a {
        margin: 0;
    }
}

/* Contact Form Styles */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .form-control {
    background: rgba(255,255,255,0.05);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
