/* ==========================================================
   PERSONAI ULTRA-MINIMALIST PREMIUM DESIGN SYSTEM
   ========================================================== */

/* 1. Base Reset & Environment */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #000000;
  --text-main: #ffffff;
  --text-muted: #8e8e93; /* Premium high-contrast iOS grey */
  --text-dim: #48484a;   /* Readable dark grey */
  --border-color: #2c2c2e; /* Distinct border grey */
  --border-focus: #ffffff;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-speed: 0.3s;
}

html {
  scrollbar-gutter: stable;
  block-size: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-block-size: 100dvb;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Global Native App Feel: Disable all text selection and copying */
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
}

/* Custom Fluid Scrollbar */
::-webkit-scrollbar {
  inline-size: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 3px;
}

/* 2. Soft Ambient Lighting */
.ambient-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0) 65%);
  pointer-events: none;
  z-index: 1;
  animation: breathingGlow 8s infinite alternate ease-in-out;
}

.ambient-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.18) 0%, rgba(0, 0, 0, 0) 70%); /* Deep premium cosmic violet */
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s ease-in-out;
  z-index: 2;
}

body.cosmic-active .ambient-glow::after {
  opacity: 1;
}

@keyframes breathingGlow {
  0% { opacity: 0.8; transform: scale(0.95); }
  100% { opacity: 1.2; transform: scale(1.05); }
}

/* 3. Layout Wrapper */
.minimal-wrapper {
  position: relative;
  z-index: 5;
  flex-grow: 1;
  display: grid;
  place-items: center;
  inline-size: 100%;
  padding-inline: 1.5rem;
}

.content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-inline-size: 600px;
  inline-size: 100%;
}

/* 4. Typographic Hierarchy */
.brand-title {
  font-size: clamp(3rem, 12vw, 6.2rem);
  font-weight: 300; /* Increased from 200 for low-brightness legibility */
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1;
  margin-block-end: 1rem;
  user-select: none;
}

.brand-divider {
  inline-size: 40px;
  block-size: 1px;
  background-color: var(--text-dim);
  margin-block: 1.5rem 2rem;
}

.brand-tagline {
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 400; /* Increased from 300 for thin stroke scaling */
  letter-spacing: 0.12em;
  color: var(--text-main);
  margin-block-end: 1rem;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
}

.brand-tagline .muted-pre {
  color: var(--text-muted);
  font-weight: 300; /* Increased from 200 */
}

.brand-tagline .accent-dot {
  color: var(--text-muted);
  display: inline-block;
  font-weight: 500;
}

.status-text {
  font-size: 0.75rem;
  font-weight: 500; /* Increased from 400 */
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  margin-block-end: 3.5rem;
  animation: pulsePulse 3s infinite alternate ease-in-out;
}

@keyframes pulsePulse {
  0% { opacity: 0.4; }
  100% { opacity: 0.85; }
}

/* 5. Clean, Understated Waitlist Form */
.minimal-form {
  inline-size: 100%;
  max-inline-size: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.form-input-container {
  display: flex;
  inline-size: 100%;
  border-bottom: 1px solid var(--border-color);
  padding-block: 0.6rem;
  transition: border-color var(--transition-speed) var(--transition-ease);
}

.form-input-container:focus-within {
  border-color: var(--border-focus);
}

.minimal-form input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 400; /* Increased from 300 */
  letter-spacing: 0.05em;
  padding-inline-end: 1rem;
  
  /* Opt back in specifically for the input box so users can type and edit their email */
  user-select: text;
  -webkit-user-select: text; /* Safari */
  -moz-user-select: text;    /* Firefox */
}

.minimal-form input:focus {
  outline: none;
}

.minimal-form input::placeholder {
  color: var(--text-dim);
  font-weight: 400; /* Increased from 300 */
}

/* Mini Text Button */
.form-submit-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600; /* Increased from 500 */
  letter-spacing: 0.1em;
  transition: color var(--transition-speed) var(--transition-ease);
  padding-inline: 0.5rem;
}

.form-submit-btn:hover {
  color: var(--text-main);
}

.form-submit-btn:active {
  opacity: 0.7;
}

/* Success/Error Alerts */
.form-message {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
  min-block-size: 1rem;
  line-height: 1.4;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  color: var(--text-main);
}

.form-message.error {
  color: var(--text-muted);
}

/* 6. Subtle Footer */
.minimal-footer {
  position: relative;
  z-index: 10;
  inline-size: 100%;
  padding-block: 2.5rem;
}

.footer-inner {
  max-inline-size: 1000px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400; /* Increased from 300 */
  letter-spacing: 0.1em;
}

.domain-text {
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--transition-speed) var(--transition-ease);
}

.domain-text:hover {
  color: var(--text-muted);
}

/* Secret Admin View Bar */
.admin-stats-bar {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.admin-stats-bar.visible {
  opacity: 1;
  pointer-events: auto;
}

.stat-divider {
  color: var(--text-dim);
}

.stat-item span {
  color: var(--text-muted);
  font-weight: 500;
}

/* 7. Liquid Painting Canvas & Trigger */
#fluid-canvas {
  position: fixed;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
  z-index: 2; /* Sits behind text (z-index: 5) but above ambient glow (z-index: 1) */
  filter: blur(28px) contrast(20) saturate(1.8); /* Metaball fluid filter */
  mix-blend-mode: screen; /* Integrates beautifully into pure obsidian black */
  opacity: 0; /* Hidden by default, fades in on trigger */
  transition: opacity 2s ease-in-out;
}

body.cosmic-active #fluid-canvas {
  opacity: 0.85; /* Fades in smoothly to render cosmic stardust */
}

.personal-trigger {
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none; /* Removed underline per user feedback */
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  transition: all var(--transition-speed) ease;
}

.personal-trigger:hover {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.95);
  color: var(--text-main);
}

