:root {
  --ink-900: #0a1f2d;
  --ink-700: #1d3b4f;
  --ink-500: #5b7687;
  --surface-100: #f4f8fa;
  --surface-200: #e6eef2;
  --line: #d5e1e8;
  --brand: #0e7d84;
  --brand-strong: #0b6b71;
  --accent: #53bfae;
}

html {
  font-size: 16px;
}

body {
  font-family: "Avenir Next", "Trebuchet MS", "Lucida Sans", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 5% -10%, #d8ecef 0%, transparent 35%),
    radial-gradient(circle at 100% 0%, #d8e4ef 0%, transparent 30%),
    linear-gradient(160deg, #f8fcfd 0%, #eef4f7 60%, #edf3f6 100%);
  margin: 0;
}

h1, h2, h3, .navbar-brand {
  font-family: "Montserrat", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-strong);
}

.top-nav {
  background-color: rgba(250, 253, 255, 0.78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1080;
}

.top-nav .dropdown-menu {
  z-index: 1090;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--ink-900);
}

.brand-mark__dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 4px rgba(83, 191, 174, 0.2);
}

.navbar .nav-link {
  color: var(--ink-700);
  font-weight: 600;
}

.page-shell {
  padding-top: 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(24, 52, 73, 0.12);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: rgba(83, 191, 174, 0.18);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.hero__lead {
  color: var(--ink-700);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero__actions {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__visual img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #c9dae4;
  box-shadow: 0 18px 30px rgba(24, 52, 73, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border: 0;
}

.btn-outline-primary {
  border-color: #8bb8c4;
  color: var(--ink-700);
}

.btn-outline-primary:hover {
  background: #d7e7ed;
  border-color: #8bb8c4;
  color: var(--ink-900);
}

.capability-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.capability-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem 1.1rem;
}

.capability-card h2 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

.capability-card p {
  color: var(--ink-700);
  margin-bottom: 0;
}

.proof-strip {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.proof-strip > div {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: #f7fbfc;
}

.proof-strip strong {
  display: block;
  font-size: 0.95rem;
}

.proof-strip span {
  font-size: 0.88rem;
  color: var(--ink-500);
}

.workspace-shell {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.workspace-header {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}

.workspace-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.schedule-gantt-grid {
  display: grid;
  gap: 0.6rem;
}

.schedule-gantt-scale {
  margin-left: 280px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  font-size: 0.75rem;
  color: var(--ink-500);
}

.schedule-gantt-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.schedule-gantt-label {
  font-size: 0.85rem;
}

.schedule-gantt-track {
  position: relative;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      to right,
      rgba(14, 125, 132, 0.05) 0%,
      rgba(14, 125, 132, 0.05) 8.3333%,
      transparent 8.3333%,
      transparent 16.6666%
    ),
    #fff;
  overflow: hidden;
}

.schedule-gantt-band {
  position: absolute;
  top: 5px;
  height: 22px;
  border-radius: 6px;
  padding: 0 0.35rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.auth-card {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 16px 35px rgba(24, 52, 73, 0.12);
  padding: 1.6rem;
}

.auth-card h1 {
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  color: var(--ink-700);
  margin-bottom: 1rem;
}

.auth-divider {
  margin: 1rem 0;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.auth-divider span {
  display: inline-block;
  background: #fff;
  padding: 0 0.5rem;
}

.auth-external-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-footnote {
  margin-top: 1rem;
  color: var(--ink-700);
}

.token-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  color: var(--ink-500);
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .proof-strip,
  .auth-external-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}
