:root {
  --ink: #0c0b09;
  --muted: #6b6862;
  --line: #ebe8e2;
  --paper: #f7f5f1;
  --card: #f3f1ed;
  --white: #fff;
  --serif: "Iowan Old Style", "Newsreader", "Source Serif 4", Palatino, serif;
  --sans: Inter, "Inter Fallback", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image: url("assets/noise.png");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.logo-mark {
  width: 28px;
  height: 28px;
  display: block;
}

.topbar {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.topbar-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  pointer-events: auto;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.topbar.scrolled .topbar-inner {
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 40px rgba(20,16,10,.08);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}
.topbar .logo-mark { color: #fff; }
.topbar.scrolled .logo-mark { color: #111; }
.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #f7f4ee;
  text-shadow: 0 1px 8px rgba(0,0,0,.18);
}
.topbar.scrolled .nav { text-shadow: none; }
.topbar.scrolled .nav { color: var(--ink); }
.nav a:hover { opacity: .7; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.link-ghost {
  font-size: 14px;
  font-weight: 500;
  color: #f7f4ee;
  background: none;
  border: 0;
}
.topbar.scrolled .link-ghost { color: var(--ink); }

.btn {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8.8px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-white { background: #fff; color: var(--ink); }
.btn-dark { background: #161513; color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid #d9d4cc;
  color: var(--ink);
  height: 36px;
  border-radius: 999px;
  padding: 0 14px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.topbar.scrolled .menu-toggle,
.topbar.open .menu-toggle { color: #111; }
.nav-drawer { display: none; }

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 0 64px 168px;
  background: #000;
}
.hero-god {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-god img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  filter: grayscale(1) contrast(1.12) brightness(.92);
  opacity: .72;
  mask-image: linear-gradient(90deg, transparent 8%, #000 42%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 42%, #000 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/noise.png");
  opacity: .4;
  pointer-events: none;
}
.hero-copy, .chats { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; padding-bottom: 8px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 28px;
  text-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.shopify-hero {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

.chats {
  position: absolute;
  right: 6%;
  top: 18%;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bubble {
  max-width: 300px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.bubble.right { align-self: flex-end; }
.bubble.left { align-self: flex-start; }
.who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: .9;
  margin-bottom: 4px;
}
.who b { font-weight: 600; }
.bubble p { font-size: 14.5px; line-height: 1.35; }
.avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d9c4a8;
  overflow: hidden;
}
.avatar.bot {
  background: #fff;
  width: 18px;
  height: 18px;
  object-fit: cover;
}

.overlap-logo {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(20,16,10,.08);
}
.overlap-logo svg { width: 22px; height: 22px; }

.section { padding: 72px 24px; scroll-margin-top: 88px; }
#hermes, #contacto { scroll-margin-top: 88px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; }
.center { text-align: center; }
.kicker {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.serif-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.15;
  color: #3f3c37;
  letter-spacing: -.02em;
}
.serif-title.dark { color: var(--ink); }

.tech {
  padding-top: 64px;
  padding-bottom: 28px;
}
.marquee {
  margin-top: 36px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 32s linear infinite;
  align-items: center;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b2a27;
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
  opacity: .82;
}
.tech-item svg, .tech-item img { height: 28px; width: auto; }
.tech-item .grok-icon, .badge .grok-icon {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}
.tech-item .sidekick-icon, .badge .sidekick-icon {
  height: 28px;
  width: 28px;
  border-radius: 8px;
  object-fit: cover;
}
.tech-item .factory-icon {
  height: 28px;
  width: 28px;
}
.tech-item.featured {
  opacity: 1;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ece8e0;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.os { padding-top: 48px; }
.os .serif-title { max-width: 720px; margin: 0 auto 40px; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  background: var(--card);
  border-radius: 24px;
  padding: 22px 22px 28px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.card h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.45; max-width: 46ch; }
.card-visual { flex: 1; margin-bottom: 22px; min-height: 160px; position: relative; }

.flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 460px;
}
.chip {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.chip b { display: block; font-size: 13.5px; font-weight: 600; }
.chip span { font-size: 12.5px; color: var(--muted); }

.icons-6 {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  gap: 12px;
  justify-content: center;
  padding-top: 18px;
}
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.agent-sheet {
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 18px 8px;
  margin: 0 18px -8px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.04);
}
.agent-sheet h4 { font-size: 14px; margin-bottom: 10px; }
.guard {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 12.5px;
  color: #444;
}
.guard b { display: block; margin-bottom: 6px; }
.guard li { margin-left: 16px; margin-bottom: 4px; }

.chart {
  height: 170px;
  margin: 8px 8px 0;
  border-radius: 16px;
  background:
    linear-gradient(#dbe7e4 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, #dbe7e4 1px, transparent 1px) 0 0 / 28px 28px,
    #eef3f1;
  position: relative;
  overflow: hidden;
}
.chart svg { position: absolute; inset: 18px 10px 28px; width: calc(100% - 20px); height: calc(100% - 46px); }
.chart-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
}

.hermes-banner {
  margin-top: 16px;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0a0a;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  align-items: stretch;
}
.hermes-banner-copy { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.hermes-banner h3 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  margin: 14px 0 14px;
  color: #fff;
}
.hermes-banner p { color: rgba(255,255,255,.86); max-width: 46ch; line-height: 1.5; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: fit-content;
}
.hermes-god {
  background: #000;
  min-height: 320px;
  position: relative;
}
.hermes-god img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.god-frame {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  height: 190px;
}
.god-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}
.hermes-logo {
  height: 28px;
  width: 28px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.hermes-logo.invert {
  filter: invert(1);
  background: transparent;
}
.pill .hermes-logo {
  width: 16px;
  height: 16px;
}

.metrics { padding-top: 24px; }
.metrics .serif-title { text-align: center; margin-bottom: 28px; }
.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.shot {
  position: relative;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.shot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot > img.photo-right {
  object-position: 78% 42%;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.62) 70%);
}
.shot-body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 280px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.shot strong { font-size: 34px; font-weight: 600; letter-spacing: -.04em; display: block; }
.shot em { font-style: normal; font-size: 14px; opacity: .92; }
.shot p { font-size: 13.5px; line-height: 1.35; max-width: 28ch; margin-top: 6px; }
.shot .brand { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.shot-body img.brand-logo {
  position: relative;
  z-index: 2;
  height: 22px !important;
  width: auto !important;
  max-height: 22px;
  max-width: 120px !important;
  object-fit: contain !important;
  object-position: left bottom;
}
.shot-body img.brand-logo.viva-logo {
  height: 72px !important;
  max-height: 72px !important;
  max-width: 220px !important;
}
.badge img {
  height: 28px;
  width: 28px;
  object-fit: contain;
}

.trust {
  margin-top: 28px;
  background: var(--card);
  border-radius: 28px;
  padding: 56px 24px 48px;
  text-align: center;
}
.trust p { color: var(--muted); margin: 10px auto 28px; max-width: 46ch; }
.badges {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid #ddd8d0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #6b6862;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  padding: 10px;
}

footer {
  padding: 56px 24px 32px;
  color: #5d5a54;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
footer h5 { color: var(--ink); font-size: 14px; margin-bottom: 12px; font-weight: 600; }
footer a { display: block; margin: 8px 0; }
footer a:hover { color: var(--ink); }
footer a.linkedin {
  display: inline-flex;
  margin-top: 12px;
}
footer a.linkedin img {
  width: 28px;
  height: 28px;
  display: block;
}
.foot-end {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav, .link-ghost { display: none; }
  .menu-toggle { display: block; }
  .topbar.open .topbar-inner {
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 40px rgba(20,16,10,.08);
    border-radius: 22px;
    backdrop-filter: blur(16px);
  }
  .topbar.open .logo-mark { color: #111 !important; }
  .topbar.open .btn-white {
    background: #161513;
    color: #fff;
  }
  .topbar.open .nav-drawer {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 90;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px 12px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(20,16,10,.18);
  }
  .nav-drawer a {
    display: block;
    padding: 14px 14px;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    border-radius: 12px;
  }
  .nav-drawer a:active { background: #f3f1ed; }
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 100px 16px 88px;
    min-height: auto;
  }
  .hero-god img {
    object-position: 50% 28%;
    opacity: .55;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 70%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35), #000 70%);
  }
  .chats {
    position: relative;
    right: auto;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 0 22px;
    gap: 8px;
  }
  .bubble {
    max-width: 88%;
    padding: 10px 12px;
  }
  .bubble p {
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 42px); margin-bottom: 18px; }
  .hero-actions { flex-wrap: wrap; }
  .grid-2, .cards-row, .hermes-banner, .foot-grid { grid-template-columns: 1fr; }
  .hermes-banner { min-height: 0; }
  .hermes-god { min-height: 220px; }
  .topbar-inner { width: calc(100% - 16px); }
  .foot-end { flex-direction: column; gap: 8px; }
}
