:root {
  --font-sans: "Geist", "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --canvas: #ffffff;
  --page: #fafafa;
  --soft: #f5f5f7;
  --soft-2: #f1f2f4;
  --ink: #171717;
  --body: #4d4d4d;
  --muted: #888888;
  --faint: #b6b6b6;
  --hairline: #e8e8e8;
  --hairline-strong: #d6d6d6;
  --primary: #171717;
  --on-primary: #ffffff;
  --link: #0066cc;
  --success: #0c7a43;
  --warning: #a16207;
  --danger: #c01f1f;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --pill: 999px;
  --shadow-1: 0 1px 1px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 1px 1px rgba(0, 0, 0, 0.04), 0 18px 50px rgba(0, 0, 0, 0.09);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 24% 0%, rgba(0, 112, 243, 0.12), transparent 28%),
    radial-gradient(circle at 74% 8%, rgba(80, 227, 194, 0.12), transparent 26%),
    linear-gradient(to bottom, #ffffff 0, var(--page) 620px, var(--page) 100%);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

small {
  color: var(--muted);
}

.app-shell,
.home-page {
  min-height: 100dvh;
}

.topbar,
.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(16px, 3vw, 40px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand,
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.brand-mark.light {
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
}

.brand strong,
.auth-title {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

.brand span,
.muted {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account,
.actions,
.home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  object-fit: cover;
}

.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100dvh - 64px);
}

.sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100dvh - 64px);
  padding: 18px 12px;
  background: rgba(250, 250, 250, 0.72);
  border-right: 1px solid var(--hairline);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: 3px 0;
  padding: 0 12px 0 32px;
  color: var(--body);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease), border-color 180ms var(--ease);
}

.nav-item::before {
  position: absolute;
  left: 13px;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.26;
  content: "";
}

.nav-item:hover {
  color: var(--ink);
  background: var(--canvas);
  transform: translateX(2px);
}

.nav-item.active {
  color: var(--ink);
  background: var(--canvas);
  border-color: var(--hairline);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.nav-item.active::before {
  background: var(--primary);
  opacity: 1;
}

.main {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px);
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin: 0 0 24px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -1.4px;
}

.page-head p {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--body);
  line-height: 1.65;
}

.section,
.metric,
.plan,
.pricing-card,
.feature-card,
.workflow-grid > div,
.table-wrap,
.auth-card,
.product-mockup,
.home-strip {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

.section {
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg);
}

.section h2 {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.metrics {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  margin-bottom: 18px;
}

.grid.plans,
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.metric {
  position: relative;
  min-height: 118px;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.metric::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  content: "";
}

.metric span,
.plan > span,
.pricing-card span,
.table-wrap small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.metric strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric small {
  display: block;
  margin-top: 8px;
}

.portal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  min-height: 278px;
  margin: 0 0 18px;
  padding: clamp(24px, 5vw, 46px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(0, 112, 243, 0.12), transparent 34%),
    var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
}

.portal-hero h2 {
  max-width: 720px;
  margin: 14px 0 12px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1.7px;
}

.portal-hero p {
  max-width: 68ch;
  margin: 0;
  color: var(--body);
  line-height: 1.7;
}

