:root {
  --ink: #111827;
  --muted: #526071;
  --line: #d8dee8;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --green: #148043;
  --green-dark: #0d6534;
  --teal: #0f766e;
  --gold: #c48620;
  --blue: #244a8f;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(19, 28, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--green-dark);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo {
  width: 160px;
  max-width: 70%;
  height: auto;
  object-fit: contain;
}

.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 620px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 15px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--green-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 8vw, 88px) clamp(18px, 5vw, 72px) clamp(34px, 6vw, 58px);
  background:
    linear-gradient(120deg, rgba(20, 128, 67, 0.12), rgba(36, 74, 143, 0.07) 45%, rgba(196, 134, 32, 0.1)),
    #fbfcfe;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: var(--green-dark);
  font-size: clamp(54px, 9vw, 110px);
  line-height: 0.9;
}

h2 {
  max-width: 820px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: #2f3b4a;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

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

.button.primary:hover,
button.primary:hover {
  background: var(--green-dark);
}

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

.button.full {
  width: 100%;
}

.assistant-preview {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 430px;
}

.chat-shell {
  width: min(100%, 480px);
  padding: 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #121821;
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: white;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #27c46b;
  box-shadow: 0 0 0 5px rgba(39, 196, 107, 0.16);
}

.chat-line {
  max-width: 82%;
  margin: 12px 0;
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.45;
}

.chat-line.bot {
  color: #eef6f1;
  background: #1f2a37;
}

.chat-line.user {
  margin-left: auto;
  color: #092715;
  background: #a6f2c4;
}

.section-grid,
.pricing-band,
.signup-section,
.admin-section {
  padding: clamp(52px, 8vw, 86px) clamp(18px, 5vw, 72px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: white;
}

.section-grid p,
.section-heading p,
.plan p,
.form-message {
  color: var(--muted);
  line-height: 1.6;
}

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

.feature-grid article,
.plan,
.form-panel,
.admin-login,
.admin-console {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-grid article {
  padding: 22px;
}

.feature-grid span {
  color: var(--gold);
  font-weight: 900;
}

.pricing-band {
  background: #f4f8f6;
}

.section-heading {
  margin-bottom: 26px;
}

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

.plan {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
}

.plan.featured {
  border-color: rgba(20, 128, 67, 0.55);
  box-shadow: var(--shadow);
}

.plan-flag {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.price {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.plan button {
  margin-top: auto;
  color: white;
  background: var(--blue);
}

.plan.featured button {
  background: var(--green);
}

.signup-section {
  background: white;
}

.form-panel {
  display: grid;
  max-width: 760px;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 7px;
  color: #263344;
  font-size: 14px;
  font-weight: 800;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(20, 128, 67, 0.18);
}

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

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

.form-message {
  min-height: 24px;
  margin: 0;
}

.form-message.error {
  color: var(--danger);
}

.admin-section {
  background: #eef4f7;
}

.admin-page {
  background: #eef4f7;
}

.admin-shell {
  padding: clamp(28px, 5vw, 54px) clamp(18px, 5vw, 72px) clamp(52px, 8vw, 86px);
}

.admin-hero {
  margin-bottom: 24px;
}

.admin-hero h1 {
  font-size: clamp(46px, 7vw, 84px);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-login,
.admin-console {
  padding: 22px;
}

.admin-login {
  display: grid;
  gap: 15px;
}

.admin-console {
  min-height: 560px;
}

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

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--muted);
  background: #f7f9fc;
  border-color: var(--line);
}

.tab.active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr 150px 120px;
  gap: 10px;
  margin-bottom: 16px;
}

.settings-grid,
.product-form {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.inline-form button {
  color: white;
  background: var(--blue);
}

.product-form button {
  color: white;
  background: var(--blue);
}

.product-form .button.secondary {
  color: var(--ink);
  background: white;
}

.data-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

th {
  color: #334155;
  background: #f8fafc;
  font-size: 13px;
}

td {
  color: #263344;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.table-actions button {
  min-height: 36px;
  padding: 7px 10px;
  color: white;
  background: var(--blue);
}

.table-actions button:last-child {
  background: var(--danger);
}

.tab-panel iframe {
  width: 100%;
  height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.external-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
}

.stacked-table {
  margin-bottom: 16px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: white;
  background: #101820;
}

.footer a {
  color: #b9f5d0;
}

@media (max-width: 940px) {
  .hero,
  .section-grid,
  .plans,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .assistant-preview {
    min-height: 320px;
  }

  .inline-form {
    grid-template-columns: 1fr 1fr;
  }

  .settings-grid,
  .product-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1 {
    font-size: 56px;
  }

  .feature-grid,
  .inline-form,
  .settings-grid,
  .product-form {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer,
  .console-top {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  button {
    width: 100%;
  }
}
