/* NeuraTech IIS-start welcome — Metro mosaic remapped to brand tokens.
   Source composition: classic Windows Server / IIS welcome mosaic.
   Tokens: NeuraWebsite/DESIGN_SYSTEM.md */

:root {
  --paper: #fafbfd;
  --mist: #f0f2f7;
  --steel: #e4e7ee;
  --ink-night: #12141c;
  --raised-ink: #1a1d28;
  --navy-ink: #243048;
  --slate: #4a5568;
  --soft-paper: #f7f8fb;
  --cool-mist: #a8b0c0;
  --hot-magenta: #e8015a;
  --deep-magenta: #d9058b;
  --brand-violet: #7332f2;
  --signal-blue: #5b4cf0;
  --magenta-deep: #c40052;
  --quiet-dot: #c5cbd6;
  --gradient-brand: linear-gradient(
    105deg,
    #fc243c 0%,
    #e8015a 22%,
    #d9058b 45%,
    #961bd0 68%,
    #7332f2 88%,
    #5b4cf0 100%
  );
  --gap: 6px;
  --tile-unit: clamp(72px, 9.5vmin, 112px);
  /* Mona Sans when online; Segoe UI is native on Windows Server / IIS hosts */
  --font: "Mona Sans", "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--soft-paper);
  background: var(--ink-night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--hot-magenta);
  color: #fff;
  font-weight: 650;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Full-bleed stage — one composition, not a dashboard */
.stage {
  position: relative;
  min-height: 100svh;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 3rem)
    clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(232, 1, 90, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 100%, rgba(91, 76, 240, 0.14), transparent 50%),
    var(--ink-night);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(circle, var(--quiet-dot) 0.9px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 55%, #000 20%, transparent 75%);
}

.chrome {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-name {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-neura {
  color: var(--soft-paper);
}

.brand-tech {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool-mist);
}

.title-band {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  margin-bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  padding: clamp(1rem, 2.2vh, 1.35rem) clamp(1.15rem, 2.5vw, 1.75rem);
  background: var(--raised-ink);
  border-radius: 4px;
  overflow: hidden;
}

.title-ribbon {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gradient-brand);
}

.title-band h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4.2vw, 2.65rem);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--soft-paper);
}

.title-tag {
  margin: 0.45rem 0 0;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 500;
  color: var(--cool-mist);
}

/* Mosaic — 8×6 IIS grid; system name is a native center card */
.mosaic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, var(--tile-unit));
  grid-template-rows: repeat(6, var(--tile-unit));
  gap: var(--gap);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.65rem 0.75rem;
  border-radius: 2px;
  color: #fff;
  font-size: clamp(0.78rem, 1.35vw, 0.95rem);
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.2;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: tile-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 35ms + 80ms);
}

.tile > span {
  position: relative;
  z-index: 1;
}

/*
  [Welcome ][Bienvenue][Ter][ Build photo ]
  [        ][Benv][Bien][He][             ]
  [Hoş     ][==== SYSTEM CARD ====][Create]
  [Gr][Väl ][                      ][     ]
  [Ru][Wil ][                      ][Ship ]
  [Arabic  ][Wi][中][ CTA    ][Ship cont]
*/
.t-welcome {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 650;
  padding: 0.9rem 1rem;
}
.t-bienvenue { grid-column: 3 / 5; grid-row: 1; }
.t-tervetuloa { grid-column: 5 / 6; grid-row: 1; }
.t-photo-build { grid-column: 6 / 9; grid-row: 1 / 3; }
.t-benvenuto { grid-column: 3 / 4; grid-row: 2; }
.t-bienvenido { grid-column: 4 / 5; grid-row: 2; }
.t-hebrew { grid-column: 5 / 6; grid-row: 2; }

