:root {
  --bg: #f3f4f6;
  --bg-soft: #fafbfc;
  --surface: #ffffff;
  --surface-muted: #f7f8fa;
  --surface-soft: #fbfbfc;
  --border: #e6e8eb;
  --border-strong: #dce1e6;
  --text: #1b1f23;
  --muted: #5f6670;
  --muted-strong: #384252;
  --accent: #0067b8;
  --accent-strong: #005a9e;
  --accent-soft: #edf5fc;
  --success-soft: #eef8f1;
  --success-text: #107c10;
  --warning-soft: #fff5d8;
  --warning-text: #8a6d1f;
  --danger-soft: #fdeced;
  --danger-text: #a4262c;
}

html {
  color-scheme: light;
}

body {
  background:
    radial-gradient(circle at top, #ffffff 0, #f7f8fa 28%, #f3f4f6 100%);
  color: var(--text);
}

.app-shell {
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
}

.surface,
.sidebar-shell,
.app-topbar,
.table-shell,
.toolbar-shell {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 14px 36px rgba(15, 23, 42, 0.04);
}

.surface {
  border-radius: 1.35rem;
}

.surface-muted {
  background: linear-gradient(180deg, #fcfcfd, #f7f8fa);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.surface-inset {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.sidebar-shell {
  border-radius: 1.6rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #bcc5cf transparent;
  overflow-x: hidden;
}

.sidebar-shell::-webkit-scrollbar {
  width: 12px;
}

.sidebar-shell::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-shell::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #c7ced6, #afb8c3);
  background-clip: padding-box;
}

.sidebar-shell::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b8c1cb, #99a6b5);
  background-clip: padding-box;
}

.app-topbar {
  border-radius: 1.15rem;
}

.toolbar-shell,
.table-shell {
  border-radius: 1.25rem;
  overflow: hidden;
}

.page-header {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
}

