/* ==========================================================================
   Bimval Landing Page - Architectural & BIM Light Theme
   Color Palette inspired by the Bimval Logo:
   - Light Architectural Canvas: #f8fafc, #f1f5f9
   - Deep Slate Typography: #0f172a, #334155, #475569
   - Champagne Gold Accent: #b45309, #d4af37, #b8860b
   ========================================================================== */

:root {
    /* Light Theme Palette */
    --bg-light-1: #f8fafc;
    --bg-light-2: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.96);

    --border-color: rgba(212, 175, 55, 0.35);
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(212, 175, 55, 0.7);

    --accent-gold: #b45309;
    --accent-gold-bright: #d4af37;
    --accent-gold-light: #fffbeb;
    --accent-gold-dark: #78350f;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-gold: #b45309;

    --success-green: #059669;
    --error-red: #dc2626;

    /* Fonts & Radii */
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-primary);
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 8px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light-1);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Dynamic Background Glows & Architectural Blueprint Grid */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    animation: pulse 8s ease-in-out infinite alternate;
}

.bg-glow-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
    top: -120px;
    left: -120px;
}

.bg-glow-2 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(203, 213, 225, 0.6), transparent 70%);
    bottom: -160px;
    right: -160px;
    animation-delay: -4s;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.45; }
    100% { transform: scale(1.15) translate(30px, -20px); opacity: 0.65; }
}

/* Container */
.container {
    width: 100%;
    max-width: 920px;
    padding: 2.5rem 1.5rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08),
                0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    position: relative;
    padding: 14px;
    background: #ffffff;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.logo-wrapper:hover {
    transform: scale(1.05);
    border-color: var(--border-glow);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.35);
}

.main-logo {
    width: 115px;
    height: 115px;
    object-fit: contain;
    display: block;
}

.brand-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
    text-transform: uppercase;
    background: var(--accent-gold-light);
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

/* Hero Section */
.hero-card {
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
    animation: fadeInUp 0.9s ease-out;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.25);
    color: var(--success-green);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success-green);
    animation: blink 1.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Hero Title & Text */
.hero-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    max-width: 780px;
}

.text-gradient {
    background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #92400e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 700px;
    font-weight: 400;
}

.hero-description strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin: 1rem 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    transition: var(--transition);
}

.feature-item:hover {
    background: #ffffff;
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.feature-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Action & Form Box */
.action-box {
    width: 100%;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.action-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

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

/* Subscribe Form */
.subscribe-form {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.subscribe-form input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 46px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.subscribe-form input:focus {
    border-color: var(--accent-gold);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(180, 83, 9, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.4);
    background: linear-gradient(135deg, #e8c458 0%, #92400e 100%);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: var(--bg-light-2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Form Message Feedback */
.form-message {
    font-size: 0.9rem;
    min-height: 24px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    color: var(--success-green);
}

.form-message.error {
    display: block;
    color: var(--error-red);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-gold);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.modal-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.modal-header h2 {
    font-size: 1.3rem;
    color: var(--text-main);
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-light-1);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-row i {
    font-size: 1.2rem;
    color: var(--accent-gold);
    width: 24px;
    text-align: center;
}

.info-row strong {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row p, .info-row a {
    color: var(--text-main);
    font-size: 0.95rem;
    text-decoration: none;
}

.info-row a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

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

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

/* Responsive Media Queries */
@media (max-width: 640px) {
    .hero-card {
        padding: 2rem 1.25rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-icon {
        top: 16px;
    }

    .subscribe-form input {
        width: 100%;
    }

    .subscribe-form .btn-primary {
        width: 100%;
    }

    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }

    .contact-buttons .btn {
        width: 100%;
    }
}
