/* ==========================================================================
   PLOTLINE · BINGERS-INSPIRED DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-color: #0C0B0B;
  --surface: #171616;
  --surface-raised: #201E1E;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text-main: #F4F2EE;
  --text-dim: #9E9B95;
  --text-faint: #605E5A;

  --brand: #818CF8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  --r-control: 9999px;
  --r-card: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.viewport-lock {
  height: 100%;
  overflow: hidden;
}

@media (max-height: 640px), (max-width: 600px) {
  .viewport-lock {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ==========================================================================
   PAGE WRAPPER & AMBIENT GLOW
   ========================================================================== */

.page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  contain: paint;
}

.ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  width: 100%;
  max-width: 100vw;
  contain: paint;
}

.glow-spot {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 48rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.16) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
  filter: blur(80px);
}

/* ==========================================================================
   HEADER (BRAND ONLY - CENTER ALIGNED)
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 40;
  height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  text-align: center;
  width: 100%;
}

@media (min-width: 640px) {
  .site-header {
    padding: 0 3rem;
  }
}

.header-inner {
  width: 100%;
  max-width: 72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-logo {
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.brand-icon-svg,
.brand-icon-img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  color: var(--text-main);
  text-align: center;
}

/* ==========================================================================
   LANGUAGE SELECTOR DROPDOWN
   ========================================================================== */

.lang-selector-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  background: rgba(23, 22, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-selector-btn:hover {
  background: rgba(32, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.lang-flag {
  font-size: 0.95rem;
  line-height: 1;
}

.lang-code {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.lang-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20, 19, 19, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.35rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 9.5rem;
  z-index: 100;
}

.lang-dropdown-menu.show {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.12s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.lang-option.active {
  background: rgba(129, 140, 248, 0.15);
  color: #818CF8;
  font-weight: 700;
}

/* ==========================================================================
   HERO CENTER BLOCK
   ========================================================================== */

.main-content {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-block {
  max-width: 54rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .hero-block {
    margin-bottom: 3.25rem;
  }
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6.5vw, 2.75rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-main);
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 4rem;
  }
}

.headline-line {
  display: block;
}

/* Subtext */
.hero-subtext {
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .hero-subtext {
    font-size: 1.2rem;
  }
}

/* CTA Store Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    max-width: none;
    width: auto;
    gap: 1rem;
  }
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--r-control);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-appstore {
  background-color: var(--text-main);
  color: var(--bg-color);
}

.btn-appstore:hover {
  background-color: #E2DFD8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-googleplay {
  background-color: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--line-strong);
}

.btn-googleplay:hover {
  background-color: var(--surface-raised);
  border-color: rgba(129, 140, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.store-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   OPTION 5: GLOWING WAVEFORM AURORA & AMBIENT MESH GRADIENT
   ========================================================================== */

.bottom-aurora {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  height: 28rem;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
  contain: paint;
}

.aurora-glow-indigo {
  position: absolute;
  bottom: -4rem;
  left: 20%;
  width: 35rem;
  height: 22rem;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 75%);
  filter: blur(40px);
  animation: auroraPulse 8s ease-in-out infinite alternate;
}

.aurora-glow-violet {
  position: absolute;
  bottom: -5rem;
  right: 18%;
  width: 38rem;
  height: 24rem;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.24) 0%, rgba(168, 85, 247, 0.06) 50%, transparent 75%);
  filter: blur(45px);
  animation: auroraPulse 10s ease-in-out infinite alternate-reverse;
}

.aurora-waveform-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 14rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.4));
}

@keyframes auroraPulse {
  0% { transform: scale(0.92) translateY(10px); opacity: 0.7; }
  100% { transform: scale(1.08) translateY(-10px); opacity: 1; }
}

/* ==========================================================================
   3D iPHONE APP SHOWCASE MOCKUP
   ========================================================================== */

.device-showcase-container {
  position: relative;
  width: 100%;
  max-width: 22rem;
  pointer-events: auto;
  z-index: 15;
  display: flex;
  justify-content: center;
  perspective: 1200px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .device-showcase-container {
    max-width: 25rem;
  }
}

@media (min-width: 640px) {
  .device-showcase-container {
    max-width: 27rem;
  }
}

