/* ──────────────────────────────────────────────────────────────
   MEDIA/MARK — Homepage styles
   Palette:
     Primary bg   : #37237B
     Secondary    : #585DA9
     Text         : #E7E2BE
     White text   : #ffffff
     Accent/Button: #E7E2BE
   ────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #37237B;
    background: linear-gradient(135deg, #392395 0%, #1a0a5c 100%);
  color: #E7E2BE;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── UTILITIES ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── BUTTONS ───────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--primary {
  background-color: #E7E2BE;
  color: #37237B;
  border-color: #E7E2BE;
}

.btn--outline {
  background-color: transparent;
  color: #E7E2BE;
  border-color: #E7E2BE;
}

.btn--outline:hover {
  background-color: #E7E2BE;
  color: #37237B;
}

.btn--ghost {
  background-color: transparent;
  color: #E7E2BE;
  border-color: rgba(231, 226, 190, 0.4);
}

.btn--ghost:hover {
  border-color: #E7E2BE;
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ── JOIN PROJECT BUTTON ───────────────────────────────────── */

/*
  10 s cycle: ripple fires in the first ~9 % (~0.9 s),
  then stays invisible for the remaining ~9.1 s, then repeats.
*/
@keyframes join-ripple {
  0%   { box-shadow: 0 0 0 0   rgba(231, 226, 190, 0.55); }
  9%   { box-shadow: 0 0 0 14px rgba(231, 226, 190, 0); }
  100% { box-shadow: 0 0 0 14px rgba(231, 226, 190, 0); }
}

.join-project-btn {
  background: linear-gradient(135deg, #585DA9 0%, #392395 100%);
  color: #E7E2BE;
  border-color: transparent;

  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-left: 0px;
  border-right: 0px;

  animation: join-ripple 5s ease-out 1s infinite;
}

.join-project-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(57, 35, 149, 0.4);
  color: #ffffff;
  border-color: rgba(231, 226, 190, 0.25);
}

/* ── NAVBAR ────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(55, 35, 123, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(88, 93, 169, 0.35);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.navbar__logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-mark {
  color: #E7E2BE;
}

.logo-slash {
  color: #585DA9;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: rgba(231, 226, 190, 0.75);
}

.navbar__links a:hover {
  color: #E7E2BE;
}

/* ── HERO ──────────────────────────────────────────────────── */

.hero {
  padding-block: 6rem 4rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.badge {
  display: inline-block;
  background-color: rgba(88, 93, 169, 0.35);
  color: #E7E2BE;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 93, 169, 0.5);
  width: fit-content;
}

.hero__text h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.hero__text p {
  font-size: 1.05rem;
  color: rgba(231, 226, 190, 0.85);
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* phone mockup */

.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 220px;
  height: 380px;
  background-color: #2a1a60;
  border-radius: 2.5rem;
  border: 3px solid rgba(88, 93, 169, 0.6);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-mockup::before {
  content: '';
  width: 70px;
  height: 10px;
  background-color: rgba(88, 93, 169, 0.5);
  border-radius: 999px;
  position: absolute;
  top: 1.25rem;
}

.phone-mockup__screen {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
}

.waveform span {
  display: block;
  width: 5px;
  background-color: #E7E2BE;
  border-radius: 999px;
  animation: wave 1.2s ease-in-out infinite;
}

.waveform span:nth-child(1)  { height: 14px; animation-delay: 0.0s; }
.waveform span:nth-child(2)  { height: 28px; animation-delay: 0.1s; }
.waveform span:nth-child(3)  { height: 42px; animation-delay: 0.2s; }
.waveform span:nth-child(4)  { height: 32px; animation-delay: 0.3s; }
.waveform span:nth-child(5)  { height: 20px; animation-delay: 0.4s; }
.waveform span:nth-child(6)  { height: 34px; animation-delay: 0.3s; }
.waveform span:nth-child(7)  { height: 44px; animation-delay: 0.2s; }
.waveform span:nth-child(8)  { height: 30px; animation-delay: 0.1s; }
.waveform span:nth-child(9)  { height: 18px; animation-delay: 0.0s; }
.waveform span:nth-child(10) { height: 24px; animation-delay: 0.15s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); opacity: 0.9; }
  50%       { transform: scaleY(0.45); opacity: 0.5; }
}

