/* =========================================
   HUB — Main Page Stylesheet
   ========================================= */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --fg: #f5f0e8;
  --accent: #c8ff00;
  --muted: rgba(245, 240, 232, 0.4);
  --border: rgba(245, 240, 232, 0.1);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --gap: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  cursor: none;
  overflow-x: hidden;
}

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

/* === NOISE === */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* === CURSOR === */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
  mix-blend-mode: difference;
}
.cursor--big { width: 48px; height: 48px; }

/* === HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.8);
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--fg); }

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* === HERO === */
.hero {
  padding: 160px 40px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,255,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.1s;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 0.88;
  margin-bottom: 40px;
}

.title-line {
  display: block;
  font-size: clamp(100px, 18vw, 260px);
  letter-spacing: -0.02em;
  animation: fadeUp 0.9s ease both;
}

.line1 { animation-delay: 0.15s; }
.line2 { animation-delay: 0.25s; color: transparent; -webkit-text-stroke: 2px var(--fg); }
.line3 { animation-delay: 0.35s; }

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 400px;
  animation: fadeUp 0.9s ease both;
  animation-delay: 0.5s;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  animation: fadeUp 1s ease both;
  animation-delay: 0.7s;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollBar 2s ease infinite;
}

@keyframes scrollBar {
  from { left: -100%; }
  to   { left: 100%; }
}

/* === GRID SECTION === */
.grid-section {
  padding: 40px 40px 80px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0.7;
}

/* === CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-bottom: 48px;
}

.card--large       { grid-column: span 7; }
.card--flight      { grid-column: span 5; }
.card--strangerlink { grid-column: span 12; }

/* === CARD BASE === */
.card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 380px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

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

.card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  z-index: 10;
}

.card:hover .card-hover-line { transform: scaleX(1); }
.card:hover .card-bg { transform: scale(1.03); }

.card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

/* Dark card (HUB) */
.card--dark .card-bg {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

/* Flight card */
.card--flight .card-bg {
  background: linear-gradient(145deg, #0a1628, #0d2444, #1a3a6b);
}

/* StrangerLink card */
.card--strangerlink .card-bg {
  background: linear-gradient(135deg, #0a0a0a, #130a0a, #0d0010);
}


.card--ss2 .card-bg {
  background: linear-gradient(135deg, #0a0a0a, #0a1113, #0d0010);
}

/* Forum card */
.card--forum { grid-column: span 5; }

.card--forum .card-bg {
  background: linear-gradient(145deg, #0a1a12, #0d2418, #0f2d1e);
}

/* Forum decoration */
.card-forum-deco {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.3s;
}

.card--forum:hover .card-forum-deco { opacity: 0.22; }

.forum-svg {
  width: 80px;
  height: 80px;
  color: #fff;
  filter: drop-shadow(0 0 20px rgba(80, 200, 120, 0.4));
}


.card-inner {
  position: relative;
  z-index: 2;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}



.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 8px;
  border-radius: 999px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.card-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  max-width: 300px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  margin-top: 24px;
  width: fit-content;
  transition: background 0.2s, border-color 0.2s;
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.card-link:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); }
.card-link:hover svg { transform: translate(2px, -2px); }

/* "You're here" link — accent style */
.card-link--here {
  border-color: rgba(200,255,0,0.3);
  color: var(--accent);
}
.card-link--here:hover {
  background: rgba(200,255,0,0.08);
  border-color: rgba(200,255,0,0.6);
}

/* StrangerLink call-to-action */
.card-link--stranger {
  margin-top: 24px;
  border-color: rgba(255, 60, 60, 0.3);
  color: #ff5555;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-link--stranger:hover {
  background: rgba(255, 60, 60, 0.08);
  border-color: rgba(255, 60, 60, 0.6);
}

/* Hover accent line */
.card-hover-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 3;
}

.card-hover-line--red {
  background: #ff5555;
}

/* === FLIGHT CARD DECORATION === */
.card-flight-deco {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.3s;
}

.card--flight:hover .card-flight-deco { opacity: 0.22; }

.plane-svg {
  width: 80px;
  height: 80px;
  color: #fff;
  transform: rotate(-30deg);
  filter: drop-shadow(0 0 20px rgba(100,160,255,0.5));
}

/* === STRANGERLINK DECORATION === */
.card-signal-deco {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 1;
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 0.3s;
}

.card--strangerlink:hover .card-signal-deco { opacity: 0.25; }

.signal-svg {
  width: 90px;
  height: 90px;
  color: #ff5555;
  filter: drop-shadow(0 0 16px rgba(255, 60, 60, 0.6));
  animation: signal-pulse 2.5s ease-in-out infinite;
}

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

/* === COMING SOON === */
.coming-soon-section {
  margin-top: 8px;
}

.coming-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.coming-card {
  border: 1px dashed var(--border);
  border-radius: 4px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.coming-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.015) 10px,
    rgba(255,255,255,0.015) 11px
  );
}

.coming-card:hover {
  border-color: rgba(200,255,0,0.25);
  background: rgba(200,255,0,0.02);
}

.coming-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.1em;
}

.coming-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* === FOOTER === */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-mid {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.footer-mid::before,
.footer-mid::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 1;
}
.footer-mid::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.footer-mid::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee-wrap {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.footer-right a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s;
}
.footer-right a:hover { color: var(--accent); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .card--large,
  .card--flight,
  .card--strangerlink,
  .card--forum { grid-column: span 12; }
  .coming-grid  { grid-template-columns: repeat(3, 1fr); }

  .card--strangerlink .card-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .card--strangerlink .card-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    align-self: auto;
  }
  .card--strangerlink .card-link {
    align-self: auto;
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .header { padding: 16px 20px; }
  .header-nav { display: none; }
  .hero  { padding: 120px 20px 60px; }
  .hero-scroll { left: 20px; }
  .grid-section { padding: 20px 20px 60px; }
  .coming-grid { grid-template-columns: 1fr; }
  .footer {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-mid { width: 100%; }
  .cursor { display: none; }
  body { cursor: auto; }
  .card-signal-deco { display: none; }
}
