:root {
    --bg-color: #fafbfd;
    --dark-bg: #f0f4f8;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-light: #1e293b;
    --text-muted: #64748b;
    --gold: #b38222;
    --gold-hover: #966b1a;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 4px;
    --section-padding: 6rem 5%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

.italic {
    font-style: italic;
}

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

.gold-dot {
    color: var(--gold);
    font-weight: bold;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.section-label::before {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 1px;
    background-color: var(--gold);
    margin-right: 1rem;
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.text-light {
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--gold);
    color: #fff;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

.btn-text {
    background-color: transparent;
    color: var(--text-light);
    border: none;
    padding: 0.8rem 0;
    margin-left: 1.5rem;
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    color: var(--gold);
}

.btn-primary-dark {
    background-color: var(--text-light);
    color: var(--dark-bg);
    border: 1px solid var(--text-light);
}

.btn-primary-dark:hover {
    background-color: transparent;
    color: var(--text-light);
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background-color: rgba(250, 251, 253, 0.85); /* Light navbar */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-light);
    letter-spacing: 3px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--text-light);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 80px;
    background-color: var(--dark-bg);
    background-image: linear-gradient(to right, rgba(240, 244, 248, 0.95) 0%, rgba(240, 244, 248, 0.85) 60%, rgba(240, 244, 248, 0.4) 100%), url('hero-bg-clean.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-text {
    padding: 10% 8% 10% 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.gold-line {
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: var(--gold);
    margin-right: 15px;
}

.headline {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    align-items: center;
}

.hero-highlights {
    background-color: var(--dark-bg);
    padding: 10% 10% 10% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.highlight-box {
    border: 1px solid rgba(0,0,0,0.06);
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.01);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.highlight-box:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-5px);
}

.highlight-label {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.highlight-title {
    color: var(--text-light);
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

/* Statistics */
.stats {
    background-color: var(--dark-bg);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    padding: 4rem 10%;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Frameworks Grid */
.frameworks {
    padding: var(--section-padding);
    padding-left: 10%;
    padding-right: 10%;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.framework-card {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    border-top: 3px solid transparent;
}

.framework-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-top-color: var(--gold);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-num {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
}

.card-title {
    font-size: 1.8rem;
}

.card-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 80px;
}

.card-list {
    list-style: none;
}

.card-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.card-list li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

/* Process Section */
.process {
    background-color: var(--dark-bg);
    background-image: linear-gradient(rgba(240, 244, 248, 0.94), rgba(240, 244, 248, 0.96)), url('hero-bg-clean.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--section-padding);
    padding-left: 10%;
    padding-right: 10%;
    color: var(--text-light);
}

.section-header.dark .section-label::before {
    background-color: var(--gold);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    background: rgba(0,0,0,0.015);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.step:hover {
    background: rgba(0,0,0,0.03);
    border-color: rgba(197, 160, 89, 0.4);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.8;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

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

/* Services Section */
.services {
    padding: var(--section-padding);
    padding-left: 10%;
    padding-right: 10%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-item {
    padding: 2.5rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    border-left: 2px solid rgba(197, 160, 89, 0.2);
    transition: var(--transition-smooth);
}

.service-item:hover {
    border-left-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Testimonial Section */
.testimonial {
    padding: var(--section-padding);
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
    background-color: #e8e4db;
}

.testimonial-header {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.quote {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.4;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto 2rem;
    font-style: italic;
}

.attribution {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 600;
}

.testimonial-desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Footer Section */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: var(--section-padding);
    padding-left: 10%;
    padding-right: 10%;
    padding-bottom: 2rem;
}

.footer-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6rem;
}

.cta-header {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
}

.footer-brand .logo {
    color: var(--text-light);
}

.footer-links-wrap {
    text-align: right;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 1.5rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(0,0,0,0.5);
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger animations */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.stagger-item.is-visible {
    opacity: 1;
    transform: none;
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
.stagger-delay-5 { transition-delay: 0.5s; }
.stagger-delay-6 { transition-delay: 0.6s; }

/* Responsive */
@media screen and (max-width: 1024px) {
    .headline { font-size: 3.5rem; }
    .hero { grid-template-columns: 1fr; }
    .hero-highlights { padding: 5% 10%; }
    .framework-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .stats { flex-wrap: wrap; gap: 2rem; justify-content: center; }
    .stat-item { width: 45%; }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .headline { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .btn-text { margin-left: 0; padding-left: 0; }
    .stat-item { width: 100%; }
    .step { flex-direction: column; gap: 1rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .footer-links-wrap { text-align: left; }
    .footer-links a { margin-left: 0; margin-right: 1.5rem; }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0s 0.4s, opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s 0s;
}

.modal-container {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
}

.modal-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.success-heading {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
