/* SafeBlock — Coming Soon
   Page styles + the design tokens this page actually uses.
   Token values mirror the SafeBlock app (light = default, dark via
   [data-theme="dark"], set from the visitor's system theme in index.html). */

:root {
  /* theme-independent */
  --sb-font: "Manrope", sans-serif;
  --sb-ease: ease;
  --sb-dur-fast: 200ms;
  --sb-radius-button: 14px;
  --sb-radius-pill: 100px;

  /* light theme (default) */
  --app_appBackground: #F1F0EF;
  --general_blockBackground: #FDFDFC;
  --general_textColor: #21201C;
  --general_captionColor: #0F0F0079;
  --button_action_backgroundColor: #21201C;
  --button_action_textColor: #FDFDFC;
  --sb-accent: #3358D4;
  --widgetLanding_textGradient: linear-gradient(98.23deg, #3A5BC7 23.14%, #3E63DD 47.18%, #ABBDF9 77.33%);
}

[data-theme="dark"] {
  --app_appBackground: #111110;
  --general_blockBackground: #191918;
  --general_textColor: #EEEEEC;
  --general_captionColor: #FFFAE965;
  --button_action_backgroundColor: #EEEEEC;
  --button_action_textColor: #191918;
  --sb-accent: #5472E4;
  --widgetLanding_textGradient: linear-gradient(98.23deg, #D6E1FF 23.14%, #5472E4 59.13%, #435DB1 87.64%);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sb-font);
  background: var(--app_appBackground);
  color: var(--general_textColor);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  /* teaser page — nothing to copy; prevent selection highlights affecting the layout */
  -webkit-user-select: none;
  user-select: none;
}

/* ---- Stage ---- */
.stage {
  position: relative;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.bgcanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* soft brand glow behind the mark */
.glow {
  position: absolute;
  left: 50%; top: 46%;
  width: min(120vh, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at center,
    color-mix(in oklab, var(--sb-accent) 26%, transparent) 0%,
    color-mix(in oklab, var(--sb-accent) 9%, transparent) 32%,
    transparent 64%);
  filter: blur(8px);
  opacity: 0;
  animation: glowIn 1600ms var(--sb-ease) 200ms forwards, breathe 9s ease-in-out 2s infinite;
}
/* top + bottom protection fades (brand motif) */
.stage::before, .stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 22vh;
  z-index: 1;
  pointer-events: none;
}
.stage::before { top: 0; background: linear-gradient(to bottom, var(--app_appBackground), transparent); }
.stage::after { bottom: 0; background: linear-gradient(to top, var(--app_appBackground), transparent); }

/* ---- Top bar ---- */
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 56px);
}
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.lockup img { width: 34px; height: 30px; display: block; }
.lockup .name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--general_textColor); }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--general_captionColor);
  padding: 8px 14px;
  border-radius: var(--sb-radius-pill);
  background: color-mix(in oklab, var(--general_blockBackground) 60%, transparent);
  border: 1px solid color-mix(in oklab, var(--general_textColor) 8%, transparent);
  backdrop-filter: blur(12px);
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sb-accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--sb-accent) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(20px, 6vw, 64px);
}
.mark {
  width: clamp(72px, 11vw, 132px);
  height: auto;
  margin-bottom: clamp(28px, 4vw, 44px);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  animation: rise 900ms var(--sb-ease) 120ms forwards;
  filter: drop-shadow(0 8px 40px color-mix(in oklab, var(--sb-accent) 40%, transparent));
}
.eyebrow {
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sb-accent);
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 900ms var(--sb-ease) 320ms forwards;
}
.headline {
  font-size: clamp(38px, 8.4vw, 110px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.headline .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 1000ms var(--sb-ease) forwards;
}
.headline .line:nth-child(1) { animation-delay: 420ms; }
.headline .line:nth-child(2) { animation-delay: 560ms; }
.headline .accent {
  background: var(--widgetLanding_textGradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* tight line-height clips glyph descenders (g, y) since the gradient only
     fills the line box — extend the paint area down, then pull layout back up */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.subline {
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--general_captionColor);
  margin: clamp(22px, 3vw, 34px) 0 0;
  max-width: 38ch;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 1000ms var(--sb-ease) 720ms forwards;
}

/* shimmer progress line — the brand's "loading" motif, signalling work-in-progress */
.progress {
  position: relative;
  width: clamp(180px, 22vw, 280px);
  height: 3px;
  border-radius: var(--sb-radius-pill);
  margin-top: clamp(34px, 4.5vw, 52px);
  overflow: hidden;
  background: color-mix(in oklab, var(--general_textColor) 9%, transparent);
  opacity: 0;
  animation: rise 1000ms var(--sb-ease) 880ms forwards;
}
.progress::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--sb-accent), transparent);
  animation: shimmer 3.5s linear 1.4s infinite;
}

/* ---- Call to action (404 page) ---- */
.cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(30px, 4vw, 44px);
  padding: 13px 26px;
  border-radius: var(--sb-radius-button);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--button_action_textColor);
  background: var(--button_action_backgroundColor);
  /* hover/press use the independent `translate` property, not `transform`:
     the rise animation fills `transform: none` (forwards), which would otherwise
     override a transform-based :hover and kill the lift */
  transition: translate var(--sb-dur-fast) var(--sb-ease), opacity var(--sb-dur-fast) var(--sb-ease);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 1000ms var(--sb-ease) 880ms forwards;
}
.cta:hover { translate: 0 -1px; }
.cta:active { translate: 0 0; opacity: 0.9; }

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 56px);
  font-size: 12px;
  color: var(--general_captionColor);
  opacity: 0;
  animation: rise 1000ms var(--sb-ease) 1000ms forwards;
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes glowIn { to { opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(220%); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--sb-accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--sb-accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--sb-accent) 0%, transparent); }
}

@media (max-width: 560px) {
  .footer { flex-direction: column; gap: 10px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
