:root {
  --ink: #26170f;
  --navy: #3a2418;
  --plum: #5b3424;
  --green: #cfa46a;
  --gold: #f0c37d;
  --lavender: #f5eadc;
  --paper: #7a4a2f;
  --surface: #fff7ee;
  --muted: #6f5748;
  --line: #c79d78;
  --shadow: 0 24px 70px rgba(38, 23, 15, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--surface);
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(58, 36, 24, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  color: var(--surface);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 247, 238, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.nav-menu a:hover {
  color: #ffffff;
}

.demo-nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.demo-nav-link span {
  padding-bottom: 4px;
  border-bottom: 3px solid #c1121f;
  text-decoration: none;
}

.demo-nav-link small {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff7ee;
  color: #c1121f;
  font-size: 11px;
  font-weight: 900;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 72px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.3vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-text {
  max-width: 660px;
  color: rgba(255, 247, 238, 0.82);
  font-size: 19px;
  line-height: 1.7;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--surface);
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 247, 238, 0.1);
  color: var(--surface);
  border: 1px solid var(--line);
}

.hero-visual {
  border-radius: 22px;
  background: linear-gradient(145deg, #fff7ee, #d9aa82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.signal-band span {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #5b3424;
  color: var(--surface);
  font-weight: 800;
  text-align: center;
}

.section,
.product-section,
.safety-section,
.contact-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 94px 0;
}

.mission-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 46px;
}

.mission-copy p,
.section-heading p,
.product-copy p,
.safety-section p,
.contact-section p,
.model-grid p,
.principle-grid p {
  color: rgba(255, 247, 238, 0.82);
  line-height: 1.75;
}

.mission-copy p {
  font-size: 20px;
}

.mission-copy p:last-child {
  margin-bottom: 0;
}

#model {
  padding-top: 46px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.model-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.model-grid article,
.principle-grid article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(18, 23, 42, 0.06);
  color: var(--ink);
}

.model-grid article p,
.principle-grid article p,
.contact-form p {
  color: var(--muted);
}

.model-grid article {
  padding: 28px;
}

.model-grid svg {
  width: 96px;
  height: 78px;
  margin-bottom: 22px;
}

.product-section {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 58px;
  align-items: center;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--surface);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}

.phone-demo {
  padding: 22px;
  border: 10px solid var(--navy);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 76px;
  height: 7px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #d9d3c7;
}

.message {
  width: fit-content;
  max-width: 86%;
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 16px;
  line-height: 1.5;
}

.message.ai {
  background: #fff;
  color: var(--ink);
}

.message.user {
  margin-left: auto;
  background: var(--green);
  color: var(--ink);
}

.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.mood-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}

.principle-grid article {
  padding: 30px;
}

.principle-grid span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--gold);
  font-weight: 900;
}

.safety-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.safety-section p {
  font-size: 19px;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7b18e;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: 3px solid rgba(119, 228, 200, 0.28);
  border-color: var(--green);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: #087963;
  font-weight: 800;
}

.legal-main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-hero {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(40px, 6vw, 68px);
}

.legal-hero p,
.legal-section p,
.legal-section li {
  color: rgba(255, 247, 238, 0.82);
  line-height: 1.75;
}

.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid rgba(199, 157, 120, 0.55);
}

.legal-section h2 {
  font-size: clamp(26px, 3.2vw, 38px);
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 10px;
}

.legal-callout {
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 247, 238, 0.1);
}

.demo-main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0 96px;
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.demo-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.demo-hero p,
.demo-panel p,
.flow-card p {
  color: rgba(255, 247, 238, 0.82);
  line-height: 1.75;
}

.model-embed {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.model-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--navy);
  color: var(--surface);
}

.model-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

.model-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.demo-stream {
  height: 360px;
  padding: 20px;
  overflow-y: auto;
  background: linear-gradient(180deg, #fff7ee 0%, #f5eadc 100%);
}

.demo-bubble {
  width: fit-content;
  max-width: 86%;
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 16px;
  line-height: 1.55;
}

.demo-bubble.ai {
  background: #fff;
  color: var(--ink);
}

.demo-bubble.user {
  margin-left: auto;
  background: var(--green);
  color: var(--ink);
}

.demo-form {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #d7b18e;
  background: #fff;
}

.demo-input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  border: 1px solid #d7b18e;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.demo-model-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
  padding-top: 90px;
}

.demo-svg {
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff7ee, #d9aa82);
  box-shadow: var(--shadow);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 46px;
}

.flow-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 247, 238, 0.1);
}

.flow-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px max(16px, calc((100% - 1160px) / 2));
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  margin: 0;
  max-width: 480px;
}

.site-footer .copyright {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 900;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 22px;
  font-weight: 800;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .demo-nav-link {
    align-items: flex-start;
    line-height: 1.1;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a:hover {
    color: var(--plum);
  }

  .hero,
  .mission-section,
  .product-section,
  .safety-section,
  .contact-section,
  .demo-hero,
  .demo-model-section {
    grid-template-columns: 1fr;
  }

  .signal-band,
  .model-grid,
  .principle-grid,
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-demo {
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 48px;
  }

  .signal-band,
  .model-grid,
  .principle-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .product-section,
  .safety-section,
  .contact-section,
  .demo-main {
    padding: 68px 0;
  }

  .demo-form {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
