/* ═══════════════════════════════════════════════
   Digitara Labs – Maintenance page  (dark/pro)
   ═══════════════════════════════════════════════ */
:root {
  --blue:        #2312c8;
  --blue-mid:    #4634e8;
  --blue-rgb:    35 18 200;
  --magenta:     #ae2c63;
  --magenta-rgb: 174 44 99;
  --bg:          #07080d;
  --text:        #eff0f8;
  --muted:       #787b97;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* ── Canvas bg ──────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform; /* hint GPU compositing layer */
}

/* ── Ambient blobs ──────────────────────────────── */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
  animation: glow-drift 15s ease-in-out infinite alternate;
}

.glow-blue {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(var(--blue-rgb) / 0.5), transparent 65%);
  top: -380px; left: -180px;
}

.glow-magenta {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(var(--magenta-rgb) / 0.28), transparent 65%);
  top: -320px; right: -200px;
  animation-delay: -7.5s;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(55px, 35px) scale(1.06); }
}


/* ── Stage – full-viewport grid ────────────────── */
.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  height: 100vh;                        /* fallback */
  height: calc(var(--vh, 1vh) * 100);   /* JS-updated real viewport height */
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 clamp(24px, 6vw, 96px);
  overflow: hidden;
}

/* ── Header: logo left · lang right ─────────────── */
.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vh, 32px) 0;
}

.brand-logo {
  width: clamp(140px, 18vw, 230px);
  height: auto;
  display: block;
}

/* ── Language switcher ──────────────────────────── */
.lang-bar {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255 255 255 / 0.1);
  background: rgba(255 255 255 / 0.04);
  flex-shrink: 0;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  min-width: 44px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease,
              box-shadow 0.22s ease, transform 0.2s ease;
}

.lang-btn:hover:not(.active) {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  box-shadow: 0 4px 18px rgba(var(--blue-rgb) / 0.6);
}

/* ── Center: content vertically centered ────────── */
.stage-center {
  display: flex;
  align-items: center;
  min-height: 0;
}

/* ── Content block ──────────────────────────────── */
.content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.content.fading { opacity: 0; transform: translateY(5px); }

/* left col: status + big title */
.col-left {}

/* right col: tagline + desc + cta — vertically centered with a left accent line */
.col-right {
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid rgba(255 255 255 / 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  flex-shrink: 0;
  animation: ping 2.5s ease-in-out infinite;
}

.pill-status span:last-child {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--magenta);
}

@keyframes ping {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--magenta-rgb) / 0.55); }
  60%       { opacity: 0.9; box-shadow: 0 0 0 7px rgba(var(--magenta-rgb) / 0); }
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  line-height: 1.02;
  margin-bottom: 0;
  background: linear-gradient(150deg, #fff 30%, rgba(200 204 230 / 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255 255 255 / 0.28);
  margin-bottom: 20px;
}

.desc {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--muted);
  line-height: 1.82;
  margin-bottom: 0;
}

/* ── CTA button ─────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 55%, #7265ff 100%);
  border-radius: 999px;
  padding: 13px 26px;
  box-shadow:
    0 0 0 1px rgba(var(--blue-rgb) / 0.4),
    0 8px 28px rgba(var(--blue-rgb) / 0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255 255 255 / 0.15), transparent 55%);
  border-radius: inherit;
  pointer-events: none;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(var(--blue-rgb) / 0.5),
    0 14px 36px rgba(var(--blue-rgb) / 0.5);
}

.cta-btn:active { transform: translateY(-1px); }

/* ── Footer ─────────────────────────────────────── */
.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(255 255 255 / 0.1);
  padding-top: 18px;
  font-size: 0.75rem;
  color: rgba(255 255 255 / 0.75);
  letter-spacing: 0.03em;
  flex-wrap: wrap;
}

.stage-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.stage-footer a:hover { opacity: 0.65; }

/* ── Entrance animations ────────────────────────── */
.anim {
  opacity: 0;
  transform: translateY(18px);
  animation: enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) both;
}

@keyframes enter {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Tablet  768 – 1023 px ──────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .stage { padding: 0 clamp(24px, 4vw, 48px); }
  h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
  .content { gap: clamp(24px, 3.5vw, 48px); }
  .col-right { padding-left: clamp(16px, 2.5vw, 32px); }
}

/* ── Mobile  ≤ 767 px ───────────────────────────── */
@media (max-width: 767px) {
  html, body {
    overflow: hidden;
    overflow: clip;
  }

  .stage {
    padding: 0 22px;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    /* tighter row sizing: header fixed, center flexible, footer fixed */
    grid-template-rows: auto 1fr auto;
  }

  /* ── Header ── */
  .stage-header {
    padding: 18px 0 14px;
  }

  .brand-logo {
    width: clamp(110px, 35vw, 150px);
  }

  /* ── Center: vertically centered, not top-aligned ── */
  .stage-center {
    align-items: center;        /* center the block vertically in the free space */
    padding: 0;
  }

  /* ── Single-column content ── */
  .content {
    grid-template-columns: 1fr;
    gap: 0;                     /* gap managed per-element below */
    align-items: flex-start;
  }

  /* ── Left col ── */
  .col-left {
    margin-bottom: 20px;
  }

  .pill-status {
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(1.55rem, 6.2vw, 2.2rem);
    line-height: 1.1;
  }

  /* ── Right col: horizontal separator, compact spacing ── */
  .col-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255 255 255 / 0.1);
    padding-top: 18px;
    gap: 12px;
    align-items: flex-start;
  }

  .tagline {
    font-size: 0.72rem;
    margin-bottom: 4px;
  }

  .desc {
    font-size: 0.875rem;
    line-height: 1.72;
    color: rgba(120 124 155 / 1);
  }

  .cta-btn {
    padding: 11px 22px;
    font-size: 0.84rem;
    margin-top: 4px;
  }

  /* ── Footer ── */
  .stage-footer {
    flex-direction: row;        /* keep on one line if it fits */
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding-top: 12px;
    padding-bottom: 16px;
    font-size: 0.7rem;
  }
}
