/* ── StuNight Site Public – Premium Dark Glassmorphism ───────────── */

/* ── Fonts ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Variables ────────────────────────────────────────────────────── */
:root {
  --bg: #000000;
  --bg-elevated: #0a0a0c;
  --surface: #1c1c1e;
  --surface-light: #2c2c2e;
  --ink: #ffffff;
  --ink-secondary: #a1a1aa;
  --ink-muted: #636366;
  --accent: #e94560;
  --accent-hover: #f2576f;
  --accent-glow: rgba(233, 69, 96, 0.35);
  --gradient-start: #8b5cf6;
  --gradient-end: #d946ef;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.35);
  --radius-2xl: 28px;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    system-ui,
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ── Ambient Background Glow ──────────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientFloat 20s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(233, 69, 96, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientFloat 25s ease-in-out infinite alternate-reverse;
}

@keyframes ambientFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(5%, 3%) scale(1.1);
  }
  100% {
    transform: translate(-3%, -5%) scale(0.95);
  }
}

/* ── Layout ───────────────────────────────────────────────────────── */

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

/* ── Topbar ───────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 48px;
  border-radius: var(--radius-xl);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.brand {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.85;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-icon-glyph {
  font-size: 22px;
  color: var(--accent);
}

.brand-icon-inline {
  font-size: 17px;
  margin-right: 6px;
  vertical-align: -2px;
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--accent);
}

.eyebrow-light {
  color: var(--ink-muted);
}

.topbar .eyebrow {
  margin: 0 0 2px;
}

/* ── Navigation ───────────────────────────────────────────────────── */

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a:not(.btn) {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  transition: all var(--transition);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--ink);
}

/* ── Content Stack ────────────────────────────────────────────────── */

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.narrow-stack {
  max-width: 860px;
}

/* ── Grid Layouts ─────────────────────────────────────────────────── */

.hero-grid,
.split-grid,
.card-grid,
.footer {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
}

.split-grid,
.footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-layout,
.link-grid,
.faq-grid,
.fact-grid {
  display: grid;
  gap: 20px;
}

.article-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── Cards ────────────────────────────────────────────────────────── */

.hero-card,
.info-card,
.split-card,
.contact-card {
  border-radius: var(--radius-2xl);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Dark card with glass effect */
.hero-card-dark,
.split-card-dark,
.contact-card {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--ink);
  border: 1px solid var(--border);
}

/* Subtle inner glow on dark cards */
.hero-card-dark::before,
.split-card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

/* Light card */
.hero-card-light,
.split-card-light {
  background: var(--surface);
  border: 1px solid var(--border);
}

.info-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

/* Mouse-tracking inner glow on info cards */
.info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    350px circle at var(--mouse-x) var(--mouse-y),
    rgba(139, 92, 246, 0.22),
    rgba(233, 69, 96, 0.12) 40%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.info-card:hover::after {
  opacity: 1;
}

.info-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.split-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: scale(1.02);
}

/* ── Feature Card (special variant with icon) ────────────────────── */

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
  color: #fff;
}

.feature-icon ion-icon {
  font-size: 24px;
}

.feature-icon-accent {
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ── Typography ───────────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  margin: 0;
}

.hero-card h1,
.section h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero-card h2,
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
}

/* Gradient text for hero */
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

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

.hero-copy,
.section-copy,
.hero-card p,
.info-card p,
.split-card p,
.contact-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}

.info-card h3,
.split-card h3,
.footer h4 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ── Stats Row ────────────────────────────────────────────────────── */

.stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Lists ────────────────────────────────────────────────────────── */

.bullet-list {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.bullet-list li {
  padding-left: 20px;
  position: relative;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-xl);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.45);
}

