:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #edf1f6;
  --text: #17202a;
  --muted: #667085;
  --line: #d7dee8;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #c2410c;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: white;
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.admin-link {
  color: var(--primary-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 8vw, 92px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(194, 65, 12, 0.12), transparent 28%),
    var(--bg);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.admin-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--text);
}

.button.danger {
  background: #fff1f0;
  border-color: #f4b7b2;
  color: var(--danger);
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid #22303f;
  border-radius: 8px;
  background: #111827;
  color: #d1fae5;
  box-shadow: var(--shadow);
}

.terminal-head {
  display: flex;
  gap: 7px;
  padding: 14px;
  background: #0b1220;
  border-bottom: 1px solid #263244;
}

.terminal-head span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
}

.terminal-head span:nth-child(2) {
  background: #f59e0b;
}

.terminal-head span:nth-child(3) {
  background: #10b981;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.65;
}

.section {
  padding: clamp(56px, 7vw, 96px) clamp(18px, 4vw, 56px);
}

.section-muted {
  background: var(--surface-2);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section h2,
.admin-content h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid,
.pricing-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.price-card,
.decision-card,
.panel,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.feature-card,
.price-card {
  padding: 24px;
}

.feature-card h3,
.price-card h3,
.panel h2 {
  margin: 0 0 12px;
}

.price-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: 28px;
}

.price-card ul {
  display: grid;
  gap: 10px;
  min-height: 132px;
  margin: 22px 0;
  padding-left: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 32px;
  align-items: center;
}

.decision-card {
  padding: 8px;
}

.decision-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.decision-row:last-child {
  border-bottom: 0;
}

.decision-row span {
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 520px);
  gap: 36px;
  background: #17202a;
  color: white;
}

.contact-section p {
  color: #c8d1dd;
}

.lead-form,
.admin-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #a7f3d0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.admin-body {
  background: #eef2f7;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #101828;
  color: white;
}

.admin-sidebar .brand-mark {
  background: white;
  color: #101828;
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.admin-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: #263244;
  color: white;
}

.admin-note {
  margin-top: 28px;
  color: #aab4c2;
  line-height: 1.6;
  font-size: 13px;
}

.admin-content {
  padding: 28px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: grid;
  gap: 18px;
}

.metric {
  padding: 18px;
}

.metric span,
.list-item span,
.list-item small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.panel {
  padding: 22px;
}

.admin-form.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.admin-list,
.table-like {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.list-item,
.table-like div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--danger);
  cursor: pointer;
}

.empty {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact-section,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .feature-grid,
  .pricing-grid,
  .metric-grid,
  .admin-form.compact {
    grid-template-columns: 1fr;
  }

  .admin-top,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

  .terminal-panel {
    width: 100%;
  }

  .list-item,
  .table-like div {
    align-items: flex-start;
    flex-direction: column;
  }
}
