:root {
  --ink: #0d1114;
  --ink-soft: #192227;
  --paper: #f7f5ef;
  --paper-strong: #ffffff;
  --muted: #697279;
  --line: rgba(13, 17, 20, 0.12);
  --teal: #18b9a7;
  --teal-dark: #0f766c;
  --gold: #d7a64f;
  --coral: #e66d50;
  --blue: #4c8bd6;
  --shadow: 0 24px 80px rgba(13, 17, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 245, 239, 0.82);
  border-bottom: 1px solid rgba(13, 17, 20, 0.08);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.desktop-nav,
.hero-actions,
.product-topline,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo-frame,
.footer-logo-frame {
  background: #000;
  border-radius: 8px;
  display: block;
  overflow: hidden;
  position: relative;
}

.brand-logo-frame {
  height: 64px;
  width: 208px;
}

.brand-logo,
.footer-logo {
  display: block;
  height: auto;
  max-width: none;
  position: absolute;
}

.brand-logo {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: 208px;
}

.footer-logo-frame {
  height: 52px;
  width: 162px;
}

.footer-logo {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: 162px;
}

.desktop-nav {
  gap: 28px;
}

.desktop-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
}

.desktop-nav a:hover {
  color: var(--teal-dark);
}

.menu-toggle {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 6px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.menu-toggle span {
  background: var(--paper-strong);
  border-radius: 999px;
  height: 2px;
  width: 18px;
}

.mobile-nav {
  background: rgba(247, 245, 239, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  gap: 18px;
  left: 0;
  padding: 92px 24px 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 15;
}

.mobile-nav a {
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 750;
  padding: 14px 0;
}

.hero {
  isolation: isolate;
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
  z-index: -2;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 17, 20, 0.94) 0%, rgba(13, 17, 20, 0.8) 35%, rgba(13, 17, 20, 0.24) 74%),
    linear-gradient(180deg, rgba(13, 17, 20, 0.22), rgba(13, 17, 20, 0.62));
  z-index: -1;
}

