*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: rgb(var(--surface-0));
  color: rgb(var(--text-2));
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.gradient-text {
  background: linear-gradient(135deg, rgb(var(--grad-from)), rgb(var(--grad-via)), rgb(var(--grad-to)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-bg {
  background: linear-gradient(135deg, rgb(var(--grad-from)) 0%, rgb(var(--grad-via)) 50%, rgb(var(--grad-to)) 100%);
}
.glass {
  background: rgb(var(--glass-bg));
  backdrop-filter: blur(12px);
  border: 1px solid rgb(var(--glass-border));
}
.glass-hover { transition: all 0.3s ease; }
.glass-hover:hover {
  background: rgb(var(--glass-hover-bg));
  border-color: rgb(var(--brand-500) / 0.4);
  transform: translateY(-2px);
}
.nav-scrolled {
  background: rgb(var(--surface-0) / 0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgb(var(--glass-border));
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 2px; width: 100%;
  border-radius: 9999px;
  background: rgb(var(--brand-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.mobile-drawer { transform: translateX(100%); transition: transform 0.3s; }
.mobile-drawer.open { transform: translateX(0); }
.mobile-overlay { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open {
  border-color: rgb(var(--brand-600) / 0.4);
  background: rgb(var(--brand-600) / 0.06);
}
.faq-item.open .faq-content { max-height: 360px; }
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: rgb(var(--brand-400));
}
.admin-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  color: #fff;
  font-size: 0.875rem;
}
.admin-input:focus {
  outline: none;
  border-color: rgb(var(--brand-600) / 0.5);
  box-shadow: 0 0 0 2px rgb(var(--brand-600) / 0.25);
}
.admin-label { display: block; font-size: 0.75rem; font-weight: 500; color: rgb(var(--text-3)); margin-bottom: 0.375rem; }
select.admin-input option { background: rgb(var(--surface-1)); }

.admin-action-row {
  display: flex;
  align-items: center;      /* Vertical centering between buttons */
  justify-content: flex-end; /* Right side of card */
  gap: 8px;
  margin-top: 0.75rem;
  width: 100%;
}

.admin-action-form {
  display: flex;
  align-items: center;
  margin: 0;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  line-height: 1;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-action-btn-edit {
  color: rgb(var(--brand-300));
  background: rgb(var(--brand-600) / 0.2);
}

.admin-action-btn-edit:hover {
  color: rgb(var(--brand-300));
  background: rgb(var(--brand-600) / 0.32);
}

.admin-action-btn-delete {
  color: #fda4af;
  background: rgba(239, 68, 68, 0.16);
}

.admin-action-btn-delete:hover {
  color: #fecdd3;
  background: rgba(239, 68, 68, 0.28);
}

/* Hero media polish */
.hero-media-card {
  position: relative;
  overflow: hidden;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-media-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgb(var(--grad-via) / 0.18), transparent 45%),
              radial-gradient(circle at 80% 80%, rgb(var(--grad-to) / 0.14), transparent 45%);
}

.hero-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
  background: rgb(var(--media-frame));
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Aggressive crop to hide top/bottom empty bars from source video */
  transform: scale(1.32) translateY(-4%);
  transform-origin: center;
  filter: saturate(1.05) contrast(1.02);
}

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