﻿:root {
  --primary: #6c5ce7;
  --text: #1c1f2d;
  --muted: #5b6078;
  --card-bg: #ffffff;
  --border: #d8d2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--primary);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 24px;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page.has-custom-bg {
  background-image: var(--custom-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.logo-outside {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 8px;
}

.logo-link {
  display: inline-flex;
}

.card {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 32px rgba(15, 11, 49, 0.22);
  text-align: center;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 11, 49, 0.26);
}

.hero {
  text-align: center;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.2;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

p + p {
  margin-top: 8px;
}

.sub {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  transition: transform 180ms ease, filter 180ms ease;
}

.page.has-custom-bg .btn {
  background: var(--dynamic-btn-bg, var(--primary));
  color: var(--dynamic-btn-text, #fff);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

code {
  background: #f2f0ff;
  border-radius: 6px;
  padding: 2px 6px;
}

.site-footer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  color: #f3efff;
  font-size: 0.95rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.mini-cta {
  margin-top: 2px;
  font-size: 0.92rem;
  color: #f3efff;
}

.mini-cta a {
  color: #ffffff;
  text-decoration: underline;
}

.video-wrap {
  margin-top: 12px;
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.table-card {
  padding: 0;
}

.table-wrap {
  overflow: auto;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.db-table th,
.db-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.db-table th {
  color: var(--text);
  background: #f5f3ff;
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .card,
  .btn {
    transition: none !important;
  }
}
