:root {
    /* Color Palette - Premium Gold & Dark */
    --primary: #c5a059;
    --primary-light: #e0c082;
    --primary-dark: #a68547;
    --secondary: #1a1a1a;
    --accent: #5a4a9b;
    --bg: #0a0a0a;
    --surface: #121212;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --text-dim: #666666;
    
    /* UI Components */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    
    /* Semantic Colors */
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Shadows & Glows */
    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.5);
    --glow-gold: 0 0 30px rgba(197, 160, 89, 0.15);
    
    /* Dimensions */
    --container-width: 1100px;
    --container-narrow: 800px;
    --radius-lg: 30px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Premium Background */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)),
        url('baov.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

header {
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Rubik', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Rubik', sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--primary-light);
    margin-bottom: 20px;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* --- Components --- */

/* Glass Card */
.card {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    outline: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--secondary);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.35);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(-2px);
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-light);
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

input:focus, textarea:focus, select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

/* Grid System */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

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

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

/* --- Specific Sections --- */

/* Hero */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.4rem;
}

/* Features */
.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.feature-card:hover {
    background: var(--glass-hover);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* --- Mobile Adjustments --- */
@media (max-width: 600px) {
    html { font-size: 14px; }
    
    .container { padding: 0 20px; }
    
    .card { padding: 30px 20px; border-radius: 20px; }
    
    .hero { padding: 40px 0; }
    
    header { padding: 24px 0; }
    
    .logo { font-size: 1.8rem; }
    
    .btn { padding: 16px 24px; font-size: 1.1rem; }
}

/* Browser Specific Fixes */
/* Safari Backdrop Blur Fix */
@supports not (backdrop-filter: blur(20px)) {
    .card, .feature-card {
        background: rgba(20, 20, 20, 0.95);
    }
}

/* Smooth Scrolling for iOS */
body {
    -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on input focus for mobile Safari */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}
