@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Surfaces & Glass */
  --bg-core: #07080b;
  --glass-header: rgba(10, 12, 16, 0.65);
  --glass-card: rgba(15, 18, 30, 0.6);
  --glass-card-border: rgba(255, 255, 255, 0.08);
  --glass-card-border-top: rgba(255, 255, 255, 0.18);
  --glass-panel: rgba(8, 10, 14, 0.55);

  /* Accents */
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.35);
  --accent-purple-hover: #b875ff;

  /* Text */
  --text-main: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-subtle: #64748b;

  /* Chips */
  --chip-bg: rgba(15, 17, 23, 0.65);
  --chip-border: rgba(255, 255, 255, 0.08);

  /* Elevation */
  --shadow-ambient: 0 30px 90px -15px rgba(0, 0, 0, 0.75);
  --shadow-inner-glow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-core);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layered backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 45%, rgba(245, 158, 11, 0.08) 0%, transparent 70%),
    linear-gradient(90deg, rgba(7, 8, 11, 0.95) 0%, rgba(7, 8, 11, 0.78) 38%, rgba(7, 8, 11, 0.35) 70%, rgba(7, 8, 11, 0.6) 100%),
    linear-gradient(0deg, var(--bg-core) 0%, rgba(7, 8, 11, 0.2) 30%, transparent 60%),
    url("/static/img/web-bg-opt.webp") center / cover no-repeat;
  pointer-events: none;
  z-index: -1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: var(--glass-header);
  border-bottom: 1px solid var(--glass-card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.site-brand {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.site-brand:hover {
  opacity: 0.9;
  filter: drop-shadow(0 0 12px var(--accent-purple-glow));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: #fff;
}

/* Page Frame */

.page {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 80px 8vw;
}

.card {
  width: 100%;
  max-width: 680px;
}

/* Eyebrow Pill */

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: var(--shadow-inner-glow);
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

/* Headline & Text */

.card h1 {
  margin: 0 0 20px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.6);
}

.description {
  max-width: 520px;
  margin: 0 0 32px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* Feature Badges */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-top-color: rgba(255, 255, 255, 0.14);
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.25),
    var(--shadow-inner-glow);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.35),
    var(--shadow-inner-glow);
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

/* Back Button */

.back-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-card-border);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow-inner-glow);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

/* Legal Page */

.legal-page {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 50px 24px 60px;
}

.legal-card {
  width: 100%;
  max-width: 860px;
  background: var(--glass-card);
  border: 1px solid var(--glass-card-border);
  border-top-color: var(--glass-card-border-top);
  border-radius: 8px;
  padding: 48px;
  box-shadow: var(--shadow-ambient);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.legal-card h1 {
  text-align: center;
  font-family: 'Chakra Petch', sans-serif;
  letter-spacing: -0.5px;
  margin: 8px 0;
}

.legal-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 36px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.legal-content h2 {
  margin: 32px 0 10px;
  color: #fff;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 8px 0 18px;
  padding-left: 20px;
}

.legal-content li {
  margin: 6px 0;
}

.legal-card .back-button {
  max-width: 240px;
  margin: 36px auto 0;
}

.legal-content a {
  color: #d8b4fe;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 180, 254, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-content a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.legal-content a:visited {
  color: #c4a1f3;
}

.legal-card .back-button {
  max-width: 240px;
  margin: 36px auto 0;
}

/* Footer */

.site-footer {
  min-height: 58px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--glass-header);
  border-top: 1px solid var(--glass-card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-subtle);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-footer a:hover {
  color: #fff;
}

/* Responsive */

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }

  .page {
    padding: 48px 20px;
  }

  .card h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .description {
    font-size: 15px;
  }

  .legal-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
}

/* Clean, performant fallback specifically for Firefox */
/* Target Firefox specifically */
@supports (-moz-appearance: none) {
  
  /* 1. Strip the heavy backdrop-filters completely */
  *,
  *::before,
  *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* 2. Convert elements needing blur into localized layout contexts */
  .site-header,
  .site-footer,
  .container,
  .legal-card,
  .box-style {
    position: relative; /* Crucial for pinning the pseudo-element */
    overflow: hidden;   /* Prevents the blur from bleeding outside the card boundaries */
    background: transparent !important; /* Let the blurred layer show through */
  }

  /* 3. Inject a high-performance blurred layer behind the text content */
  .site-header::before,
  .site-footer::before,
  .container::before,
  .legal-card::before,
  .box-style::before {
    content: "";
    position: absolute;
    inset: -10px;        /* Spreads the background slightly so edges don't fade out */
    z-index: -1;        /* Keeps the background behind your text/links */
    filter: blur(12px); /* Uses standard, much faster CSS blur */
    transform: translate3d(0,0,0); /* Offloads rendering execution directly to the GPU */
    opacity: 0.95;      /* Tailor transparency individually if desired */
  }

  /* 4. Assign individual fallbacks/colors to your specific component layers */
  .site-header::before,
  .site-footer::before {
    background: rgba(10, 13, 22, 0.95);
  }

  .container::before,
  .legal-card::before {
    background: rgba(15, 18, 30, 0.92);
  }

  .box-style::before {
    background: rgba(12, 14, 24, 0.9);
  }
}