/* ========================================
   LibertyX Bitcoin ATM — Styles
   ======================================== */

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

:root {
    --charcoal-900: #0f0f14;
    --charcoal-800: #1a1a24;
    --charcoal-700: #252530;
    --charcoal-600: #2f2f3d;
    --charcoal-500: #3a3a4a;
    --charcoal-400: #5a5a6e;
    --charcoal-300: #8a8a9e;
    --charcoal-200: #b8b8c8;
    --charcoal-100: #e0e0e8;
    --charcoal-50: #f4f4f8;
    
    --coral-600: #c4453a;
    --coral-500: #e8645a;
    --coral-400: #f08078;
    --coral-300: #f5a09a;
    --coral-200: #fad4d0;
    --coral-100: #fdeaea;
    --coral-50: #fef5f4;
    
    --white: #ffffff;
    --black: #0a0a0e;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16), 0 8px 20px rgba(0,0,0,0.1);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--charcoal-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    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;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition-base);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--charcoal-900);
}

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

.logo-accent {
    color: var(--coral-500);
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal-600);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
    color: var(--charcoal-900);
    background: var(--charcoal-50);
}

.nav-cta {
    background: var(--charcoal-900);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

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

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal-800);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

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

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(232, 100, 90, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(232, 100, 90, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(232, 100, 90, 0.15);
    border: 1px solid rgba(232, 100, 90, 0.25);
    border-radius: 100px;
    color: var(--coral-300);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

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

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 52px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral-500);
    color: var(--white);
    border-color: var(--coral-500);
}

.btn-primary:hover {
    background: var(--coral-600);
    border-color: var(--coral-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 100, 90, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--charcoal-200);
    border-color: var(--charcoal-500);
}

.btn-ghost:hover {
    border-color: var(--coral-400);
    color: var(--coral-300);
    background: rgba(232, 100, 90, 0.08);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark {
    background: transparent;
    color: var(--charcoal-800);
    border-color: var(--charcoal-300);
}

.btn-outline-dark:hover {
    border-color: var(--charcoal-900);
    color: var(--charcoal-900);
    background: var(--charcoal-50);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--charcoal-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--charcoal-600);
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/700;
}

.hero-image-accent {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.hero-floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.hero-floating-card svg {
    color: var(--coral-500);
    flex-shrink: 0;
}

.hero-floating-card strong {
    display: block;
    font-size: 0.82rem;
    color: var(--charcoal-900);
    letter-spacing: 0.02em;
}

.hero-floating-card span {
    font-size: 0.78rem;
    color: var(--charcoal-400);
}

/* ========================================
   SECTION COMMON
   ======================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral-500);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal-900);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--charcoal-400);
    line-height: 1.7;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    padding: 36px;
    background: var(--charcoal-50);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.service-card:hover {
    background: var(--white);
    border-color: var(--charcoal-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal-900);
    border-radius: var(--radius-sm);
    color: var(--coral-400);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--charcoal-400);
    line-height: 1.7;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--charcoal-900);
}

.how-it-works .section-title {
    color: var(--white);
}

.how-it-works .section-desc {
    color: var(--charcoal-300);
}

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

.step-card {
    text-align: center;
    padding: 40px 32px;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(232, 100, 90, 0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--charcoal-700);
    border-radius: var(--radius-md);
    color: var(--coral-400);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--charcoal-300);
    line-height: 1.7;
}

.step-connector {
    display: none;
}

/* ========================================
   WHY SECTION
   ======================================== */
.why-section {
    padding: 100px 0;
    background: var(--white);
}

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

.why-content .section-tag {
    text-align: left;
}

.why-content .section-title {
    text-align: left;
}

.why-content .section-desc {
    text-align: left;
    margin-bottom: 40px;
}

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

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

.why-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--coral-100);
    border-radius: var(--radius-sm);
    color: var(--coral-600);
}

.why-feature strong {
    display: block;
    font-size: 1rem;
    color: var(--charcoal-900);
    margin-bottom: 4px;
}

.why-feature span {
    font-size: 0.9rem;
    color: var(--charcoal-400);
    line-height: 1.6;
}

.why-visual {
    position: relative;
}

.why-image-stack {
    position: relative;
}

.why-image-stack img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.why-accent-block {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: var(--coral-500);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    padding: 80px 0;
    background: var(--coral-500);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-actions .btn-outline-light:hover {
    background: var(--white);
    color: var(--coral-500);
    border-color: var(--white);
}

/* ========================================
   LOCATION
   ======================================== */
.location {
    padding: 100px 0;
    background: var(--charcoal-50);
}

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

.location-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.location-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--charcoal-900);
    border-radius: var(--radius-sm);
    color: var(--coral-400);
}

.location-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--charcoal-900);
    margin-bottom: 4px;
}

.location-card p {
    font-size: 0.9rem;
    color: var(--charcoal-400);
    line-height: 1.6;
}

.location-card a {
    color: var(--coral-500);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.location-card a:hover {
    color: var(--coral-600);
}

.location-map {
    margin-top: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-cta {
    position: sticky;
    top: 100px;
}

.location-cta-card {
    padding: 40px;
    background: var(--charcoal-900);
    border-radius: var(--radius-lg);
    text-align: center;
}

.location-cta-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(232, 100, 90, 0.15);
    border-radius: var(--radius-md);
    color: var(--coral-400);
}

.location-cta-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.location-cta-card p {
    font-size: 0.95rem;
    color: var(--charcoal-300);
    line-height: 1.7;
    margin-bottom: 28px;
}

.location-cta-card .btn {
    margin-bottom: 12px;
}

.location-cta-card .btn-primary:hover {
    background: var(--coral-400);
    border-color: var(--coral-400);
}

.location-cta-card .btn-outline-dark {
    border-color: var(--charcoal-500);
    color: var(--charcoal-200);
}

.location-cta-card .btn-outline-dark:hover {
    border-color: var(--coral-400);
    color: var(--coral-300);
    background: rgba(232, 100, 90, 0.08);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 60px 0 0;
    background: var(--charcoal-900);
    color: var(--charcoal-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--charcoal-700);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--charcoal-400);
    max-width: 300px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal-200);
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: var(--charcoal-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--coral-400);
}

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

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--charcoal-500);
}

.footer-legal {
    font-size: 0.78rem !important;
    color: var(--charcoal-600) !important;
}

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 90px 24px 40px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 999;
    }

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

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 12px;
        text-align: center;
        justify-content: center;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 500px;
    }

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

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

    .why-content .section-tag,
    .why-content .section-title,
    .why-content .section-desc {
        text-align: center;
    }

    .why-features {
        max-width: 500px;
        margin: 0 auto;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-cta {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

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

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

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

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

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

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

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .step-card,
    .why-feature {
        transition: all var(--transition-base);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
