:root {
  --bg: linear-gradient(135deg, #f2e6ff, #e9dbff, #f4e9ff);
  --accent: #a56bff;
  --accent-2: #c39dff;
  --muted: #222;
  --card-bg: rgba(255, 255, 255, 0.25);
  --border-glow: rgba(165, 107, 255, 0.35);
  --shadow-glow: 0 8px 40px rgba(165, 107, 255, 0.15);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--muted);
  overflow-x: hidden;
}

/* Layout */
.page {
  min-height: 100vh;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hidden { display: none; }

/* Splash (landing) */
.logo-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(165,107,255,0.3), transparent 40%);
  box-shadow: 0 10px 40px rgba(165,107,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}

.logo-wrap img {
  width: 70%;
  filter: drop-shadow(0 6px 25px rgba(165,107,255,0.25));
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

.big {
  color: #000;
  font-size: 28px;
  margin: 20px 0 10px;
}

.small-muted {
  color: #222;
  opacity: 0.8;
  margin-bottom: 18px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(165,107,255,0.25);
  transition: transform 0.2s ease;
}

.btn-primary:hover { transform: scale(1.05); }

/* App section */
.app-header {
  flex-direction: column;
  gap: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.dobby-logo { width: 70px; height: 70px; }

.title-block h2 { margin: 0; color: #000; }
.title-block .sub { margin: 0; color: #333; font-size: 14px; opacity: 0.8; }

.app-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 600px;
}

/* Glass Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 20px;
  width: 100%;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 45px rgba(165,107,255,0.25);
}

.input-card textarea {
  width: 100%;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(165,107,255,0.25);
  color: #000;
  padding: 12px;
  border-radius: 10px;
  resize: none;
  backdrop-filter: blur(8px);
}

.controls { display: flex; justify-content: flex-end; margin-top: 12px; }

.output-card .card-header {
  font-family: monospace;
  background: rgba(165,107,255,0.15);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  color: #000;
  backdrop-filter: blur(10px);
}

.code-block {
  background: rgba(255,255,255,0.3);
  padding: 12px;
  border-radius: 10px;
  color: #111;
  font-family: monospace;
  max-height: 45vh;
  overflow: auto;
  backdrop-filter: blur(8px);
}

.card-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(165,107,255,0.4);
  padding: 8px 12px;
  border-radius: 10px;
  color: #000;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover { background: rgba(165,107,255,0.1); }

.btn-link {
  color: var(--accent);
  text-decoration: none;
  padding: 8px;
}

/* Footer */
.app-footer {
  margin-top: 40px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 500;
  opacity: 0.9;
}

.x-logo { width: 22px; height: 22px; }

/* Transition */
.slide-up-enter { animation: slideUp 700ms cubic-bezier(.2,.9,.3,1); }

@keyframes slideUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-120vh); }
}
