/* ==============================
   Magic — Dark Emotional Experience
   Minimal. Real. Premium.
   ============================== */

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

:root {
  --bg:         #0A0B0D;
  --surface:    rgba(255, 255, 255, 0.04);
  --border:     rgba(255, 255, 255, 0.08);
  --text:       #ECECEC;
  --text-mid:   #9A9A9A;
  --text-dim:   #666666;
  --text-faint: #3A3A3A;
  --accent:     #0052FF;
  --accent-hover: #0040CC;
  --accent-glow: rgba(0, 82, 255, 0.25);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font:       'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Mono', monospace;
}

html {
  font-size: 15px;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.hidden { display: none !important; }


/* ==============================
   GATE — Cinematic Video Landing
   ============================== */

.gate {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* --- Background Video --- */
.gate-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* --- Minimal Nav --- */
.gate-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  flex-shrink: 0;
}

.gate-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.gate-logo-sup {
  font-size: 0.5rem;
  vertical-align: super;
}

.gate-nav-badge {
  display: none;
}

.gate-nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', var(--font);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 20px rgba(100,150,255,0.08), inset 0 1px 0 rgba(255,255,255,0.1);
}

.gate-nav-pill-sparkle {
  font-size: 0.7rem;
  animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* --- Hero --- */
.gate-hero {
  position: relative;
  z-index: 10;
  text-align: center;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0 24px;
}

.gate-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -2px;
  max-width: 900px;
  margin: 0 auto;
}

.gate-heading-muted {
  font-style: normal;
  color: var(--text-dim);
}

.gate-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* --- Input Section --- */
.gate-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
}

/* Liquid Glass Container */
.gate-input-glass {
  width: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.gate-input-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gate-input {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 18px 22px;
  color: #fff;
  font-family: 'Inter', var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  resize: none;
  outline: none;
  overflow: hidden;
  min-height: 80px;
  max-height: 140px;
  scrollbar-width: none;
}
.gate-input::-webkit-scrollbar { display: none; }
.gate-input::placeholder { color: rgba(255,255,255,0.25); }

.gate-char-count {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  padding: 2px 8px 6px;
  font-family: 'Inter', var(--font);
}

.gate-sample-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-family: 'Inter', var(--font);
  font-weight: 500;
  cursor: pointer;
  margin-top: 12px;
  padding: 6px 18px;
  transition: all 0.25s ease;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.gate-sample-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 12px rgba(100,150,255,0.15);
}

.gate-btn {
  margin-top: 16px;
  border-radius: 50px;
  padding: 14px 40px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Inter', var(--font);
  cursor: pointer;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  /* Glowing glass */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 30px rgba(100,150,255,0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: btn-glow 3s ease-in-out infinite;
}
.gate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.gate-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(100,150,255,0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 25px rgba(100,150,255,0.1), inset 0 1px 1px rgba(255,255,255,0.1); }
  50% { box-shadow: 0 0 40px rgba(100,150,255,0.2), inset 0 1px 1px rgba(255,255,255,0.15); }
}

.gate-footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 24px;
  flex-shrink: 0;
  margin-top: auto;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.gate-footer-credit {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.gate-footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gate-footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.25s ease;
}
.gate-footer-icon:hover {
  color: #fff;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 20px rgba(100,150,255,0.25);
  transform: translateY(-2px);
}

/* --- Animations --- */
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise {
  animation: fade-rise 0.8s ease-out both;
}
.animate-fade-rise-delay {
  animation: fade-rise 0.8s ease-out 0.2s both;
}
.animate-fade-rise-delay-2 {
  animation: fade-rise 0.8s ease-out 0.4s both;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}



/* ==============================
   LOADING
   ============================== */

.loading {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 60, 140, 0.3) 0%, transparent 70%);
  top: 20%;
  left: 30%;
  animation: orbDrift1 12s ease-in-out infinite;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 40, 100, 0.2) 0%, transparent 70%);
  bottom: 10%;
  right: 20%;
  animation: orbDrift2 15s ease-in-out infinite;
  pointer-events: none;
}

.loading.active { display: flex; }

.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.6);
  animation: spin 0.9s linear infinite;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-msg {
  font-family: 'Instrument Serif', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-mid);
  text-align: center;
  transition: opacity 0.35s ease;
  position: relative;
  z-index: 1;
}

.loading-dots {
  margin-top: 28px;
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.loading-dots span {
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: pulse 1.4s infinite ease-in-out;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ==============================
   ORB ANIMATIONS (used by results + loading)
   ============================== */

@keyframes orbDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, -40px) scale(1.15); }
  66%  { transform: translate(-40px, 30px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-50px, 40px) scale(1.1); }
  66%  { transform: translate(30px, -30px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(40px, 20px) scale(1.1); }
  50%  { transform: translate(-30px, -40px) scale(0.85); }
  75%  { transform: translate(20px, 30px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}


/* ==============================
   RESULTS
   ============================== */

.results {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--bg);
  overflow: hidden;
}
.results.active { display: block; }

/* Floating ambient orbs behind results */
.results::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 50, 130, 0.25) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: orbDrift1 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.results::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 40, 100, 0.2) 0%, transparent 70%);
  bottom: -5%;
  right: -10%;
  animation: orbDrift2 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}


