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

body {
  position: relative;
  min-height: 100vh;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: #f0f4f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #1b2e6b;
  overflow-x: hidden;
}

/* ===== Animated Background Orbs ===== */
.bg-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  will-change: transform;
}

.bg-orbs .orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0fa958, transparent 70%);
  top: -10%;
  left: -5%;
  animation: float1 14s ease-in-out infinite;
}

.bg-orbs .orb:nth-child(2) {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #2e7bbf, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: float2 16s ease-in-out infinite;
}

.bg-orbs .orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #0fa958, transparent 70%);
  top: 50%;
  left: 60%;
  animation: float3 18s ease-in-out infinite;
}

.bg-orbs .orb:nth-child(4) {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #2e7bbf, transparent 70%);
  top: 30%;
  left: 20%;
  animation: float4 20s ease-in-out infinite;
}

@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(60px, 40px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 80px) scale(0.95);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-50px, -60px) scale(1.05);
  }
  66% {
    transform: translate(40px, -30px) scale(0.9);
  }
}

@keyframes float3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-80px, -40px) scale(1.15);
  }
}

@keyframes float4 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 60px) scale(1.1);
  }
}

/* ===== Main Container ===== */
.container {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== Card (shared style) ===== */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(27, 46, 107, 0.06);
}

/* ===== Logo ===== */
.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0;
  margin-bottom: 1rem;
}

.logo-wrap img {
  width: 200px;
  height: auto;
  display: block;
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 169, 88, 0.08);
  border: 1px solid rgba(15, 169, 88, 0.25);
  color: #0fa958;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.badge .dot {
  width: 7px;
  height: 7px;
  background: #0fa958;
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* ===== Typography ===== */
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1b2e6b;
}

.subline {
  font-size: 1.1rem;
  color: #5a6a8a;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ===== Divider ===== */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #2e7bbf, #0fa958);
  border-radius: 2px;
  margin: 0 auto 2rem;
}

/* ===== Teaser Text ===== */
.teaser {
  font-size: 0.95rem;
  color: #6b7a99;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ===== Email Signup ===== */
.signup-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.signup-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d9e6;
  border-radius: 12px;
  background: #f5f7fb;
  color: #1b2e6b;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.signup-form input::placeholder {
  color: #94a3b8;
}

.signup-form input:focus {
  border-color: #0fa958;
}

.signup-form button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: #0fa958;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.signup-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.signup-form button:active {
  transform: translateY(0);
}

.signup-success {
  color: #0fa958;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: none;
}

.signup-success.show {
  display: block;
}

.signup-error {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.signup-error.show {
  display: block;
}

/* ===== Feature Preview Cards ===== */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Blue cards */
.feature-card:nth-child(1) {
  background: linear-gradient(145deg, #1b2e6b, #2e7bbf);
  color: #fff;
}

/* Green card */
.feature-card:nth-child(2) {
  background: linear-gradient(145deg, #0a7a3e, #0fa958);
  color: #fff;
}

/* White card with green border */
.feature-card:nth-child(3) {
  background: #fff;
  border: 2px solid #0fa958;
  color: #1b2e6b;
}

/* White card with blue border */
.feature-card:nth-child(4) {
  background: #fff;
  border: 2px solid #2e7bbf;
  color: #1b2e6b;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card:nth-child(1) .icon {
  background: rgba(255, 255, 255, 0.15);
}
.feature-card:nth-child(2) .icon {
  background: rgba(255, 255, 255, 0.15);
}
.feature-card:nth-child(3) .icon {
  background: rgba(15, 169, 88, 0.1);
}
.feature-card:nth-child(4) .icon {
  background: rgba(46, 123, 191, 0.1);
}

.feature-card .icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card:nth-child(1) .icon svg {
  stroke: #fff;
}
.feature-card:nth-child(2) .icon svg {
  stroke: #fff;
}
.feature-card:nth-child(3) .icon svg {
  stroke: #0fa958;
}
.feature-card:nth-child(4) .icon svg {
  stroke: #2e7bbf;
}

.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature-card:nth-child(1) h3,
.feature-card:nth-child(2) h3 {
  color: #fff;
}
.feature-card:nth-child(3) h3,
.feature-card:nth-child(4) h3 {
  color: #1b2e6b;
}

.feature-card p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.feature-card:nth-child(1) p,
.feature-card:nth-child(2) p {
  color: rgba(255, 255, 255, 0.7);
}
.feature-card:nth-child(3) p,
.feature-card:nth-child(4) p {
  color: #6b7a99;
}

/* ===== Event Showcase ===== */
.event-showcase {
  text-align: center;
}

.event-title {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  color: #1b2e6b;
}

.event-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #6b7a99;
}

.event-meta-item svg {
  color: #0fa958;
  flex-shrink: 0;
}

.event-flyer {
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.event-flyer img {
  width: 100%;
  height: auto;
  display: block;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.event-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}

@media (hover: hover) {
  .event-gallery img {
    transition:
      transform 0.3s,
      border-color 0.3s;
  }
  .event-gallery img:hover {
    transform: scale(1.03);
    border-color: #0fa958;
  }
}

.event-flyer img {
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    color 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
  color: #0fa958;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0fa958;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}

@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 2rem;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: calc(50% - 56px);
  }

  .lightbox-next {
    right: calc(50% - 56px);
  }

  .lightbox-img {
    max-width: 95vw;
    max-height: 70vh;
  }
}

/* ===== Contact ===== */
.contact {
  background: rgba(15, 169, 88, 0.06);
  border: 1px solid rgba(15, 169, 88, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #6b7a99;
}

.contact a {
  color: #0fa958;
  text-decoration: none;
  font-weight: 600;
}

.contact a:hover {
  text-decoration: underline;
}

/* ===== Social Links ===== */
.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f0f4f8;
  border: 1px solid #e2e8f0;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.socials a:hover {
  background: rgba(46, 123, 191, 0.1);
  border-color: #2e7bbf;
  transform: translateY(-2px);
}

.socials a svg {
  width: 20px;
  height: 20px;
  color: #1b2e6b;
}

/* ===== Tagline ===== */
.tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 1.5rem;
}

.tagline span {
  color: #0fa958;
}

/* ===== Entrance Animations ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeSlideUp 0.7s ease-out forwards;
}

.animate-in:nth-child(1) {
  animation-delay: 0.1s;
}
.animate-in:nth-child(2) {
  animation-delay: 0.3s;
}
.animate-in:nth-child(3) {
  animation-delay: 0.5s;
}
.animate-in:nth-child(4) {
  animation-delay: 0.7s;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 1rem;
  }

  .card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .logo-wrap img {
    width: 160px;
  }

  .signup-form {
    flex-direction: column;
  }
  .signup-form button {
    width: 100%;
  }

  .features {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: 1.25rem 1rem;
  }

  .event-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}
