/* XentryX — Coming Soon / Maintenance page
   Design tokens mirror documentation/DESIGN_SYSTEM.md so the full site can reuse them. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20A6;
}

:root {
  --xx-midnight: #080F21;
  --xx-navy: #0C1932;
  --xx-navy-2: #12224A;
  --xx-blue: #2563EB;
  --xx-blue-bright: #3B82F6;
  --xx-cyan: #38BDF8;
  --xx-cyan-soft: #7DD3FC;
  --xx-violet: #7C3AED;
  --xx-white: #FFFFFF;
  --xx-offwhite: #F8FAFC;

  --text-strong: #F8FAFC;
  --text: #CBD5E1;          /* 11.6:1 on midnight */
  --text-muted: #94A3B8;    /* 7.4:1 on midnight */
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(56, 189, 248, .35);
  --surface: rgba(12, 25, 50, .55);
  --surface-hover: rgba(18, 34, 74, .7);

  --font-sans: "Plus Jakarta Sans", "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--xx-midnight);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--xx-midnight);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--text-strong); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--xx-offwhite);
  color: var(--xx-midnight);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--xx-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Backdrop ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(37, 99, 235, .22), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(124, 58, 237, .14), transparent 60%),
    linear-gradient(180deg, var(--xx-midnight) 0%, #0A1428 60%, var(--xx-midnight) 100%);
}
.backdrop__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  will-change: transform;
}
.orb--blue   { width: 520px; height: 520px; top: -160px; right: -80px; background: var(--xx-blue); opacity: .32; animation: drift-a 22s ease-in-out infinite alternate; }
.orb--cyan   { width: 360px; height: 360px; top: 30%; right: 18%; background: var(--xx-cyan); opacity: .16; animation: drift-b 26s ease-in-out infinite alternate; }
.orb--violet { width: 420px; height: 420px; bottom: -180px; left: -120px; background: var(--xx-violet); opacity: .2; animation: drift-c 30s ease-in-out infinite alternate; }
.backdrop__beam {
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, .35), transparent);
  opacity: .0;
  animation: beam 9s ease-in-out infinite;
}

@keyframes drift-a { to { transform: translate3d(-80px, 60px, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(60px, -50px, 0) scale(.92); } }
@keyframes drift-c { to { transform: translate3d(90px, -40px, 0) scale(1.1); } }
@keyframes beam { 0%, 100% { opacity: 0; transform: translateX(-30vw); } 50% { opacity: .6; transform: translateX(25vw); } }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(20px, 3vw, 32px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-strong);
}
.brand__logo { height: 36px; width: auto; }
.brand__mark svg { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand__sub { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 25, 50, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
}
.status-pill__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--xx-cyan);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, .6);
  animation: ping 2.4s var(--ease-out) infinite;
}
.mode-maintenance .status-pill__dot { background: #FBBF24; animation-name: ping-amber; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); } }
@keyframes ping-amber { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); } }