/* ==============================
   SCREEN (stacked pages)
   ============================== */

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}

.screen::before,
.screen::after {
  content: '';
  flex: 1;
  min-height: 8px;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

.screen::-webkit-scrollbar { width: 0; }
.screen { scrollbar-width: none; }

.screen-label {
  font-family: 'Instrument Serif', serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 16px;
  padding: 5px 16px;
  border-radius: 50px;
  /* solid dark pill with visible border */
  background: rgba(10, 11, 13, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 8px;
  z-index: 5;
  overflow: hidden;
}
.screen-label::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.08) 30%,
    rgba(255,255,255,0) 50%, rgba(255,255,255,0) 70%,
    rgba(255,255,255,0.08) 85%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}


/* ==============================
   SCREEN 1: NAVAL TWEET CARD
   ============================== */

.persona-disclaimer {
  font-size: 0.62rem;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 12px;
  font-style: italic;
  letter-spacing: 0.02em;
  max-width: 360px;
  line-height: 1.5;
}

.intro-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  font-style: italic;
  opacity: 0.7;
}

.tweet-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 60px rgba(0,50,120,0.08);
}

.tweet-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tweet-pfp {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.tweet-meta {
  display: flex;
  flex-direction: column;
}

.tweet-name {
  font-family: 'Instrument Serif', serif;
  font-size: 0.85rem;
  color: #fff;
}

.tweet-handle {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.tweet-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 12px;
}

.tweet-watermark {
  text-align: right;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.08em;
}

/* --- Below the card --- */
.card-below {
  margin-top: 12px;
  text-align: center;
  max-width: 380px;
}

.card-below p {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Inter', var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-white {
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.btn-white::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.1) 25%,
    rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.35) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-white:hover {
  transform: scale(1.03);
}

.btn-outline {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ==============================
   SCREEN 2: TRANSITION
   ============================== */

.transition-emoji {
  font-size: 2.5rem;
  margin-bottom: 14px;
  animation: floatEmoji 3s ease-in-out infinite;
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.transition-text {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  color: var(--text-mid);
  text-align: center;
  max-width: 400px;
  line-height: 1.4;
}

.transition-hint {
  margin-top: 24px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}


/* ==============================
   SCREEN 3: MOM
   ============================== */

.mom-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 60px rgba(0,50,120,0.08);
}

.mom-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mom-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.mom-name {
  font-family: 'Instrument Serif', serif;
  font-size: 0.85rem;
  color: #fff;
}

.mom-handle {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.mom-body {
  max-width: 100%;
}

.mom-body p {
  font-size: 0.82rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 3px;
}

.mom-watermark {
  margin-top: 20px;
  text-align: right;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.08em;
}


/* ==============================
   SCREEN 4: BUILDER
   ============================== */

.builder-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 60px rgba(0,50,120,0.08);
}

.builder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 30%,
    rgba(255,255,255,0) 50%, rgba(255,255,255,0.05) 70%, rgba(255,255,255,0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.builder-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.builder-pfp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.builder-name {
  font-family: 'Instrument Serif', serif;
  font-size: 0.85rem;
  color: #fff;
}

.builder-handle {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-style: italic;
}

.builder-body {
  max-width: 100%;
}

.builder-body p {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 3px;
}

.builder-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: flex-end;
}

.builder-tag {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}


/* ==============================
   SCREEN 5: INVESTOR (YC-style)
   ============================== */

.yc-disclaimer {
  font-size: 0.62rem;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 10px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.yc-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 60px rgba(0,50,120,0.08);
}

.yc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 30%,
    rgba(255,255,255,0) 50%, rgba(255,255,255,0.05) 70%, rgba(255,255,255,0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.yc-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.yc-pfp {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  background: #f60;
}

.yc-name {
  font-family: 'Instrument Serif', serif;
  font-size: 0.85rem;
  color: #ccc;
}

.yc-handle {
  font-size: 0.62rem;
  color: var(--text-faint);
  font-style: italic;
}

.yc-body {
  max-width: 100%;
}

.yc-body p {
  font-size: 0.8rem;
  color: #b0b0b0;
  line-height: 1.55;
  margin-bottom: 3px;
}

.yc-watermark {
  margin-top: 14px;
  text-align: right;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.08em;
}


/* ==============================
   SCREEN 6: BRUTAL TRUTH
   ============================== */

.brutal-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
}

.brutal-quote-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255,255,255,0.1);
  user-select: none;
  align-self: flex-start;
}

