:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ink: #131816;
  --muted: #65706a;
  --line: #dfe8e2;
  --line-strong: #cdd8d1;
  --surface: #ffffff;
  --wash: #f4f7f3;
  --wash-strong: #e9f0ec;
  --accent: #0f8f5f;
  --accent-strong: #086844;
  --accent-soft: #e8f6ef;
  --gold: #b8872f;
  --gold-soft: #fff6e4;
  --danger: #a51d1d;
  --shadow: 0 20px 48px rgba(22, 31, 25, 0.1);
  --shadow-soft: 0 12px 28px rgba(22, 31, 25, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 243, 0.96)),
    radial-gradient(circle at top left, rgba(15, 143, 95, 0.14), transparent 34%),
    var(--wash);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 232, 226, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 12px 22px rgba(15, 143, 95, 0.24);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #3e4943;
  font-size: 13px;
  font-weight: 850;
}

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

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 16px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.btn:hover,
button:hover {
  box-shadow: 0 14px 28px rgba(15, 143, 95, 0.18);
  transform: translateY(-1px);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn.gold,
button.gold {
  background: linear-gradient(135deg, #c49745, #9a6b1f);
}

.btn.danger,
button.danger,
.danger {
  background: var(--danger);
}

main {
  min-height: 68vh;
}

.hero-band {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(232, 246, 239, 0.74)),
    var(--wash);
}

.hero {
  position: relative;
  display: block;
  min-height: 590px;
  padding: 64px 0 46px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.36) 100%);
  pointer-events: none;
}

.hero > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 690px;
  padding-top: 22px;
}

.eyebrow,
.metric-label,
.card-kicker {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.section-title p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  max-width: 650px;
  font-size: 17px;
}

.hero-actions {
  margin-top: 26px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.trust-pill {
  border: 1px solid rgba(15, 143, 95, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.trust-pill strong {
  display: block;
  font-size: 18px;
}

.trust-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-visual {
  position: absolute;
  top: 58px;
  right: -18px;
  z-index: 0;
  width: min(58vw, 650px);
  min-height: 480px;
  pointer-events: none;
}

.browser-shell {
  overflow: hidden;
  border: 1px solid rgba(205, 216, 209, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cbd6cf;
}

.browser-dot:nth-child(1) {
  background: #ef8f8f;
}

.browser-dot:nth-child(2) {
  background: #f2cb6f;
}

.browser-dot:nth-child(3) {
  background: #70c78d;
}

.visual-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 398px;
}

.visual-side {
  display: grid;
  gap: 9px;
  align-content: start;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
  padding: 16px;
}

.side-line {
  height: 10px;
  border-radius: 999px;
  background: #dce6df;
}

.side-line.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.visual-main {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.mini-stat,
.mini-row,
.floating-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.mini-stat span,
.mini-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.mini-stat strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
}

.mini-table {
  display: grid;
  gap: 8px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.6fr;
  align-items: center;
  gap: 10px;
}

.status-good,
.status-warn,
.status-idle,
.badge {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 950;
}

.status-good,
.badge {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-warn {
  background: var(--gold-soft);
  color: #8a5e18;
}

.status-idle {
  background: #eef2f0;
  color: #59645f;
}

.floating-card {
  position: absolute;
  right: 8px;
  bottom: 18px;
  width: 235px;
  box-shadow: var(--shadow-soft);
}

.floating-card strong {
  display: block;
  margin: 6px 0;
}

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title h2,
.page-hero h1 {
  margin: 8px 0 0;
}

.section-title h2 {
  max-width: 680px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

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

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

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

.card,
.auth-card,
.panel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.card,
.panel-card {
  padding: 18px;
}

.feature-card {
  min-height: 198px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 950;
}

.card h3,
.panel-card h2,
.auth-card h1 {
  margin: 0 0 10px;
}

.card strong {
  overflow-wrap: anywhere;
}

.card strong.metric-value,
.card > strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.pricing-card {
  display: grid;
  gap: 14px;
  min-height: 330px;
}

.pricing-card.featured {
  border-color: rgba(184, 135, 47, 0.5);
  background: linear-gradient(180deg, #fff, #fff9ec);
}

.price {
  display: flex;
  align-items: end;
  gap: 6px;
}

.price strong {
  font-size: 42px;
  line-height: 0.92;
}

.price span {
  color: var(--muted);
  font-weight: 850;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 8px;
  color: #36413a;
  font-size: 14px;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.flow-card {
  position: relative;
}

.flow-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.cta-band {
  border: 1px solid rgba(15, 143, 95, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 143, 95, 0.12), rgba(184, 135, 47, 0.13)),
    #fff;
  padding: 28px;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: #111613;
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 22px;
  padding: 34px 0;
}

.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.74);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  padding: 14px 0 18px;
}

.page-hero {
  padding: 34px 0 22px;
}

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 440px);
  align-items: stretch;
  gap: 18px;
  padding: 36px 0 62px;
}

.auth-intro,
.auth-card {
  padding: 24px;
}

.auth-stat-grid {
  margin-top: 18px;
}

.auth-intro {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
}

.auth-card form,
.stack {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #34413a;
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 10px 11px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 143, 95, 0.58);
  box-shadow: 0 0 0 4px rgba(15, 143, 95, 0.12);
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 26px 0 18px;
}

.license-box {
  min-width: min(100%, 360px);
  border: 1px solid rgba(15, 143, 95, 0.22);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.license-box code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 17px;
  font-weight: 950;
}

.usage-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ece6;
}

.usage-meter span {
  display: block;
  width: var(--usage, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #edf2ee;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #f8faf7;
  color: #4b554e;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.admin-shell {
  display: grid;
  gap: 20px;
  padding: 24px 0 42px;
}

.mini-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-form select {
  min-width: 120px;
}

@media (max-width: 980px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .grid,
  .three,
  .two,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .section-title,
  .dashboard-hero {
    display: grid;
  }
}

@media (max-width: 620px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
  }

  .hero {
    min-height: 0;
    padding: 36px 0 28px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78));
  }

  .hero > div:first-child {
    padding-top: 0;
  }

  .product-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: auto;
    margin-top: 24px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .trust-strip,
  .visual-stats,
  .visual-body,
  .mini-row {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    width: auto;
    margin-top: 12px;
  }
}