.page-title {
  color: var(--text);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.page-subtitle {
  max-width: 54rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.page-subtitle p {
  margin: 0;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.25rem 1.4rem;
}

.sidebar-section + .sidebar-section {
  margin-top: 1.5rem;
}

.sidebar-section.sidebar-section-bottom {
  margin-top: auto;
}

.sidebar-heading {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: linear-gradient(180deg, #1080cf, #0067b8);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.workspace-switcher {
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  padding: 1rem 1.05rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.workspace-switcher:hover {
  border-color: #cad3dc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.workspace-link {
  display: block;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  padding: 0.85rem 0.9rem;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.workspace-link:hover {
  border-color: var(--border);
  background: #fafbfc;
}

.workspace-link-compact {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.workspace-link-compact:hover {
  border-top-color: var(--border);
  border-bottom-color: var(--border);
  background: #fafbfc;
}

.workspace-disclosure {
  border: 1px solid var(--border-strong);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff, #fafbfc);
}

.workspace-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.workspace-summary:hover {
  background: #fafbfc;
}

.workspace-summary-static {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.workspace-summary::-webkit-details-marker {
  display: none;
}

.workspace-panel {
  border-top: 1px solid var(--border);
  padding: 0.35rem 0 0.45rem;
}

.workspace-chevron {
  display: inline-block;
  height: 0.48rem;
  width: 0.48rem;
  border-right: 1.5px solid #7b8794;
  border-bottom: 1.5px solid #7b8794;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.workspace-disclosure[open] .workspace-chevron {
  transform: rotate(225deg);
}

.workspace-manage-link {
  display: inline-flex;
  width: 100%;
  padding: 0.65rem 1.25rem 0.25rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
}

.workspace-manage-link:hover {
  color: var(--accent);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 0.9rem 1.25rem;
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 500;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.sidebar-link::before {
  content: "";
  height: 0.45rem;
  width: 0.45rem;
  border-radius: 999px;
  background: #c6d0db;
  flex: none;
  transition: background-color 150ms ease;
}

.sidebar-link:hover {
  border-top-color: var(--border);
  border-bottom-color: var(--border);
  background: #fafbfc;
}

.sidebar-link-active {
  border-top-color: #d1e5f6;
  border-bottom-color: #d1e5f6;
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--accent-strong);
  font-weight: 600;
}

.sidebar-link-active::before {
  background: var(--accent);
}

.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-danger {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.65rem;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 103, 184, 0.18);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #cfd5db;
  color: var(--text);
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #bec6ce;
}

.btn-tertiary {
  background: var(--accent-soft);
  border: 1px solid #cfe3f4;
  color: var(--accent-strong);
}

.btn-tertiary:hover {
  background: #e4f0f9;
}

.btn-danger {
  background: var(--danger-soft);
  border: 1px solid #f2c9cd;
  color: var(--danger-text);
}

.btn-danger:hover {
  background: #fbdcdf;
}

.metric-card {
  border: 1px solid var(--border-strong);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff, #fcfcfd);
  padding: 1.35rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.02),
    0 10px 26px rgba(15, 23, 42, 0.03);
}

.metric-label {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  color: var(--text);
  font-size: clamp(1.9rem, 2.4vw, 2.35rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.metric-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.table-shell table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-shell thead {
  background: linear-gradient(180deg, #fbfbfc, #f7f8fa);
}

.table-shell th {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-shell td {
  border-top: 1px solid #eceff2;
  color: var(--text);
  vertical-align: top;
}

.table-shell tbody tr:hover {
  background: #fbfdff;
}

.badge,
.badge-success,
.badge-warning,
.badge-danger,
.badge-neutral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.26rem 0.68rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge {
  background: var(--accent-soft);
  border-color: #d4e7f5;
  color: var(--accent-strong);
}

.badge-neutral {
  background: #f4f5f6;
  border-color: #e5e8eb;
  color: #5b6572;
}

.badge-success {
  background: var(--success-soft);
  border-color: #cce8d2;
  color: var(--success-text);
}

.badge-warning {
  background: var(--warning-soft);
  border-color: #efdfa3;
  color: var(--warning-text);
}

.badge-danger {
  background: var(--danger-soft);
  border-color: #f2c9cd;
  color: var(--danger-text);
}

.row-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #fcfcfd);
  padding: 1rem 1.05rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.row-card:hover {
  border-color: #c7d0d9;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.toolbar-shell {
  padding: 1.25rem;
}

.toolbar-shell .app-input {
  margin-top: 0;
}

.page-link {
  color: var(--accent-strong);
  font-weight: 600;
}

.page-link:hover {
  color: var(--accent);
}

.mini-action {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #ffffff;
  padding: 0 0.9rem;
  color: var(--muted-strong);
  font-size: 0.875rem;
  font-weight: 600;
}

.mini-action:hover {
  border-color: #cbd3dc;
  background: #fafbfc;
}

.mini-action.justify-start {
  justify-content: flex-start;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
}

.sidebar-shell .mini-action {
  width: 100%;
  min-height: 2.75rem;
  justify-content: flex-start;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 1.25rem;
}

.sidebar-shell .mini-action:hover {
  border-top-color: var(--border);
  border-bottom-color: var(--border);
  background: #fafbfc;
}

.sidebar-shell .account-chip {
  width: 100%;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.85rem 1.25rem;
}

.sidebar-shell .account-avatar {
  border-radius: 0;
}

.sidebar-shell .account-chip .min-w-0 {
  flex: 1 1 auto;
}

.sidebar-shell .badge,
.sidebar-shell .badge-neutral,
.sidebar-shell .badge-success,
.sidebar-shell .badge-warning,
.sidebar-shell .badge-danger {
  border-radius: 0;
}

.sidebar-account-name {
  display: block;
}

.sidebar-account-name:hover {
  color: var(--accent-strong);
}

.sidebar-signout-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0;
  white-space: nowrap;
}

.sidebar-signout-button:hover {
  color: var(--accent-strong);
}

.account-chip-compact {
  min-height: 2.5rem;
  border-radius: 0.65rem;
  padding: 0 0.9rem 0 0.35rem;
}

.account-chip-compact .account-avatar {
  height: 1.75rem;
  width: 1.75rem;
}

.account-avatar {
  display: block;
  border-radius: 999px;
  border: 1px solid #d7dde4;
  background: #f8fafc;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

code {
  border-radius: 0.5rem;
  border: 1px solid #d6e4f0;
  background: #f5f9fc;
  padding: 0.18rem 0.44rem;
  color: #045a9c;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.88em;
}

.chart-wrap {
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #ffffff, #fafbfc);
}

.chart-grid {
  background-image: linear-gradient(to top, #edf1f5 1px, transparent 1px);
  background-size: 100% 25%;
}

.trend-bar {
  width: 1.1rem;
  border-radius: 0.45rem 0.45rem 0 0;
  background: linear-gradient(180deg, #2a8ad1, #0067b8);
  box-shadow: 0 12px 24px rgba(0, 103, 184, 0.14);
}

.definition-list {
  display: grid;
  gap: 0;
}

.definition-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 0.95rem 0;
}

.definition-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.definition-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.definition-value {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
}

.info-note {
  border: 1px solid #d9e7f2;
  border-radius: 1rem;
  background: #f5f9fd;
  padding: 1rem 1.05rem;
}

.empty-state {
  border: 1px dashed #d8dee4;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fcfcfd, #f8f9fb);
  padding: 2.4rem 1.5rem;
  text-align: center;
}

.empty-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.empty-copy {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-section + .form-section {
  border-top: 1px solid var(--border);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
}

.input-label {
  display: block;
  color: var(--muted-strong);
  font-size: 0.875rem;
  font-weight: 600;
}

.helper-copy {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.app-input {
  margin-top: 0.6rem;
  display: block;
  width: 100%;
  border: 1px solid #cfd5db;
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0.82rem 1rem;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.45;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(15, 23, 42, 0.03);
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.app-input::placeholder {
  color: #9aa3af;
}

.app-input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(0, 103, 184, 0.08),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

textarea.app-input {
  min-height: 7rem;
}

.app-checkbox {
  height: 1rem;
  width: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #cfd5db;
  color: var(--accent);
  box-shadow: none;
}

.app-checkbox:focus {
  box-shadow: 0 0 0 4px rgba(0, 103, 184, 0.1);
}

@media (max-width: 1023px) {
  .page-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (min-width: 1280px) {
  .sidebar-shell {
    min-height: 100vh;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-right: 1px solid var(--border-strong);
    border-radius: 0;
    box-shadow: none;
  }
}

.marketing-shell {
  min-height: 100vh;
  background: #ffffff;
}

.marketing-inner {
  margin: 0 auto;
  max-width: 1600px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.marketing-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #e7ebf0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.marketing-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.marketing-brand-name {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.marketing-brand-copy {
  color: #64748b;
  font-size: 0.8rem;
}

.marketing-nav-links,
.marketing-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.marketing-nav-links {
  color: #475569;
}

.marketing-nav-link,
.marketing-text-link,
.marketing-footer-link {
  transition: color 150ms ease;
}

.marketing-nav-link,
.marketing-text-link {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 500;
}

.marketing-nav-link:hover,
.marketing-text-link:hover,
.marketing-footer-link:hover {
  color: #0f172a;
}

.marketing-nav-actions {
  margin-left: auto;
}

.marketing-header .btn-primary,
.marketing-header .btn-secondary {
  border-radius: 0.2rem;
  box-shadow: none;
}

.marketing-main {
  padding-bottom: 4rem;
}

.marketing-messages {
  margin-top: 1.5rem;
}

.marketing-footer {
  margin-top: 5rem;
  border-top: 1px solid #e5e7eb;
  background: #f3f6f9;
}

.marketing-footer-inner {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.marketing-footer-grid {
  display: grid;
  gap: 2rem;
}

.marketing-footer-column-title {
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-footer-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.marketing-footer-link {
  color: #5f6368;
  font-size: 0.92rem;
}

.marketing-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #dde3ea;
  color: #64748b;
  font-size: 0.85rem;
}

.landing-page {
  background: #ffffff;
}

.landing-hero-band {
  border-bottom: 1px solid #e8edf3;
  background:
    radial-gradient(circle at right top, rgba(147, 197, 253, 0.2), transparent 24%),
    linear-gradient(180deg, #eff3f7 0%, #ffffff 72%);
}

.landing-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.landing-kicker {
  color: #1a73e8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero-title {
  margin-top: 1rem;
  color: #0f172a;
  font-size: clamp(1.75rem, 2.7vw, 2.85rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.landing-hero-subtitle {
  margin-top: 1.4rem;
  max-width: 34rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.72;
}

.landing-hero-actions,
.landing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.landing-outline-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid #cfd8e3;
  border-radius: 0.2rem;
  background: #ffffff;
  padding: 0.72rem 1rem;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.landing-outline-button:hover {
  border-color: #b9c6d6;
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.landing-hero-band .btn-primary,
.landing-cta-band .btn-primary {
  border-radius: 0.2rem;
  box-shadow: 0 10px 24px rgba(0, 103, 184, 0.14);
}

.landing-inline-stats {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.landing-inline-stat {
  border-top: 1px solid #dbe2ea;
  padding-top: 0.85rem;
}

.landing-inline-stat-value {
  color: #0f172a;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.landing-inline-stat-label {
  margin-top: 0.35rem;
  color: #6b7280;
  font-size: 0.86rem;
}

.landing-hero-visual {
  position: relative;
}

.landing-window {
  overflow: hidden;
  border: 1px solid #d8e1ea;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 28px 60px rgba(15, 23, 42, 0.1);
}

.landing-window-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  border-bottom: 1px solid #e9edf2;
  background: linear-gradient(180deg, #fafbfd, #f4f7fa);
  padding: 0 1rem;
}

.landing-window-dot {
  height: 0.6rem;
  width: 0.6rem;
  border-radius: 999px;
  background: #d3d9e1;
}

.landing-window-body {
  padding: 1.1rem;
}

.landing-window-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.landing-window-label,
.landing-window-card-label,
.landing-window-metric-label,
.landing-side-kicker,
.landing-tile-kicker {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-window-title {
  margin-top: 0.4rem;
  color: #0f172a;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.landing-window-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  border: 1px solid #dbe6f4;
  background: #f7fbff;
  padding: 0 0.8rem;
  color: #1a73e8;
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-window-stats {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.landing-window-metric {
  border: 1px solid #e7ecf2;
  background: #fbfdff;
  padding: 0.9rem 1rem;
}

.landing-window-metric-value {
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.landing-window-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.landing-window-card,
.landing-shortcut-card,
.landing-card-tile,
.landing-spotlight-card,
.landing-side-card,
.landing-code-surface,
.landing-process-surface,
.landing-endpoint-card {
  border: 1px solid #e5ebf3;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.landing-window-card {
  padding: 1rem;
}

.landing-rule-list,
.landing-status-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.landing-rule-item,
.landing-status-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #ecf0f4;
  padding-top: 0.7rem;
}

.landing-rule-item:first-child,
.landing-status-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.landing-rule-path {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 600;
}

.landing-rule-copy {
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.55;
}

.landing-status-item {
  color: #374151;
  font-size: 0.88rem;
}

.landing-window-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.landing-window-footer span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.32rem 0.6rem;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
}

.landing-window-footer code,
.landing-runtime-code code {
  border-color: #d8e3ef;
  background: #f5f9fd;
}

.landing-shortcuts-band {
  border-bottom: 1px solid #e7ebf0;
  background: #ffffff;
}

.landing-shortcuts-grid {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.landing-shortcut-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.landing-shortcut-card:hover {
  border-color: #d2dbe6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.landing-shortcut-glyph {
  display: inline-block;
  flex: none;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 999px;
}

.landing-shortcut-glyph-blue {
  background: radial-gradient(circle at 30% 30%, #7cb6ff, #0067b8);
}

.landing-shortcut-glyph-green {
  background: radial-gradient(circle at 30% 30%, #7adba3, #1f8a4c);
}

.landing-shortcut-glyph-yellow {
  background: radial-gradient(circle at 30% 30%, #ffe186, #d29b00);
}

.landing-shortcut-glyph-red {
  background: radial-gradient(circle at 30% 30%, #ff958b, #c03c2d);
}

.landing-shortcut-title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
}

.landing-shortcut-copy,
.landing-section-copy,
.landing-tile-copy,
.landing-spotlight-point-copy,
.landing-process-copy,
.landing-endpoint-copy {
  color: #5f6368;
  line-height: 1.75;
}

.landing-shortcut-copy {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.landing-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.landing-section-alt {
  border-top: 1px solid #e8edf3;
  border-bottom: 1px solid #e8edf3;
  background: #f5f7fa;
}

.landing-section-heading {
  max-width: 52rem;
}

.landing-section-title {
  margin-top: 0.6rem;
  color: #0f172a;
  font-size: clamp(1.65rem, 2.35vw, 2.35rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.landing-section-copy {
  margin-top: 1rem;
  font-size: 1rem;
}

.landing-card-grid,
.landing-endpoint-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.landing-card-tile {
  padding: 1.15rem;
}

.landing-tile-media {
  height: 10rem;
  border: 1px solid #e7ecf2;
  margin-bottom: 1.1rem;
  background-color: #f8fbff;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.landing-tile-media-blue {
  background: linear-gradient(135deg, #eaf3ff, #d4e6ff 42%, #ffffff);
}

.landing-tile-media-green {
  background: linear-gradient(135deg, #effaf3, #d7f2e1 42%, #ffffff);
}

.landing-tile-media-yellow {
  background: linear-gradient(135deg, #fff9ea, #ffefbf 42%, #ffffff);
}

.landing-tile-media-red {
  background: linear-gradient(135deg, #fff1ef, #ffd8d1 42%, #ffffff);
}

.landing-tile-illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-tile-title {
  margin-top: 0.45rem;
  color: #0f172a;
  font-size: 1.14rem;
  line-height: 1.28;
  font-weight: 600;
}

.landing-tile-copy {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.landing-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.landing-tile-meta span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe4ef;
  background: #f8fbff;
  padding: 0.35rem 0.65rem;
  color: #33557f;
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-business-grid,
.landing-runtime-grid {
  display: grid;
  gap: 1.25rem;
}

.landing-spotlight-card,
.landing-side-card,
.landing-code-surface,
.landing-process-surface {
  padding: 1.4rem;
}

.landing-spotlight-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.7rem;
}

.landing-spotlight-point,
.landing-process-step {
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid #e8edf3;
  padding-top: 1rem;
}

.landing-spotlight-point:first-child,
.landing-process-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.landing-spotlight-point-title,
.landing-process-title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
}

.landing-side-stack,
.landing-side-list,
.landing-process-list {
  display: grid;
  gap: 1rem;
}

.landing-side-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e9edf2;
  padding-top: 0.8rem;
  color: #475569;
  font-size: 0.92rem;
}

.landing-side-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.landing-side-row strong {
  color: #0f172a;
  font-weight: 600;
}

.landing-side-copy-list {
  gap: 0.8rem;
}

.landing-side-copy-row {
  color: #5f6368;
  font-size: 0.92rem;
  line-height: 1.7;
}

.landing-runtime-code {
  overflow-x: auto;
  margin-top: 1.3rem;
  border: 1px solid #dce5ef;
  background: #f8fbff;
  padding: 1rem 1.05rem;
  color: #174ea6;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
  line-height: 1.75;
}

.landing-process-step {
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.landing-process-number {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1a73e8;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.88rem;
  font-weight: 700;
}

.landing-endpoint-card {
  padding: 1.1rem;
}

.landing-endpoint-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid #dbe6f4;
  background: #eef4ff;
  padding: 0.45rem 0.72rem;
  color: #1a73e8;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.landing-endpoint-path {
  margin-top: 0.9rem;
  color: #0f172a;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.88rem;
  font-weight: 600;
}

.landing-endpoint-copy {
  margin-top: 0.5rem;
  font-size: 0.92rem;
}

.landing-cta-band {
  border-top: 1px solid #e8edf3;
  background:
    radial-gradient(circle at 12% 20%, rgba(191, 219, 254, 0.28), transparent 18%),
    linear-gradient(180deg, #ffffff, #f3f7fb);
}

.landing-cta-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .marketing-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .landing-inline-stats,
  .landing-window-stats,
  .landing-shortcuts-grid,
  .landing-card-grid,
  .landing-endpoint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .marketing-footer-grid {
    grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  }

  .landing-hero-grid,
  .landing-business-grid,
  .landing-runtime-grid,
  .landing-cta-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .landing-hero-grid {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .landing-window-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-window-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .landing-shortcuts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .marketing-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .landing-card-grid,
  .landing-endpoint-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .landing-endpoint-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