.btn-gradient {
  background: var(--gradient-start);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-gradient:hover {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
}

.hero-icon-glyph {
  font-size: 72px;
  color: var(--accent);
}

.btn-dark {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-dark:hover {
  background: var(--surface-light);
  border-color: var(--border-hover);
}

.btn-ghost {
  background: var(--glass);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--border-hover);
  background: var(--glass-strong);
}

/* ── Badge ────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-secondary);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

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

/* ── Sections ─────────────────────────────────────────────────────── */

.section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.long-copy {
  max-width: 760px;
}

.section-intro {
  margin-bottom: 24px;
}

.sticky-card {
  position: sticky;
  top: 24px;
  align-self: start;
}

.faq-item,
.mini-card,
.fact-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.faq-item h3,
.mini-card h3,
.fact-card h3 {
  margin-bottom: 10px;
}

.fact-card p {
  margin: 0;
  color: var(--ink-secondary);
}

.eyebrow-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  background: var(--glass);
  border: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--glass);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table th {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.comparison-table td {
  color: var(--ink-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.association-page {
  align-items: center;
}

.association-page > * {
  width: 100%;
}

.association-hero,
.association-vision {
  align-items: center;
  text-align: center;
}

.association-page .section-copy {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.association-page .card-grid {
  width: 100%;
}

.association-page .info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.association-page .bullet-list {
  width: min(100%, 520px);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* ── Hero Section – Premium ───────────────────────────────────────── */

.hero-card-dark .hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-glow-1 {
  top: -60px;
  right: -40px;
  background: var(--gradient-start);
}

.hero-glow-2 {
  bottom: -80px;
  left: -60px;
  background: var(--accent);
}

/* ── Floating Particles (JS-free via CSS) ─────────────────────────── */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: float linear infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 22s;
  animation-delay: 0s;
  width: 2px;
  height: 2px;
}
.particle:nth-child(2) {
  left: 25%;
  animation-duration: 28s;
  animation-delay: 3s;
}
.particle:nth-child(3) {
  left: 40%;
  animation-duration: 20s;
  animation-delay: 1s;
  width: 4px;
  height: 4px;
  background: rgba(139, 92, 246, 0.15);
}
.particle:nth-child(4) {
  left: 55%;
  animation-duration: 26s;
  animation-delay: 5s;
}
.particle:nth-child(5) {
  left: 70%;
  animation-duration: 24s;
  animation-delay: 2s;
  width: 2px;
  height: 2px;
}
.particle:nth-child(6) {
  left: 85%;
  animation-duration: 30s;
  animation-delay: 4s;
  background: rgba(233, 69, 96, 0.12);
}
.particle:nth-child(7) {
  left: 15%;
  animation-duration: 18s;
  animation-delay: 6s;
}
.particle:nth-child(8) {
  left: 60%;
  animation-duration: 32s;
  animation-delay: 1s;
  width: 4px;
  height: 4px;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ── Contact Card ─────────────────────────────────────────────────── */

.contact-mail {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
}

.contact-mail a {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition);
}

.contact-mail a:hover {
  opacity: 0.8;
}

/* ── Footer ───────────────────────────────────────────────────────── */

.footer {
  margin-top: 60px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer p,
.footer a {
  margin: 0 0 6px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  display: block;
}

.footer a:hover {
  color: var(--ink-secondary);
}

.footer h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-brand {
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px !important;
}

/* ── Divider ──────────────────────────────────────────────────────── */

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── Scroll Reveal Animation ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 920px) {
  .hero-grid,
  .split-grid,
  .card-grid,
  .article-layout,
  .link-grid,
  .fact-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 16px 20px 60px;
  }

  .hero-card,
  .info-card,
  .split-card,
  .contact-card {
    padding: 28px;
  }

  .stats-row {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .nav-links {
    gap: 4px;
    width: 100%;
  }

  .nav-links a:not(.btn) {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .hero-card h1,
  .section h1 {
    font-size: 1.8rem;
  }

  .stats-row {
    flex-direction: column;
    gap: 16px;
  }
}

/* ── Hamburger Menu (Mobile) ──────────────────────────────────────── */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }
}
