:root {
  --near-white: #EAF0FF;
  --muted-70: rgba(234, 240, 255, 0.70);
  --muted-72: rgba(234, 240, 255, 0.72);
  --muted-55: rgba(234, 240, 255, 0.55);

  --accent-color: #a64dff;
  --font-main: "Montserrat", sans-serif;

  /* Layout targets */
  --page-pad-y: clamp(64px, 10vh, 96px);
  --page-pad-x: clamp(24px, 5vw, 40px);

  /* Center stack spacing (desktop targets) */
  --s-logo-to-corexis: clamp(16px, 2.2vh, 24px);
  --s-corexis-to-tagline: clamp(6px, 1.2vh, 10px);
  --s-brand-to-headline: clamp(28px, 3.5vh, 40px);
  --s-headline-to-subtitle: clamp(14px, 2vh, 18px);
  --s-subtitle-to-form: clamp(22px, 3vh, 28px);
  --s-form-to-follow: clamp(28px, 3.8vh, 36px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--near-white);
  overflow-x: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  /* Background Setup */
  background-image: url("assets/bg-desktop.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a0b2e;
  position: relative;
}

/* Slight center darkening for readability without killing the nebula */
.bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%,
      rgba(5, 8, 18, 0.55) 0%,
      rgba(5, 8, 18, 0.38) 30%,
      rgba(5, 8, 18, 0.18) 55%,
      rgba(5, 8, 18, 0.00) 75%
    );
}

/* Page padding */
.page {
  width: min(1100px, 100%);
  padding: var(--page-pad-y) var(--page-pad-x);
  position: relative;
  z-index: 1; /* above overlay */
}

.stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand block keeps logo + wordmark “connected” */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo {
  width: min(300px, 68vw);
  height: auto;
  display: block;
  margin-bottom: -60px; /* lift logo visually closer to wordmark */
}

/* Spacing: Logo → COREXIS */
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1) Brand name: COREXIS */
.company-name {
  font-weight: 600;                 /* 700–800 */
  text-transform: uppercase;
  font-size: clamp(56px, 6vw, 72px);/* desktop 56–72 */
  line-height: 1.05;                /* 1.0–1.1 */
  letter-spacing: 0.10em;           /* +0.06em to +0.12em */
  color: var(--near-white);

  /* very subtle lift off nebula */
  text-shadow:
    0 0 14px rgba(234, 240, 255, 0.10),
    0 8px 30px rgba(0, 0, 0, 0.28);
}

/* Spacing: COREXIS → SOFTWARE SYSTEMS */
.company-tagline {
  margin-top: var(--s-corexis-to-tagline);

  font-weight: 500;                 /* 500–600 */
  text-transform: uppercase;
  font-size: clamp(14px, 1.5vw, 18px); /* desktop 14–18 */
  line-height: 1.3;                 /* 1.2–1.4 */
  letter-spacing: 0.32em;           /* +0.25em to +0.40em */
  color: var(--muted-70);

  /* none / ultra subtle glow */
  text-shadow: 0 0 10px rgba(234, 240, 255, 0.06);
}

.message-block {
  margin-top: var(--s-brand-to-headline);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3) Headline: Coming Soon */
.main-title {
  font-weight: 600;                 /* 600–700 */
  font-size: clamp(56px, 7.5vw, 96px); /* desktop 72–96, allow scaling */
  line-height: 1.05;                /* 1.0–1.1 */
  letter-spacing: -0.01em;          /* -0.01em to 0 */
  color: var(--near-white);

  /* soft shadow for contrast */
  text-shadow:
    0 10px 35px rgba(0, 0, 0, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.35);
}

/* 4) Subtitle */
.subtitle {
  margin-top: var(--s-headline-to-subtitle);

  font-weight: 500;                 /* 400–500 */
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;                 /* 1.5–1.7 */
  letter-spacing: 0.01em;           /* 0 to +0.02 */
  color: var(--muted-72);

  max-width: 760px;                 /* 640–760 centered */
}

/* (Optional) Form styles if you add it later */
.notify-form {
  margin-top: var(--s-subtitle-to-form);
  width: min(780px, 100%);          /* 640–780 centered */
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.notify-input {
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(234, 240, 255, 0.18);
  background: rgba(8, 10, 18, 0.35);
  color: var(--near-white);
  padding: 0 18px;
  outline: none;
  backdrop-filter: blur(10px);
}

.notify-input::placeholder {
  color: rgba(234, 240, 255, 0.55);
}

.notify-button {
  height: 56px;                     /* same height as input */
  width: clamp(160px, 18vw, 200px); /* 160–200 */
  border-radius: 14px;
  border: 1px solid rgba(234, 240, 255, 0.22);
  background: rgba(234, 240, 255, 0.10);
  color: var(--near-white);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.notify-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  background: rgba(234, 240, 255, 0.14);
}

/* 5) Footer microcopy */
.footer-section {
  margin-top: var(--s-form-to-follow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-text {
  font-weight: 500;                 /* 400–500 */
  font-size: 16px;                  /* 14–16 */
  letter-spacing: 0.02em;
  color: var(--muted-55);
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: rgba(234, 240, 255, 0.85);
  font-size: 1.4rem;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease, text-shadow 0.25s ease, color 0.25s ease;
  opacity: 0.85;
}

.social-icons a:hover {
  opacity: 1;
  transform: translateY(-3px);
  color: var(--near-white);
  text-shadow: 0 0 18px rgba(234, 240, 255, 0.18);
}

/* Background swap */
@media (max-width: 768px) {
  body {
    background-image: url("assets/bg-mobile.png");
  }
}

/* Mobile tuning */
@media (max-width: 600px) {
  .company-name {
    font-size: clamp(40px, 9vw, 56px);
    letter-spacing: 0.09em;
  }

  .company-tagline {
    letter-spacing: 0.26em;
  }

  .main-title {
    font-size: clamp(40px, 10vw, 64px);
  }

  .subtitle {
    font-size: 16px;
    line-height: 1.6;
  }

  .notify-form {
    grid-template-columns: 1fr;
  }

  .notify-button {
    width: 100%;
  }
}
