:root {
    --background: 0 0% 5%;
    --foreground: 0 0% 98%;
    --primary: 119 99% 46%;
    --primary-foreground: 0 0% 5%;
    --secondary: 0 0% 12%;
    --muted: 0 0% 60%;
    --border: 0 0% 20%;
    --hero-bg: 0 0% 3%;
    --font-main: 'Sora', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: hsl(var(--hero-bg));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── ANIMATIONS ────────────────── */
@keyframes fade-up {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    opacity: 0;
    animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── BACKGROUND ────────────────── */
.spline-container {
    position: fixed;
    inset: 0;
    z-index: -2;
}
.spline-overlay {
    position: fixed;
    inset: 0;
    /* Deep gradient from top to solid bottom */
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.5) 0%, 
        rgba(0,0,0,0.8) 70%, 
        hsl(var(--hero-bg)) 100%
    );
    z-index: -1;
}

/* ── NAV ───────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 24px 48px;
    display: flex;
    justify-content: flex-end;
    z-index: 100;
}
.btn-nav {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.btn-nav:hover { background: rgba(255,255,255,0.1); }

/* ── HERO ───────────────────────── */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    text-align: center;
}

.hero-unified {
    width: 100%;
    max-width: 1000px;
}

/* ── HERO STATS ────────────────── */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap; /* Wraps on mobile, stays horizontal on desktop */
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.05); }

.stat-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: static; /* Removed absolute positioning */
    transform: none;
}
.stat-icon img { width: 100%; }

.stat-content {
    text-align: left;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.stat-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-header h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
    color: white;
}
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 48px;
}

/* ── SEARCH CARD ───────────────── */
.search-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 12px;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.search-form {
    display: flex;
    gap: 8px;
}
.input-wrapper { 
    flex: 1; 
}
.search-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05); /* Added subtle background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Added border */
    padding: 16px 24px;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-main);
    outline: none;
    border-radius: 14px; /* Matches button */
    transition: all 0.3s;
}
.search-form input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: hsl(var(--primary));
    box-shadow: 0 0 15px hsla(var(--primary), 0.2);
}
.search-form input::placeholder { color: rgba(255,255,255,0.3); }

.search-helpers {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
}
.search-helpers button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: color 0.3s;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.search-helpers button:hover { color: white; }

.btn-primary {
    background: hsl(var(--primary));
    color: black;
    border: none;
    padding: 0 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover { transform: scale(1.02); filter: brightness(1.1); }

/* ── HERO FOOTER ────────────────── */
.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: white; }

.trust-line {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.2);
    font-weight: 300;
}

/* ── SECTIONS ───────────────────── */
.section { 
    padding: 100px 24px; 
    position: relative;
    z-index: 20;
    background: hsl(var(--hero-bg));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.container { max-width: 1200px; margin: 0 auto; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 64px; }
.text-center { text-align: center; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 24px;
    text-align: left;
    transition: transform 0.3s, background 0.3s;
}
.service-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-5px);
}
.step-num { color: hsl(var(--primary)); font-weight: 700; margin-bottom: 16px; display: block; font-size: 0.8rem; letter-spacing: 0.1em; }
.service-card h3 { margin-bottom: 12px; font-size: 1.5rem; color: white; }
.service-card p { color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* ── FAQ ───────────────────────── */
.faq-accordion { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    width: 100%; padding: 28px 32px;
    display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; color: white; font-size: 1.15rem;
    cursor: pointer; text-align: left; font-family: var(--font-main);
    font-weight: 600;
}
.faq-answer {
    max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--muted); padding: 0 32px; opacity: 0;
}
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 32px; opacity: 1; }
.faq-item.active .faq-question { color: hsl(var(--primary)); }
.faq-item.active svg { transform: rotate(180deg); color: hsl(var(--primary)); }

/* ── FOOTER ─────────────────────── */
.footer { 
    padding: 60px 0; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    text-align: center; 
    width: 100%;
}
.footer-content p {
    margin: 0;
    color: rgba(255,255,255,0.3); 
    font-size: 0.85rem;
    display: inline-block;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: white; }

/* ── MODAL ──────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 700px;
    padding: 60px 40px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-row {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    align-items: flex-start;
}
.modal-row:last-child { margin-bottom: 0; }

.modal-icon {
    width: 80px;
    flex-shrink: 0;
}
.modal-icon img { width: 100%; }

.modal-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}
.modal-text p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 600px) {
    .modal-row { flex-direction: column; gap: 16px; }
    .modal-content { padding: 40px 24px; }
}
