@font-face {
  font-family: 'Integral CF';
  src: url('Demo_Fonts/Fontspring-DEMO-integralcf-heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  /* Letters, digits, basic punctuation only — @ ' — ¿ ¡ accents use system-ui fallback */
  unicode-range: U+0020-0026, U+0028-003F, U+0041-007A;
}

@font-face {
  font-family: 'Integral CF';
  src: url('Demo_Fonts/Fontspring-DEMO-integralcf-extrabold.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  /* Letters, digits, basic punctuation only — @ ' — ¿ ¡ accents use system-ui fallback */
  unicode-range: U+0020-0026, U+0028-003F, U+0041-007A;
}

@font-face {
  font-family: 'Integral CF';
  src: url('Demo_Fonts/Fontspring-DEMO-integralcf-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  /* Letters, digits, basic punctuation only — @ ' — ¿ ¡ accents use system-ui fallback */
  unicode-range: U+0020-0026, U+0028-003F, U+0041-007A;
}

@font-face {
  font-family: 'Integral CF';
  src: url('Demo_Fonts/Fontspring-DEMO-integralcf-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Letters, digits, basic punctuation only — @ ' — ¿ ¡ accents use system-ui fallback */
  unicode-range: U+0020-0026, U+0028-003F, U+0041-007A;
}

@font-face {
  font-family: 'Digital-7';
  src: url('digital-7/digital-7.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Integral CF', system-ui, sans-serif;
  background: #0a0a0a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: none;
}

.page.video-fallback .bg-video {
  visibility: hidden;
}

.page.video-fallback .bg-fallback {
  display: block;
}

.page.video-fallback .frost-overlay,
.page.phone-bg .frost-overlay {
  background: rgba(8, 8, 8, 0.2);
  backdrop-filter: blur(3px) saturate(110%);
  -webkit-backdrop-filter: blur(3px) saturate(110%);
}

@media (max-width: 768px) {
  .bg-video {
    display: none;
  }

  .bg-fallback {
    display: block;
  }
}

.frost-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 8, 8, 0.3);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(92vw, 520px);
  padding: 1.5rem;
  gap: clamp(0.75rem, 2.5dvh, 1.5rem);
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(24px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  display: block;
  width: clamp(220px, 48vw, 360px);
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  outline: none;
  mix-blend-mode: screen;
  margin-bottom: clamp(0.25rem, 1dvh, 0.5rem);
}

.headline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand {
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.collection {
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.countdown {
  width: 100%;
}

.countdown-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.15rem, 1.5vw, 0.5rem);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.countdown-value {
  font-family: 'Digital-7', monospace;
  font-size: clamp(2rem, 10vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.25);
  animation: timerPulse 3s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.6),
      0 0 20px rgba(255, 255, 255, 0.25);
  }
  50% {
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.85),
      0 0 32px rgba(255, 255, 255, 0.4);
  }
}

.countdown-sep {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.38em;
  flex-shrink: 0;
  width: 0.5em;
  height: clamp(2rem, 10vw, 3.5rem);
  margin-top: 0;
}

.countdown-sep::before,
.countdown-sep::after {
  content: '';
  width: 0.22em;
  height: 0.22em;
  min-width: 5px;
  min-height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.55),
    0 0 14px rgba(255, 255, 255, 0.25);
  animation: timerPulse 3s ease-in-out infinite;
}

.countdown-label {
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.5rem, 1.8vw, 0.65rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.divider {
  width: min(280px, 70vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  margin: clamp(0.25rem, 1dvh, 0.5rem) 0;
}

.notify-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.notify-copy {
  font-family: 'Integral CF', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: clamp(0.65rem, 2vw, 0.78rem);
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 340px;
}

.notify-row {
  display: flex;
  width: 100%;
  max-width: 380px;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.notify-row:focus-within {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.notify-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  letter-spacing: 0.02em;
  outline: none;
}

.notify-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.notify-btn {
  padding: 0.75rem 1.25rem;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.6rem, 2vw, 0.7rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}

.notify-btn:hover {
  background: #fff;
}

.notify-btn:active {
  transform: scale(0.96);
}

.notify-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.notify-row.is-error {
  border-color: rgba(255, 120, 120, 0.75);
  background: rgba(255, 80, 80, 0.08);
}

.notify-error {
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.6rem, 1.8vw, 0.72rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 160, 160, 0.95);
  animation: errorShake 0.4s ease;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.notify-success {
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  animation: successPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.notify-success.is-special {
  letter-spacing: 0.08em;
  line-height: 1.55;
  max-width: 340px;
  color: #fff;
  font-family: 'Integral CF', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow:
    0 0 14px rgba(255, 180, 200, 0.45),
    0 0 28px rgba(255, 255, 255, 0.2);
  animation: successPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    martaGlow 2.5s ease-in-out 0.5s infinite;
}

@keyframes martaGlow {
  0%, 100% {
    text-shadow:
      0 0 14px rgba(255, 180, 200, 0.45),
      0 0 28px rgba(255, 255, 255, 0.2);
  }
  50% {
    text-shadow:
      0 0 20px rgba(255, 190, 210, 0.65),
      0 0 36px rgba(255, 255, 255, 0.35);
  }
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.notify-form.is-success .notify-row,
.notify-form.is-success .notify-copy,
.notify-form.is-success .notify-error {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  transition: opacity 0.3s ease;
}

.brand-mark {
  position: fixed;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  opacity: 0;
  animation: brandMarkIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes brandMarkIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.brand-mark-line {
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.48rem, 1.6vw, 0.6rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1;
}

.brand-mark-cities {
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.52rem, 1.8vw, 0.68rem);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.brand-mark-divider {
  width: clamp(36px, 10vw, 52px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(255, 255, 255, 0.5) 80%,
    transparent
  );
}

.lang-switch {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 10;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.locale-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.locale-modal[hidden] {
  display: none;
}

.locale-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFadeIn 0.35s ease forwards;
}

.locale-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 380px);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  text-align: center;
  animation: modalSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.locale-modal-kicker {
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.85rem;
}

.locale-modal-title {
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.85rem;
}

.locale-modal-copy {
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.35rem;
}

.locale-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.locale-modal-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.locale-modal-btn:active {
  transform: scale(0.98);
}

.locale-modal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.62rem, 2vw, 0.72rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.locale-modal-btn-primary:hover {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.locale-flag {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.locale-modal-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Integral CF', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.58rem, 1.8vw, 0.68rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.locale-modal-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .logo {
    width: clamp(240px, 58vw, 340px);
  }

  .notify-input,
  .notify-input::placeholder {
    font-size: 16px;
  }
}

@media (max-height: 620px) {
  .content {
    gap: 0.5rem;
  }

  .logo {
    width: clamp(200px, 44vw, 280px);
  }

  .countdown-value {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }

  .countdown-sep {
    height: clamp(1.5rem, 8vw, 2.25rem);
  }
}

@media (max-width: 420px) {
  .logo {
    width: clamp(250px, 62vw, 340px);
  }

  .content {
    width: min(94vw, 520px);
    padding: 1rem 0.85rem;
    gap: clamp(0.55rem, 2dvh, 1rem);
  }

  .brand {
    letter-spacing: 0.1em;
    font-size: clamp(1.5rem, 7.5vw, 2.25rem);
  }

  .collection {
    letter-spacing: 0.18em;
    font-size: clamp(0.65rem, 2.8vw, 0.85rem);
  }

  .countdown-row {
    gap: clamp(0.1rem, 1vw, 0.35rem);
  }

  .countdown-label {
    letter-spacing: 0.12em;
    font-size: clamp(0.45rem, 1.6vw, 0.58rem);
  }

  .notify-copy {
    font-size: clamp(0.6rem, 2.8vw, 0.72rem);
    letter-spacing: 0.03em;
    max-width: 100%;
  }

  .locale-modal {
    padding: 1rem;
    align-items: flex-end;
  }

  .locale-modal-card {
    width: 100%;
    max-width: none;
    padding: 1.35rem 1.1rem 1.1rem;
    border-radius: 0;
    border-bottom: none;
  }

  .locale-modal-kicker {
    letter-spacing: 0.18em;
    font-size: 0.52rem;
  }

  .locale-modal-title {
    letter-spacing: 0.06em;
    font-size: clamp(0.95rem, 4.5vw, 1.2rem);
    line-height: 1.25;
  }

  .locale-modal-copy {
    font-size: clamp(0.68rem, 3vw, 0.78rem);
    letter-spacing: 0.02em;
  }

  .locale-modal-btn-primary,
  .locale-modal-btn-ghost {
    letter-spacing: 0.1em;
  }

  .notify-row {
    flex-direction: column;
    border: none;
    background: transparent;
    gap: 0.5rem;
  }

  .notify-input {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    width: 100%;
  }

  .notify-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.35);
  }
}

@media (max-width: 420px) and (max-height: 700px) {
  .logo {
    width: clamp(210px, 50vw, 280px);
  }

  .countdown-value {
    font-size: clamp(1.35rem, 7.5vw, 2rem);
  }

  .countdown-sep {
    height: clamp(1.35rem, 7.5vw, 2rem);
  }
}
