:root {
  --ink: #172331;
  --muted: #697483;
  --paper: #f7faf9;
  --white: #ffffff;
  --teal: #10aaa6;
  --teal-dark: #067f81;
  --teal-soft: #dff8f6;
  --blue: #273f8f;
  --navy: #142237;
  --gold: #c69b5c;
  --line: rgba(23, 35, 49, 0.14);
  --shadow: 0 26px 70px rgba(20, 34, 55, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 28px;
  padding: 10px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 34, 55, 0.94);
  color: #fff;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-weight: 900;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand span {
  max-width: 310px;
  line-height: 1.15;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a:hover {
  color: #bff7f4;
}

.hero {
  width: 100%;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 54px;
  padding: 72px max(28px, calc((100vw - 1180px) / 2)) 92px;
  background:
    linear-gradient(105deg, rgba(18, 30, 49, 0.97) 0%, rgba(39, 63, 143, 0.9) 50%, rgba(16, 170, 166, 0.68) 100%),
    url("../assets/marca-mcv.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: #bff7f4;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal-dark);
}

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

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

h1,
h2 {
  font-family: var(--serif);
}

h1 {
  max-width: 810px;
  margin-bottom: 24px;
  font-size: clamp(3.15rem, 7.4vw, 7.1rem);
  font-weight: 700;
  line-height: 0.92;
}

.intro {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.13rem;
  font-weight: 600;
  line-height: 1.78;
}

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

.button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.small-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 32px rgba(16, 170, 166, 0.24);
}

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

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button.secondary.dark {
  border-color: var(--line);
  background: #fff;
  color: var(--blue);
}

.button.full {
  width: 100%;
}

.small-button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
}

.entry-panel {
  display: grid;
  gap: 22px;
  width: 100%;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.entry-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.entry-brand img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.entry-brand p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.entry-brand strong {
  color: var(--blue);
  font-size: 1.2rem;
}

.path-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  color: var(--ink);
  font-weight: 800;
}

.path-list span {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
}

.section-shell {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.meaning-band {
  padding: 42px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.meaning-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.meaning-grid h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
}

.meaning-grid p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.78;
}

.trainer-section,
.progress-section {
  padding: 82px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  line-height: 0.96;
}

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

.trainer-layout > * {
  min-width: 0;
}

.dashboard-panel,
.chat-panel,
.discoveries-card,
.continue-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.user-card {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
}

.user-card p {
  margin-bottom: 6px;
  color: #bff7f4;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.user-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.user-card span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

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

.progress-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.progress-item strong,
.progress-item span {
  display: block;
}

.progress-item strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.92rem;
}

.progress-item span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.progress-item.is-active {
  border-color: rgba(16, 170, 166, 0.58);
  background: var(--teal-soft);
}

.progress-item.is-done strong {
  color: var(--teal-dark);
}

.chat-panel {
  overflow: hidden;
}

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

.chat-header p {
  margin-bottom: 4px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-header strong {
  color: var(--ink);
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 22px;
  background:
    linear-gradient(180deg, #f7faf9, #eef7f7);
}

.message {
  display: grid;
  gap: 6px;
  max-width: min(650px, 92%);
  padding: 14px 16px;
  border-radius: 8px;
  line-height: 1.62;
}

.message strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message p {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.message.assistant {
  justify-self: start;
  border: 1px solid rgba(16, 170, 166, 0.28);
  background: #fff;
}

.message.assistant strong {
  color: var(--teal-dark);
}

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

.message.user strong {
  color: #bff7f4;
}

.message.system {
  justify-self: center;
  max-width: 720px;
  border: 1px solid rgba(198, 155, 92, 0.34);
  background: #fff9ef;
}

.message.system strong {
  color: #8d6933;
}

.chat-form,
.discovery-panel {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  padding: 14px 16px;
  font-weight: 600;
  line-height: 1.55;
}

textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(16, 170, 166, 0.14);
}

.discovery-panel {
  background: #fbfdfd;
}

.discovery-panel label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

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

.discoveries-card,
.continue-card {
  padding: 24px;
}

.discoveries-list {
  display: grid;
  gap: 12px;
}

.discovery-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.discovery-item time {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discovery-item p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.62;
}

.empty-state {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.continue-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.55rem;
}

.continue-card p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.continue-card .button + .button {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px max(24px, calc((100vw - 1180px) / 2));
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
}

.site-footer p {
  margin-bottom: 0;
  font-weight: 800;
}

.site-footer a {
  margin-left: auto;
  color: #bff7f4;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .site-header nav {
    display: none;
  }

  .hero,
  .meaning-grid,
  .trainer-layout,
  .progress-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-panel {
    max-width: 560px;
  }

  .chat-log {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .brand span {
    max-width: 210px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 34px;
    padding: 58px 22px 66px;
  }

  .hero-copy,
  .entry-panel {
    width: min(100%, 340px);
    max-width: 340px;
  }

  h1 {
    max-width: 100%;
    font-size: 2.24rem;
    line-height: 1;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .intro,
  .meaning-grid p:last-child {
    font-size: 0.98rem;
  }

  .entry-panel,
  .dashboard-panel,
  .discoveries-card,
  .continue-card {
    padding: 18px;
  }

  .path-list li {
    align-items: flex-start;
    font-size: 0.94rem;
    line-height: 1.35;
  }

  .section-shell {
    width: min(340px, calc(100% - 44px));
  }

  .trainer-section,
  .progress-section {
    padding: 62px 0;
  }

  .meaning-band {
    padding: 34px 0;
  }

  .section-heading h2,
  .meaning-grid h2 {
    font-size: 1.88rem;
    line-height: 1.04;
  }

  .chat-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .small-button {
    width: 100%;
  }

  .chat-log {
    min-height: 390px;
    padding: 16px;
  }

  .message {
    max-width: 100%;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer a {
    margin-left: 0;
  }
}
