/* ==========================================================================
   057 · SECURIFY (حصن البيانات) — 1:1 Bespoke Detached 3-Pill Dock & Staggered Hero
   Pure #000000 void · Staggered 3-word H1 · 3 diagonal leader-line HUD callouts · 7 hash routes
   ========================================================================== */

:root {
  --sc-bg: #000000;
  --sc-pill: rgba(23, 23, 23, 0.90);
  --sc-card: rgba(23, 23, 23, 0.62);
  --sc-border: rgba(255, 255, 255, 0.10);
  --sc-line: rgba(255, 255, 255, 0.42);
  --sc-ink: #FFFFFF;
  --sc-muted: rgba(255, 255, 255, 0.68);
  --sc-dim: rgba(255, 255, 255, 0.50);
  --sc-sans: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --sc-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  background: var(--sc-bg);
  color: var(--sc-ink);
  font-family: var(--sc-sans);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

body.is-home {
  height: 100dvh;
  overflow: hidden;
}

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

button {
  font-family: inherit;
  letter-spacing: 0;
}

/* ======================== DETACHED 3-PILL FLOATING DOCK ======================== */
.sc-dock-header {
  position: relative;
  z-index: 50;
  padding: 20px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.is-home .sc-dock-header {
  position: absolute;
  top: 0;
  inset-inline: 0;
}

.sc-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border-radius: 999px;
  background: var(--sc-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--sc-border);
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  white-space: nowrap;
}

.sc-brand-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sc-nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--sc-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--sc-border);
  white-space: nowrap;
}

.sc-nav-link {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #D4D4D4;
  transition: color 0.2s ease, background 0.2s ease;
}

.sc-nav-link:hover,
.sc-nav-link.is-active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.09);
}

.sc-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #000000;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sc-cta-pill:hover {
  background: #E5E5E5;
  transform: translateY(-1px);
}

/* ======================== HOME HERO (#/ — 100DVH) ======================== */
.sc-hero {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.sc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.sc-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: brightness(0.86) contrast(1.08);
  transition: transform 0.5s ease-out;
}

#sc-powder-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.sc-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.56) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, transparent 35%, rgba(0, 0, 0, 0.5) 76%, #000000 100%);
  pointer-events: none;
}

@keyframes scBlurUp {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.sc-word {
  position: absolute;
  font-size: clamp(3.4rem, 9.2vw, 7.8rem);
  font-weight: 500;
  line-height: 1.08;
  color: #FFFFFF;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.75);
  opacity: 0;
  animation: scBlurUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

.sc-word-1 {
  top: 18%;
  inset-inline-start: 42px;
  animation-delay: 120ms;
}

.sc-word-2 {
  top: 38%;
  inset-inline-end: 42px;
  animation-delay: 260ms;
}

.sc-word-3 {
  top: 58%;
  inset-inline-start: 27%;
  animation-delay: 400ms;
}

.sc-floating-tagline {
  position: absolute;
  top: 45%;
  inset-inline-start: 44px;
  max-width: 245px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: scBlurUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 520ms forwards;
}

/* 3 Floating HUD Stat Callouts with Diagonal Leader Lines */
.sc-hud-stat {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 8;
}

.sc-leader {
  width: 92px;
  height: 1px;
  background: var(--sc-line);
  display: block;
}

.sc-leader-pos { transform: rotate(20deg); transform-origin: center; }
.sc-leader-neg { transform: rotate(-20deg); transform-origin: center; }

.sc-stat-num {
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  color: #FFFFFF;
}

.sc-stat-lbl {
  font-size: 13px;
  color: var(--sc-muted);
}

.sc-hud-top-end {
  top: 15%;
  inset-inline-end: 84px;
  align-items: flex-end;
}

.sc-hud-bot-end {
  bottom: 88px;
  inset-inline-end: 72px;
  align-items: flex-end;
}

.sc-hud-bot-start {
  bottom: 78px;
  inset-inline-start: 72px;
  align-items: flex-start;
}

/* Subtle bottom-center showcase bar on #/ */
.sc-home-mini-nav {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.sc-home-mini-nav a:hover {
  color: #FFFFFF;
}

/* ======================== SUBPAGES (#/platform .. #/terms) ======================== */
.sc-subpage {
  display: none;
  max-width: 1040px;
  margin: 0 auto;
  padding: 52px 32px 96px;
}

body:not(.is-home) .sc-hero {
  display: none;
}

body:not(.is-home) .sc-subpage {
  display: block;
}

.sc-eyebrow {
  font-family: var(--sc-mono);
  font-size: 12px;
  color: var(--sc-dim);
  margin-bottom: 12px;
  display: block;
}

.sc-sub-h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
}

.sc-sub-lead {
  max-width: 640px;
  font-size: 15px;
  color: var(--sc-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.sc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}

.sc-card {
  border-radius: 16px;
  background: var(--sc-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--sc-border);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-card h3 {
  font-size: 18px;
  font-weight: 500;
}

.sc-card p {
  font-size: 14px;
  color: var(--sc-muted);
  line-height: 1.7;
}

.sc-price {
  font-size: 30px;
  font-weight: 600;
  color: #FFFFFF;
}

.sc-btn-block {
  margin-top: auto;
  width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  background: #FFFFFF;
  color: #000000;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.sc-dir-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--sc-border);
  font-size: 15px;
}

.sc-sub-footer {
  display: none;
  border-top: 1px solid var(--sc-border);
  padding: 28px 32px 36px;
}

body:not(.is-home) .sc-sub-footer {
  display: block;
}

.sc-sub-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--sc-dim);
}

.sc-sub-footer-links {
  display: flex;
  gap: 20px;
}

.sc-sub-footer-links a:hover {
  color: #FFFFFF;
}

@media (max-width: 860px) {
  .sc-nav-pill .sc-hide-md {
    display: none;
  }
}

@media (max-width: 720px) {
  body.is-home {
    height: auto;
    overflow-y: auto;
  }
  .sc-nav-pill {
    display: none;
  }
  .sc-word {
    position: static;
    display: block;
    padding: 0 24px;
  }
  .sc-hero {
    padding-top: 110px;
    height: auto;
    min-height: 100dvh;
  }
  .sc-floating-tagline,
  .sc-hud-stat {
    position: static;
    margin: 20px 24px;
  }
  .sc-grid-3, .sc-grid-2 {
    grid-template-columns: 1fr;
  }
}
