:root {
  --primary: #2a5bd7;
  --dark: #1f1f1f;
  --light: #f5f6f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  position: relative;
  z-index: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global */
a {
  color: var(--primary);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-weight: 800;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  background: linear-gradient(to right, #e5f6fa, #f5f5f5);
  flex-wrap: wrap;
}

.hero__content {
  max-width: 600px;
}

.hero__subtitle {
  color: var(--primary);
  margin-top: 10px;
}

.hero__desc {
  margin-top: 20px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.hero__cta {
  background-color: #248097;
  padding: 8px;
  border-radius: 15px;
  color: white;
  box-shadow: 0 8px 20px rgba(36, 128, 151, 0.3);
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero__cta:hover {
  background-color: #1c6c7d;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(36, 128, 151, 0.4);
}


.hero__image img {
  max-width: 350px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero__image {
    margin-top: 30px;
  }
}

/* Journey */
.journey {
  padding: 80px 10%;
  background: #fff;
}

.journey__title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 60px;
  color: var(--primary);
}

.journey__steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.journey__step {
  display: flex;
  gap: 40px;
  align-items: center;
}

.journey__step.reverse {
  flex-direction: row-reverse;
}

.journey__step img {
  width: 320px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.journey__step .text {
  max-width: 600px;
}

.journey__step .text h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 12px;
}

.journey__step .text p {
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 900px) {

  .journey__step,
  .journey__step.reverse {
    flex-direction: column !important;
    text-align: center;
  }

  .journey__step img {
    width: 100%;
  }
}

/* Waitlist */
.waitlist {
  background: #f0f4ff;
  padding: 80px 10%;
  text-align: center;
}

.waitlist h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.waitlist p {
  font-size: 17px;
  color: #333;
  margin-bottom: 30px;
}

.waitlist__form {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.waitlist__form input {
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  min-width: 240px;
}

.waitlist__form button {
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.waitlist__form button:hover {
  background: #1e4db8;
}

.waitlist__message {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* Footer */
.footer {
  background: #1e1e1e;
  color: white;
  padding: 40px 10%;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__content p {
  margin: 0;
  font-size: 15px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: #ccc;
  font-size: 15px;
  text-decoration: none;
}

.footer__links a:hover {
  color: white;
  text-decoration: underline;
}

.footer__stores {
  display: flex;
  gap: 16px;
}

.footer__stores img {
  height: 40px;
  transition: transform 0.3s ease;
}

.footer__stores img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .footer__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links {
    flex-direction: column;
    gap: 8px;
  }

  .footer__stores {
    justify-content: flex-start;
  }
}

.journey__step {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.journey__step.visible {
  opacity: 1;
  transform: translateY(0);
}

.journey__step img {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.footer__stores img:hover {
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


body.fade-in {
  opacity: 0;
  animation: fadeInBody 1s ease forwards;
}

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}


/* === Legal Pages (Uslovi korišćenja & Politika privatnosti) === */

main {
  max-width: 900px;
  margin: auto;
  padding: 80px 10% 60px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

main h1 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.4;
}

main h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 10px;
  color: var(--dark);
  border-bottom: 2px solid #e2e2e2;
  padding-bottom: 6px;
}

main p {
  margin-bottom: 1rem;
  font-size: 16px;
  color: var(--dark);
}

main ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
}

main ul li {
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--dark);
}

@media (max-width: 600px) {
  main {
    padding: 40px 6% 40px;
  }

  main h1 {
    font-size: 24px;
  }

  main h2 {
    font-size: 18px;
  }

  main p,
  main ul li {
    font-size: 15px;
  }
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer__social a {
  color: #ccc;
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer__social a:hover {
  color: white;
}

/* username modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
}

.modal-overlay {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;

  opacity: 1;
  pointer-events: all;
}


.modal-box {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.modal-box {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
  opacity: 1;
}

.modal-box h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 12px;
}

.modal-box p {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
}

.modal-box input {
  width: 100%;
  padding: 10px 15px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
}

.modal-actions button {
  padding: 10px 20px;
  margin: 0 8px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

.modal-actions button:first-child {
  background-color: #248097;
  color: white;
}

.modal-actions button:last-child {
  background-color: #f0f0f0;
  color: #333;
}