/* =====================================================
   ORLEN Landing Page — style.css
   ===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #120b18;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =====================================================
   KEYFRAMES
   ===================================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.18;
    transform: scale(1);
  }

  50% {
    opacity: 0.30;
    transform: scale(1.08);
  }
}

@keyframes buttonPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 30, 30, 0.5);
  }

  50% {
    box-shadow: 0 0 22px 8px rgba(220, 30, 30, 0.3);
  }
}

@keyframes numberFlip {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  40% {
    opacity: 0;
    transform: translateY(-12px);
  }

  60% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =====================================================
   TOP RED BAR
   ===================================================== */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 42px;
  background: linear-gradient(90deg, #FE0003 0%, #e8180f 40%, #e8180f 60%, #FE0003 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInDown 0.6s ease both;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.top-bar__text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 42px;
  /* compensate fixed top bar */
  background: linear-gradient(160deg, #120b18 0%, #1a1228 35%, #25233c 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---- Decorative background glows ---- */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  animation: glowPulse 6s ease-in-out infinite;
}

.glow--left {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(180, 10, 10, 0.35) 0%, transparent 70%);
  top: 10%;
  left: -80px;
  animation-delay: 0s;
}

.glow--right {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(80, 60, 160, 0.28) 0%, transparent 70%);
  top: 5%;
  right: -60px;
  animation-delay: 2s;
}

.glow--center {
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(100, 30, 30, 0.18) 0%, transparent 70%);
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

/* =====================================================
   TOP ROW (logo + queue card)
   ===================================================== */

.hero__top-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 60px 0;
  animation: fadeInDown 0.7s ease 0.15s both;
}

/* ---- ORLEN Logo ---- */
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.logo-block__icon {
  width: 72px;
  height: 72px;
}

.logo-block__icon svg {
  width: 100%;
  height: 100%;
}

.logo-block__name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-top: 2px;
}

.logo-block__line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin-top: 8px;
}

/* ---- Queue Card ---- */
.queue-card {
  background: rgba(20, 14, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 30px 20px;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.queue-card__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  margin-bottom: 8px;
  white-space: nowrap;
}

.queue-card__number {
  font-size: 52px;
  font-weight: 900;
  color: #e8180f;
  line-height: 1;
  letter-spacing: -1px;
  /* animation class added via JS */
}

.queue-card__number.animating {
  animation: numberFlip 0.45s ease both;
}

/* =====================================================
   CENTER CONTENT
   ===================================================== */

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 60px 80px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Heading ---- */
.hero__heading {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

/* ---- Body text ---- */
.hero__text {
  font-size: 17px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin-bottom: 44px;
}

.highlight {
  color: #e8180f;
  font-weight: 700;
}

.highlight--bold {
  color: #e8180f;
  font-weight: 700;
}

/* ---- CTA Button ---- */
.cta-button {
  display: inline-block;
  width: 360px;
  max-width: 100%;
  height: 62px;
  background: linear-gradient(90deg, #FE0003 0%, #e82010 50%, #FE0003 100%);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: buttonPulse 3s ease-in-out infinite;
  font-family: inherit;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px 6px rgba(220, 30, 20, 0.55);
  animation: none;
}

.cta-button:active {
  transform: scale(0.98);
}

/* ---- slide-up animation utility ---- */
.slide-up {
  animation: slideUp 0.7s ease both;
}

.delay-1 {
  animation-delay: 0.25s;
}

.delay-2 {
  animation-delay: 0.5s;
}

/* =====================================================
   TIMER WIDGET
   ===================================================== */

.timer-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  background: rgba(18, 11, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 22px 16px;
  text-align: center;
  min-width: 150px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease 0.8s both;
}

.timer-widget__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.timer-widget__display {
  font-size: 28px;
  font-weight: 800;
  color: #e8180f;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* =====================================================
   MODAL
   ===================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn 0.25s ease both;
}

/* hidden state — toggled via JS */
.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: #ffffff;
  border-radius: 15px;
  padding: 44px 48px 48px;
  width: 100%;
  max-width: 460px;
  color: #1a1a2e;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modal__close:hover {
  color: #333;
  background: #f0f0f0;
}

.modal__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #12101e;
}

.modal__subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.5;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group__label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group__input {
  height: 50px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.form-group__input:focus {
  border-color: #e8180f;
  box-shadow: 0 0 0 3px rgba(232, 24, 15, 0.12);
  background: #fff;
}

.form-group__input.error {
  border-color: #e8180f;
}

.modal__submit {
  height: 54px;
  background: linear-gradient(90deg, #FE0003 0%, #e82010 50%, #FE0003 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.modal__submit:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(200, 20, 10, 0.4);
}

/* =====================================================
   RESPONSIVE — TABLET (768px)
   ===================================================== */

@media (max-width: 900px) {
  .hero__top-row {
    padding: 24px 32px 0;
  }

  .hero__content {
    padding: 36px 32px 60px;
  }

  .hero__heading {
    font-size: 30px;
  }

  .hero__text {
    font-size: 16px;
  }

  .cta-button {
    width: 100%;
    max-width: 360px;
  }

  .queue-card {
    min-width: 160px;
    padding: 14px 20px 16px;
  }

  .queue-card__number {
    font-size: 42px;
  }

  .logo-block__icon {
    width: 56px;
    height: 56px;
  }

  .logo-block__name {
    font-size: 18px;
  }
}

/* =====================================================
   RESPONSIVE — MOBILE (480px and below)
   ===================================================== */

@media (max-width: 540px) {
  .top-bar {
    height: 38px;
  }

  .top-bar__text {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .top-bar__icon {
    width: 18px;
    height: 18px;
  }

  .hero__top-row {
    padding: 16px 18px 0;
    align-items: center;
  }

  .logo-block__icon {
    width: 46px;
    height: 46px;
  }

  .logo-block__name {
    font-size: 15px;
  }

  .queue-card {
    min-width: 130px;
    padding: 10px 14px 12px;
    border-radius: 10px;
  }

  .queue-card__label {
    font-size: 11px;
  }

  .queue-card__number {
    font-size: 34px;
  }

  .hero__content {
    padding: 28px 20px 50px;
  }

  .hero__heading {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
  }



  .cta-button {
    width: 100%;
    height: 54px;
    font-size: 14px;
  }

  .timer-widget {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px 12px;
    min-width: 130px;
  }

  .timer-widget__display {
    font-size: 22px;
  }

  .modal {
    padding: 32px 24px 36px;
  }

  .modal__title {
    font-size: 20px;
  }

  .glow--left {
    width: 220px;
    height: 220px;
  }

  .glow--right {
    width: 180px;
    height: 180px;
  }
}

/* =====================================================
   RESPONSIVE — VERY SMALL MOBILE (320px)
   ===================================================== */

@media (max-width: 360px) {
  .hero__heading {
    font-size: 21px;
  }

  .top-bar__text {
    font-size: 9px;
  }

  .queue-card__number {
    font-size: 28px;
  }

  .queue-card {
    min-width: 110px;
  }
}

/* =====================================================
   DESKTOP LARGE (1920px+)
   ===================================================== */

@media (min-width: 1600px) {
  .hero__content {
    max-width: 1000px;
  }

  .hero__heading {
    font-size: 44px;
  }

  .hero__text {
    font-size: 18px;
    max-width: 740px;
  }

  .cta-button {
    width: 400px;
    height: 66px;
    font-size: 18px;
  }

  .hero__top-row {
    padding: 40px 80px 0;
  }
}