:root {
  color-scheme: light;
  --ink: #171615;
  --muted: #6f6962;
  --line: #e6dfd6;
  --paper: #fbfaf7;
  --soft: #f1ece4;
  --accent: #7b1e2f;
  --accent-dark: #42151e;
  --green: #566a55;
  --gold: #b58b48;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 36px;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230, 223, 214, 0.85);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.language-switch {
  justify-self: end;
  display: flex;
  border: 1px solid var(--line);
}

.language-switch button {
  min-width: 44px;
  padding: 8px 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.language-switch button.active {
  color: white;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 16, 14, 0.62), rgba(18, 16, 14, 0.18) 58%, rgba(18, 16, 14, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  padding: 0 0 72px 56px;
  color: white;
}

.hero-content p:first-child,
.section-heading p,
.advisor-panel p:first-child,
.appointment form > p {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.98;
}

.hero-content p:nth-child(3) {
  max-width: 580px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.6;
}

.primary-action {
  border: 0;
  color: white;
  background: var(--accent);
  padding: 13px 18px;
  min-height: 46px;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.intro-band div {
  padding: 26px 36px;
  border-right: 1px solid var(--line);
}

.intro-band span,
.dashboard-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.intro-band strong,
.dashboard-grid strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.section,
.advisor-section,
.dashboard {
  padding: 72px 48px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(280px, 680px);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.advisor-panel h2,
.appointment h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

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

.product-card {
  background: #fff;
  border: 1px solid var(--line);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.product-card div {
  padding: 16px;
}

.product-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.product-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--accent);
}

.product-card button,
.sample-prompts button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 12px;
  color: var(--ink);
}

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

.advisor-panel {
  display: grid;
  grid-template-columns: minmax(280px, 680px) 1fr;
  gap: 36px;
  align-items: center;
}

.advisor-panel p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.sample-prompts {
  display: grid;
  gap: 12px;
}

.sample-prompts button {
  min-height: 50px;
  background: #fff;
  text-align: left;
}

.appointment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
}

.appointment > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.appointment form {
  padding: 56px;
  display: grid;
  gap: 16px;
  align-content: center;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px;
  color: var(--ink);
}

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

.dashboard-grid div {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
}

.chat-toggle {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.chat-window {
  display: none;
  width: min(410px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 44px));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.chat-widget.open .chat-toggle {
  display: none;
}

.chat-widget.open .chat-window {
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.chat-header span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.chat-header button,
.chat-form button,
.audio-button {
  border: 0;
  color: white;
  background: var(--ink);
}

.chat-header button {
  width: 32px;
  height: 32px;
}

.messages {
  padding: 16px;
  overflow: auto;
}

.message {
  width: fit-content;
  max-width: 92%;
  margin-bottom: 12px;
  padding: 11px 12px;
  line-height: 1.5;
  font-size: 14px;
}

.message.user {
  margin-left: auto;
  color: #fff;
  background: var(--accent);
}

.message.assistant {
  background: var(--soft);
}

.audio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 8px;
}

.recommendations {
  display: grid;
  gap: 10px;
  padding: 0 16px 12px;
  max-height: 210px;
  overflow: auto;
}

.rec-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px;
}

.rec-card img {
  width: 72px;
  height: 92px;
  object-fit: cover;
}

.rec-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.rec-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-height: 44px;
}

@media (max-width: 1100px) {
  .product-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advisor-panel,
  .appointment,
  .section-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }

  nav {
    display: none;
  }

  .hero-content {
    padding: 0 20px 48px;
  }

  .intro-band,
  .product-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .advisor-section,
  .dashboard,
  .appointment form {
    padding: 46px 20px;
  }

  .appointment > img {
    min-height: 360px;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }
}
