/* ========================================
   LibertyX Bitcoin ATM — Custom Styles
   Palette: Charcoal (#1A1D23) + Coral (#FF6B4A)
   Fonts: Playfair Display + Inter
======================================== */

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

:root {
    --charcoal: #1A1D23;
    --charcoal-light: #2A2D35;
    --charcoal-mid: #3D4048;
    --coral: #FF6B4A;
    --coral-dark: #E85A3A;
    --coral-light: #FF8A70;
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --gray-100: #F0F1F3;
    --gray-200: #E2E4E8;
    --gray-300: #C4C8D0;
    --gray-400: #8E94A0;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(26, 29, 35, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 29, 35, 0.1);
    --shadow-lg: 0 12px 40px rgba(26, 29, 35, 0.15);
    --shadow-xl: 0 20px 60px rgba(26, 29, 35, 0.2);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background: var(--charcoal-light);
}

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

.btn-coral:hover {
    background: var(--coral-dark);
}

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

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--charcoal);
}

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

.btn-white:hover {
    background: var(--gray-100);
}

/* ========================================
   Navbar
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--charcoal);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--coral);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

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

.nav-links a {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
}

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

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

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

.nav-cta {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 29, 35, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    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;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--charcoal);
}

.text-coral {
    color: var(--coral);
}

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

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

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

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

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 200px;
    height: 200px;
    background: var(--coral);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-image: radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

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

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

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.063rem;
    color: var(--gray-500);
    line-height: 1.7;
}

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

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

.service-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

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

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

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.063rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.service-card p {
    font-size: 0.938rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ========================================
   How It Works Section
======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--off-white);
}

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

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse > * {
    direction: ltr;
}

.split-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.split-content {
    padding: 20px 0;
}

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

.split-content .section-subtitle {
    margin-bottom: 40px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
    min-width: 48px;
}

.step-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--charcoal);
}

.step-content p {
    font-size: 0.938rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ========================================
   Why Us Section
======================================== */
.why-us {
    padding: 100px 0;
    background: var(--white);
}

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

.feature {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--off-white);
    transition: var(--transition);
}

.feature:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-visual {
    overflow: hidden;
    height: 220px;
}

.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature:hover .feature-visual img {
    transform: scale(1.05);
}

.feature h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.063rem;
    font-weight: 600;
    padding: 20px 24px 0;
    color: var(--charcoal);
}

.feature p {
    font-size: 0.938rem;
    color: var(--gray-500);
    line-height: 1.6;
    padding: 8px 24px 24px;
}

/* ========================================
   Trust Section
======================================== */
.trust-section {
    padding: 80px 0;
    background: var(--charcoal);
}

.trust-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.trust-content blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 24px;
    position: relative;
}

.trust-content blockquote::before {
    content: '"';
    font-size: 6rem;
    color: var(--coral);
    position: absolute;
    top: -40px;
    left: -20px;
    line-height: 1;
    opacity: 0.3;
}

.trust-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.trust-location,
.trust-verified {
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-location {
    color: var(--gray-300);
}

.trust-verified {
    background: rgba(255, 107, 74, 0.15);
    color: var(--coral-light);
    padding: 6px 14px;
    border-radius: 50px;
}

/* ========================================
   Location Section
======================================== */
.location {
    padding: 100px 0;
    background: var(--off-white);
}

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

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

.location-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.location-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.location-item p,
.location-item a {
    font-size: 0.938rem;
    color: var(--gray-500);
}

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

/* ========================================
   CTA Section
======================================== */
.cta-section {
    padding: 100px 0;
    background: var(--coral);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content p a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cta-content p a:hover {
    color: var(--charcoal);
}

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

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--charcoal);
    color: var(--gray-300);
    padding: 64px 0 0;
}

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

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

.footer-brand p {
    font-size: 0.938rem;
    line-height: 1.7;
    color: var(--gray-400);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.938rem;
    color: var(--gray-400);
}

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

.footer-contact p {
    font-size: 0.938rem;
    color: var(--gray-400);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
    font-size: 0.813rem;
    color: var(--gray-500);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-500);
    opacity: 0.7;
}

/* ========================================
   Scroll Reveal
======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid .feature:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image img {
        height: 400px;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .split-layout.reverse {
        direction: ltr;
    }
    
    .split-image img {
        height: 350px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid .feature:last-child {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.375rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        justify-content: center;
    }
}

/* 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;
    }
}
