:root {
  --text: #f5efff;
  --page-bg-1: #020816;
  --page-bg-2: #041327;
  --page-bg-3: #062042;
  --page-bg-4: #041127;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);

  background:
    radial-gradient(circle at 72% 10%, rgba(47, 141, 255, 0.18), transparent 34%),
    radial-gradient(circle at 84% 72%, rgba(109, 197, 255, 0.16), transparent 25%),
    linear-gradient(90deg, #020816 0%, #041327 36%, #062042 70%, #041127 100%);
}

/* Subtle grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;

  background-image: radial-gradient(rgba(47, 141, 255, 0.42) 1px, transparent 1px);
  background-size: 32px 32px;

  mask-image: linear-gradient(
	90deg,
	transparent 0%,
	rgba(0, 0, 0, 0.85) 6%,
	black 14%,
	black 88%,
	rgba(0, 0, 0, 0.85) 96%,
	transparent 100%
	);
}

/* Main wrapper */
.page-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* Background image layer */
.background-image-layer {
  position: absolute;
  top: -18px;
  right: -18px;
  bottom: -18px;
  z-index: 1;

  /* Keep the image on the right side */
  width: 68%;

  background-image: url("manuonsky-bg.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;

  /* Keeps the image visible while still blending into the page */
  opacity: 1;

  /* Softens the image edge without hiding it */
  filter: none;
  transform: scale(1.03);
  transform-origin: center right;

  /*
    Blends both sides of the right-positioned image:
    left edge fades into the page, center remains visible, right edge fades softly.
  */
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 12%,
    black 28%,
    black 78%,
    rgba(0, 0, 0, 0.45) 91%,
    transparent 100%
  );
}

/* Overlay above image but below content */
.background-color-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  /*
    Keeps text readable while allowing the right-side background image
    to remain clearly visible.
  */
	  background:
	  linear-gradient(
		90deg,
		rgba(2, 8, 22, 0.78) 0%,
		rgba(2, 8, 22, 0.48) 34%,
		rgba(4, 19, 39, 0.04) 58%,
		rgba(2, 8, 22, 0.00) 78%,
		rgba(2, 8, 22, 0.08) 100%
	  ),
	  radial-gradient(circle at 76% 38%, rgba(47, 141, 255, 0.04), transparent 36%);
}

/* Keep content above all background layers */
.page-shell > section {
  position: relative;
  z-index: 5;
}

/* Small responsive improvement */
@media (max-width: 768px) {
  .background-image-layer {
    width: 100%;
    left: -18px;
    opacity: 1;
    filter: none;
    background-position: center right;
  }

  .background-color-layer {
  background:
    linear-gradient(
      90deg,
      rgba(2, 8, 22, 0.48) 0%,
      rgba(2, 8, 22, 0.08) 50%,
      rgba(2, 8, 22, 0.26) 100%
    );
}
}

/* Font and content styles from index2.html */
.main-title {
  font-family: "Oswald", "Inter", sans-serif;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff8ff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18), 0 12px 44px rgba(0, 0, 0, 0.55);
}

.accent-line {
  width: min(100%, 760px);
  height: 18px;
  margin: 28px 0 34px;
  position: relative;
}

.accent-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(47, 141, 255, 0.08) 8%, rgba(47, 141, 255, 0.3) 28%, rgba(47, 141, 255, 0.3) 72%, rgba(47, 141, 255, 0.08) 92%, transparent 100%);
  transform: translateY(-50%);
}

.accent-line span {
  position: absolute;
  left: 40%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff1ff;
  box-shadow: 0 0 0 3px rgba(47, 141, 255, 0.18), 0 0 18px rgba(109, 197, 255, 0.9), 0 0 32px rgba(47, 141, 255, 0.75);
}

.lead-copy {
  margin-top: 0;
  color: rgba(245, 239, 255, 0.84);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.focus-grid {
  width: min(100%, 690px);
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: clamp(16px, 2vw, 30px);
  margin-top: 32px;
}

.focus-item {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  position: relative;
}

.focus-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: calc(-1 * clamp(8px, 1vw, 15px));
  top: 14px;
  width: 1px;
  height: 74px;
  background: linear-gradient(180deg, transparent 0%, rgba(109, 197, 255, 0.18) 18%, rgba(109, 197, 255, 0.34) 50%, rgba(109, 197, 255, 0.18) 82%, transparent 100%);
}

.icon-box {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(109, 197, 255, 0.52);
  border-radius: 12px;
  background: rgba(6, 20, 44, 0.42);
  box-shadow: inset 0 0 22px rgba(47, 141, 255, 0.08), 0 0 24px rgba(47, 141, 255, 0.06);
}

.icon-box svg {
  width: 34px;
  height: 34px;
  stroke: #6dc5ff;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.focus-item strong {
  color: rgba(255, 245, 252, 0.88);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .main-title {
    font-size: clamp(4rem, 14vw, 7rem);
  }

  .accent-line {
    margin: 22px 0 28px;
  }

  .lead-copy {
    font-size: clamp(1.2rem, 5.2vw, 1.72rem);
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .focus-item::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .main-title {
    font-size: clamp(3.5rem, 24vw, 5.4rem);
    line-height: 0.94;
  }

  .lead-copy {
    font-size: 1.15rem;
  }

  .icon-box {
    width: 72px;
    height: 72px;
  }

  .focus-item strong {
    font-size: 0.74rem;
  }
}
