/* ==========================================================================
   Opentum Landing Page - Stylesheet (Vanilla CSS3 Light Theme)
   ========================================================================== */

/* Color Tokens & Reset */
:root {
    --bg-dark: #fafaf9; /* Soft warm white background */
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(197, 168, 128, 0.25);
    --border-hover: rgba(197, 168, 128, 0.6);
    
    --primary: #b5966d; /* Slightly darker gold/bronze for better contrast */
    --primary-glow: rgba(197, 168, 128, 0.15);
    --secondary: #0f766e; /* Teal accent (darker for readability) */
    --secondary-glow: rgba(15, 118, 110, 0.1);
    
    --text-main: #1c1917; /* Dark stone/warm charcoal for text */
    --text-muted: #57534e; /* Muted stone color */
    
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold { color: var(--primary); }
.text-teal { color: var(--secondary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: #a08259;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-md { padding: 12px 24px; font-size: 1rem; }
.btn-lg { padding: 16px 32px; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Navigation Bar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 250, 249, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    height: 80px;
}

.header.scrolled {
    height: 70px;
    background: rgba(250, 250, 249, 0.92);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(250, 250, 249, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px;
    z-index: 999;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-smooth);
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-nav.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px 0;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(100px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1c1917 30%, #44403c 70%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CSS Dashboard Mockup (Light Glass style) */
.hero-mockup {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(28, 25, 23, 0.08);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.02);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-title {
    margin-left: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mockup-body {
    display: grid;
    grid-template-columns: 70px 1fr;
    height: 320px;
}

.mockup-sidebar {
    background: rgba(0, 0, 0, 0.02);
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sidebar-item {
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.sidebar-item.active {
    color: var(--primary);
    background: rgba(197, 168, 128, 0.12);
}

.mockup-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mockup-card {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.mockup-floorplan {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    justify-content: space-around;
}

.table-circle, .table-square {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.table-circle { border-radius: 50%; }
.table-square { border-radius: 10px; }

.table-circle.reserved, .table-square.reserved {
    background: rgba(197, 168, 128, 0.1);
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.table-circle.available, .table-square.available {
    background: rgba(20, 184, 166, 0.1);
    border: 1.5px solid var(--secondary);
    color: var(--secondary);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark), rgba(245, 245, 244, 0.6));
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

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

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(197, 168, 128, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(197, 168, 128, 0.12);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

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

/* How It Works (Timeline) */
.how-it-works {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    z-index: 1;
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 32px;
    z-index: 2;
}

.step-number {
    width: 52px;
    height: 52px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.step-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    flex-grow: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.step-content h3 {
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Calculator Section */
.calculator {
    padding: 100px 0;
    background: linear-gradient(0deg, var(--bg-dark), rgba(245, 245, 244, 0.4));
}

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

.calculator-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calculator-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.calculator-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.calc-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.calc-point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: 0 10px 30px rgba(28, 25, 23, 0.04);
    backdrop-filter: blur(20px);
}

.calc-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-label {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(0,0,0,0.08);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: 0.15s ease-in-out;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Switch UI */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.toggle-label.active {
    color: var(--text-main);
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.08);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 24px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.price-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.price-item.highlighted {
    color: var(--text-main);
    font-weight: 600;
}

.price-item.highlighted .price-val {
    color: var(--primary);
    font-size: 1.85rem;
}

/* Request Form */
.request-form {
    padding: 100px 0;
    position: relative;
}

.request-container {
    max-width: 800px;
}

.form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(28, 25, 23, 0.04);
    backdrop-filter: blur(20px);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-fullwidth {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.required {
    color: #ef4444;
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    font-family: var(--font-family);
    padding: 14px 18px;
    border-radius: 12px;
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: #ffffff;
}

.btn-submit {
    margin-top: 32px;
    height: 56px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #f5f5f4; /* Clean light gray footer */
    padding: 48px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--primary);
}

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

.footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    html { font-size: 15px; }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .badge { align-self: center; }
    .hero-content h1 { max-width: 600px; margin: 0 auto; }
    .hero-content p { max-width: 600px; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .store-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-mockup { max-width: 550px; margin: 0 auto; }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav { display: none; }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.15rem; /* Scales down h1 for small screens */
        line-height: 1.25;
        word-wrap: break-word;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-actions {
        flex-direction: column; /* Stack primary buttons vertically */
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%; /* Make buttons full-width */
    }
    
    .store-buttons {
        flex-direction: column; /* Stack App Store badges vertically */
        align-items: center;
        width: 100%;
        gap: 12px;
    }
    
    .app-store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column; /* Stack stats vertically */
        gap: 16px;
        align-items: center;
        padding-top: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-fullwidth {
        grid-column: span 1;
    }
    
    .form-container {
        padding: 24px; /* Squeeze padding on mobile screens */
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .timeline-step {
        gap: 20px;
    }
    
    .hero-mockup {
        width: 100%;
        max-width: 100%;
    }
    
    @media (max-width: 480px) {
        .mockup-body {
            grid-template-columns: 50px 1fr;
            height: 250px;
        }
        .mockup-main {
            padding: 12px;
            gap: 12px;
        }
        .mockup-row {
            grid-template-columns: 1fr;
            gap: 8px;
        }
        .mockup-card {
            padding: 10px;
        }
        .card-value {
            font-size: 1.15rem;
        }
        .mockup-floorplan {
            gap: 6px;
            margin-top: 6px;
        }
        .table-circle, .table-square {
            width: 30px;
            height: 30px;
            font-size: 0.65rem;
        }
    }
}

/* App Store and Select Styling */
.store-buttons {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: #1c1917;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.app-store-btn:hover {
    transform: translateY(-2px);
    background: #292524;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.app-store-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.app-store-btn .btn-subtext {
    font-size: 0.7rem;
    font-weight: 500;
    color: #a8a29e;
}

.app-store-btn .btn-maintext {
    font-size: 0.95rem;
    font-weight: 700;
}

.form-group select {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    font-family: var(--font-family);
    padding: 14px 18px;
    border-radius: 12px;
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: #ffffff;
}

