:root {
  --bg: #000000;
  --bg-alt: #121723;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --muted: rgba(246, 247, 251, 0.7);
  --accent: #4fbaf2;
  --accent-2: #33a1e0;
  --warm: #4fbaf2;
  --danger: #d94343;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(2, 4, 10, 0.9), transparent 55%),
    linear-gradient(180deg, #000000 0%, #0a0f1a 55%, #121723 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.nav-links {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  position: relative;
  display: inline-block;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.nav-icon::before {
  top: -6px;
}

.nav-icon::after {
  top: 6px;
}

.nav-cta-link {
  display: none;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-cta-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-weight: 600;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: transparent;
}

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

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 80px 0 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.metric {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.metric-value {
  display: block;
  margin-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.admin-console,
.admin {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(6, 8, 14, 0.9), transparent 50%),
    linear-gradient(180deg, #000000 0%, #0a0f1a 55%, #121723 100%);
}

.glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.admin-shell {
  padding: 60px 0 90px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.admin-card {
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-card {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.access-card .admin-actions {
  align-items: center;
}

.admin-card h2,
.admin-card h3 {
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-pill {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.2s ease;
}

.status-pill.active {
  background: rgba(69, 215, 255, 0.2);
  color: var(--text);
}

.status-pill[data-tone="ok"] {
  background: rgba(76, 215, 140, 0.2);
}

.status-pill[data-tone="warn"] {
  background: rgba(255, 209, 102, 0.2);
}

.status-pill[data-tone="error"] {
  background: rgba(255, 77, 77, 0.2);
}

.input-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.95rem;
}

.input.small {
  width: 150px;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.admin-section {
  gap: 20px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-item {
  border-radius: 18px;
  padding: 18px;
  background: rgba(4, 8, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeUp 0.3s ease both;
}

.admin-item.compact {
  padding: 14px;
}

.admin-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 186, 242, 0.22);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.item-body {
  margin-top: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.context-block {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text);
}

.context-line + .context-line {
  margin-top: 8px;
}

.item-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.duration-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn.small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 30;
}

.toast {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.ok {
  border-color: rgba(76, 215, 140, 0.4);
}

.toast.error {
  border-color: rgba(255, 77, 77, 0.4);
}

.toast.warn {
  border-color: rgba(255, 209, 102, 0.4);
}

.panel-animate .admin-card {
  animation: fadeUp 0.35s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inline-input {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 4, 10, 0.7);
  z-index: 20;
  padding: 24px;
}

.admin-overlay .admin-card {
  max-width: 420px;
  text-align: center;
}

.settings-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-value {
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}


.section {
  padding: 70px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  max-width: 640px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.split-panel {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  color: var(--muted);
}

.panel-sub {
  color: rgba(255, 255, 255, 0.75);
}

.panel-messages {
  display: grid;
  gap: 10px;
}

.panel-msg {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 40px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(69, 215, 255, 0.18), rgba(94, 124, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.cta-actions {
  display: grid;
  gap: 10px;
}

.fine {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}


[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 60px 0 20px;
  }
  .cta {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  [data-animate] {
    transition: none;
  }
}
