/* ============================================
   LibertyX Bitcoin ATM — Stylesheet
   Palette: Burgundy (#7B2431) + Blush (#F5E6E0)
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --burgundy: #7B2431;
    --burgundy-deep: #5C1A26;
    --burgundy-light: #9E3445;
    --blush: #F5E6E0;
    --blush-light: #FDF8F6;
    --blush-mid: #F0D5CC;
    --neutral-900: #1A1A1A;
    --neutral-700: #3D3D3D;
    --neutral-500: #6B6B6B;
    --neutral-300: #A8A8A8;
    --neutral-100: #F0F0F0;
    --white: #FFFFFF;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(123, 36, 49, 0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(123, 36, 49, 0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(123, 36, 49, 0.12), 0 4px 12px rgba(0,0,0,0.06);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--neutral-700);
    background-color: var(--blush-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--burgundy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 36, 49, 0.08);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-primary {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: -0.02em;
}

.logo-secondary {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-menu li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burgundy);
    transition: width var(--transition);
}

.nav-menu li a:hover {
    color: var(--burgundy);
}

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

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

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

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

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 101;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--neutral-700);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger::before { top: 0; }
.hamburger span { top: 50%; transform: translate(-50%, -50%); }
.hamburger::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--blush-light) 0%, var(--blush) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(123, 36, 49, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(123, 36, 49, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 36, 49, 0.08);
    color: var(--burgundy);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--neutral-900);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-headline em {
    color: var(--burgundy);
    font-style: italic;
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--neutral-500);
    margin-bottom: 36px;
    max-width: 460px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(123, 36, 49, 0.25);
}

.btn-primary:hover {
    background: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 36, 49, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--neutral-700);
    border: 1.5px solid var(--neutral-300);
}

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

.btn-map {
    margin-top: 24px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.hero-stat {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    font-weight: 400;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--blush-mid);
    margin: 0 24px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 580/700;
}

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

.hero-floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

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

.floating-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(123, 36, 49, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-card-text {
    display: flex;
    flex-direction: column;
}

.floating-card-label {
    font-size: 0.6875rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.floating-card-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--burgundy);
    margin-bottom: 16px;
    background: rgba(123, 36, 49, 0.07);
    padding: 6px 14px;
    border-radius: 100px;
}

.section-tag-light {
    background: rgba(245, 230, 224, 0.2);
    color: var(--blush);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--neutral-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title-light {
    color: var(--white);
}

.section-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--neutral-500);
}

.section-desc-light {
    color: rgba(245, 230, 224, 0.75);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    background: var(--blush-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    border: 1px solid rgba(123, 36, 49, 0.06);
    transition: all var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.step-number {
    position: absolute;
    top: 24px;
    right: 28px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(123, 36, 49, 0.06);
    line-height: 1;
    pointer-events: none;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: rgba(123, 36, 49, 0.07);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--neutral-500);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    background: var(--burgundy);
}

.features-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(245, 230, 224, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(245, 230, 224, 0.7);
}

/* ============================================
   LOCATED
   ============================================ */
.located {
    background: var(--blush-light);
}

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

.located-content .section-tag {
    margin-bottom: 16px;
}

.located-content .section-title {
    margin-bottom: 16px;
}

.located-content .section-desc {
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 8px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(123, 36, 49, 0.07);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-500);
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--neutral-700);
    font-weight: 500;
}

.contact-value a {
    color: var(--burgundy);
    transition: color var(--transition);
}

.contact-value a:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

.located-visual {
    position: relative;
}

.located-visual img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/480;
    box-shadow: var(--shadow-md);
}

.located-map-placeholder {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.located-map-placeholder svg {
    flex-shrink: 0;
}

.located-map-placeholder span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    background: var(--white);
}

.faq-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

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

.faq-item {
    border-bottom: 1px solid var(--neutral-100);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 24px 0;
    text-align: left;
    font-family: var(--font-body);
}

.faq-question span:first-child {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--neutral-900);
    transition: color var(--transition);
}

.faq-question:hover span:first-child {
    color: var(--burgundy);
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background: rgba(123, 36, 49, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.faq-question[aria-expanded="true"] .faq-toggle {
    background: var(--burgundy);
    transform: rotate(45deg);
}

.faq-question[aria-expanded="true"] .faq-toggle svg {
    stroke: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--neutral-500);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--neutral-900);
    color: var(--blush);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(245, 230, 224, 0.1);
}

.footer-brand .logo-primary {
    color: var(--white);
}

.footer-brand .logo-secondary {
    color: rgba(245, 230, 224, 0.5);
}

.footer-tagline {
    margin-top: 16px;
    font-size: 0.9375rem;
    color: rgba(245, 230, 224, 0.55);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(245, 230, 224, 0.4);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(245, 230, 224, 0.7);
    transition: color var(--transition);
}

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

.footer-contact address {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9375rem;
    color: rgba(245, 230, 224, 0.7);
    line-height: 1.7;
}

.footer-contact a {
    color: rgba(245, 230, 224, 0.7);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0;
    font-size: 0.8125rem;
    color: rgba(245, 230, 224, 0.35);
}

.footer-disclaimer {
    max-width: 480px;
    text-align: right;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }

    .hero-image-frame {
        aspect-ratio: 480/580;
    }

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

    .located-grid {
        gap: 48px;
    }
}

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

    .section {
        padding: 72px 0;
    }

    /* Mobile nav */
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(253, 248, 246, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 18px 24px;
        font-size: 1.125rem;
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 16px;
        font-size: 1rem;
        padding: 14px 32px;
    }

    /* Hero mobile */
    .hero {
        padding: 100px 0 80px;
        min-height: auto;
    }

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

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-floating-card {
        left: 16px;
        bottom: 24px;
    }

    .hero-stats {
        gap: 0;
    }

    .hero-stat-divider {
        margin: 0 16px;
    }

    /* Steps mobile */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* Features mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Located mobile */
    .located-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .located-visual {
        order: -1;
    }

    .located-map-placeholder {
        right: 16px;
        bottom: -16px;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .footer-disclaimer {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
        margin: 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-floating-card {
        animation: none;
    }
}
