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

:root {
  --bg: #111111;
  --bg-alt: #0D0D0D;
  --card: #1A1A1A;
  --border: #2E2E2E;
  --foreground: #FFFFFF;
  --muted-foreground: #B8B9B6;
  --primary: #FF8400;
  --primary-foreground: #111111;
  --secondary: #2E2E2E;
  --secondary-foreground: #FFFFFF;
  --font-primary: 'JetBrains Mono', monospace;
  --font-secondary: 'Geist', sans-serif;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 100px;
}

.hero,
.advantages,
.locations {
  scroll-snap-align: start;
}

/* Section Title */

.section-title {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  line-height: 1.2;
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 600px;
}

.hero__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--foreground);
  line-height: 1;
}

.hero__desc {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted-foreground);
  text-align: center;
  line-height: 1.6;
}

.hero__scroll {
  display: inline-flex;
  animation: bounce 2s infinite;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Advantages */

.advantages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 100vh;
  padding: 80px 24px;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  width: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background-color: var(--card);
  border: 1px solid var(--border);
}

.card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.card__title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.4;
}

.card__desc {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Location Cards */

.loc-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  width: 100%;
}

.loc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--card);
  border: 1px solid var(--border);
}

.loc-card__flag {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.loc-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.loc-card__country {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.loc-card__city {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-foreground);
}

.loc-card__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22C55E;
  flex-shrink: 0;
}

/* Locations */

.locations {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 100vh;
  padding: 80px 24px;
}

.locations__note {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* Floating Bar */

.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 50;
}

.floating-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.floating-bar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 32px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.floating-bar__cta:hover {
  opacity: 0.9;
}

.floating-bar__link {
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.floating-bar__link:hover {
  color: var(--foreground);
}

/* Modal Overlay */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal */

.modal {
  width: 480px;
  max-width: calc(100vw - 48px);
  background-color: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.modal__title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.4;
}

.modal__subtitle {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-foreground);
  line-height: 1.43;
}

.modal__content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__proxy-link {
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
}

.modal__proxy-link:hover {
  opacity: 0.85;
}

.modal__actions {
  padding: 24px;
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 10px 16px;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.modal__close:hover {
  opacity: 0.85;
}

/* Responsive */

@media (max-width: 640px) {
  .hero__title {
    font-size: 36px;
  }

  .hero__desc {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    animation: none;
    width: auto;
  }

  .marquee__track span {
    font-size: 16px;
  }

  .marquee__track span:nth-child(n+6) {
    display: none;
  }
}
