/* XTease Try Me - Landing Page Styles */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,700;0,900;1,900&display=swap');

/* CSS Variables from Figma */
:root {
  --color-white: #ffffff;
  --color-accent: #c2ff90;
  --color-background: #000000;
  --color-dark: #010202;
  --color-pink: #e21f66;
  --color-gray: #d9d9d9;
  --color-dark-gray: #131313;
  --space-500: 40px;
  --space-750: 60px;
  --space-1600: 128px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 17px 0 44px;
}

/* Header */
.header {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  width: 129px;
  height: 30px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50px;
  background: transparent;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-header:hover {
  background: var(--color-accent);
  color: var(--color-background);
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.hero-title {
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-title .pink {
  color: var(--color-pink);
}

.hero-subtitle {
  max-width: 436px;
  font-size: 16px;
  font-weight: 500;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  aspect-ratio: 364 / 485;
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-gray);
}

.video-container video,
.video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  max-width: 420px;
}

.btn-action {
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  padding: 8px 18px;
  background: transparent;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-action:hover {
  background: var(--color-accent);
  color: var(--color-background);
  transform: scale(1.05);
}

.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Actions Counter */
.actions-counter {
  position: relative;
  width: 125px;
  height: 29.87px;
}

.counter-text {
  font-size: 18px;
  font-weight: 500;
}

.counter-number {
  color: var(--color-accent);
}

.counter-number.zero {
  color: var(--color-pink);
}

.counter-bars {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 90.39%;
  display: flex;
  gap: 0;
}

.counter-bar {
  flex: 1;
  background: rgba(194, 255, 144, 0.3);
}

.counter-bar:first-child {
  border-radius: 10px 0 0 10px;
}

.counter-bar:last-child {
  border-radius: 0 10px 10px 0;
}

.counter-bar.active {
  background: var(--color-accent);
}

.counter-bar.zero {
  background: var(--color-pink);
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-background) 16.526%, var(--color-pink) 110.29%);
  opacity: 0.3;
  z-index: 999;
  display: none;
}

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

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-dark-gray);
  border-radius: 20px;
  padding: 80px 20px;
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: none;
  width: 90%;
  max-width: 382px;
}

.popup.active {
  display: block;
}

.popup::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/popup-bg.png');
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;
  opacity: 0.5;
  border-radius: 20px;
  z-index: -1;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  max-width: 342px;
}

.popup-title {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.popup-text {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  max-width: 344px;
}

.btn-popup {
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  padding: 8px 18px;
  color: var(--color-background);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-popup:hover {
  background: transparent;
  color: var(--color-accent);
}

/* Footer */
.footer {
  border-top: 2px solid var(--color-white);
  padding-top: 50px;
  width: 100%;
  max-width: 383px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  width: 197px;
  height: 46px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.footer-text {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

.footer-text a {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  gap: 7px;
  align-items: center;
}

.rta-logo {
  width: 30.043px;
  height: 12.02px;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .container {
    padding: var(--space-750) var(--space-1600);
    gap: var(--space-500);
  }

  .header {
    max-width: 100%;
    padding: 0;
  }

  .logo {
    width: 197px;
    height: 46px;
  }

  .btn-header {
    font-size: 18px;
    padding: 6px 13.5px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-title br {
    display: none;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .video-container {
    width: 100%;
    max-width: 600px;
    height: 100%;
    aspect-ratio: 593 / 327;
    border-radius: 20px;
  }

  .action-buttons {
    max-width: 600px;
  }

  .popup {
    max-width: 654px;
    padding: 100px 50px;
  }

  .popup::before {
    background-size: 125%;
  }

  .popup-content {
    max-width: 554px;
  }

  .popup-title {
    font-size: 32px;
  }

  .popup-text {
    font-size: 16px;
  }

  .footer {
    max-width: 1222px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .footer-logo {
    width: 244px;
    height: 57px;
  }

  .footer-content {
    align-items: flex-end;
  }

  .footer-text {
    text-align: right;
  }
}

