* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }

body {
  font-family: 'Source Serif Pro', serif;
  color: white;
  background: #000;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: block;
}

.hero {
  background-image: url('../assets/backgrounds/2.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: contrast(1.02) saturate(0.95);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

.content {
  position: absolute;
  left: 25vw;
  top: 50vh;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 50vw;
  overflow: visible;
}

.hero-title {
  color: #ffffff;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.01em;
  word-break: break-word;
  position: relative;
  z-index: 1;
}

.buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 4px;
}

.circle-btn {
  appearance: none;
  border: none;
  background: rgba(255,255,255,0.98);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .12s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  overflow: visible;
  position: relative;
  z-index: 5;
}

.circle-btn:hover {
  transform: translateY(-4px);
  outline: none;
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}

.circle-btn .icon {
  width: 28px;
  height: 28px;
  display: block;
}

.tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(255,255,255,0.95);
  color: #0b0b0b;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  transform: translate(-9999px, -9999px);
  transition: opacity .12s ease, transform .08s linear;
  opacity: 0;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

@media (max-width: 800px) {
  .content {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 88vw;
    align-items: center;
    text-align: center;
  }
  .hero-title { white-space: normal; }
  .circle-btn { width: 56px; height: 56px; }
}

@media (max-width: 420px) {
  .buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    overflow-x: visible;
    padding-top: 0;
  }
}

.modal { display: none; }
.modal[aria-hidden="false"] { display: block; }

.modal__overlay {
  background-color: rgba(0,0,0,0.6);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal__container {
  background: white;
  width: min(960px, 92vw);
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  font-family: 'Source Serif Pro', serif; /* ensure modal uses same font */
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.modal__title {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  color: #111;
  font-family: 'Source Serif Pro', serif;
}

.modal__close {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.modal__close::before, .modal__close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #333;
}
.modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.modal__content {
  padding: 0;
  font-family: 'Source Serif Pro', serif;
}