.brutal-quote-mark.closing {
  align-self: flex-end;
  margin-top: -10px;
}

.brutal-line {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.5;
  max-width: 560px;
  padding: 0 8px;
}

.brutal-line-accent {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  border-radius: 2px;
  margin-top: 20px;
}

@media (min-width: 600px) {
  .brutal-line { font-size: 2.2rem; }
  .brutal-quote-mark { font-size: 5rem; }
}


/* ==============================
   SCREEN 7: SCORE
   ============================== */

.numbers-subtitle {
  font-family: 'Instrument Serif', serif;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.score-grid {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.score-item {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.score-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.score-item:hover {
  border-color: rgba(255,255,255,0.12);
}

.score-label {
  font-family: 'Inter', var(--font);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.score-num {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.score-note {
  font-size: 0.72rem;
  color: var(--text-mid);
}

.final-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ==============================
   ANIMATIONS
   ============================== */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.fade-up:nth-child(2) { transition-delay: 0.2s; }
.fade-up:nth-child(3) { transition-delay: 0.35s; }

.screen.active .fade-up {
  opacity: 1;
  transform: translateY(0);
}


/* ==============================
   PAGE NAV
   ============================== */

.page-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 16px;
  background: linear-gradient(to top, rgba(10,11,13,0.95) 40%, transparent);
}

.page-nav.active { display: flex; }

.nav-dots {
  display: flex;
  gap: 8px;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: #fff;
  transform: scale(1.4);
}

.nav-back, .nav-next {
  font-family: 'Inter', var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.nav-back::before, .nav-next::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.08) 30%,
    rgba(255,255,255,0) 50%, rgba(255,255,255,0.08) 70%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.nav-back:hover, .nav-next:hover {
  transform: scale(1.03);
}


/* ==============================
   SCREEN 8: FINAL CTA
   ============================== */

.final-heart {
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: floatEmoji 3s ease-in-out infinite;
}

.final-message {
  text-align: center;
  max-width: 380px;
  margin-bottom: 28px;
}

.final-message p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 6px;
}

.final-highlight {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem !important;
  color: #fff !important;
  font-weight: 400;
  font-style: normal !important;
  margin-top: 14px !important;
  margin-bottom: 14px !important;
}

.final-hashtag {

  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 0 0 20px var(--accent-glow);
}

.final-sign {
  margin-top: 16px !important;
  color: var(--text-mid) !important;
  font-size: 0.82rem !important;
}

.final-name {
  font-family: var(--font-display);
  font-size: 0.78rem !important;
  color: var(--text) !important;
  font-style: normal !important;
  font-weight: 700;
  margin-top: 10px !important;
}


/* ==============================
   TOAST
   ============================== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 50px;
  opacity: 0;
  z-index: 300;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* ==============================
   RESPONSIVE
   ============================== */

/* --- Tablet & Desktop --- */
@media (min-width: 768px) {
  html { font-size: 15px; }
  .gate-heading { font-size: clamp(3.5rem, 7vw, 5.5rem); }
  .gate-subtitle { font-size: 0.95rem; max-width: 520px; }
  .gate-wrap { max-width: 600px; }
  .tweet-card { max-width: 480px; }
  .mom-card { max-width: 480px; }
  .builder-card { max-width: 500px; }
  .yc-card { max-width: 500px; }
  .score-grid { max-width: 420px; }
  .brutal-line { max-width: 500px; }
}

/* --- Mobile --- */
@media (max-width: 480px) {
  html { font-size: 16px; }
  .screen { padding: 32px 18px 90px; }
  .gate-nav { padding: 16px 20px; }
  .gate-logo { font-size: 1.4rem; }
  .gate-nav-badge { font-size: 0.45rem; }
  .gate-heading { font-size: 2.2rem; letter-spacing: -1px; }
  .gate-subtitle { font-size: 0.85rem; }
  .gate-input { padding: 16px 18px; font-size: 0.95rem; min-height: 70px; }
  .gate-btn { padding: 12px 28px; font-size: 0.85rem; }
  .gate-wrap { max-width: 100%; }
  .gate-footer { gap: 12px; }
  .tweet-card { padding: 22px; }
  .mom-card { padding: 22px; }
  .builder-card { padding: 24px; }
  .yc-card { padding: 22px; }
  .brutal-line { font-size: 1.5rem; }
  .brutal-quote-mark { font-size: 3.5rem; }
  .transition-text { font-size: 1.05rem; }
  .transition-emoji { font-size: 2.4rem; }
  .score-grid { grid-template-columns: 1fr; gap: 12px; }
  .btn { padding: 12px 24px; font-size: 0.8rem; }
  .card-below p { font-size: 0.8rem; }
}
