/* ============================================
   LibertyX Bitcoin ATM — Editorial Style
   Color Palette: Terracotta + Sand
   ============================================ */

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

:root {
    --terracotta: #B85838;
    --terracotta-dark: #9A4428;
    --terracotta-deeper: #7D351E;
    --sand: #F5EDE4;
    --sand-light: #FAF6F1;
    --sand-mid: #EDE3D8;
    --sand-dark: #D4C4B4;
    --charcoal: #1E1A17;
    --charcoal-light: #3D3530;
    --warm-gray: #6B5F56;
    --warm-gray-light: #9A8D84;
    --cream: #FDF9F5;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--sand-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.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(245, 237, 228, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 88, 56, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(253, 249, 245, 0.97);
    box-shadow: 0 1px 20px rgba(30, 26, 23, 0.06);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

.nav-brand-icon {
    color: var(--terracotta);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--warm-gray);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

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

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--terracotta);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.nav-cta:hover {
    background: var(--terracotta-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--charcoal);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--charcoal);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(184, 88, 56, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(184, 88, 56, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(30, 26, 23, 0.3) 0%, rgba(30, 26, 23, 0.1) 50%, rgba(30, 26, 23, 0.5) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: 32px;
}

.hero-eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--terracotta);
    flex-shrink: 0;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--sand-light);
    margin-bottom: 28px;
}

.hero-headline-accent {
    font-style: italic;
    color: var(--terracotta);
    font-weight: 400;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    line-height: 1.7;
    color: var(--sand-dark);
    max-width: 560px;
    margin: 0 auto 44px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.hero-stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--sand-light);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--warm-gray-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(212, 196, 180, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--sand-dark);
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 88, 56, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--sand-dark);
    border: 1px solid rgba(212, 196, 180, 0.3);
}

.btn-ghost:hover {
    color: var(--sand-light);
    border-color: var(--sand-dark);
    transform: translateY(-2px);
}

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

.btn-outline-light:hover {
    background: var(--charcoal);
    color: var(--sand-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 0.9375rem;
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 20px;
}

.section-eyebrow-line {
    width: 24px;
    height: 1.5px;
    background: var(--terracotta);
    flex-shrink: 0;
}

/* --- Section Headline --- */
.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.section-headline-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--terracotta);
}

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

.services .container {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    text-align: left;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 196, 180, 0.3);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(30, 26, 23, 0.08);
}

.service-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--terracotta-dark));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.service-card:hover .service-card-icon {
    background: var(--terracotta);
    color: var(--white);
}

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

.service-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray);
    margin-bottom: 20px;
}

.service-card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--charcoal-light);
}

.service-card-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
    flex-shrink: 0;
}

/* --- How It Works --- */
.how-it-works {
    padding: 120px 0;
    background: var(--cream);
}

.hiw-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.hiw-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--warm-gray);
    margin-top: 24px;
    max-width: 420px;
}

.hiw-step {
    display: flex;
    gap: 24px;
    position: relative;
}

.hiw-step:not(:last-child) {
    padding-bottom: 40px;
}

.hiw-step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--sand-dark);
    line-height: 1;
    letter-spacing: -0.04em;
    flex-shrink: 0;
    width: 56px;
}

.hiw-step-content {
    padding-top: 8px;
}

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

.hiw-step-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray);
}

/* --- Why LibertyX --- */
.why-libertyx {
    padding: 120px 0;
    background: var(--sand-light);
}

.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-image {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    position: relative;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(212, 196, 180, 0.4);
    pointer-events: none;
}

.why-content {
    max-width: 520px;
}

.why-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--warm-gray);
    margin-bottom: 44px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    flex-shrink: 0;
}

.why-feature-title {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.why-feature-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--warm-gray);
}

/* --- Trust Banner --- */
.trust-banner {
    padding: 56px 0;
    background: var(--charcoal);
}

.trust-content {
    text-align: center;
}

.trust-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--sand-dark);
    max-width: 640px;
    margin: 0 auto 32px;
    font-weight: 300;
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sand-mid);
    letter-spacing: 0.03em;
}

.trust-badge svg {
    color: var(--terracotta);
}

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

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.location-info {
    max-width: 480px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 44px 0;
}

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

.location-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    flex-shrink: 0;
}

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

.location-detail-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.6;
}

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

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

.btn-directions {
    margin-top: 8px;
}

.location-map {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/11;
    box-shadow: 0 20px 60px rgba(30, 26, 23, 0.1);
}

.location-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 26, 23, 0.05);
}

.map-pin {
    animation: pinBounce 2s ease-in-out infinite;
}

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

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

.cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 2px 2px, var(--terracotta) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-eyebrow {
    justify-content: center;
    margin-bottom: 20px;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--charcoal);
    margin-bottom: 20px;
    max-width: 640px;
}

.cta-headline-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--terracotta);
}

.cta-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--warm-gray);
    max-width: 480px;
    margin-bottom: 44px;
}

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

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

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(212, 196, 180, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sand-light);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

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

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray-light);
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--warm-gray-light);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--sand-light);
}

.footer-bottom {
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--warm-gray);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--warm-gray);
    text-align: right;
    max-width: 400px;
    line-height: 1.5;
}

/* --- Mobile Menu --- */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 249, 245, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(184, 88, 56, 0.08);
    box-shadow: 0 20px 40px rgba(30, 26, 23, 0.08);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hiw-layout,
    .why-layout,
    .location-layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .why-image {
        aspect-ratio: 16/9;
        max-height: 400px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 100px 20px 80px;
        min-height: 100svh;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-divider {
        display: none;
    }

    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 32px 28px;
    }

    .how-it-works {
        padding: 80px 0;
    }

    .hiw-step-number {
        font-size: 2.25rem;
    }

    .why-libertyx {
        padding: 80px 0;
    }

    .location {
        padding: 80px 0;
    }

    .cta {
        padding: 80px 0;
    }

    .trust-badges {
        flex-direction: column;
        gap: 16px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-headline {
        font-size: 2.125rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
