@font-face {
  font-family: "Akatab";
  src: url("../fonts/akatab/Akatab-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Akatab";
  src: url("../fonts/akatab/Akatab-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Akatab";
  src: url("../fonts/akatab/Akatab-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Akatab";
  src: url("../fonts/akatab/Akatab-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --lc-bg: #080c10;
  --lc-surface: #0e1419;
  --lc-surface-raised: #121a20;
  --lc-surface-soft: #0b1115;
  --lc-line: #223039;
  --lc-line-strong: #31424c;
  --lc-text: #eef6f6;
  --lc-muted: #91a1a9;
  --lc-teal: #24c8bc;
  --lc-teal-strong: #12a99f;
  --lc-danger: #ff8989;
  --lc-success: #65dbc9;
  --lc-card-radius: 55px;
  --lc-button-radius: 25px;
  --lc-control-radius: 14px;
  --lc-font: "Akatab", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--lc-font);
  font-size: 16px;
  background: var(--lc-bg);
  color: var(--lc-text);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--lc-bg); }
body { min-width: 320px; min-height: 100%; margin: 0; background: var(--lc-bg); color: var(--lc-text); }
body, button, input, textarea, select { font-family: var(--lc-font); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--lc-teal); text-decoration: none; }
a:hover { color: #7ce4dc; }
::selection { background: rgba(36, 200, 188, .3); color: var(--lc-text); }

.lc-skip { position: fixed; top: .75rem; left: -9999px; z-index: 1000; }
.lc-skip:focus {
  left: .75rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  background: var(--lc-teal);
  color: #041311;
}

.lc-shell { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; position: relative; }

.lc-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(8, 12, 16, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(18px);
}

.lc-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--lc-text);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.012em;
  white-space: nowrap;
}

.lc-brand:hover { color: var(--lc-text); }
.lc-brand img { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; }

.lc-nav { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: .25rem; }
.lc-nav a,
.lc-nav button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .72rem;
  border: 1px solid transparent;
  border-radius: var(--lc-button-radius);
  background: transparent;
  color: var(--lc-muted);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.lc-nav a:hover,
.lc-nav a[aria-current="page"],
.lc-nav button:hover {
  border-color: var(--lc-line);
  background: var(--lc-surface);
  color: var(--lc-text);
}

.lc-nav button { margin-left: .3rem; border-color: var(--lc-line); }
.lc-nav button:active { transform: translateY(1px); }

