/* ============================================
   LIBERTYX BITCOIN ATM — WADENA, MN
   Clean Minimalist · Terracotta + Sand
   ============================================ */

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

:root {
  --terracotta: #C4654A;
  --terracotta-dark: #A8523A;
  --terracotta-light: #D4896F;
  --sand: #F5F0EB;
  --sand-dark: #E8E0D8;
  --sand-mid: #EDE6DD;
  --cream: #FAF7F4;
  --charcoal: #1E1E1E;
  --charcoal-light: #3A3A3A;
  --gray: #6B6B6B;
  --gray-light: #9A9A9A;
  --white: #FFFFFF;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s var(--ease-out);
  padding: 20px 0;
}

.site-header.scrolled {
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--sand-dark);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--charcoal-light);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-list a:hover {
  color: var(--terracotta);
}

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

.nav-cta {
  background: var(--charcoal);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 400;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

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

.nav-cta:hover {
  background: var(--terracotta);
  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;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1a 30%, #3d2520 50%, #2a1f1a 70%, #1a1a1a 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(196, 101, 74, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(212, 137, 111, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(168, 82, 58, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--terracotta-light);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  padding: 8px 18px;
  border: 1px solid rgba(196, 101, 74, 0.3);
  border-radius: 100px;
  background: rgba(196, 101, 74, 0.08);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--terracotta-light);
  font-style: italic;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  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 30px rgba(196, 101, 74, 0.35);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  transform: translateY(-2px);
}

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

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.35);
  animation: scrollBounce 2s ease-in-out infinite;
}

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

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

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 520px;
  font-weight: 300;
}

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

.how-it-works .container {
  text-align: center;
}

.how-it-works .section-desc {
  margin: 0 auto 64px;
}

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

.step-card {
  padding: 40px 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--sand-dark);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(196, 101, 74, 0.08);
  border-color: var(--terracotta-light);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--sand-dark);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.step-card:hover .step-number {
  color: var(--terracotta-light);
}

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

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

.step-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 0.925rem;
  color: var(--gray);
  line-height: 1.65;
  font-weight: 300;
}

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

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

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

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

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(196, 101, 74, 0.1);
  color: var(--terracotta);
  margin-top: 2px;
}

.feature-item strong {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.feature-item span {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.55;
  font-weight: 300;
}

.features-visual {
  position: relative;
}

.visual-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.visual-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.visual-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.visual-stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta-light);
}

.visual-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--cream);
}

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

.about-visual {
  position: relative;
}

.about-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.about-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 72px;
  height: 72px;
  background: var(--terracotta);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.about-text .section-desc {
  margin-bottom: 20px;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-signature {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--sand-dark);
}

.sig-line {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.sig-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
}

.sig-role {
  font-size: 0.8rem;
  color: var(--gray-light);
  font-weight: 300;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
  background: var(--sand);
  padding-bottom: 80px;
}

.visit-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--sand-dark);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.06);
}

.visit-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--charcoal);
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.contact-value:hover {
  color: var(--terracotta);
}

.visit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.visit-actions .btn-primary {
  background: var(--charcoal);
}

.visit-actions .btn-primary:hover {
  background: var(--terracotta);
  box-shadow: 0 8px 30px rgba(196, 101, 74, 0.3);
}

.visit-map {
  min-height: 480px;
  background: var(--sand-dark);
}

.visit-map iframe {
  border-radius: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 16px;
  line-height: 1.65;
  font-weight: 300;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 6px 0;
  transition: color 0.2s ease;
  line-height: 1.5;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-note {
  max-width: 400px;
  text-align: right;
  font-weight: 300;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal[data-revealed="false"] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-layout,
  .about-layout {
    gap: 48px;
  }

  .visit-content {
    padding: 48px 40px;
  }
}

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

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

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

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--sand-dark);
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    padding: 14px 22px;
    border-bottom: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-stats {
    gap: 24px;
  }

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

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

  .features-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-visual {
    order: -1;
  }

  .about-accent {
    right: -10px;
    bottom: -10px;
    width: 56px;
    height: 56px;
  }

  .visit-card {
    grid-template-columns: 1fr;
  }

  .visit-content {
    padding: 40px 28px;
  }

  .visit-map {
    min-height: 300px;
  }

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

  .footer-links {
    gap: 40px;
  }

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

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

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

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

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

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

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

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

  .visit-content {
    padding: 32px 24px;
  }

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

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

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }
}

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

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