@font-face {
  font-family: "Syne";
  src: url("/fonts/syne-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("/fonts/syne-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #07131f;
  --ink-2: #0c1c2e;
  --mist: #d7e6f2;
  --paper: #eef5fa;
  --accent: #1fa8a0;
  --accent-2: #f0a05a;
  --line: rgba(215, 230, 242, 0.18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--mist);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: var(--ink);
  overflow-x: hidden;
}

.shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 520px at 12% 8%, rgba(31, 168, 160, 0.28), transparent 60%),
    radial-gradient(900px 600px at 88% 18%, rgba(240, 160, 90, 0.18), transparent 55%),
    linear-gradient(165deg, #06101a 0%, #0b1a2c 46%, #10253a 100%);
}

.shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(215, 230, 242, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 230, 242, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 36px, 36px 72px; }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: 0.02em;
}

.brand-mark span { color: var(--accent); }

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(215, 230, 242, 0.55);
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(215, 230, 242, 0.7);
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(31, 168, 160, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 168, 160, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(31, 168, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 168, 160, 0); }
}

.hero {
  display: grid;
  align-content: center;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.2rem, 4vw, 3.5rem) 2rem;
  max-width: 1100px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  opacity: 0;
  animation: rise 0.8s ease forwards 0.15s;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.28s;
}

.lead {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.55;
  color: rgba(215, 230, 242, 0.78);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.42s;
}

.actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.56s;
}

.btn {
  appearance: none;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.35rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #04221f;
}

.btn-primary:hover { background: #27c2b8; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(215, 230, 242, 0.28);
}

.btn-ghost:hover { border-color: rgba(215, 230, 242, 0.55); }

.foot {
  padding: 1.1rem clamp(1.2rem, 4vw, 3.5rem) 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(215, 230, 242, 0.5);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .top-meta .hide-sm { display: none; }
  h1 { max-width: 100%; }
}

/* login */
.login-wrap {
  display: grid;
  place-items: center;
  padding: 2rem clamp(1.2rem, 4vw, 3.5rem);
}
.panel {
  width: min(100%, 420px);
  padding: 1.75rem;
  border: 1px solid rgba(215, 230, 242, 0.16);
  background: rgba(7, 19, 31, 0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: rise 0.7s ease forwards 0.2s;
}
.panel h1 {
  font-size: 1.85rem;
  max-width: none;
  margin-bottom: 0.35rem;
}
.panel p {
  margin: 0 0 1.4rem;
  color: rgba(215, 230, 242, 0.65);
  font-size: 0.95rem;
}
label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(215, 230, 242, 0.55);
}
input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(215, 230, 242, 0.2);
  background: rgba(15, 30, 48, 0.9);
  color: var(--paper);
  font: inherit;
  outline: none;
}
input:focus { border-color: var(--accent); }
.err {
  display: none;
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(240, 160, 90, 0.45);
  background: rgba(240, 160, 90, 0.1);
  color: #f6c794;
  font-size: 0.88rem;
}
.err.show { display: block; }
.panel .btn { width: 100%; }
.back {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(215, 230, 242, 0.55);
  text-decoration: none;
  font-size: 0.88rem;
}
.back:hover { color: var(--paper); }

/* status */
.status {
  padding: clamp(2rem, 6vh, 4rem) clamp(1.2rem, 4vw, 3.5rem);
  max-width: 720px;
}
.status h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: none;
  margin-bottom: 1.5rem;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(215, 230, 242, 0.12);
  font-size: 0.95rem;
  opacity: 0;
  animation: rise 0.6s ease forwards;
}
.row:nth-child(2) { animation-delay: 0.15s; }
.row:nth-child(3) { animation-delay: 0.25s; }
.row:nth-child(4) { animation-delay: 0.35s; }
.row:nth-child(5) { animation-delay: 0.45s; }
.ok { color: var(--accent); font-weight: 500; }
.muted { color: rgba(215, 230, 242, 0.55); }
.status .actions { margin-top: 2rem; opacity: 1; animation: none; }
