:root {
  --ink: #0b0d12;
  --paper: #f7f4ef;
  --accent: #ff7a45;
  --accent-dark: #e05a2a;
  --mist: rgba(11, 13, 18, 0.08);
  --glow: rgba(255, 122, 69, 0.25);
  --panel: rgba(255, 255, 255, 0.85);
  --shadow: 0 20px 60px rgba(11, 13, 18, 0.15);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f9d9c0 0%, #f7f4ef 40%, #f1efe9 70%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(11, 13, 18, 0.08) 95%),
    linear-gradient(90deg, transparent 95%, rgba(11, 13, 18, 0.08) 95%);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.4) 0%, rgba(255, 122, 69, 0) 70%);
  filter: blur(0px);
  animation: float 18s ease-in-out infinite;
  z-index: 0;
}

.orb-a {
  top: -80px;
  right: -120px;
}

.orb-b {
  bottom: -140px;
  left: -90px;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(30px) scale(1.05);
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 6vw 16px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.85rem;
  color: rgba(11, 13, 18, 0.6);
}

.status-pill {
  background: var(--panel);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 6vw 48px;
  position: relative;
  z-index: 1;
}

.panel {
  background: var(--panel);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 13, 18, 0.06);
  backdrop-filter: blur(6px);
}

.hero {
  grid-column: 1 / -1;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  margin-bottom: 12px;
}

.hero p {
  margin: 0;
  color: rgba(11, 13, 18, 0.7);
  font-size: 1rem;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

input,
textarea,
button {
  font-family: inherit;
}

input,
textarea {
  border: 1px solid rgba(11, 13, 18, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

textarea {
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.form-row label {
  flex: 1 1 180px;
}

.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:active {
  transform: scale(0.97);
}

.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(255, 122, 69, 0.3);
}

.primary:hover {
  background: var(--accent-dark);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(11, 13, 18, 0.2);
}

.stack {
  display: grid;
  gap: 16px;
}

.card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 13, 18, 0.08);
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  margin: 0 0 12px;
  color: rgba(11, 13, 18, 0.65);
  font-size: 0.9rem;
}

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

.output {
  background: rgba(11, 13, 18, 0.06);
  padding: 12px;
  border-radius: 12px;
  min-height: 42px;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.log-panel {
  grid-column: 1 / -1;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.log {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.log-entry {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 13, 18, 0.04);
  border-left: 4px solid var(--accent);
  font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.log-meta {
  font-size: 0.85rem;
  color: rgba(11, 13, 18, 0.6);
}

.site-footer {
  text-align: center;
  padding: 12px 0 28px;
  color: rgba(11, 13, 18, 0.6);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .actions {
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
  }
}
