:root {
  --ink: #17211d;
  --muted: #5c6963;
  --line: #d8e0dc;
  --paper: #fbfcfa;
  --soft: #edf5f0;
  --mint: #d7f1e5;
  --teal: #0a7c73;
  --blue: #275d8c;
  --gold: #bf8c2c;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 33, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 224, 220, 0.9);
  background: rgba(251, 252, 250, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  border-radius: 8px;
  background: var(--teal);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover {
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 104px) clamp(18px, 4vw, 56px) 56px;
  background:
    linear-gradient(125deg, rgba(215, 241, 229, 0.9), rgba(251, 252, 250, 0.6) 45%),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(4.2rem, 13vw, 11rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 620px;
  color: #2e3b35;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-actions,
.assistant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

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

.secondary-button,
.ghost-button,
.pill-button {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.metric {
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--blue);
}

.notice {
  margin: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #2f3b35;
  background: #fff7e6;
  border-block: 1px solid #ead6a9;
}

.section {
  padding: clamp(52px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.section.compact {
  padding-top: 48px;
}

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

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.search-shell {
  display: grid;
  grid-template-columns: 1.5fr minmax(180px, 0.5fr) minmax(200px, 0.5fr);
  gap: 12px;
  margin-bottom: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

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

textarea {
  resize: vertical;
}

.result-grid,
.card-grid,
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.ops-grid article,
.assistant-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(23, 33, 29, 0.05);
}

.card p,
.ops-grid p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  padding: 5px 9px;
  color: #25413a;
  border-radius: 999px;
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

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

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.check-list {
  padding-left: 18px;
  color: var(--muted);
}

.assistant-log {
  display: grid;
  gap: 10px;
  min-height: 260px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f6faf8;
}

.message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.message.user {
  justify-self: end;
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

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

.wide {
  grid-column: 1 / -1;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.page-hero {
  padding: 52px clamp(18px, 4vw, 56px) 36px;
  background: linear-gradient(120deg, #f7fbf9, #e8f4ee);
}

.page-hero h1,
.dashboard-header h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.page-hero p,
.dashboard-header p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px) 56px;
}

.filter-panel,
.workspace-panel,
.office-card,
.side-nav,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(23, 33, 29, 0.04);
}

.filter-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 18px;
}

.filter-panel h2 {
  font-size: 1.3rem;
}

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

.toolbar,
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.toolbar h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

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

.product-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.product-card-head,
.rating-row,
.offer-strip,
.compound-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compound-row span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: #29433b;
  font-size: 0.78rem;
  font-weight: 800;
}

.offer-strip {
  padding: 12px;
  border-radius: 8px;
  background: #f2f7fb;
}

.favorite-button,
.link-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-weight: 850;
}

.favorite-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 1.1rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
  background: #f5f8f6;
}

.side-nav {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100vh - 72px);
  padding: 18px;
  border-radius: 0;
  border-block: 0;
  border-left: 0;
}

.side-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
}

.side-nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.dashboard-main {
  display: grid;
  gap: 18px;
  padding: 28px;
}

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

.stats-grid article {
  padding: 16px;
}

.stats-grid span {
  display: block;
  margin-bottom: 4px;
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--blue);
}

.stats-grid p,
.muted-text {
  margin: 0;
  color: var(--muted);
}

.lead-list,
.seo-list,
.partner-grid,
.check-list-panel,
.compliance-grid {
  display: grid;
  gap: 12px;
}

.lead-list article,
.seo-list article,
.partner-grid article,
.compliance-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

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

.check-list-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.check-list-panel input,
.filter-panel input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 56px);
  color: white;
  background: #15221d;
}

footer p {
  margin-bottom: 0;
  color: #c7d4ce;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

dialog {
  width: min(520px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(23, 33, 29, 0.42);
}

.lead-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.close-button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}

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

  .hero,
  .split,
  .search-shell,
  .form-grid,
  .app-shell,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .result-grid,
  .card-grid,
  .ops-grid,
  .catalog-grid,
  .stats-grid,
  .partner-grid,
  .compliance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-nav,
  .filter-panel {
    position: static;
    height: auto;
  }
}

@media (max-width: 620px) {
  nav {
    gap: 10px;
  }

  .hero {
    min-height: auto;
  }

  .result-grid,
  .card-grid,
  .ops-grid,
  .catalog-grid,
  .stats-grid,
  .partner-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
