/* Base */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Loading animation */
@keyframes pageLoad {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

:root {
  --color-bg-dark: #000;
  --color-text-light: #e2d9ff;
  --color-accent-1: #8d7cee;
  --color-accent-2: #ac3af2;
  --gradient-accent: linear-gradient(45deg, var(--color-accent-1), var(--color-accent-2));
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  background: var(--color-bg-dark);
  color: #fff;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  animation: pageLoad 0.6s ease-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section container helper */
.section-inner {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--color-accent-1);
  color: #000;
  border-radius: 4px;
  z-index: 1000;
}

/* Site header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  z-index: 1000;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Site navigation */
.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  padding: 1rem 0;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.site-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.site-nav a:hover::after {
  width: 100%;
}

/* Header becomes more visible when scrolled */
.site-header.scrolled .site-nav a {
  color: #fff;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, #1c0f2e, #2c3b67, #591e44, #4a0077);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  text-align: center;
  padding: 60px 20px;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  width: clamp(200px, 32vw, 420px);
  height: auto;
  margin-bottom: 16px;
  animation: fadeIn 1.2s ease;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(172, 58, 242, 0.3));
}

.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-family: "Montserrat", sans-serif;
  color: var(--color-text-light);
  margin: 0;
  animation: fadeIn 1.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll cue */
.scroll-down { margin-top: 28px; }
.scroll-down a {
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ABOUT */
#about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0a0a0a, #1a1230);
  position: relative;
  overflow: hidden;
}

.about-inner {
  display: flex;
  align-items: center;
}

/* Left: nebula visual */
.about-visual {
  flex: 0 1 40%;
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 260px;
  max-width: 420px;
}

/* Decorative orbs (no boxes) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.7;
  animation: float 8s ease-in-out infinite alternate;
}
.orb1 {
  width: 55%;
  height: 55%;
  background: var(--color-accent-1);
  top: 8%;
  left: 10%;
}
.orb2 {
  width: 70%;
  height: 70%;
  background: var(--color-accent-2);
  bottom: 6%;
  right: 6%;
  animation-delay: 2s;
}

@keyframes float {
  from { transform: translateY(0px); }
  to { transform: translateY(-22px); }
}

/* Right: text */
.about-text {
  flex: 1 1 60%;
}

.about-text h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 12px 0;
}

.about-text p {
  margin: 0 0 16px 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 6px 0;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.about-text ul li {
  margin-bottom: 10px;
  padding-left: 1.2rem;
  position: relative;
}
.about-text ul li::before {
  content: "✦";
  position: absolute;
  left: -2px;
  top: 4px;
  line-height: 1.2;
  color: var(--color-accent-2);
  transition: transform 0.3s ease, color 0.3s ease;
}

.about-text ul li:hover::before {
  transform: rotate(90deg) scale(1.1);
  color: var(--color-accent-1);
}

.about-text .closing {
  font-style: italic;
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--color-text-light);
}

/* JOIN SECTION (no box; constrained width + centered) */
#join {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a1a, #2e1b49);
}

.join-inner {
  /* reuse container width pattern */
  max-width: 700px;
  text-align: center;
}

#join h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 14px 0;
}

#join p {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  margin: 22px 0;
}

/* Email button (simple, no box around section) */
.join-btn {
  display: inline-block;
  padding: 12px 30px;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.2s ease;
  will-change: transform;
}
.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(172, 58, 242, 0.5);
}
.join-btn:active {
  transform: translateY(0);
  opacity: 0.9;
}

.note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: #ccc;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, #0a0a0a, #1a1230);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-logo h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.footer-logo p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.footer-contact h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  color: var(--color-accent-1);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--color-accent-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent-2);
}

/* Footer responsive */
@media (max-width: 600px) {
  .footer-main {
    display: none;
  }

  .footer-bottom {
    padding-top: 0;
    border-top: none;
    justify-content: center;
  }

  .footer-links {
    display: none;
  }

  .site-footer {
    padding: 1.5rem 0;
  }
}

/* Responsive */
@media (max-width: 1000px) {
  .section-inner {
    width: 72%;
  }
}

@media (max-width: 820px) {
  .section-inner {
    width: 86%;
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
  }

  #about .section-inner {
    width: 100%;
  }

  .about-visual {
    display: none;
  }

  .about-text {
    width: 100%;
    position: relative;
    z-index: 2;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0 1rem;
    margin: 0;
  }

  .about-text ul {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .site-nav {
    justify-content: center;
    gap: 2rem;
    padding: 1.2rem 0;
  }

  .logo { width: clamp(180px, 45vw, 260px); }
  .scroll-down a { font-size: 1.6rem; }

  .hero {
    padding: 40px 15px;
    min-height: 90vh;
  }

  .tagline {
    margin-bottom: 2rem;
  }

  #about {
    padding: 60px 15px;
    min-height: auto;
  }

  .about-text h2 {
    margin-bottom: 1.5rem;
  }

  .about-text p {
    margin-bottom: 1.2rem;
  }

  #join {
    padding: 60px 15px;
    min-height: auto;
  }

  .join-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
  }

  .site-footer {
    padding: 2rem 0 1rem;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .section-inner {
    width: 90%;
  }

  .hero {
    padding: 30px 10px;
  }

  .logo {
    width: clamp(160px, 50vw, 240px);
  }

  .tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }

  .site-nav {
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .about-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  }

  #join h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  }

  .join-btn {
    padding: 12px 28px;
    font-size: 1rem;
  }
}

/* Staggered animation for list items */
.about-text ul li {
  opacity: 0;
  animation: slideInUp 0.6s ease forwards;
}

.about-text ul li:nth-child(1) { animation-delay: 0.1s; }
.about-text ul li:nth-child(2) { animation-delay: 0.2s; }
.about-text ul li:nth-child(3) { animation-delay: 0.3s; }
.about-text ul li:nth-child(4) { animation-delay: 0.4s; }
.about-text ul li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .logo,
  .tagline,
  .scroll-down a,
  .orb,
  .about-text ul li,
  body {
    animation: none !important;
  }

  .logo:hover,
  .site-nav a:hover {
    transform: none !important;
  }
}
