:root {
  color-scheme: light;
  --ink: #0d2636;
  --muted: #617684;
  --line: #d8e6ea;
  --panel: #ffffff;
  --soft: #f2f8f9;
  --teal: #12947f;
  --teal-strong: #0d7667;
  --blue: #2f7cff;
  --navy: #092235;
  --danger: #b33a3a;
  --shadow: 0 22px 70px rgba(10, 39, 57, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7fbfb;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 251, 251, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 230, 234, .72);
}
.nav {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #0d7667, #2f7cff);
  box-shadow: 0 14px 35px rgba(18, 148, 127, .26);
}
.brand-mark svg { width: 24px; height: 24px; fill: currentColor; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #37505f;
  font-size: 14px;
  font-weight: 700;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.btn.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}
.btn.primary:hover { background: var(--teal-strong); }
.btn.ghost { background: transparent; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247,251,251,.98) 0%, rgba(247,251,251,.88) 36%, rgba(247,251,251,.42) 62%, rgba(247,251,251,.92) 100%),
    url("/assets/platform-hero.svg") center right / cover no-repeat;
}
.hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
  padding: 82px 0 118px;
}
.eyebrow {
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
}
h1 {
  margin: 16px 0 18px;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .96;
  letter-spacing: 0;
}
.hero p {
  max-width: 600px;
  color: #48616f;
  font-size: 19px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-strip {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}
.metric {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.metric strong { display: block; font-size: 22px; }
.metric span { color: var(--muted); font-size: 13px; font-weight: 700; }

.section {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
  padding: 74px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}
.section h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}
.section-head p { margin: 0; max-width: 500px; color: var(--muted); line-height: 1.7; }
.feature-grid, .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature, .panel, .form-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(10, 39, 57, .06);
}
.feature svg { width: 25px; height: 25px; color: var(--teal); }
.feature h3, .panel h3 { margin: 14px 0 9px; }
.feature p, .panel p, .legal p, .legal li { color: var(--muted); line-height: 1.75; }

.app-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 280px 1fr;
}
.sidebar {
  background: var(--navy);
  color: white;
  padding: 26px;
}
.sidebar .brand { margin-bottom: 34px; }
.side-link {
  display: flex;
  padding: 13px 0;
  color: #c5d4db;
  font-weight: 800;
}
.workspace {
  padding: 32px;
}
.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.workspace-head h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e9f7f5;
  color: var(--teal-strong);
  font-weight: 900;
  font-size: 13px;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: #2d4655; font-weight: 800; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  background: #fbfefe;
  color: var(--ink);
}
.field textarea { min-height: 118px; resize: vertical; }
.list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfefe;
}
.muted { color: var(--muted); }
.notice {
  padding: 13px 14px;
  border-radius: 8px;
  background: #fff8e8;
  border: 1px solid #f1d698;
  color: #7c5a11;
  font-weight: 800;
}
.hidden { display: none !important; }

.auth-page {
  width: min(460px, calc(100% - 32px));
  margin: 54px auto 88px;
}
.auth-page h1 { font-size: 42px; margin-bottom: 8px; }

.legal {
  width: min(880px, calc(100% - 32px));
  margin: auto;
  padding: 60px 0;
}
.legal h1 { font-size: 46px; line-height: 1.05; }
.legal h2 { margin-top: 34px; }
.legal-footer, .site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 800; }

@media (max-width: 860px) {
  .nav { min-height: auto; padding: 14px 0; align-items: flex-start; }
  .nav, .section-head, .workspace-head { flex-direction: column; }
  .nav-links { flex-wrap: wrap; }
  .hero { background-position: 55% center; }
  .hero-strip, .feature-grid, .dashboard-grid, .form-grid, .app-shell { grid-template-columns: 1fr; }
  .sidebar { padding: 20px; }
  .workspace { padding: 22px 16px; }
}
