@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap");

:root {
  --bg:#080810;
  --surface:#12121E;
  --accent:#00D4FF;
  --secondary:#3A7BD5;
  --warm:#E87040;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 6%, rgba(58, 123, 213, 0.18), transparent 32rem),
    radial-gradient(circle at 92% 28%, rgba(0, 212, 255, 0.08), transparent 28rem),
    var(--bg);
  color: #f5f7fb;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.52);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.16), rgba(58, 123, 213, 0.08));
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.1);
}

.brand-name,
.context-label {
  color: #dfe5f1;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.context-label {
  max-width: 50%;
  overflow: hidden;
  color: #8f9aae;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  flex: 1;
  padding: 72px 0 88px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.35rem, 7vw, 5.25rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #687389;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-shell main {
  display: grid;
  align-content: center;
}

.landing-card {
  position: relative;
  max-width: 900px;
  padding: 80px 0 110px;
}

.landing-card h1 {
  margin-bottom: 30px;
}

.landing-copy {
  max-width: 660px;
  margin-bottom: 38px;
  color: #aeb8c9;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.accent-line {
  width: 96px;
  height: 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.34);
}

.page-heading {
  margin-bottom: 42px;
}

.page-heading h1 {
  margin-bottom: 18px;
}

.engagement-status {
  margin: 0;
  color: #909caf;
}

.next-action {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 74px;
  padding: 26px 30px 28px 34px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(0, 212, 255, 0.1), rgba(58, 123, 213, 0.05));
}

.next-action::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  content: "";
}

.next-action span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.next-action strong {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card,
.ops-client,
.key-card,
.calendar-launch,
.state-card,
.empty-panel,
.project-hero,
.item-row {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(18, 18, 30, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.project-card {
  position: relative;
  min-height: 390px;
  padding: 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
}

.card-topline,
.hero-status,
.ops-project-heading,
.ops-client-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-topline > span:last-child,
.hero-status > span:last-child {
  color: #8490a4;
  font-size: 0.76rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 27px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #bac4d5;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge.active {
  border-color: rgba(0, 212, 255, 0.32);
  background: rgba(0, 212, 255, 0.09);
  color: var(--accent);
}

.badge.waiting-client,
.badge.blocked {
  border-color: rgba(232, 112, 64, 0.34);
  background: rgba(232, 112, 64, 0.1);
  color: #ff956b;
}

.badge.complete {
  border-color: rgba(112, 218, 174, 0.27);
  background: rgba(112, 218, 174, 0.08);
  color: #8be0ba;
}

.badge.archived {
  color: #818ba0;
}

.project-card h2 {
  margin: 23px 0 12px;
}

.card-summary {
  min-height: 52px;
  margin-bottom: 25px;
  color: #99a5b8;
}

.progress-stack {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}

.progress-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
}

.progress-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #8c98aa;
  font-size: 0.76rem;
}

.progress-heading strong {
  color: #dce2ed;
  font-weight: 600;
}

progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #272838;
  accent-color: var(--accent);
}

progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #272838;
}

progress::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

progress::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.progress-percent {
  color: #737e92;
  font-size: 0.7rem;
}

.metric-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.metric-line strong {
  color: #dfe6f1;
}

.metric-line span,
.quiet-note {
  color: #7f8a9e;
  font-size: 0.76rem;
}

.quiet-note {
  margin: 0;
}

.card-link {
  width: fit-content;
  margin-top: auto;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.completed-panel {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(18, 18, 30, 0.62);
}

.completed-panel summary {
  padding: 20px 24px;
  color: #bbc4d2;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.completed-list {
  padding: 0 18px 18px;
}

.completed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.completed-row strong,
.completed-row small {
  display: block;
}

.completed-row small {
  margin-top: 4px;
  color: #758095;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 350px);
  gap: 60px;
  align-items: end;
  margin-bottom: 32px;
  padding: 44px;
  border-radius: 22px;
}

.project-hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.2rem, 6vw, 4.3rem);
}

.project-hero p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: #9ca8ba;
}

.project-delivery {
  padding: 22px;
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.035);
}

.calendar-launch,
.empty-panel,
.state-card,
.key-card {
  padding: clamp(28px, 6vw, 54px);
  border-radius: 20px;
}

.calendar-launch {
  text-align: center;
}