.iphone-mockup {
  width: 100%;
  background: #181717;
  border-radius: 48px;
  padding: 11px;
  box-shadow: 
    0 30px 70px -10px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 80px rgba(99, 102, 241, 0.22);
  transform: rotateX(8deg) translateZ(0);
  transform-origin: center center;
  animation: deviceFloat 6s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

@keyframes deviceFloat {
  0%, 100% { transform: rotateX(8deg) translateY(0); }
  50% { transform: rotateX(6deg) translateY(-8px); }
}

.iphone-bezel {
  position: relative;
  background: #000000;
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.iphone-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 30;
}

.iphone-screen {
  position: relative;
  background: #0E0D0D;
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Dynamic Island */
.iphone-notch {
  width: 5.5rem;
  height: 1.4rem;
  background: #000000;
  border-radius: 20px;
  margin: 0 auto 0.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.notch-camera {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111422;
  border: 1px solid #1e2438;
}

/* Mock App Header */
.mock-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.mock-logo-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.mock-avatar {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #818CF8, #C084FC);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

/* Mock Filter Tabs */
.mock-filter-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: hidden;
}

.mock-tab {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 20px;
  background: #1A1919;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.mock-tab.active {
  background: var(--text-main);
  color: #0C0B0B;
  border-color: var(--text-main);
}

.tab-count {
  font-size: 0.65rem;
  opacity: 0.8;
  margin-left: 0.15rem;
}

/* Mock Club Card Banner */
.mock-club-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-club-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand-indigo);
}

.mock-club-turn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.1rem;
}

.mock-club-avatars {
  display: flex;
}

.mock-avatar-stack {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  border: 1.5px solid #0E0D0D;
  margin-left: -0.35rem;
}

.mock-avatar-stack.a1 { background: #38BDF8; margin-left: 0; }
.mock-avatar-stack.a2 { background: #EC4899; }
.mock-avatar-stack.a3 { background: #F59E0B; }

/* Mock Media Grid */
.mock-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mock-poster-wrap {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: #1C1A1A;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mock-badge.movie { background: rgba(239, 68, 68, 0.85); color: #fff; }
.mock-badge.tv { background: rgba(59, 130, 246, 0.85); color: #fff; }
.mock-badge.book { background: rgba(16, 185, 129, 0.85); color: #fff; }

.mock-score {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #FCD34D;
}

.mock-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.6);
}

.mock-progress-fill {
  height: 100%;
  background: #818CF8;
}

.mock-card-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

/* Mock Bottom Nav */
.mock-bottom-nav {
  display: flex;
  justify-content: space-around;
  background: rgba(24, 23, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.35rem 0.5rem;
  margin-top: 0.2rem;
}

.mock-nav-item {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-faint);
}

.mock-nav-item.active {
  color: var(--brand-indigo);
}

.mock-home-indicator {
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  margin: 0.6rem auto 0.15rem;
}

/* ==========================================================================
   BOTTOM FOOTER STRIP
   ========================================================================== */

.bottom-footer {
  position: relative;
  z-index: 25;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: auto;
  width: 100%;
  padding: 3rem 1.5rem 2.5rem;
  margin-top: auto;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  padding: 0.45rem 1.4rem;
  border-radius: var(--r-control);
  background: rgba(12, 11, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  color: var(--text-dim);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  margin: 0 auto;
}

.footer-link {
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-dot {
  color: var(--text-faint);
}

/* ==========================================================================
   DEDICATED INVITE SECTION (DYNAMIC SPA VIEW)
   ========================================================================== */

.invite-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 24px 20px 80px;
  position: relative;
  z-index: 10;
  width: 100%;
}

.invite-card {
  width: 100%;
  max-width: 420px;
  background: rgba(23, 22, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 24px 32px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.invite-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: var(--r-control);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #A5B4FC;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.invite-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--text-main);
}

.invite-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.invite-code-box {
  background: #0C0B0B;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.invite-code-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-faint);
  text-transform: uppercase;
}

.invite-code-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #FFFFFF;
}

.invite-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.invite-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.invite-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-open-app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  background: #FFFFFF;
  color: #0C0B0B;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-control);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-open-app:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.invite-hint {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.4;
  text-align: center;
  margin-top: 4px;
}

