/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-subtle: #888888;
  --color-border: #e2e2e2;
  --color-surface: #f9f9f9;

  --font-heading: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --spacing-2xl: 120px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle Grid Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, #f0f0f0 1px, transparent 1px),
    linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

p {
  color: #333;
  font-size: 1.125rem;
  line-height: 1.6;
}

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

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding-top: 180px;
  padding-right: 0;
  padding-bottom: var(--spacing-xl);
  padding-left: 0;
}

.section section {
  margin-bottom: var(--spacing-lg);
}

.section p {
  margin-bottom: var(--spacing-md);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

/* Buttons & Store Badges */
.btn-group {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.hero .btn-group {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 10px 24px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 12px;
}

.store-badge img,
.store-badge svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.store-badge .text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.store-badge .small-text {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 2px;
}

.store-badge .big-text {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Header */
.site-header {
  padding: var(--spacing-lg) 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  /* Regular for serif */
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-text);
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  background: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav a {
  display: block;
  font-size: 1.5rem;
  /* Big footer links */
  font-family: var(--font-heading);
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 0.6;
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  color: #fff;
  padding: var(--spacing-md) 0;
  margin: var(--spacing-xl) 0;
  display: flex;
  user-select: none;
  gap: 0;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  align-items: center;
  justify-content: space-around;
  animation: scroll 40s linear infinite;

  /* Fonts */
  font-family: var(--font-heading);
  font-size: 2rem;
  text-transform: uppercase;

  /* Hardware acceleration */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.marquee-track span {
  /* No specific margin needed if we space carefully in JS or use just-content, 
     but keeping some to be safe if we rely on it */
  margin: 0 40px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Slider Styles */
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  /* Fill container */
  overflow: hidden;
}

.s-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  user-select: none;
  pointer-events: none;
}

.s-img-after {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  z-index: 2;
}

.slider-handle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  z-index: 3;
  cursor: ew-resize;
  pointer-events: auto;
  /* Handle needs events */
}

.slider-label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  /* Centered on line */
  background: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}


/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .footer-content {
    flex-direction: column;
  }
}