:root {
  --orange: #f06007;
  --orange-2: #e7630f;
  --ink: #0f0f0f;
  --anthracite: #222928;
  --muted: #69727d;
  --line: #eeeeee;
  --paper: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 15, 15, 0.08);
  font-family: "Jost", "Outfit", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e6e6e6;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 38px;
  background: var(--white);
  color: var(--ink);
  border-top: 5px solid var(--orange);
  box-shadow: inset 0 0 0 1px #e8e8e8;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small,
.product-card small,
.login-panel small,
.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.login-button,
.voice-button,
.input-row button,
.login-panel button,
.quote-button {
  border: 0;
  background: var(--orange);
  color: var(--white);
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px) 28px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48)),
    url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1600&q=70");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

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

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

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

h1 {
  max-width: 780px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.login-panel,
.assistant-panel,
.summary-panel,
.product-nav {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.language-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.language-bar button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--anthracite);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
}

.language-bar .active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 22px clamp(16px, 4vw, 48px) 48px;
}

.product-nav,
.assistant-panel,
.summary-panel {
  padding: 18px;
}

.product-nav h2,
.assistant-head h2,
.summary-head h2 {
  font-size: 22px;
}

.product-nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.product-card.active {
  border-color: var(--orange);
  box-shadow: inset 4px 0 0 var(--orange);
}

.assistant-panel {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.assistant-head,
.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.voice-button.listening {
  background: #9c2626;
  color: var(--white);
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 6px 2px;
}

.message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
}

.message.assistant {
  align-self: flex-start;
  background: #f0f0f0;
}

.message.user {
  align-self: flex-end;
  background: var(--anthracite);
  color: var(--white);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-row button {
  border: 1px solid #d9d9d9;
  background: var(--white);
  color: var(--anthracite);
  min-height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.summary-panel {
  align-self: start;
}

.summary-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.summary-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.materials {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}

.materials li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.quote-button {
  width: 100%;
  background: var(--anthracite);
}

.login-button:hover,
.input-row button:hover,
.login-panel button:hover {
  background: var(--orange-2);
}

.quote-button:hover,
.voice-button:hover {
  background: #000000;
}

.choice-row button:hover,
.product-card:hover,
.language-bar button:hover {
  border-color: var(--orange);
}

.choice-row button:hover {
  color: var(--orange);
}

@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .summary-panel {
    grid-column: 1 / -1;
  }
}

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

  .brand small {
    display: none;
  }

  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .login-panel {
    display: none;
  }

  .login-panel.open {
    display: grid;
  }

  h1 {
    font-size: 38px;
  }

  .product-nav {
    display: flex;
    overflow-x: auto;
  }

  .product-nav h2 {
    display: none;
  }

  .product-card {
    flex: 0 0 172px;
  }

  .assistant-panel {
    min-height: 580px;
  }

  .assistant-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .message {
    max-width: 94%;
  }

  .input-row {
    grid-template-columns: 1fr;
  }
}