.t-hos { grid-column: 1 / 3; grid-row: 3; }
.t-system {
  grid-column: 3 / 7;
  grid-row: 3 / 6;
  align-items: stretch;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.95rem 1.05rem 1rem;
  text-align: center;
  background: linear-gradient(160deg, #1e2230 0%, #16101f 55%, #1a1228 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 1, 90, 0.22);
}
.t-photo-create { grid-column: 7 / 9; grid-row: 3 / 5; }

.t-greek { grid-column: 1 / 2; grid-row: 4; }
.t-valkommen { grid-column: 2 / 3; grid-row: 4; }

.t-russian { grid-column: 1 / 2; grid-row: 5; }
.t-willkommen { grid-column: 2 / 3; grid-row: 5; }
.t-photo-ship { grid-column: 7 / 9; grid-row: 5 / 7; }

.t-arabic { grid-column: 1 / 3; grid-row: 6; }
.t-witamy { grid-column: 3 / 4; grid-row: 6; }
.t-chinese { grid-column: 4 / 5; grid-row: 6; }
.t-cta { grid-column: 5 / 7; grid-row: 6; }

/* System card internals */
.system-tile-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.system-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.system-eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool-mist);
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem 0.18rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 159, 110, 0.14);
  border: 1px solid rgba(15, 159, 110, 0.35);
  color: #3dd68c;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f9f6e;
  box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.22);
  animation: status-pulse 2.2s ease-in-out infinite;
}

.t-system h2 {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.system-name-main {
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--soft-paper);
  max-width: 14ch;
  text-wrap: balance;
}

.system-name-ar {
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 650;
  line-height: 1.3;
  color: var(--cool-mist);
}

.system-name-locale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.28rem 0.95rem;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(232, 1, 90, 0.28);
}

.system-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(228, 231, 238, 0.12);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cool-mist);
  width: 100%;
}

.system-meta-brand {
  font-weight: 750;
  letter-spacing: -0.02em;
}

.system-meta-sep {
  opacity: 0.55;
}

@keyframes status-pulse {
  0%,
  100% { box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.22); }
  50% { box-shadow: 0 0 0 5px rgba(15, 159, 110, 0.08); }
}

.tone-ink { background: #1e2230; }
.tone-deep { background: #2a1840; }
.tone-magenta { background: var(--hot-magenta); }
.tone-violet { background: var(--brand-violet); }
.tone-blue { background: var(--signal-blue); }

.tile.rtl span {
  font-weight: 600;
}

.t-photo-build,
.t-photo-create,
.t-photo-ship {
  padding: 0;
  color: var(--soft-paper);
  background: var(--raised-ink);
}

.t-photo-build img,
.t-photo-create img,
.t-photo-ship img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.t-photo-build img { object-position: center 18%; }
.t-photo-create img { object-position: center 12%; background: #fafbfd; }
.t-photo-ship img { object-position: center; background: #fafbfd; }

.photo-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(18, 20, 28, 0.72) 0%,
    rgba(18, 20, 28, 0.12) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.photo-caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.65rem;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.t-cta {
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: var(--tile-unit);
  padding: 0.65rem 1rem;
  border-radius: 2px;
  background: var(--gradient-brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  filter: brightness(1.06);
}

.cta:focus-visible {
  outline: 2px solid var(--brand-violet);
  outline-offset: 3px;
}

.cta:active {
  transform: translateY(1px);
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
}

.foot-mark {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.foot-copy {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cool-mist);
}

@keyframes tile-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: var(--tile-unit);
    width: 100%;
    --tile-unit: clamp(68px, 20vw, 100px);
  }

  .mosaic .tile {
    grid-column: auto;
    grid-row: auto;
  }

  .t-welcome,
  .t-photo-build,
  .t-photo-create,
  .t-photo-ship {
    grid-column: span 2;
    grid-row: span 2;
  }

  .t-system {
    grid-column: span 4;
    grid-row: span 3;
    min-height: calc(var(--tile-unit) * 2.4);
  }

  .t-bienvenue,
  .t-hos,
  .t-arabic,
  .t-russian,
  .t-cta {
    grid-column: span 2;
    grid-row: span 1;
  }

  .t-tervetuloa,
  .t-benvenuto,
  .t-bienvenido,
  .t-hebrew,
  .t-greek,
  .t-valkommen,
  .t-willkommen,
  .t-russian,
  .t-witamy,
  .t-chinese {
    grid-column: span 1;
    grid-row: span 1;
  }

  .eyebrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic .tile {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
    min-height: 72px;
  }

  .t-welcome,
  .t-photo-build,
  .t-photo-create,
  .t-photo-ship {
    grid-row: span 2 !important;
    min-height: 140px;
  }

  .t-system {
    grid-row: span 3 !important;
    min-height: 220px;
  }

  .title-band h1 {
    font-weight: 450;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile,
  .system-status-dot {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .cta {
    transition: none;
  }
}