.calendar-launch h2 {
  margin-bottom: 14px;
}

.calendar-launch p:not(.eyebrow) {
  max-width: 630px;
  margin: 0 auto 28px;
  color: #96a2b5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(0, 212, 255, 0.52);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(58, 123, 213, 0.2));
  color: #e9fbff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover,
.button:focus-visible {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.28), rgba(58, 123, 213, 0.28));
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.empty-panel {
  color: #9ba6b8;
}

.empty-panel h2 {
  margin-bottom: 12px;
  color: #f5f7fb;
}

.empty-panel p:last-child {
  margin-bottom: 0;
}

.empty-panel.compact {
  padding: 18px 22px;
  border-radius: 12px;
}

.items-section {
  margin-top: 54px;
}

.item-list {
  display: grid;
  gap: 12px;
}

.item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 15px;
}

.item-row h2 {
  margin: 4px 0 8px;
  font-size: 1.08rem;
}

.item-row p {
  margin: 0;
  color: #8f9bae;
}

.item-position {
  color: #69758a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.decision-tag {
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(58, 123, 213, 0.16);
  color: #a9caff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: capitalize;
}

.loading-state,
.error-state {
  max-width: 680px;
  margin: 10vh auto 0;
  text-align: center;
}

.loading-state p {
  margin: 20px 0 0;
  color: #8c97aa;
}

.loader {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.error-state h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 6vw, 3.6rem);
}

.error-state p:not(.eyebrow) {
  color: #99a4b7;
}

.error-state .button {
  margin-top: 12px;
}

.key-card {
  max-width: 720px;
  margin: 6vh auto 0;
}

.key-card h1 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 6vw, 4rem);
}

.key-card > p:not(.eyebrow) {
  max-width: 570px;
  color: #9ba6b8;
}

.key-card form {
  margin-top: 34px;
}

.key-card label {
  display: block;
  margin-bottom: 9px;
  color: #c5cdda;
  font-size: 0.8rem;
  font-weight: 700;
}

.key-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.key-entry input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  outline: 0;
  background: #0c0c15;
  color: #f4f6fa;
}

.key-entry input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: #ff956b;
  font-size: 0.84rem;
}

.ops-heading h1 {
  font-size: clamp(2.3rem, 6vw, 4.7rem);
}

.ops-client-list,
.ops-project-list {
  display: grid;
  gap: 20px;
}

.ops-client {
  padding: 30px;
  border-radius: 20px;
}

.ops-client-heading {
  align-items: center;
  margin-bottom: 24px;
}

.ops-client-heading .eyebrow {
  margin-bottom: 7px;
}

.client-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.client-counts span {
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #919caf;
  font-size: 0.7rem;
}

.ops-project {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: #0d0d17;
}

.ops-project-heading h3 {
  margin-bottom: 6px;
}

.ops-project-heading p {
  margin: 0;
  color: #818da1;
  font-size: 0.82rem;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.ops-metrics div {
  padding: 13px;
  background: #151521;
}

.ops-metrics strong,
.ops-metrics span {
  display: block;
}

.ops-metrics strong {
  color: #e2e7ef;
  font-size: 0.92rem;
}

.ops-metrics span {
  margin-top: 3px;
  color: #737f93;
  font-size: 0.67rem;
}

.inactive-record {
  opacity: 0.58;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(1180px, calc(100% - 28px));
  }

  .topbar {
    min-height: 78px;
  }

  .brand-name {
    display: none;
  }

  main {
    padding: 48px 0 64px;
  }

  .project-grid,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .project-hero {
    gap: 30px;
    padding: 28px;
  }

  .next-action {
    margin-bottom: 52px;
  }

  .ops-client-heading,
  .ops-project-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-counts {
    justify-content: flex-start;
  }

  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(1180px, calc(100% - 22px));
  }

  .brand-mark {
    width: 41px;
    height: 41px;
  }

  .context-label {
    max-width: 65%;
  }

  .project-card,
  .ops-client {
    padding: 22px;
  }

  .card-topline,
  .completed-row,
  .item-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card {
    min-height: 0;
  }

  .card-summary {
    min-height: 0;
  }

  .card-link {
    margin-top: 10px;
  }

  .key-entry {
    grid-template-columns: 1fr;
  }

  .item-statuses {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .loader {
    animation-duration: 1800ms;
  }
}
