html[data-page="landing"] {
  --landing-bg: #f7fbff;
  --landing-surface: rgba(255, 255, 255, 0.92);
  --landing-strong: #ffffff;
  --landing-text: #172033;
  --landing-muted: #66728a;
  --landing-line: rgba(93, 118, 168, 0.22);
  --landing-blue: #2563eb;
  --landing-indigo: #4f46e5;
  --landing-violet: #8b5cf6;
  --landing-green: #0f9f6e;
  --landing-danger: #dc2626;
  --landing-shadow: 0 18px 42px rgba(53, 72, 122, 0.16);
  --landing-soft-shadow: 0 10px 26px rgba(79, 70, 229, 0.12);
  --landing-radius: 8px;
  --landing-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: var(--landing-font);
}

html[data-page="landing"],
html[data-page="landing"] body {
  min-height: 100%;
}

.landing-page {
  min-height: 100vh;
  background: #eef5ff;
  color: var(--landing-text);
  font-family: var(--landing-font);
  text-transform: none;
}

.landing-page::before {
  display: none;
}

.landing-page a {
  border-bottom: 0;
  color: var(--landing-indigo);
  text-decoration: none;
}

.landing-page a:hover,
.landing-page a:focus {
  background: transparent;
  color: var(--landing-blue);
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.landing-page button,
.landing-page input {
  font-family: var(--landing-font);
  letter-spacing: 0;
}

.landing-shell {
  width: min(1120px, calc(100vw - 28px));
  margin: 22px auto 32px;
}

.landing-header {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  margin-bottom: 16px;
  padding: 4px 0 8px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: var(--landing-radius);
}

.landing-brand img {
  display: block;
  width: 172px;
  height: auto;
}

.landing-page .landing-brave-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--landing-radius);
  background: #4f46e5;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.18);
}

.landing-page .landing-brave-button:hover,
.landing-page .landing-brave-button:focus {
  background: #4338ca;
  color: #ffffff;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 14px;
}

.landing-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius);
  background: var(--landing-surface);
  box-shadow: var(--landing-shadow);
}

.landing-hero {
  grid-column: 1 / -1;
  background: #eaf2ff;
}

.landing-panel__header {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--landing-line);
  background: #dfeaff;
}

.landing-panel__header h1,
.landing-panel__header h2 {
  min-width: 0;
  overflow: visible;
  color: var(--landing-text);
  font-size: 18px;
  line-height: 1.25;
  text-overflow: clip;
  text-transform: none;
  white-space: normal;
}

.landing-panel__body,
.landing-data-list {
  padding: 16px;
}

.landing-hero__body {
  display: grid;
  gap: 16px;
  align-items: start;
}

.landing-hero__copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.landing-title {
  color: var(--landing-text);
  font-size: 52px;
  font-weight: 850;
  line-height: 1.04;
}

.landing-lead {
  max-width: 720px;
  color: var(--landing-muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.landing-signal {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 104px;
  border: 1px solid rgba(93, 118, 168, 0.24);
  border-radius: var(--landing-radius);
  padding: 12px;
  color: var(--landing-text);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(53, 72, 122, 0.1);
  backdrop-filter: blur(16px);
}

.landing-signal--blue {
  background: #d8e8ff;
  border-color: rgba(37, 99, 235, 0.28);
}

.landing-signal--violet {
  background: #e9ddff;
  border-color: rgba(139, 92, 246, 0.28);
}

.landing-signal--indigo {
  background: #d5f2e6;
  border-color: rgba(15, 159, 110, 0.28);
}

.landing-signal strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.landing-signal p {
  color: var(--landing-muted);
  font-size: 13px;
  line-height: 1.4;
}

.landing-data-list {
  display: grid;
  gap: 10px;
}

.landing-data-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(93, 118, 168, 0.18);
}

.landing-data-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.landing-data-list dt {
  color: var(--landing-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.landing-data-list dd {
  min-width: 0;
  color: var(--landing-text);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.landing-data-list--contact dd {
  font-weight: 700;
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.chat-launcher svg,
.chat-close svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.chat-launcher:hover,
.chat-launcher:focus {
  background: #4338ca;
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 4px;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 98px;
  z-index: 31;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(420px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 122px));
  overflow: hidden;
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(53, 72, 122, 0.24);
  backdrop-filter: blur(18px);
}

.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--landing-line);
  background: #dfeaff;
}

.chat-widget__eyebrow {
  display: block;
  color: var(--landing-muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-widget__header h2 {
  color: var(--landing-text);
  font-size: 18px;
  line-height: 1.2;
  text-transform: none;
}

.chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius);
  background: #ffffff;
  color: var(--landing-text);
  cursor: pointer;
}

.chat-close:hover,
.chat-close:focus {
  color: var(--landing-blue);
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.landing-page .chat-log {
  min-height: 230px;
  overflow: auto;
  border: 0;
  border-bottom: 1px solid var(--landing-line);
  padding: 14px;
  background: #f8fbff;
}

.landing-page .message {
  margin: 0 0 10px;
  color: var(--landing-text);
  font-size: 14px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.landing-page .message:last-child {
  margin-bottom: 0;
}

.landing-page .message__role {
  color: var(--landing-indigo);
  font-weight: 900;
  text-transform: none;
}

.landing-page .message--system .message__role {
  color: var(--landing-green);
}

.landing-page .chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
}

.landing-page .chat-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius);
  background: #ffffff;
  color: var(--landing-text);
  padding: 10px 12px;
  text-transform: none;
}

.landing-page .chat-form input::placeholder {
  color: #98a2b8;
}

.landing-page .chat-form button {
  min-height: 44px;
  border: 0;
  border-radius: var(--landing-radius);
  background: #4f46e5;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.landing-page .chat-form button:hover,
.landing-page .chat-form button:focus {
  background: #4338ca;
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.landing-page .chat-form button:disabled,
.landing-page .chat-form input:disabled {
  cursor: wait;
  opacity: 0.58;
}

@media (max-width: 900px) {
  .landing-shell {
    width: min(100% - 20px, 620px);
    margin: 10px auto 96px;
  }

  .landing-grid,
  .landing-hero__body,
  .landing-signal-grid {
    grid-template-columns: 1fr;
  }

  .landing-title {
    font-size: 38px;
  }

  .landing-lead {
    font-size: 16px;
  }

  .landing-signal {
    min-height: 88px;
  }
}

@media (max-width: 520px) {
  .landing-header {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 0;
    gap: 10px;
  }

  .landing-brave-button {
    width: 100%;
  }

  .landing-brand img {
    width: 144px;
  }

  .landing-panel__body,
  .landing-data-list {
    padding: 12px;
  }

  .landing-title {
    font-size: 34px;
  }

  .landing-data-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }

  .chat-widget {
    right: 14px;
    bottom: 84px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 102px);
  }

  .landing-page .chat-form {
    grid-template-columns: 1fr;
  }
}