.hero-content {
  color: var(--paper-strong);
  max-width: 720px;
  padding: clamp(144px, 18vh, 210px) clamp(24px, 6vw, 86px) 120px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
  max-width: 10ch;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  margin: 28px 0 0;
  max-width: 620px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.button.primary {
  background: var(--teal);
  color: #031816;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--paper-strong);
}

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

.metrics {
  background: var(--ink);
  color: var(--paper-strong);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics div {
  background: rgba(255, 255, 255, 0.04);
  min-height: 126px;
  padding: 28px clamp(20px, 4vw, 54px);
}

.metrics strong {
  color: var(--gold);
  display: block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.metrics span {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-weight: 650;
  margin-top: 12px;
}

.section,
.product-showcase,
.roadmap,
.contact {
  padding: clamp(72px, 9vw, 122px) clamp(22px, 6vw, 86px);
}

.intro {
  align-items: end;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.section-heading h2,
.contact h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.intro > p,
.contact p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  margin: 0;
}

.product-showcase {
  background: #eef3f0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.product-card {
  background: var(--paper-strong);
  border: 1px solid rgba(13, 17, 20, 0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 26px;
}

.product-card.featured {
  background: var(--ink);
  color: var(--paper-strong);
}

.product-card h3,
.principles h3,
.timeline h3 {
  font-size: 1.45rem;
  letter-spacing: 0;
  margin: 22px 0 12px;
}

.product-card p,
.product-card li,
.principles p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.product-card.featured p,
.product-card.featured li {
  color: rgba(255, 255, 255, 0.72);
}

.product-topline {
  justify-content: space-between;
}

.product-icon {
  background: rgba(24, 185, 167, 0.14);
  border: 1px solid rgba(24, 185, 167, 0.4);
  border-radius: 8px;
  color: var(--teal-dark);
  display: inline-grid;
  font-size: 0.75rem;
  font-weight: 900;
  height: 42px;
  place-items: center;
  width: 48px;
}

.featured .product-icon {
  color: var(--teal);
}

.product-icon.gold {
  background: rgba(215, 166, 79, 0.14);
  border-color: rgba(215, 166, 79, 0.45);
  color: #9a6b16;
}

.product-icon.coral {
  background: rgba(230, 109, 80, 0.14);
  border-color: rgba(230, 109, 80, 0.45);
  color: #aa3f28;
}

.product-icon.blue {
  background: rgba(76, 139, 214, 0.14);
  border-color: rgba(76, 139, 214, 0.45);
  color: #245f9f;
}

.product-icon.violet {
  background: rgba(124, 95, 191, 0.14);
  border-color: rgba(124, 95, 191, 0.45);
  color: #59409a;
}

.product-icon.green {
  background: rgba(87, 155, 97, 0.14);
  border-color: rgba(87, 155, 97, 0.45);
  color: #356f3d;
}

.status {
  border: 1px solid rgba(105, 114, 121, 0.22);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 10px;
}

.featured .status {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
}

.product-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: auto 0 0;
  padding: 22px 0 0;
}

.product-card li {
  border-top: 1px solid rgba(105, 114, 121, 0.18);
  padding-top: 10px;
}

.split {
  background: var(--paper);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.principles {
  display: grid;
  gap: 1px;
}

.principles div {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.principles span,
.timeline-item span {
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
}

.principles h3,
.timeline h3 {
  margin-top: 10px;
}

.roadmap {
  background: var(--ink);
  color: var(--paper-strong);
}

.timeline {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.timeline-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-height: 220px;
  padding: 28px;
}

.timeline-item.is-current {
  background: rgba(24, 185, 167, 0.12);
  border-color: rgba(24, 185, 167, 0.42);
}

.timeline p {
  color: rgba(255, 255, 255, 0.68);
}

.contact {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
}

.contact-form {
  background: var(--paper-strong);
  border: 1px solid rgba(13, 17, 20, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(13, 17, 20, 0.08);
  display: grid;
  gap: 16px;
  padding: 26px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #f4f4f0;
  border: 1px solid rgba(13, 17, 20, 0.12);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal-dark);
  outline: 3px solid rgba(24, 185, 167, 0.18);
}

.contact-form .button {
  border: 0;
  cursor: pointer;
  margin-top: 6px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  justify-content: space-between;
  padding: 26px clamp(22px, 6vw, 86px);
}

.footer-brand {
  display: inline-flex;
}

.site-footer > span:last-child {
  color: var(--paper-strong);
  font-weight: 850;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

.ai-agent {
  bottom: 22px;
  pointer-events: none;
  position: fixed;
  right: 22px;
  z-index: 35;
}

.ai-agent-toggle {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(13, 17, 20, 0.28);
  color: var(--paper-strong);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  height: 58px;
  justify-content: center;
  min-width: 78px;
  padding: 0 18px;
  pointer-events: auto;
}

.ai-agent-toggle:hover,
.ai-agent-toggle:focus-visible {
  transform: translateY(-2px);
}

.ai-pulse {
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(24, 185, 167, 0.16);
  height: 10px;
  width: 10px;
}

.ai-agent-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 17, 20, 0.12);
  border-radius: 8px;
  bottom: 74px;
  box-shadow: 0 30px 90px rgba(13, 17, 20, 0.28);
  display: none;
  flex-direction: column;
  max-height: min(660px, calc(100vh - 112px));
  overflow: hidden;
  pointer-events: auto;
  position: absolute;
  right: 0;
  width: min(420px, calc(100vw - 44px));
}

body.ai-agent-open .ai-agent-panel {
  display: flex;
}

.ai-agent-header {
  align-items: center;
  background: var(--ink);
  color: var(--paper-strong);
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.ai-agent-kicker {
  color: var(--teal);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.ai-agent-header h2 {
  font-size: 1.08rem;
  letter-spacing: 0;
  margin: 0;
}

.ai-agent-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--paper-strong);
  cursor: pointer;
  font-weight: 900;
  height: 38px;
  width: 38px;
}

.ai-agent-body {
  display: grid;
  gap: 12px;
  min-height: 240px;
  overflow-y: auto;
  padding: 18px;
}

.ai-message {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
}

.ai-message.user {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.ai-message.user .ai-avatar {
  grid-column: 2;
}

.ai-message.user p {
  background: var(--ink);
  color: var(--paper-strong);
  grid-column: 1;
  grid-row: 1;
}

.ai-avatar {
  background: rgba(24, 185, 167, 0.14);
  border: 1px solid rgba(24, 185, 167, 0.42);
  border-radius: 8px;
  color: var(--teal-dark);
  display: inline-grid;
  font-size: 0.68rem;
  font-weight: 900;
  height: 38px;
  place-items: center;
  width: 38px;
}

.ai-message.user .ai-avatar {
  background: rgba(215, 166, 79, 0.16);
  border-color: rgba(215, 166, 79, 0.5);
  color: #8f6316;
}

.ai-message p {
  background: #f0f3ef;
  border-radius: 8px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  padding: 12px 14px;
}

.ai-agent-prompts {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
}

.ai-agent-prompts button {
  background: rgba(24, 185, 167, 0.12);
  border: 1px solid rgba(24, 185, 167, 0.28);
  border-radius: 999px;
  color: var(--teal-dark);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 8px 11px;
}

.ai-agent-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.ai-agent-form input {
  background: #f4f4f0;
  border: 1px solid rgba(13, 17, 20, 0.12);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.ai-agent-form input:focus {
  border-color: var(--teal-dark);
  outline: 3px solid rgba(24, 185, 167, 0.18);
}

.ai-agent-form button {
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  color: #031816;
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
  padding: 0 15px;
}

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

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  body.menu-open .mobile-nav {
    display: grid;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 132px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(13, 17, 20, 0.94) 0%, rgba(13, 17, 20, 0.76) 54%, rgba(13, 17, 20, 0.42) 100%),
      linear-gradient(90deg, rgba(13, 17, 20, 0.88), rgba(13, 17, 20, 0.2));
  }

  .metrics,
  .intro,
  .split,
  .timeline,
  .contact {
    grid-template-columns: 1fr;
  }

  .metrics div {
    min-height: 106px;
  }
}

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

  .brand {
    max-width: calc(100vw - 86px);
  }

  .brand-logo-frame {
    height: 50px;
    width: 164px;
  }

  .brand-logo {
    width: 164px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 17vw, 4.7rem);
  }

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

  .metrics,
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

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

  .ai-agent {
    bottom: 14px;
    right: 14px;
  }

  .ai-agent-panel {
    bottom: 70px;
    max-height: calc(100vh - 94px);
    width: calc(100vw - 28px);
  }

  .ai-agent-body {
    min-height: 220px;
  }
}
