/* ============================================
   IP-CHAT — Landing & About Page Styles
   Design System v2 — "A ghost in the machine."
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Syne:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Design Tokens --- */
:root {
  /* Background */
  --bg: #050508;
  --bg-surface: #0c0c12;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  /* Accent — pure monochrome */
  --accent: #ffffff;
  --glow: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.25);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  /* Radii */
  --radius-full: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 200ms;
  --t-normal: 250ms;
  --t-slow: 300ms;

  /* Typography */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-logo: 'Syne', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* --- Film Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  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)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* --- Page Container --- */
.page-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   FLOATING PILL NAVBAR — Draxo-style
   ============================================ */
.nav-bar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-full);
  transition: background var(--t-slow) var(--ease);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--font-logo);
}

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

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--t-normal) var(--ease);
  border: 1px solid transparent;
  font-family: var(--font-logo);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--text-primary);
}

/* ============================================
   HERO SECTION — Serif display headlines
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

/* Small badge above the hero title */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp 700ms var(--ease) both;
  font-family: var(--font-body);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

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

/* Serif display headline */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 800px;
  margin-bottom: 24px;
  animation: fadeUp 700ms var(--ease) both;
}

.hero-title .gradient-word {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 700ms 120ms var(--ease) both;
  font-family: var(--font-body);
}

/* CTA Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 700ms 200ms var(--ease) both;
}

/* Primary CTA — White Filled Pill */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast) ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}

.cta-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.18);
}

.cta-primary:active {
  transform: scale(0.98);
}

.cta-primary .cta-arrow {
  transition: transform var(--t-normal) var(--ease);
}

.cta-primary:hover .cta-arrow {
  transform: translateX(3px);
}

/* Ghost / Secondary CTA */
.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast) ease;
  backdrop-filter: blur(12px);
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.cta-ghost:active {
  transform: translateY(0);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 700ms 400ms var(--ease) both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-hover), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ============================================
   FEATURES SECTION — BorderGlow Cards
   ============================================ */
.features-section {
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.6;
  font-family: var(--font-body);
}

/* --- Features Grid: 2-col, first card full-width --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  width: 100%;
}

.features-grid .fc:first-child {
  grid-column: 1 / -1;
}

/* --- Feature Card (BorderGlow) --- */
.fc {
  position: relative;
  background: #0c0c12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.3s ease;
  --cursor-angle: 0deg;
  --edge-proximity: 0;
}

/* Border glow — conic-gradient masked to a border ring */
.fc::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1.5px;
  background: conic-gradient(
    from calc(var(--cursor-angle) - 12.5deg),
    transparent 0deg,
    #a78bfa 4deg,
    #818cf8 12.5deg,
    #38bdf8 21deg,
    transparent 25deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: calc(var(--edge-proximity) / 100);
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

/* Inner ambient glow (clipped inside the card) */
.fc-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.fc-glow::before {
  content: '';
  position: absolute;
  inset: -80%;
  background: conic-gradient(
    from calc(var(--cursor-angle, 0deg) - 12.5deg),
    transparent 0deg,
    rgba(167, 139, 250, 0.6) 4deg,
    rgba(129, 140, 248, 0.5) 12.5deg,
    rgba(56, 189, 248, 0.4) 21deg,
    transparent 25deg,
    transparent 360deg
  );
  filter: blur(40px);
  opacity: calc(var(--edge-proximity, 0) / 100 * 0.12);
  transition: opacity 0.2s ease;
}

/* On hover: fade default border to let the glow dominate */
.fc:hover {
  border-color: rgba(255, 255, 255, 0.03);
}

/* --- Card Content (all above the glow layer) --- */
.fc-top,
.fc-title,
.fc-tags,
.fc-desc {
  position: relative;
  z-index: 1;
}

/* Top row: number | category */
.fc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.fc-num {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  font-family: var(--font-body);
}

.fc-sep {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.12);
  user-select: none;
}

.fc-cat {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* Large italic serif title */
.fc-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

/* Tech tag pills */
.fc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.fc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1;
  white-space: nowrap;
}

/* Description */
.fc-desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 520px;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-section {
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steps-container {
  display: flex;
  gap: 32px;
  max-width: 900px;
  width: 100%;
  position: relative;
}

/* Connecting line */
.steps-container::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66%);
  right: calc(16.66%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), var(--border-hover), transparent);
  z-index: 0;
}

.step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  transition: all var(--t-slow) var(--ease);
  font-family: var(--font-body);
}

.step-card:hover .step-number {
  border-color: var(--border-hover);
  background: var(--bg-surface);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.05);
  transform: scale(1.08);
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  font-family: var(--font-body);
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 220px;
  font-family: var(--font-body);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-credit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.footer-credit .heart {
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-normal) var(--ease);
  font-family: var(--font-body);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ============================================
   ABOUT PAGE — SPECIFIC STYLES
   ============================================ */
.about-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
}

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.about-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  font-family: var(--font-body);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-section-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-body);
}

.about-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.about-section-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-family: var(--font-body);
}

.about-section-text code {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* About page steps */
.about-steps {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.about-step {
  flex: 1;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--t-slow) var(--ease);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.about-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.about-step-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.about-step-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.about-step-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-body);
}

/* CTA banner (Glass) */
.about-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 56px 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.about-cta-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.about-cta-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
  font-family: var(--font-body);
}

/* ============================================
   ROOM PAGE — NICKNAME MODAL
   ============================================ */
.nick-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.4s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nick-modal {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: modalUp 0.5s var(--ease) 0.1s both;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

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

.nick-modal-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.nick-modal-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
}

.nick-modal-dot:nth-child(1) { background: rgba(255, 255, 255, 0.2); }
.nick-modal-dot:nth-child(2) { background: rgba(255, 255, 255, 0.15); }
.nick-modal-dot:nth-child(3) { background: rgba(255, 255, 255, 0.1); }

.nick-modal-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  font-family: var(--font-body);
}

.nick-modal-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nick-room-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.nick-room-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-body);
}

.nick-room-code {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

/* Reuse input styles */
.nick-modal .input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nick-modal .input-group label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-body);
}

.nick-modal .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  transition: all var(--t-fast) ease;
}

.nick-modal .input-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.nick-modal .input-prefix {
  font-size: 1rem;
  color: var(--text-muted);
  padding-left: 18px;
  user-select: none;
  font-weight: 500;
}

.nick-modal .input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nick-modal .input-wrapper input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Nick join button (Primary / White Filled) */
.nick-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #000000;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) ease;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}

.nick-join-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.18);
}

.nick-join-btn:active {
  transform: scale(0.98);
}

.nick-join-btn .btn-icon {
  transition: transform var(--t-normal) var(--ease);
}

.nick-join-btn:hover .btn-icon {
  transform: translateX(3px);
}

.nick-error {
  font-size: 0.78rem;
  color: #ff6b6b;
  text-align: center;
  min-height: 20px;
  font-family: var(--font-body);
}

/* ============================================
   ANIMATIONS — Page load stagger
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children */
.fade-up {
  animation: fadeUp 700ms var(--ease) both;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-bar {
    top: 12px;
    padding: 8px 16px;
    gap: 16px;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .cta-primary,
  .cta-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Feature grid → single column on mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-grid .fc:first-child {
    grid-column: auto;
  }

  .fc-title {
    font-size: 24px;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .steps-container::before {
    display: none;
  }

  .about-steps {
    flex-direction: column;
  }

  .about-content {
    gap: 48px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .fc {
    padding: 24px;
  }

  .fc-title {
    font-size: 22px;
  }
}
