/* ── Landing gateway page – all styles ── */

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

body {
  font-family: var(--font-main);
  background: #ffffff;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Decorative SVG icons ── */
.deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

/* Left side — document/globe icon (top-left) */
.deco--book {
  width: 240px;
  left: -20px;
  top: 180px;
}

/* Left side — map pins icon (bottom-left) */
.deco--pins {
  width: 190px;
  left: 30px;
  bottom: 50px;
}

/* Right side — university building (top-right) */
.deco--building {
  width: 270px;
  right: -20px;
  top: 160px;
}

@media (max-width: 1100px) {
  .deco--book {
    transform: scale(0.75);
    transform-origin: top left;
  }
  .deco--pins {
    transform: scale(0.75);
    transform-origin: bottom left;
  }
  .deco--building {
    transform: scale(0.75);
    transform-origin: top right;
  }
}

/* ── Tablet: tighten spacing ── */
@media (max-width: 960px) {
  .cards {
    gap: 20px;
    max-width: 720px;
  }
  .card {
    padding: 22px 22px 22px;
  }
}

@media (max-width: 860px) {
  .deco {
    display: none;
  }
  .cards {
    max-width: 640px;
  }
  .card {
    padding: 20px 20px 20px;
  }
}

/* ── Layout stack ── */
.page-header,
.page-main,
.page-footer {
  position: relative;
  z-index: 1;
}

/* ── Header / Logo ── */
.page-header {
  text-align: center;
  padding: 18px 24px 16px;
  background: linear-gradient(140deg, var(--uni-blue) 0%, #4a0082 100%);
  position: relative;
  z-index: 1000;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 70px;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(40, 0, 151, 0.55) 0%,
    rgba(40, 0, 151, 0.42) 15%,
    rgba(40, 0, 151, 0.32) 35%,
    rgba(40, 0, 151, 0.24) 55%,
    rgba(40, 0, 151, 0.12) 75%,
    rgba(40, 0, 151, 0.03) 90%,
    rgba(40, 0, 151, 0) 100%
  );
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo__svg {
  display: block;
  height: 76px;
  width: auto;
}

/* ── Main ── */
.page-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 16px;
}

.welcome-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #0d0028;
  text-align: center;
  margin-bottom: 6px;
}

.welcome-sub {
  font-size: 1rem;
  color: #6b6a80;
  text-align: center;
  margin-bottom: 28px;
}

/* ── Cards row ── */
.cards {
  display: flex;
  gap: 28px;
  max-width: 880px;
  width: 100%;
  justify-content: center;
}

/* ── Role card ── */
.card {
  flex: 1;
  max-width: 410px;
  border-radius: var(--radius-card);
  padding: 28px 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Student */
.card--student {
  background: var(--student-bg);
}

/* Exhibitor */
.card--exhibitor {
  background: var(--exhibitor-bg);
}

/* ── Icon circle ── */
.card__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.card--student .card__icon {
  background: var(--student-bg-deep);
  color: var(--student-accent);
}
.card--exhibitor .card__icon {
  background: var(--exhibitor-bg-deep);
  color: var(--exhibitor-accent);
}

/* ── Card text ── */
.card__title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.card--student .card__title {
  color: var(--student-accent);
}
.card--exhibitor .card__title {
  color: var(--exhibitor-accent);
}

.card__desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a4870;
  margin-bottom: auto;
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* ── SVG scene (bottom decoration) ── */
.card__scene {
  position: absolute;
  bottom: 58px;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
  opacity: 1;
}

/* ── Button ── */
.card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--uni-white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    opacity var(--transition),
    transform var(--transition);
  position: relative;
  z-index: 2;
}

.card__btn:hover {
  opacity: 0.88;
  transform: scale(0.985);
}

.card--student .card__btn {
  background: var(--student-btn);
}
.card--exhibitor .card__btn {
  background: var(--exhibitor-btn);
}

/* ── Footer ── */
.page-footer {
  background: var(--uni-blue);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 12px 24px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ── Mobile: single-column + allow scrolling ── */
@media (max-width: 700px) {
  body {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-main {
    justify-content: flex-start;
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .welcome-sub {
    margin-bottom: 20px;
  }

  .cards {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-width: 480px;
  }

  .card {
    max-width: 100%;
    min-height: unset;
    padding: 22px 24px 24px;
  }

  .card__scene {
    bottom: 60px;
  }

  .card__btn {
    padding: 16px 24px;
  }
}

/* ── Compact phone ── */
@media (max-width: 480px) {
  .page-header {
    padding: 20px 16px 8px;
  }
  .logo__svg {
    height: 64px;
  }

  .welcome-title {
    font-size: 1.3rem;
  }
  .welcome-sub {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .page-main {
    padding: 12px 16px 20px;
  }
  .cards {
    gap: 14px;
  }
  .card {
    padding: 18px 16px 20px;
  }

  .card__icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  .card__title {
    font-size: 1.15rem;
  }
  .card__desc {
    font-size: 0.88rem;
    padding-bottom: 14px;
  }
  .card__btn {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .page-footer {
    padding: 10px 16px;
    font-size: 0.78rem;
  }
}

/* ── iOS safe areas (notch/home bar) ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .page-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