/* ---------- Hero ---------- */
main { flex: 1; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(32px, 7vw, 88px) clamp(48px, 7vw, 96px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--xx-cyan);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--xx-cyan));
}
.hero__title {
  margin-top: 20px;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.text-gradient {
  background: linear-gradient(100deg, var(--xx-cyan-soft) 0%, var(--xx-cyan) 30%, var(--xx-blue-bright) 65%, #A78BFA 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }

.hero__lead {
  margin-top: 24px;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--text);
  text-wrap: pretty;
}
.hero__note { margin-top: 16px; color: var(--text-muted); }
.hero__note strong { color: var(--text-strong); }
.tagline {
  margin-top: 28px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -.005em;
}
.dev-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  font-size: .9375rem;
  color: var(--text-muted);
}
.dev-note__bar {
  position: relative;
  flex: none;
  width: 72px; height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, .18);
  overflow: hidden;
}
.dev-note__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--xx-blue), var(--xx-cyan));
  animation: progress 2.6s ease-in-out infinite;
}
@keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .25s, background-color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--xx-blue) 0%, #1D4ED8 100%);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(56, 189, 248, .65), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn--ghost {
  color: var(--text-strong);
  border-color: var(--line);
  background: rgba(12, 25, 50, .5);
}
.btn--ghost:hover { border-color: var(--line-strong); background: var(--surface-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Countdown (rendered only when a launch date is configured) */
.countdown { margin-top: 32px; }
.countdown__label { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.countdown__units { display: flex; gap: 10px; margin-top: 12px; }
.countdown__units li {
  min-width: 74px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: center;
}
.countdown__value { display: block; font-size: 1.75rem; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown__unit { font-size: .75rem; color: var(--text-muted); }

/* Visual */
.hero__visual { position: relative; justify-self: center; width: min(100%, 480px); aspect-ratio: 1; }
.core { width: 100%; height: 100%; overflow: visible; }
.core__ring, .core__hex, .core__glow, .core__pulse { transform-box: view-box; transform-origin: 240px 240px; }
.core__ring--1 { animation: spin 60s linear infinite; }
.core__ring--2 { animation: spin 38s linear infinite reverse; }
.core__ring--3 { animation: spin 24s linear infinite; }
.core__glow { animation: breathe 6s ease-in-out infinite; }
.core__hex { animation: float 7s ease-in-out infinite; }
.core__pulse { animation: pulse 3s var(--ease-out) infinite; }
.core__circuit path { stroke-dasharray: 6 8; animation: flow 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- Services ---------- */
.services { padding-bottom: clamp(48px, 7vw, 96px); }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.section-title { margin-top: 14px; font-size: clamp(1.5rem, 2.8vw, 2.125rem); font-weight: 750; text-wrap: balance; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  --mx: 50%; --my: 0%;
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(320px circle at var(--mx) var(--my), rgba(56, 189, 248, .10), transparent 45%),
    var(--surface);
  transition: border-color .25s, transform .3s var(--ease-out), background-color .25s;
  isolation: isolate;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(56, 189, 248, .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover { transform: translateY(-3px); }
.service-card:hover::before { opacity: 1; }
.service-card .icon--lg {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  color: var(--xx-cyan);
  background: linear-gradient(135deg, rgba(37, 99, 235, .25), rgba(56, 189, 248, .08));
  border: 1px solid rgba(56, 189, 248, .2);
  stroke-width: 1.6;
}
.service-card h3 { margin-top: 18px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.service-card p { margin-top: 8px; font-size: .9375rem; line-height: 1.55; color: var(--text-muted); }

/* ---------- Subscribe ---------- */
.subscribe { padding-bottom: clamp(40px, 6vw, 72px); }
.subscribe__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(12, 25, 50, .6) 50%, rgba(124, 58, 237, .12));
}
.subscribe__title { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 750; }
.subscribe__text { margin-top: 8px; color: var(--text-muted); }
.field { display: flex; gap: 10px; }
.field input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: rgba(8, 15, 33, .7);
  color: var(--text-strong);
  font: inherit;
  font-size: 1rem;
}
.field input[type="email"]::placeholder { color: #8291A8; }
.field input[type="email"]:focus { outline: 2px solid var(--xx-cyan); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #F87171; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.subscribe__privacy { margin-top: 10px; font-size: .8125rem; color: var(--text-muted); }
.subscribe__status { margin-top: 8px; min-height: 1.4em; font-size: .9375rem; font-weight: 600; }
.subscribe__status.is-success { color: #6EE7B7; }
.subscribe__status.is-error { color: #FCA5A5; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.contact-list { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list__label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.contact-list a { color: var(--text-strong); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--xx-cyan); }
.social ul { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.social a:hover { border-color: var(--line-strong); color: var(--text-strong); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--text-muted);
}
.site-footer__domain { letter-spacing: .04em; }

/* ---------- Maintenance mode layout ---------- */
.mode-maintenance main { display: flex; flex-direction: column; justify-content: center; }

/* ---------- Entrance animations ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js.is-ready .reveal { animation: reveal .9s var(--ease-out) forwards; }
.d0 { animation-delay: 0ms !important; }
.d1 { animation-delay: 80ms !important; }
.d2 { animation-delay: 160ms !important; }
.d3 { animation-delay: 260ms !important; }
.d4 { animation-delay: 360ms !important; }
.d5 { animation-delay: 460ms !important; }
.d6 { animation-delay: 560ms !important; }
.d7 { animation-delay: 640ms !important; }
.d8 { animation-delay: 720ms !important; }
.d9 { animation-delay: 800ms !important; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; overflow-x: hidden; overflow-x: clip; }
  .hero__visual {
    position: absolute;
    top: -40px; right: -32%;
    width: 110%;
    max-width: 560px;
    z-index: -1;
  }
  /* fade on the SVG, not the wrapper: the wrapper's entrance animation ends at opacity 1 */
  .hero__visual .core { opacity: .3; }
  .subscribe__card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero__visual { right: -48%; top: -10px; width: 130%; }
  .hero__visual .core { opacity: .2; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; }
  .service-card .icon--lg { grid-row: span 2; }
  .service-card h3 { margin-top: 0; align-self: end; }
  .service-card p { margin-top: 4px; }
  .actions .btn { flex: 1 1 100%; }
  .field { flex-direction: column; }
  .countdown__units li { min-width: 0; flex: 1; }
  .status-pill { padding: 7px 12px; font-size: .75rem; }
  .brand__sub { display: none; }
  .orb { filter: blur(60px); }
  .orb--blue { width: 340px; height: 340px; }
  .orb--cyan { display: none; }
}

@media (max-width: 360px) {
  .brand__name { font-size: 1.125rem; }
  .status-pill { gap: 8px; padding: 6px 10px; font-size: .6875rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .backdrop__beam { display: none; }
}

@media (forced-colors: active) {
  .text-gradient { color: CanvasText; background: none; }
  .btn { border: 1px solid ButtonText; }
}

@media print {
  .backdrop, .hero__visual { display: none; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .tagline, .text-gradient { color: #000; -webkit-text-fill-color: #000; }
}
