/* =========================================================
   Unicorn Security — Coming Soon
   Dark industrial-luxe — same palette as main site
   ========================================================= */

:root {
  --bg: #05061a;
  --surface: rgba(255,255,255,0.028);
  --surface-hi: rgba(255,255,255,0.055);
  --border: rgba(255,255,255,0.09);
  --border-hi: rgba(255,255,255,0.18);
  --ink: #f2f3f8;
  --ink-dim: #a6abc2;
  --ink-mute: #6a6f86;
  --burgundy: #86063f;
  --burgundy-hot: #ff4b86;
  --glow: rgba(255,75,134,0.35);
  --glow-soft: rgba(255,75,134,0.12);
  --grad: linear-gradient(135deg, #ff4b86 0%, #86063f 100%);
  --ok: #4ade80;
  --warn: #f0c030;
  --info: #60a5fa;
  --radius: 6px;
  --font-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,75,134,.1) 0, transparent 42%),
    radial-gradient(circle at 85% 78%, rgba(0,7,90,.4) 0, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(134,6,63,.08) 0, transparent 60%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
  pointer-events: none; z-index: 0;
}

::selection { background: var(--burgundy-hot); color: #fff; }
a { color: var(--burgundy-hot); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff7ba6; }

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  padding: 32px 28px 28px;
  text-align: center;
}

.page::after {
  content: "";
  position: fixed;
  left: 0; right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--burgundy-hot), transparent);
  opacity: 0;
  box-shadow: 0 0 12px var(--burgundy-hot);
  animation: scanline 6s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}
@keyframes scanline {
  0%, 100% { top: 0%; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  50% { top: 100%; }
}

.lang-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 50;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid transparent; background: transparent; border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lang-toggle:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  transform: scale(1.08);
  text-decoration: none;
}
.lang-toggle::after { display: none !important; }
.lang-toggle .flag {
  width: 26px; height: auto; display: block;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.lang-toggle .flag[hidden] { display: none; }
.lang-toggle:focus-visible {
  outline: 1px solid var(--burgundy-hot);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .lang-toggle { top: 14px; right: 14px; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 30px;
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 38px; height: 38px;
  filter: drop-shadow(0 0 12px var(--glow-soft));
}
.logo img {
  height: 60px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .logo img {
    height: 30px;
  }
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}
h1 .accent {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.lead {
  font-size: 1.08rem;
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.terminal {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 36px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -10px var(--glow-soft);
  text-align: left;
}
.terminal-bar {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-bar .title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.terminal-body {
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  height: 260px;
  overflow: hidden;
  position: relative;
}
.term-line {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  animation: lineIn 0.3s ease forwards;
}
.term-line .prompt {
  color: var(--ok);
  font-weight: 700;
  flex-shrink: 0;
}
.term-line .cmd {
  color: var(--ink);
}
.term-line .status {
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 700;
}
.term-line .status.ok { color: var(--ok); }
.term-line .status.warn { color: var(--warn); }
.term-line .status.info { color: var(--info); }
.term-line .status.hot { color: var(--burgundy-hot); }

.terminal-bar .term-user { color: var(--ok); font-weight: 500; }
.terminal-bar .term-at,
.terminal-bar .term-colon { color: var(--ink-mute); }
.terminal-bar .term-path { color: var(--info); font-weight: 500; }
.terminal-bar .term-prompt { color: var(--burgundy-hot); font-weight: 500; margin: 0 6px 0 2px; text-shadow: 0 0 8px var(--glow); }
.terminal-bar .term-cmd { color: var(--ink); }
.terminal-bar .term-ok {
  margin-left: auto;
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.terminal-bar .term-ok::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}

.cursor-block {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--burgundy-hot);
  animation: blink 1s steps(2, start) infinite;
  vertical-align: text-bottom;
  margin-left: 4px;
  box-shadow: 0 0 8px var(--burgundy-hot);
}
@keyframes blink { to { visibility: hidden; } }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--grad);
  background-size: 150% 150%;
  color: #fff;
  box-shadow: 0 10px 40px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  margin-bottom: 32px;
}
.cta-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,0.3);
  color: #fff;
  text-decoration: none;
}
.cta-link svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* The terminal-bar must allow its children to shrink so a long domain
   does not push the status pill off the row. */