.lc-main { min-height: calc(100svh - 134px); padding: 3rem 0 4rem; }
.lc-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.lc-eyebrow {
  color: var(--lc-teal);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lc-title { margin: .3rem 0 0; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.lc-lede { max-width: 620px; margin: .65rem 0 0; color: var(--lc-muted); line-height: 1.55; }

.lc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.lc-page-loader {
  min-height: clamp(260px, 48vh, 520px);
  display: grid;
  place-items: center;
  margin-top: 1.75rem;
}
.lc-page-loader[hidden], .lc-grid[hidden] { display: none; }

.lc-spinner {
  width: 44px;
  height: 44px;
  display: block;
  border: 3px solid rgba(36, 200, 188, .18);
  border-top-color: var(--lc-teal);
  border-radius: 50%;
  animation: lc-spin .72s linear infinite;
}

.lc-sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.lc-card {
  grid-column: span 4;
  min-width: 0;
  padding: 1.25rem;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-card-radius);
  background: var(--lc-surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
  animation: lc-card-in .42s cubic-bezier(.2, .7, .2, 1) both;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.lc-card:nth-child(2) { animation-delay: .045s; }
.lc-card:nth-child(3) { animation-delay: .09s; }
.lc-card:nth-child(4) { animation-delay: .135s; }
.lc-card:hover { transform: translateY(-2px); border-color: var(--lc-line-strong); background: var(--lc-surface-raised); }
.lc-card[data-lc-resource].is-loading { min-height: 170px; }
.lc-card[data-lc-resource].is-loading > * { visibility: hidden; }
.lc-card[data-lc-resource].is-loading::after {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(36, 200, 188, .18);
  border-top-color: var(--lc-teal);
  border-radius: 50%;
  animation: lc-spin-centered .68s linear infinite;
  transform: translate(-50%, -50%);
}
.lc-card-wide { grid-column: span 8; }
.lc-card-half { grid-column: span 6; }
.lc-card-full { grid-column: 1 / -1; }
.lc-card-accent { border-top-color: rgba(36, 200, 188, .72); }
.lc-card h2, .lc-card h3 { margin: 0 0 .55rem; font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.lc-card p { margin: .45rem 0 0; color: var(--lc-muted); line-height: 1.5; }
.lc-card strong { color: var(--lc-text); font-weight: 600; }

.lc-kicker { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--lc-muted); font-size: .82rem; }
.lc-metric { margin: .8rem 0 0; font-size: clamp(1.55rem, 3.5vw, 2.25rem); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.lc-badge {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .34rem .58rem;
  border: 1px solid rgba(36, 200, 188, .28);
  border-radius: 999px;
  background: rgba(36, 200, 188, .08);
  color: var(--lc-success);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.lc-dot { width: .4rem; height: .4rem; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.lc-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }

.lc-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem .95rem;
  border: 1px solid transparent;
  border-radius: var(--lc-button-radius);
  background: var(--lc-teal);
  color: #031210;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.lc-button:hover { background: #64ddd4; color: #031210; transform: translateY(-1px); }
.lc-button:active { transform: translateY(0); }
.lc-button:disabled { opacity: .55; cursor: wait; transform: none; }
.lc-button-secondary { border-color: var(--lc-line); background: transparent; color: var(--lc-text); }
.lc-button-secondary:hover { border-color: var(--lc-line-strong); background: var(--lc-surface-raised); color: var(--lc-text); }

.lc-form { display: grid; gap: .95rem; }
.lc-field { display: grid; gap: .42rem; }
.lc-field label { color: #d9e5e5; font-size: .84rem; font-weight: 500; }
.lc-input,
.lc-input-group {
  width: 100%;
  border: 1px solid var(--lc-line-strong);
  border-radius: var(--lc-control-radius);
  background: var(--lc-surface-soft);
  color: var(--lc-text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.lc-input { min-height: 45px; padding: .72rem .82rem; }
.lc-input::placeholder { color: #65767f; }
.lc-input:focus { border-color: var(--lc-teal); box-shadow: 0 0 0 3px rgba(36, 200, 188, .12); background: #0c1317; }
.lc-input-group { min-height: 45px; display: flex; align-items: stretch; overflow: hidden; }
.lc-input-group:focus-within { border-color: var(--lc-teal); box-shadow: 0 0 0 3px rgba(36, 200, 188, .12); background: #0c1317; }
.lc-input-addon { min-width: 42px; display: grid; place-items: center; border-right: 1px solid var(--lc-line-strong); color: var(--lc-teal); font-weight: 600; user-select: none; }
.lc-input-group .lc-input { min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.lc-field-meta { min-height: 1.15rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.lc-form-note, .lc-field-status { color: var(--lc-muted); font-size: .78rem; line-height: 1.4; }
.lc-field-status { text-align: right; }
.lc-field-status[data-tone="checking"] { color: var(--lc-muted); }
.lc-field-status[data-tone="success"] { color: var(--lc-success); }
.lc-field-status[data-tone="error"] { color: var(--lc-danger); }
.lc-status { min-height: 1.3rem; margin: .1rem 0 0; color: var(--lc-muted); font-size: .84rem; }
.lc-status[data-tone="error"] { color: var(--lc-danger); }
.lc-status[data-tone="success"] { color: var(--lc-success); }

.lc-auth {
  width: min(1060px, calc(100% - 2rem));
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 430px);
  align-items: center;
  align-content: center;
  gap: clamp(2rem, 7vw, 6.5rem);
  margin-inline: auto;
  padding: 2rem 0;
}

.lc-auth-story { min-width: 0; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; padding: .5rem 0; }
.lc-auth-intro { max-width: 560px; }
.lc-auth-story h1 { max-width: 560px; margin: .55rem 0 .85rem; font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.lc-auth-story p { max-width: 490px; margin: 0; color: var(--lc-muted); font-size: 1rem; line-height: 1.55; }
.lc-auth-panel { min-width: 0; }
.lc-auth-card {
  width: 100%;
  padding: clamp(1.35rem, 3.6vw, 2rem);
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-card-radius);
  background: var(--lc-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  animation: lc-auth-in .45s cubic-bezier(.2, .7, .2, 1) both;
}

.lc-auth-card h2 { margin: .35rem 0 .4rem; font-size: 1.55rem; font-weight: 600; letter-spacing: -.03em; }
.lc-auth-card > p { margin: 0 0 1.2rem; color: var(--lc-muted); line-height: 1.5; }
.lc-auth-card .lc-button { width: 100%; }
.lc-auth-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.15rem; font-size: .86rem; }

.lc-signal { height: 132px; display: flex; align-items: flex-end; gap: 8px; margin-top: 2.5rem; overflow: hidden; }
.lc-signal span {
  width: 12px;
  height: var(--signal-height);
  display: block;
  border: 1px solid rgba(36, 200, 188, .4);
  border-radius: 999px;
  background: rgba(36, 200, 188, .1);
  transform-origin: bottom;
  animation: lc-signal 2.7s ease-in-out infinite alternate;
}
.lc-signal span:nth-child(2n) { animation-delay: -.65s; }
.lc-signal span:nth-child(3n) { animation-delay: -1.3s; }

.lc-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.lc-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--lc-line); color: var(--lc-muted); }
.lc-list strong { max-width: 60%; text-align: right; overflow-wrap: anywhere; }
.lc-empty { color: var(--lc-muted); }
.lc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.lc-footer { padding: 1.2rem 0 1.8rem; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--lc-muted); font-size: .78rem; }

@supports (corner-shape: squircle) {
  .lc-card, .lc-auth-card {
    border-radius: var(--lc-card-radius);
    corner-shape: squircle;
  }
}

@keyframes lc-card-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes lc-auth-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes lc-signal { 50% { transform: scaleY(.76); opacity: .65; } }
@keyframes lc-spin { to { transform: rotate(360deg); } }
@keyframes lc-spin-centered { to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (max-width: 860px) {
  .lc-auth { width: min(620px, calc(100% - 2rem)); grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0 2.5rem; }
  .lc-auth-story { min-height: auto; gap: 2.5rem; }
  .lc-auth-story h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .lc-signal { height: 72px; margin-top: 1.5rem; }
  .lc-signal span { width: 9px; }
  .lc-card, .lc-card-wide, .lc-card-half { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .lc-topbar { min-height: 0; display: grid; grid-template-columns: 1fr auto; padding: .8rem 0 .55rem; }
  .lc-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
  .lc-nav::-webkit-scrollbar { display: none; }
  .lc-nav button { position: absolute; top: .72rem; right: 0; margin-left: 0; }
  .lc-main { min-height: calc(100svh - 170px); padding: 2.2rem 0 3rem; }
  .lc-page-heading { align-items: flex-start; flex-direction: column; gap: .75rem; }
  body[data-page="login"] .lc-auth-intro,
  body[data-page="login"] .lc-auth-story > .lc-form-note { display: none; }
}

@media (max-width: 390px) {
  .lc-shell, .lc-auth { width: calc(100% - 1.25rem); }
  .lc-brand { font-size: .95rem; }
  .lc-brand img { width: 31px; height: 31px; }
  .lc-nav a, .lc-nav button { min-height: 36px; padding: .45rem .62rem; font-size: .84rem; }
  .lc-card { padding: 1.1rem; }
  .lc-auth { padding-top: 1rem; }
  .lc-auth-story { gap: 1.6rem; }
  .lc-auth-story p, .lc-signal, .lc-auth-story > .lc-form-note { display: none; }
  .lc-auth-card { padding: 1.2rem; }
  .lc-auth-links { flex-direction: column; gap: .35rem; }
  .lc-field-meta { display: block; }
  .lc-field-status { margin-top: .2rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
