/* Lob Tones Starvios Theme - Accent #FF4F9A */
:root {
  --ink: #141518;
  --panel: #1B1C20;
  --mint: #7FE0C2;
  --accent: #7FE0C2;
  --accent-pink: #FF4F9A;
  --accent-rgb: 127, 224, 194;
  --accent-glow: rgba(127, 224, 194, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.08);
  --bg-card: #1B1C20;
  --font-pixel: 'Press Start 2P', Pixel, monospace, system-ui;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

html {
  background: var(--ink);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  color: #efdfe6;
  background: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.pixel {
  font-family: var(--font-pixel) !important;
}

.landing {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, #202227 0%, #151619 60%, #1B1C20 100%);
}

/* Header */
.site-header {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding-top: 26px;
  padding-bottom: 20px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fce6ef;
  text-decoration: none;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: -1px;
  color: #fff;
}

.brand-name span {
  color: var(--accent);
}

.brand-icon {
  width: 29px;
  height: 36px;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(255, 79, 154, 0.6));
}

.contract-status {
  border: 1px solid rgba(255, 255, 255, 0.08); background: #1B1C20;
  border-radius: 7px;
  padding: 8px 12px;
  color: #edccda;
  font-size: 10px;
  line-height: 1.4;
  
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contract-status span {
  font-family: Arial, sans-serif;
  font-weight: 700;
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 8px;
  color: #f9dfea;
  border: 1px solid rgba(255, 255, 255, 0.1); background: #1B1C20;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.social-button:hover {
  color: var(--accent);
  border-color: #ad587c;
  background: #242730;
}

.launch-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  padding: 10px 14px;
  background: #fff0f6;
  color: #10070b;
  font-size: 10px;
  line-height: 1.4;
  border: 1px solid #ffe2ee;
  cursor: pointer;
  font-family: var(--font-pixel);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.launch-button .arrow {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #26141c;
  color: #fff0f6;
  font: 11px/1 Arial, sans-serif;
}

.launch-button:hover {
  background: #ffaace;
  color: #10070b;
  border-color: #ffaace;
  box-shadow: 0 0 24px rgba(255, 79, 154, 0.5);
}

.launch-button-primary {
  background: #252832;
  color: #7FE0C2;
  border-color: rgba(127, 224, 194, 0.5);
  box-shadow: 0 0 16px rgba(127, 224, 194, 0.2);
}

.launch-button-primary:hover {
  background: #2E323F;
  color: #ffffff;
  border-color: #7FE0C2;
  box-shadow: 0 0 20px rgba(127, 224, 194, 0.35);
}

.logout-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1B1C20;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 9px;
  cursor: pointer;
  font-family: var(--font-pixel);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.logout-button:hover {
  background: rgba(255, 79, 154, 0.25);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.terminate-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1B1C20;
  color: #c99baa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 9px;
  cursor: pointer;
  font-family: var(--font-pixel);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.terminate-button:hover {
  background: rgba(255, 71, 87, 0.2);
  color: #ff6b81;
  border-color: #ff4757;
  box-shadow: 0 0 14px rgba(255, 71, 87, 0.35);
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding-inline: 20px;
}

.hero-title {
  display: inline-block;
  margin: 0 0 23px;
  color: var(--mint);
  font-family: var(--font-pixel);
  font-size: clamp(28px, 4.8vw, 54px);
  line-height: 1.35;
  letter-spacing: -2px;
  background: linear-gradient(100deg, #ffffff 5%, #d1d5db 50%, #7FE0C2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.7;
  text-transform: uppercase;
  color: #ebdde3;
  letter-spacing: 0.5px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 170px;
  padding: 16px 24px;
  text-align: left;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: var(--bg-card);
  
  transition: all 0.25s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 79, 154, 0.15);
}

.stat-value {
  margin-bottom: 7px;
  color: #ffecf4;
  font-size: 11px;
  line-height: 1.5;
  font-family: var(--font-pixel);
}

.stat-label {
  margin: 0;
  color: #e4d0d9;
  font-size: 12px;
}

/* 3D Scene with Perspective Grid and Mascot */
.scene {
  position: relative;
  width: min(100%, 1040px);
  height: 380px;
  margin: 0 auto 60px;
}

.grid {
  position: absolute;
  z-index: -1;
  inset: -107px 0 0;
  background-image: 
    linear-gradient(var(--line) 1px, transparent 1px), 
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 38.5px 38.5px;
  background-position: center bottom;
  -webkit-mask-image: 
    linear-gradient(transparent, #000 45%, #000 86%, transparent), 
    linear-gradient(90deg, transparent, #000 23%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: 
    linear-gradient(transparent, #000 45%, #000 86%, transparent), 
    linear-gradient(90deg, transparent, #000 23%, #000 78%, transparent);
  mask-composite: intersect;
}

.robot {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 275px;
  height: 305px;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.7));
  animation: floatBot 4s ease-in-out infinite alternate;
}

@keyframes floatBot {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-8px); }
}

.robot-art {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Ambient Flying Plus Particles */
.plus-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-plus {
  position: absolute;
  width: var(--size, 17px);
  height: var(--size, 17px);
  color: #ff83b8;
  opacity: 0;
  filter: blur(5px);
  animation: plus-fade var(--duration, 6s) ease-in-out both;
}

.ambient-plus::before,
.ambient-plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 0 7px rgba(255, 79, 154, 0.4);
}

.ambient-plus::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.ambient-plus::after {
  height: 100%;
  width: 1px;
  left: 50%;
  top: 0;
}

@keyframes plus-fade {
  0%, 100% { opacity: 0; filter: blur(5px); transform: scale(.82); }
  28%, 60% { opacity: var(--opacity, .45); filter: blur(0); transform: scale(1); }
}

/* Dialog / Info Modals */
.info-dialog {
  width: min(440px, calc(100% - 36px));
  border: 1px solid #5b3143;
  border-radius: 18px;
  padding: 30px;
  background: #210d16;
  color: #f8dfea;
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.9);
}

.info-dialog::backdrop {
  background: rgba(9, 1, 4, 0.85);
  backdrop-filter: blur(8px);
}

.info-dialog h2 {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
}

.info-dialog p {
  font-size: 14px;
  line-height: 1.7;
  color: #dfc6d1;
}

/* Workspace Specific Theme Elements */
.workspace-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  position: relative;
  z-index: 3;
}

.workspace-card {
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(221, 115, 160, 0.03);
  padding: 26px;
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.workspace-card:hover {
  border-color: rgba(255, 79, 154, 0.4);
}

.workspace-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-title span {
  color: var(--accent);
}

.pixel-input {
  width: 100%;
  background: rgba(14, 5, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08); background: #1B1C20;
  border-radius: 8px;
  color: #fff;
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.pixel-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(255, 79, 154, 0.3);
}

.pixel-select {
  width: 100%;
  background: rgba(14, 5, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08); background: #1B1C20;
  border-radius: 8px;
  color: #fff;
  padding: 11px 14px;
  font-size: 13px;
  font-family: inherit;
}

.pixel-select:focus {
  outline: none;
  border-color: var(--accent);
}

.pixel-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
}

.pixel-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  background: rgba(14, 5, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08); background: #1B1C20;
  border-radius: 10px;
}

.obs-box {
  display: flex;
  gap: 10px;
  background: rgba(10, 3, 7, 0.95);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  align-items: center;
}

.obs-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: monospace;
  font-size: 13px;
  outline: none;
}

.chat-box {
  height: 280px;
  overflow-y: auto;
  background: rgba(10, 3, 7, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08); background: #1B1C20;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bubble {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}

@media (max-width: 767px) {
  .site-header { padding-inline: 20px; }
  .brand-name { font-size: 14px; }
  .contract-status { font-size: 8px; }
  .hero { padding-top: 48px; }
  .hero-title { letter-spacing: -1.5px; }
  .scene { height: 360px; margin-bottom: 30px; }
}

@media (max-width: 575px) {
  .site-header { padding-top: 20px; gap: 12px; flex-wrap: wrap; }
  .hero { padding-top: 60px; }
  .hero-title { font-size: clamp(23px, 7.5vw, 38px); }
  .stats { gap: 10px; }
  .stat-card { width: 140px; padding: 12px 14px; min-width: 0; }
  .stat-value { font-size: 9px; }
  .robot { width: 230px; height: 260px; }
  .scene { height: 320px; }
}