.phone-label {
  font-size: 0.7rem;
  color: rgba(231, 226, 190, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phone-station {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* ── SECTIONS ──────────────────────────────────────────────── */

.section {
  padding-block: 5rem;
}

.section--alt {
  background-color: #2e1c6e;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section__subtitle {
  text-align: center;
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: 3rem;
  color: rgba(231, 226, 190, 0.75);
  font-size: 1rem;
}

/* ── STEPS ─────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step {
  background-color: rgba(88, 93, 169, 0.15);
  border: 1px solid rgba(88, 93, 169, 0.3);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s, transform 0.2s;
}

.step:hover {
  border-color: rgba(88, 93, 169, 0.7);
  transform: translateY(-3px);
}

.step__icon {
  font-size: 2rem;
  line-height: 1;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.step p {
  font-size: 0.9rem;
  color: rgba(231, 226, 190, 0.75);
}

/* ── FEATURE CARDS ─────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: rgba(88, 93, 169, 0.12);
  border: 1px solid rgba(88, 93, 169, 0.28);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card--accent {
  background-color: rgba(88, 93, 169, 0.3);
  border-color: rgba(88, 93, 169, 0.6);
}

.feature-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-card p {
  font-size: 0.9rem;
  color: rgba(231, 226, 190, 0.75);
}

/* ── TIMELINE ──────────────────────────────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin-inline: auto;
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: rgba(88, 93, 169, 0.45);
}

.timeline__item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #E7E2BE;
  border: 2px solid #37237B;
  box-shadow: 0 0 0 3px rgba(88, 93, 169, 0.4);
}

.timeline__year {
  font-size: 1.5rem;
  font-weight: 800;
  color: #585DA9;
  min-width: 3rem;
  line-height: 1.3;
}

.timeline__content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.timeline__content p {
  font-size: 0.9rem;
  color: rgba(231, 226, 190, 0.75);
}

/* ── ABOUT ─────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
}

.about__text p {
  font-size: 0.95rem;
  color: rgba(231, 226, 190, 0.8);
}

.about__text strong {
  color: #E7E2BE;
}

.about__card {
  background-color: #2e1c6e;
  border: 1px solid rgba(88, 93, 169, 0.4);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #E7E2BE;
  line-height: 1.7;
  border-left: 3px solid #585DA9;
  padding-left: 1rem;
}

.about__stats {
  display: flex;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat__number {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat__label {
  font-size: 0.8rem;
  color: rgba(231, 226, 190, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── PARTNERS ─────────────────────────────────────────────── */

.partners-section {
  padding-block: 3.5rem;
  background-color: #2e1c6e;
  border-top: 1px solid rgba(88, 93, 169, 0.25);
}

.partners__label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 226, 190, 0.4);
  margin-bottom: 2.5rem;
}

.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-divider {
  width: 1px;
  height: 48px;
  background-color: rgba(88, 93, 169, 0.35);
  flex-shrink: 0;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.65;
  transition: opacity 0.2s, transform 0.2s;
}

.partner-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.partner-logo img {
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.partner-logo--stemmark img {
  width: auto;
  max-width: 300px;
}

.partner-logo--admeter img {
  width: auto;
  max-width: 140px;
}

.partner-logo--simar img {
  width: auto;
  max-width: 120px;
}

.partner-role {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(231, 226, 190, 0.45);
  font-weight: 600;
}


.partner-logo--stemmark .partner-role {
    color: white;
    font-weight: 700;
}

@media (max-width: 600px) {
  .partner-divider { display: none; }
  .partners { gap: 2rem; }
}


/* ── LOGIN MODAL ───────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 8, 45, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background-color: #2e1c6e;
  border: 1px solid rgba(88, 93, 169, 0.45);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
  transform: translateY(16px);
  transition: transform 0.25s;
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: rgba(231, 226, 190, 0.5);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #E7E2BE;
}

.modal-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: rgba(231, 226, 190, 0.6);
  margin-bottom: 1.75rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(231, 226, 190, 0.85);
}

.form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  background-color: rgba(88, 93, 169, 0.18);
  border: 1px solid rgba(88, 93, 169, 0.45);
  border-radius: 0.5rem;
  color: #E7E2BE;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder {
  color: rgba(231, 226, 190, 0.35);
}

.form-group input:focus {
  border-color: #E7E2BE;
}

.form-forgot {
  font-size: 0.8rem;
  color: rgba(231, 226, 190, 0.55);
  align-self: flex-end;
  margin-top: -0.25rem;
  transition: color 0.2s;
}

.form-forgot:hover {
  color: #E7E2BE;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    align-items: center;
  }

  .hero__visual {
    order: -1;
  }

  .phone-mockup {
    width: 160px;
    height: 280px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .navbar__links {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}


.custom-alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}