.terminal-bar { min-width: 0; overflow: hidden; }

.term-form {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin: 0 12px 0 6px;
  flex: 1 1 auto;
  min-width: 0;                /* allow flex children to shrink */
  font-family: var(--font-mono);
  overflow: hidden;
}
.term-cmd-prefix { color: var(--ink); flex: none; }

/* input: borderless, inline with the cmd, hot-pink caret, capped width */
.term-input {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--font-mono); font-size: inherit;
  padding: 0; margin: 0;
  outline: none;
  caret-color: var(--burgundy-hot);
  width: 20ch;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;       /* truncate visually if text is much longer */
}
.term-input::placeholder { color: var(--ink-mute); opacity: 0.55; font-style: italic; }
/* auto-size to content where supported, with a hard cap to protect the row */
@supports (field-sizing: content) {
  .term-input { field-sizing: content; min-width: 14ch; max-width: 26ch; width: auto; }
}

/* submit: subtle inline link, brightens when the form is focused */
.term-submit {
  background: transparent;
  border: none;
  color: var(--burgundy-hot);
  font-family: var(--font-mono); font-size: inherit;
  padding: 0; margin: 0 0 0 4px;
  cursor: pointer;
  text-shadow: 0 0 6px var(--glow);
  opacity: 0.55;
  flex: none;
  transition: opacity 0.2s;
}
.term-submit:hover { opacity: 1; }
.term-form:focus-within .term-submit { opacity: 1; }

/* status pill behaviour */
.terminal-bar .term-ok.waiting { color: var(--warn); }
.terminal-bar .term-ok.waiting::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.terminal-bar .term-ok.queued  { color: var(--burgundy-hot); text-shadow: 0 0 8px var(--glow); }
.terminal-bar .term-ok.queued::before { background: var(--burgundy-hot); box-shadow: 0 0 8px var(--glow); }

@media (max-width: 600px) {
  .term-form { width: 100%; margin: 6px 0; }
}

/* ===== Disclaimer modal ===== */
body.dc-locked { overflow: hidden; }

.dc-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,6,26,0.86);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 6vh 24px;
  overflow-y: auto;
}
.dc-overlay.open { display: flex; }
.dc-overlay.open .dc-stage { animation: dcIn 240ms cubic-bezier(0.22,1,0.36,1) both; }
@keyframes dcIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

.dc-stage {
  width: 100%; max-width: 620px;
  /* solid panel, not see-through. Slight pink wash from the top + a navy base. */
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,75,134,0.10), transparent 70%),
    #0c0f24;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,75,134,0.16),
    0 40px 100px -40px rgba(0,0,0,0.85),
    0 0 110px -30px rgba(255,75,134,0.22);
}
.dc-close {
  position: absolute; top: 14px; right: 16px;
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.72rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.dc-close:hover { color: var(--ink); border-color: var(--border-hi); background: rgba(255,255,255,0.03); }

.dc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--burgundy-hot); text-shadow: 0 0 10px var(--glow);
  margin-bottom: 12px;
}
.dc-eyebrow .dc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--burgundy-hot); box-shadow: 0 0 10px var(--glow);
}

.dc-title {
  font-family: var(--font-sans); font-weight: 900;
  font-size: 1.5rem; line-height: 1.15;
  color: var(--ink); letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.dc-target {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink-mute); margin-bottom: 16px;
  letter-spacing: 0.04em; text-align: left;
}
.dc-target span {
  color: var(--burgundy-hot); font-weight: 700;
  text-shadow: 0 0 8px var(--glow);
}

.dc-body {
  margin-bottom: 16px;
  color: var(--ink-dim); font-size: 0.94rem; line-height: 1.6;
  text-align: left;
}
.dc-body p { margin-bottom: 8px; }
.dc-body p:last-child { margin-bottom: 0; }
.dc-body b { color: var(--ink); font-weight: 700; }

