/* ========================================
   LibertyX Bitcoin ATM — Styles
   Clean minimalist · Forest green + off-white
======================================== */

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

:root {
    --green-950: #042f23;
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-100: #d1fae5;
    --green-50:  #ecfdf5;
    
    --offwhite: #fafaf8;
    --offwhite-2: #f5f5f0;
    --cream: #f0f0ea;
    --warm-gray: #8a8a7e;
    --dark: #1a1a16;
    --dark-soft: #2d2d26;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--offwhite);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--green-900);
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    color: var(--green-700);
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-weight: 600;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--dark-soft);
    letter-spacing: 0.01em;
    transition: color 0.25s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--green-700);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-weight: 500 !important;
    color: var(--green-800) !important;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.25s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--green-100) !important;
    color: var(--green-900) !important;
}

.nav-toggle {
    display: none;
    color: var(--dark);
    padding: 8px;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--offwhite);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(6, 78, 59, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--green-700);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    max-width: 560px;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--warm-gray);
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--green-900);
    color: #f0f0ea;
    border: 1px solid var(--green-900);
}

.btn-primary:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
    border: 1px solid rgba(26, 26, 22, 0.2);
}

.btn-ghost:hover {
    border-color: var(--green-700);
    color: var(--green-700);
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: var(--green-900);
    border: 1px solid #fff;
}

.btn-light:hover {
    background: var(--green-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-outline-light {
    background: transparent;
    color: var(--green-900);
    border: 1px solid rgba(6, 78, 59, 0.3);
}

.btn-outline-light:hover {
    background: rgba(6, 78, 59, 0.06);
    transform: translateY(-2px);
}

/* ── Floating Stat Cards ── */
.hero-cards {
    position: relative;
    height: 420px;
}

.stat-card {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(6, 78, 59, 0.06);
    animation: float 6s ease-in-out infinite;
}

.stat-card--1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.stat-card--2 {
    top: 60px;
    right: 0;
    animation-delay: -1.5s;
}

.stat-card--3 {
    bottom: 80px;
    left: 40px;
    animation-delay: -3s;
}

.stat-card--4 {
    bottom: 0;
    right: 20px;
    animation-delay: -4.5s;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--green-50);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.stat-card-value {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.8125rem;
    color: var(--warm-gray);
    font-weight: 400;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 78, 59, 0.15), transparent);
}

/* ── Section Header ── */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--warm-gray);
    font-weight: 300;
}

/* ── Services ── */
.services {
    padding: 120px 0;
    background: var(--offwhite);
}

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

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    border: 1px solid rgba(6, 78, 59, 0.08);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green-700), var(--green-500));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.08);
    border-color: rgba(6, 78, 59, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-line {
    width: 32px;
    height: 1px;
    background: var(--green-200, #a7f3d0);
    margin-bottom: 20px;
    transition: width 0.4s var(--ease-out);
}

.service-card:hover .service-card-line {
    width: 56px;
}

.service-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--green-50);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: var(--green-100);
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray);
    font-weight: 300;
}

/* ── How It Works ── */
.how-it-works {
    padding: 120px 0;
    background: var(--green-950);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.how-it-works .section-label {
    color: var(--green-500);
}

.how-it-works .section-title {
    color: #f0f0ea;
}

.how-it-works .section-subtitle {
    color: rgba(240, 240, 234, 0.6);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
    z-index: 1;
}

.steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.66% + 24px);
    right: calc(16.66% + 24px);
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.3));
}

.step {
    text-align: center;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--green-600);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0f0ea;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(240, 240, 234, 0.55);
    font-weight: 300;
    max-width: 280px;
    margin: 0 auto;
}

/* ── Location ── */
.location {
    padding: 120px 0;
    background: var(--offwhite);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.location-info {
    display: flex;
    flex-direction: column;
}

.location-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--warm-gray);
    font-weight: 300;
    margin-bottom: 40px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.location-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.location-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green-50);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 4px;
}

.location-detail-value {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
}

.location-detail-value a {
    color: var(--green-700);
    transition: color 0.2s ease;
}

.location-detail-value a:hover {
    color: var(--green-600);
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(6, 78, 59, 0.08);
}

/* ── FAQ ── */
.faq {
    padding: 120px 0;
    background: var(--offwhite-2);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(6, 78, 59, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}

.faq-question:hover {
    color: var(--green-700);
}

.faq-toggle {
    flex-shrink: 0;
    color: var(--green-600);
    transition: transform 0.3s var(--ease-out);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 28px;
}

.faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--warm-gray);
    font-weight: 300;
}

.faq-answer a {
    color: var(--green-700);
    font-weight: 500;
}

/* ── CTA ── */
.cta {
    padding: 120px 0;
    background: var(--green-900);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(6, 78, 59, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 600;
    color: #f0f0ea;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(240, 240, 234, 0.6);
    font-weight: 300;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
    padding: 80px 0 40px;
    background: var(--dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.125rem;
    color: #f0f0ea;
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--green-500);
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(240, 240, 234, 0.5);
    font-weight: 300;
    max-width: 300px;
}

.footer-nav-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240, 240, 234, 0.4);
    margin-bottom: 20px;
}

.footer-nav a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(240, 240, 234, 0.65);
    padding: 6px 0;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--green-500);
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(240, 240, 234, 0.5);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    font-size: 0.9375rem;
    color: var(--green-500);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--green-400);
}

.footer-bottom {
    border-top: 1px solid rgba(240, 240, 234, 0.08);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(240, 240, 234, 0.35);
}

.footer-disclaimer {
    font-size: 0.8125rem !important;
    color: rgba(240, 240, 234, 0.25) !important;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(24px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-container {
        gap: 48px;
    }
    
    .hero-cards {
        height: 360px;
    }
    
    .steps {
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-cards {
        height: 280px;
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-map {
        min-height: 320px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(6, 78, 59, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s var(--ease-out);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero {
        padding: 100px 0 80px;
        min-height: auto;
    }
    
    .hero-cards {
        height: 220px;
    }
    
    .stat-card {
        padding: 18px 22px;
    }
    
    .stat-card-value {
        font-size: 1.375rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .steps::before {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal:not(.revealed) {
        opacity: 1;
        transform: none;
    }
}
