/* ============================================
   LibertyX Bitcoin ATM — Custom Styles
   Classic & Elegant | Teal + Slate Grey
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #042f2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    animation: preloaderPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-fill {
    height: 100%;
    width: 40%;
    background: #14b8a6;
    border-radius: 2px;
    animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #042f2e;
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-size: 14px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

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

.section-pad {
    padding: 100px 0;
}

.bg-teal {
    background-color: #042f2e;
}

.bg-slate {
    background-color: #0f172a;
}

/* ---------- Accent Colors ---------- */
.accent {
    color: #14b8a6;
}

.accent-light {
    color: #5eead4;
}

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

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #14b8a6;
    margin-bottom: 16px;
}

.label-light {
    color: #5eead4;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #f8fafc;
    margin-bottom: 20px;
}

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

.title-light {
    color: #f8fafc;
}

.section-desc {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.7;
}

.desc-light {
    color: rgba(255,255,255,0.7);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(4, 47, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

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

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-light {
    color: #f8fafc;
}

.logo-icon {
    flex-shrink: 0;
}

/* ---------- Navigation ---------- */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(4, 47, 46, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.main-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    color: rgba(248, 250, 252, 0.8);
    padding: 12px 24px;
    transition: color 0.2s, transform 0.2s;
}

.nav-link:hover {
    color: #14b8a6;
    transform: translateX(4px);
}

.nav-cta {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #14b8a6;
    color: #042f2e;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: #5eead4;
    transform: translateY(-2px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #14b8a6;
    color: #042f2e;
}

.btn-primary:hover {
    background: #5eead4;
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.3);
}

.btn-outline {
    background: transparent;
    color: #f8fafc;
    border: 1.5px solid rgba(248, 250, 252, 0.3);
}

.btn-outline:hover {
    border-color: #14b8a6;
    color: #14b8a6;
}

.btn-light {
    background: #f8fafc;
    color: #042f2e;
}

.btn-light:hover {
    background: #e2e8f0;
    box-shadow: 0 8px 32px rgba(255,255,255,0.15);
}

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

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/36765734/pexels-photo-36765734.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    transform: scale(1.05);
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 46, 0.92) 0%,
        rgba(2, 6, 23, 0.88) 50%,
        rgba(4, 47, 46, 0.85) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #14b8a6;
    margin-bottom: 32px;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 28px;
    color: #f8fafc;
}

.headline-line {
    display: block;
}

.headline-line .accent {
    color: #14b8a6;
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(248, 250, 252, 0.75);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 40px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 32px 48px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #14b8a6;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(248, 250, 252, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(20,184,166,0.6), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-color: rgba(20, 184, 166, 0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.4rem;
    color: #f8fafc;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.65);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.75);
}

.card-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #14b8a6;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Process ---------- */
.process-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    text-align: left;
}

.step-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(20, 184, 166, 0.3);
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
}

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

.step-title {
    font-size: 1.3rem;
    color: #f8fafc;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.process-cta {
    text-align: center;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

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

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-frame:hover img {
    transform: scale(1.03);
}

.image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(20, 184, 166, 0.3);
    border-radius: 16px;
    z-index: -1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text {
    font-size: 1rem;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.8;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

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

.value-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.value-item strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    color: #f8fafc;
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.5;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: #f8fafc;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.contact-item a {
    color: #14b8a6;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #5eead4;
}

/* ---------- Form ---------- */
.form-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 40px;
}

.form-title {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.form-input::placeholder {
    color: rgba(248, 250, 252, 0.3);
}

.form-input:focus {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.05);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success h4 {
    font-size: 1.4rem;
    color: #f8fafc;
    margin: 16px 0 8px;
}

.form-success p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #020617;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 64px 0 32px;
}

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

.footer-brand {
    max-width: 280px;
}

.footer-desc {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.5);
    line-height: 1.7;
}

.footer-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: #f8fafc;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.5);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #14b8a6;
}

.footer-contact address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.5);
}

.footer-contact a {
    color: #14b8a6;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #5eead4;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.35);
}

.footer-legal {
    max-width: 400px;
    text-align: right;
}

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

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .image-accent {
        display: none;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .section-pad {
        padding: 72px 0;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        padding: 24px 20px;
        gap: 0;
        width: 100%;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

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

    .step {
        gap: 16px;
    }

    .step-number {
        font-size: 2rem;
        width: 40px;
    }

    .form-card {
        padding: 28px 20px;
    }

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

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

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

    .header-inner {
        padding: 16px 20px;
    }
}

@media (max-width: 360px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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