:root {
  --bg: #050506;
  --surface: rgba(14, 14, 17, 0.78);
  --surface-strong: #101014;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, 0.14);
  --teal-soft: rgba(48, 176, 199, 0.12);
  --orange-soft: rgba(255, 159, 10, 0.12);
  --pink-soft: rgba(255, 55, 95, 0.08);
  --green: #34c759;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.04), transparent 34%),
    radial-gradient(circle at 15% 20%, rgba(48, 176, 199, 0.12), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(255, 159, 10, 0.12), transparent 20%),
    linear-gradient(180deg, #060608 0%, #0c0c10 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 56%);
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.site-header,
.site-footer,
.hero-panel,
.board-card,
.focus-card,
.admin-panel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #ffffff;
}

.site-menu a,
.site-footer a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-menu a:hover,
.site-footer a:hover {
  color: #9fd0ff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  justify-content: center;
  align-items: center;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  letter-spacing: -0.01em;
  font-size: 1rem;
  font-weight: 500;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3.6rem, 8vw, 6.9rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  max-width: 11ch;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.hero-text,
.board-card p,
.focus-card p,
.status-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.92), rgba(12, 15, 20, 0.88));
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease,
    border-color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 113, 227, 0.22);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(18, 18, 22, 0.96), rgba(10, 10, 14, 0.92));
  box-shadow: var(--shadow);
  transform: translateY(0);
  animation: floatPanel 7s ease-in-out infinite;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12), transparent 70%);
  pointer-events: none;
}

.device-frame {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 16, 20, 0.92), rgba(8, 8, 12, 0.9)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 45%);
}

.device-topbar {
  width: 92px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.status-card,
.mini-card,
.board-card,
.focus-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(22, 22, 27, 0.92), rgba(12, 12, 16, 0.88));
}

.status-card {
  padding: 24px;
  margin-bottom: 16px;
}

.status-label,
.tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.08), rgba(48, 176, 199, 0.08));
  font-size: 0.82rem;
  color: #d5d5da;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-card {
  min-height: 112px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-card-wide {
  grid-column: 1 / -1;
  min-height: 92px;
}

.mini-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-card strong,
.status-card strong {
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.board-section,
.focus-section {
  padding: 56px 0 18px;
}

.page-hero {
  padding: 52px 0 32px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.board-grid,
.focus-layout,
.project-board-grid {
  display: grid;
  gap: 18px;
}

.board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-board-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-card,
.focus-card,
.project-card {
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.board-card:hover,
.focus-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.18);
  background: rgba(24, 24, 30, 0.98);
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(18, 18, 22, 0.96), rgba(10, 10, 14, 0.9));
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.06), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255, 159, 10, 0.06), transparent 24%);
  pointer-events: none;
}

.project-image {
  margin: -28px -28px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-card-feature {
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.1), rgba(255, 255, 255, 0.96) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 250, 0.94));
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.board-meta {
  margin-top: 18px;
  font-size: 0.94rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.12);
}

.dot-orange {
  background: #ff9f0a;
  box-shadow: 0 0 0 6px rgba(255, 159, 10, 0.14);
}

.dot-red {
  background: #ff3b30;
  box-shadow: 0 0 0 6px rgba(255, 59, 48, 0.14);
}

.progress {
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.07);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66b3ff, var(--blue));
}

.focus-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 18px;
  font-weight: 600;
  background: var(--blue-soft);
  color: var(--blue);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.96), rgba(12, 14, 18, 0.92));
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.inline-link + .inline-link {
  margin-left: 18px;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.admin-layout {
  display: grid;
  gap: 20px;
  padding: 12px 0 32px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.action-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.96), rgba(10, 10, 14, 0.92));
  color: var(--text);
  text-align: left;
  font: inherit;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.24);
  background: linear-gradient(180deg, rgba(24, 24, 30, 0.98), rgba(12, 12, 16, 0.94));
}

.action-card strong {
  font-size: 1rem;
}

.action-card span {
  color: var(--muted);
  line-height: 1.45;
}

.admin-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(48, 176, 199, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(18, 18, 22, 0.96), rgba(10, 10, 14, 0.9));
  box-shadow: var(--shadow);
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-form,
.project-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-full {
  grid-column: 1 / -1;
}

.auth-form label,
.project-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-form input,
.project-form input,
.project-form textarea,
.project-form select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.project-form textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

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

.admin-status {
  margin: 0;
  color: var(--muted);
}

.admin-project-list {
  display: grid;
  gap: 12px;
}

.admin-project-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.admin-project-item.is-active {
  border-color: rgba(0, 113, 227, 0.42);
  background: rgba(0, 113, 227, 0.12);
}

.admin-project-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(10, 10, 12, 0.9);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .hero,
  .board-grid,
  .focus-layout,
  .project-board-grid,
  .form-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .section-heading,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    display: grid;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    transition: max-height 260ms ease;
  }

  .site-menu a {
    padding: 14px 0 4px;
  }

  .site-menu.is-open {
    max-height: 200px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .mini-card-wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
