@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0d1016;
  --panel: #171b24;
  --ink: #f4f6fb;
  --muted: #9aa4b6;
  --accent: #5b8cff;
  --accent-2: #2dd4bf;
  --danger: #f97373;
  --glass: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(91, 140, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(45, 212, 191, 0.15), transparent 40%),
    linear-gradient(160deg, #0d1016 0%, #111521 45%, #0a0d12 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(5, 8, 16, 0.45);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.runtime-header {
  display: grid;
  gap: 14px;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.status-card {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-card-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.status-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.4);
}

.btn.secondary {
  background: var(--glass);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.danger {
  background: var(--danger);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(91, 140, 255, 0.2);
  color: #b6c7ff;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  line-height: 1.4;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4b5563;
}

.status-dot.ok {
  background: #22b573;
}

.status-dot.warn {
  background: #f4a340;
}

.status-dot.err {
  background: #d9534f;
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  background: rgba(13, 16, 22, 0.7);
  color: var(--ink);
}

video {
  width: 100%;
  min-height: 220px;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
}

iframe {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: none;
}

.hero {
  display: grid;
  gap: 24px;
  padding: 18px 0 8px;
}

.hero-top {
  display: grid;
  gap: 8px;
}

.brand {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.hero-title {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
}

.hero-subtitle {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.carousel {
  padding: 6px 0 2px;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.media-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  scroll-snap-align: start;
  min-width: 240px;
  box-shadow: 0 16px 32px rgba(3, 6, 12, 0.45);
}

.media-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.media-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0c10;
}

.media-frame iframe {
  position: absolute;
  inset: 0;
}

.hero-copy h3 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 20px;
  margin: 0 0 8px;
}

.hero-copy p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.hidden-form {
  display: none;
}

.hidden-panel {
  display: none;
}

.pet-feed {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.pet-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.2fr;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(4, 7, 14, 0.45);
}

.pet-video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0c10;
}

.pet-video iframe {
  position: absolute;
  inset: 0;
}

.pet-copy {
  display: grid;
  gap: 8px;
  align-content: center;
  color: var(--muted);
}

.pet-title {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 18px;
  color: var(--ink);
}

code,
strong {
  color: var(--ink);
}

.sticks-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.stick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stick-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.stick-card-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.stick-pad {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 240px);
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 50%, rgba(91, 140, 255, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 10px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.stick-pad.inactive {
  opacity: 0.5;
}

.stick-cross {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
}

.stick-cross-h {
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.stick-cross-v {
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

.stick-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #b6c7ff 0%, #5b8cff 100%);
  box-shadow: 0 0 0 5px rgba(91, 140, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.38);
}

.stick-meta {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .container {
    padding: 16px;
  }

  .carousel-track {
    grid-auto-columns: minmax(200px, 1fr);
  }

  .pet-row {
    grid-template-columns: 1fr;
  }

  .sticks-header {
    flex-direction: column;
  }
}