.eyebrow,
.plan-badge,
.role-pill,
.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 0 9px;
  color: var(--body);
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hero-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-kpis div {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.hero-kpis strong,
.hero-kpis span {
  display: block;
}

.hero-kpis strong {
  font-family: var(--font-mono);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.hero-kpis span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-row.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--hairline-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.verify-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  color: var(--on-primary);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.btn:hover {
  background: #2b2b2b;
  border-color: #2b2b2b;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn.secondary {
  color: var(--ink);
  background: var(--canvas);
  border-color: var(--hairline);
}

.btn.secondary:hover {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--hairline-strong);
}

.btn.danger {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn.ghost {
  color: var(--body);
  background: transparent;
  border-color: transparent;
}

.btn.block {
  width: 100%;
}

.btn.xl {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 16px;
}

table .btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: var(--soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

tbody tr {
  transition: background 180ms var(--ease);
}

tbody tr:hover {
  background: #fcfcfc;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  min-height: 23px;
}

.badge.green {
  color: var(--success);
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.badge.amber {
  color: var(--warning);
  background: #fffbeb;
  border-color: #fde68a;
}

.badge.red {
  color: var(--danger);
  background: #fef2f2;
  border-color: #fecaca;
}

.badge.muted {
  color: var(--muted);
  background: var(--soft);
}

.usage-bar {
  width: min(210px, 100%);
  height: 7px;
  overflow: hidden;
  background: var(--soft-2);
  border-radius: 999px;
}

.usage-fill {
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  transition: width 600ms var(--ease);
}

.usage-text,
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mono {
  display: inline-block;
  max-width: 420px;
  overflow: hidden;
  padding: 5px 8px;
  color: var(--body);
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice,
.error,
.empty {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  font-weight: 500;
}

.notice {
  color: var(--success);
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.error {
  color: var(--danger);
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.empty {
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed var(--hairline-strong);
  text-align: center;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  width: min(1060px, 100%);
  min-height: 636px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-2);
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(28px, 5vw, 50px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(0, 112, 243, 0.1), transparent 32%),
    var(--soft);
  border-right: 1px solid var(--hairline);
}

.auth-copy {
  max-width: 460px;
}

.auth-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -1.8px;
}

.auth-copy p {
  margin: 0;
  color: var(--body);
  line-height: 1.7;
}

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

.showcase-grid div {
  padding: 14px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.showcase-grid strong,
.showcase-grid span {
  display: block;
}

.showcase-grid strong {
  font-family: var(--font-mono);
  font-size: 12px;
}

.showcase-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 52px);
  background: var(--canvas);
}

.auth-subtitle {
  margin: 8px 0 0;
  color: var(--body);
  line-height: 1.55;
}

.auth-tabs,
.lang-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0;
  border-radius: var(--radius-lg);
}

.auth-tabs button,
.lang-switcher button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--body);
  background: transparent;
  border-radius: inherit;
  font-size: 12px;
  font-weight: 500;
}

.auth-tabs button.active,
.lang-switcher button.active {
  color: var(--ink);
  background: var(--canvas);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.auth-panel form {
  display: grid;
  gap: 14px;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
}

.home-nav-links a {
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
}

.home-nav-links a:hover {
  color: var(--ink);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.96fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  width: min(1320px, 100%);
  min-height: min(820px, calc(100dvh - 64px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 100px) clamp(18px, 5vw, 56px);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  animation: rise 650ms var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero-content h1 {
  margin: 18px 0;
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -2.4px;
}

.home-hero-content p {
  max-width: 62ch;
  margin: 0;
  color: var(--body);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.72;
}

.home-hero-content .actions {
  margin-top: 28px;
}

.product-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 458px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  animation: rise 720ms var(--ease) 120ms both;
}

.product-mockup.compact {
  min-height: 260px;
  box-shadow: var(--shadow-1);
}

.mockup-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  background: var(--soft);
  border-bottom: 1px solid var(--hairline);
}

.mockup-top span {
  width: 9px;
  height: 9px;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
}

.mockup-top strong {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.mockup-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px;
  min-height: 46px;
  padding: 0 14px;
  color: var(--body);
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.mockup-map {
  display: block;
  width: calc(100% - 36px);
  height: auto;
  margin: 0 18px 16px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 245, 247, 0.76));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.mockup-gridline {
  fill: none;
  stroke: rgba(23, 23, 23, 0.07);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.mockup-route {
  fill: none;
  stroke: url("#routeLine");
  stroke-linecap: round;
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
}

.route-shadow {
  filter: url("#softPulse");
  opacity: 0.26;
  stroke-width: 9;
}

.mockup-node circle:first-child {
  fill: #ffffff;
  stroke: rgba(0, 112, 243, 0.28);
  stroke-width: 1.5;
  filter: url("#softPulse");
}

.mockup-node circle:last-child {
  fill: #0070f3;
}

.mockup-node.origin circle:last-child {
  fill: #171717;
}

.mockup-node.destination circle:last-child {
  fill: #0c7a43;
}

kbd {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  color: var(--body);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.mockup-rows {
  display: grid;
  gap: 8px;
  padding: 0 18px;
}

.mockup-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.mockup-row.active,
.mockup-row:hover {
  background: var(--soft);
  border-color: var(--hairline);
}

.mockup-row i {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ffffff, #eef3ff);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.mockup-row strong,
.mockup-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-row strong {
  font-size: 14px;
  font-weight: 600;
}

.mockup-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mockup-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px;
}

.mockup-footer span {
  min-height: 28px;
  padding: 6px 10px;
  color: var(--body);
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  font-size: 12px;
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 34px;
}

.home-proof div {
  min-height: 82px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.home-proof strong,
.home-proof span {
  display: block;
}

.home-proof strong {
  font-family: var(--font-mono);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.home-proof span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.home-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  background: var(--hairline);
  border-radius: var(--radius-xl);
}

.home-strip div {
  padding: 20px;
  background: var(--canvas);
}

.home-strip strong,
.home-strip span {
  display: block;
}

.home-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.home-section {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(58px, 9vw, 106px) clamp(18px, 4vw, 40px);
}

.home-section-head {
  display: block;
  max-width: 760px;
  margin-bottom: 34px;
}

.home-section-head.compact {
  max-width: 680px;
}

.home-section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -1.6px;
  overflow-wrap: anywhere;
}

.home-section-head p {
  max-width: 66ch;
  margin: 14px 0 0;
  color: var(--body);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
}

.feature-card {
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.feature-card:nth-child(3) {
  margin-top: 0;
}

.feature-card:hover,
.pricing-card:hover,
.plan:hover {
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-1);
  transform: translateY(-3px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 34px;
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--body);
  line-height: 1.65;
}

.pricing-card,
.plan {
  display: flex;
  flex-direction: column;
  min-height: 326px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.pricing-card.featured,
.plan.featured {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

.pricing-card.featured span,
.pricing-card.featured .plan-benefits,
.plan.featured span,
.plan.featured .plan-benefits {
  color: rgba(255, 255, 255, 0.74);
}

.pricing-card.featured .plan-badge,
.plan.featured .plan-badge {
  color: var(--ink);
  background: var(--canvas);
  border-color: transparent;
}

.pricing-card.featured .btn,
.plan.featured .btn {
  color: var(--ink);
  background: var(--canvas);
  border-color: var(--canvas);
}

.pricing-card.featured .btn.secondary,
.plan.featured .btn.secondary {
  color: var(--on-primary);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
}

.plan strong,
.pricing-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.price {
  margin: 22px 0;
  font-family: var(--font-mono);
  font-size: 33px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.plan-benefits {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--body);
  list-style: none;
  flex: 1;
}

.plan-benefits li {
  position: relative;
  padding-left: 17px;
}

.plan-benefits li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-grid > div {
  position: relative;
  min-height: 208px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.workflow-grid span {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.workflow-grid strong {
  display: block;
  margin: 52px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.workflow-grid p {
  margin: 0;
  color: var(--body);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .layout,
  .auth-card,
  .home-hero,
  .home-section-head,
  .portal-hero {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: flex;
    gap: 8px;
    height: auto;
    overflow-x: auto;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .account .muted,
  .home-nav-links {
    display: none;
  }

  .product-mockup {
    min-height: 360px;
  }

  .feature-grid,
  .workflow-grid,
  .home-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .home-nav {
    align-items: flex-start;
    min-height: auto;
    padding-block: 12px;
    gap: 12px;
  }

  .account,
  .home-actions {
    justify-content: flex-end;
  }

  .main {
    padding: 18px 14px 36px;
  }

  .page-head,
  .form-grid,
  .form-grid.three,
  .hero-kpis,
  .home-proof,
  .feature-grid,
  .workflow-grid,
  .home-strip,
  .pricing-grid,
  .grid.plans {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(3) {
    margin-top: 0;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: 480px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 34px;
  }

  .home-hero-content h1 {
    font-size: clamp(40px, 14vw, 58px);
    letter-spacing: -1.3px;
  }

  .portal-hero h2 {
    font-size: clamp(34px, 11vw, 48px);
  }
}