.dc-check {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}
.dc-check:hover { border-color: var(--border-hi); }
.dc-check input {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--burgundy-hot);
  flex: none;
}
.dc-check-body { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.55; }
.dc-check-title { color: var(--ink); font-weight: 700; display: block; margin-bottom: 3px; font-size: 0.96rem; }
.dc-check-body b { color: var(--ink); }

.dc-check.required { border-color: rgba(255,75,134,0.25); }
.dc-check:has(input:checked) {
  border-color: rgba(255,75,134,0.5);
  background: rgba(255,75,134,0.05);
}

/* email input at the end of the disclaimer */
.dc-email {
  display: block;
  margin: 16px 0 6px;
  text-align: left;
}
.dc-email-label {
  display: block;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 8px;
}
.dc-email input[type="email"] {
  width: 100%;
  background: #07091c;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-mono); font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dc-email input[type="email"]::placeholder { color: var(--ink-mute); opacity: 0.55; }
.dc-email input[type="email"]:focus {
  border-color: var(--burgundy-hot);
  box-shadow: 0 0 0 1px rgba(255,75,134,0.35), 0 0 18px -4px var(--glow);
}
.dc-email-hint {
  display: block;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--ink-mute); margin-top: 6px;
  letter-spacing: 0.04em;
}

.dc-captcha {
  margin-top: 18px;
  min-height: 65px;
  display: flex; justify-content: flex-start;
}

.dc-actions {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  margin-top: 18px;
}

.dc-success { display: none; flex-direction: column; align-items: center; gap: 14px; padding: 12px 0 6px; }
.dc-stage.success > *:not(.dc-success):not(.dc-close) { display: none; }
.dc-stage.success .dc-success { display: flex; }

.dc-checkmark { width: 84px; height: 84px; }
.dc-check-circle {
  stroke: var(--ok);
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: dcStroke 0.55s ease-out forwards;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.45));
}
.dc-check-tick {
  stroke: var(--ok);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: dcStroke 0.4s 0.4s ease-out forwards;
}
@keyframes dcStroke { to { stroke-dashoffset: 0; } }

.dc-success-msg {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--ink);
  text-align: center;
  max-width: 360px;
  line-height: 1.45;
}
.dc-success-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: 0.04em;
}
.dc-actions-note {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--ink-mute); letter-spacing: 0.06em;
  margin-right: auto;
}
.dc-cancel {
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 9px 16px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.86rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.dc-cancel:hover { color: var(--ink); border-color: var(--border-hi); background: rgba(255,255,255,0.03); }
.dc-submit {
  background: var(--burgundy-hot); color: var(--bg);
  border: 1px solid var(--burgundy-hot); border-radius: 6px;
  padding: 10px 18px;
  font-family: var(--font-sans); font-weight: 900; font-size: 0.86rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--glow-soft), 0 8px 24px -10px var(--glow);
  transition: box-shadow 0.2s, transform 0.15s;
}
.dc-submit:hover:not([disabled]) {
  box-shadow: 0 0 0 2px rgba(255,75,134,0.45), 0 14px 30px -10px var(--glow);
  transform: translateY(-1px);
}
.dc-submit[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

@media (max-width: 600px) {
  .dc-stage { padding: 22px 20px 20px; }
  .dc-actions { flex-wrap: wrap; }
  .dc-actions-note { width: 100%; margin-right: 0; margin-bottom: 4px; }
}

.footer {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .page { padding: 28px 18px 24px; }
  .terminal-body { font-size: 0.68rem; height: 220px; padding: 14px 12px; }
  .lead { font-size: 0.98rem; }
  .logo { margin-bottom: 28px; }
  .cta-link { font-size: 0.85rem; padding: 14px 28px; }
  .terminal-bar { flex-wrap: wrap; gap: 4px; font-size: 0.65rem; }
  .terminal-bar .term-ok { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
