/* Thea site: ElevenLabs-style layout in the Humanyx brand */
:root {
  --ink: #1C1B5A;
  --cobalt: #3346E0;
  --peri: #A9B4FF;
  --mist: #EDEFFF;
  --coral: #FF7A59;
  --teal: #14A3A0;
  --slate: #646985;
  --bg: #F8F8FB;
  --card: #F0F1F7;
  --line: #E2E4EE;
  --white: #fff;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --frame: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--white); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

/* Framed column with thin side rules */
.frame { max-width: var(--frame); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; }
.rule { border-top: 1px solid var(--line); }
.rule::before, .rule::after { content: ""; position: absolute; top: -4px; width: 7px; height: 7px; background: var(--bg); border: 1px solid #C9CCDB; }
.rule::before { left: -4px; }
.rule::after { right: -4px; }
.pad { padding: 104px 48px; }

/* Pills */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; font: 500 15px/1 var(--body); white-space: nowrap; transition: background .2s, transform .2s, box-shadow .2s; }
.pill:hover { transform: translateY(-1px); }
.pill-dark { background: var(--ink); color: var(--white); }
.pill-dark:hover { background: #2A2980; }
.pill-light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill-light:hover { box-shadow: inset 0 0 0 1px #C9CCDB; }
.pill-white { background: var(--white); color: var(--ink); }
.pill-sm { height: 32px; padding: 0 14px; font-size: 13px; }

/* Announcement bar */
.announce { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 16px; background: var(--mist); font-size: 14px; text-align: center; }
.announce-mark { font: 600 13px/1 var(--display); color: var(--coral); letter-spacing: .02em; }

/* Nav */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(248, 248, 251, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 36px; height: 68px; padding: 0 24px; border-color: transparent; }
.brand { display: flex; align-items: center; gap: 9px; font: 600 23px/1 var(--display); letter-spacing: -.02em; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; font-size: 15px; }
.nav-links a { color: var(--ink); opacity: .82; }
.nav-links a:hover { opacity: 1; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .pill { height: 38px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 1.6px; margin: 5px auto; background: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; padding: 120px 48px 56px; }
h1 { font: 400 clamp(40px, 5.4vw, 66px)/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; }
h2 { font: 400 clamp(30px, 3.6vw, 44px)/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 28px; text-wrap: balance; }
.hero-side p { font-size: 17px; color: var(--ink); opacity: .86; max-width: 440px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* Showcase */
.showcase-wrap { padding: 0 24px 24px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--card); border-radius: 18px 18px 0 0; }
.tab { display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px; border: 0; border-radius: 14px; background: transparent; font: 500 15px/1 var(--body); color: var(--slate); cursor: pointer; transition: background .2s, color .2s; }
.tab.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(28, 27, 90, .08); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.d-cobalt { background: var(--cobalt); } .d-coral { background: var(--coral); } .d-teal { background: var(--teal); } .d-peri { background: var(--peri); }
.showcase { background: var(--card); border-radius: 0 0 18px 18px; padding: 0 4px 4px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #F3F4FA, #E9EBF6); display: grid; place-items: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(.5px); }
.orb.o1 { width: 34%; aspect-ratio: 1; left: 6%; top: 22%; background: radial-gradient(circle at 35% 30%, #DCE1FF, var(--peri) 45%, var(--cobalt) 100%); }
.orb.o2 { width: 40%; aspect-ratio: 1; left: 30%; top: 12%; background: radial-gradient(circle at 35% 30%, #FFD9CC, var(--coral) 50%, #C9503A 100%); }
.orb.o3 { width: 32%; aspect-ratio: 1; right: 6%; top: 28%; background: radial-gradient(circle at 35% 30%, #C9F0EE, var(--teal) 55%, var(--ink) 100%); }
.video .orb { animation: float 9s ease-in-out infinite alternate; }
.video .orb.o2 { animation-delay: -3s; } .video .orb.o3 { animation-delay: -6s; }
@keyframes float { to { transform: translateY(-14px) scale(1.03); } }
.play { position: relative; z-index: 2; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--white); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(28, 27, 90, .25); cursor: default; }
.video.ready .play { cursor: pointer; }
.play svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 3px; }
.video-note { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 500; }
.modes { position: relative; min-height: 76px; }
.mode { display: none; gap: 18px; align-items: baseline; padding: 20px 22px 16px; }
.mode.on { display: flex; }
.mode b { font: 500 16px/1.4 var(--display); white-space: nowrap; }
.mode span { color: var(--slate); }

/* Built for */
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 40px 48px 28px; }
.row-head p { font-size: 17px; }
.audience { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.audience span { padding: 26px 16px; text-align: center; font: 500 16px/1.3 var(--display); color: var(--slate); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience span:nth-child(4n) { border-right: 0; }
.audience span:nth-last-child(-n+4) { border-bottom: 0; }

/* Two products */
.h2-wide { max-width: 760px; margin-bottom: 44px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-card { display: block; padding: 10px 10px 26px; background: var(--card); border-radius: 18px; transition: background .2s; }
.duo-card:hover { background: #E9EBF4; }
.duo-art { position: relative; height: 260px; border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.art-a { background: linear-gradient(135deg, #E3E7FF, #F6F7FC); }
.art-b { background: linear-gradient(135deg, #FFE8E0, #F6F7FC); }
.duo-art .orb.o1 { width: 46%; left: 14%; top: 14%; }
.duo-art .orb.o2 { width: 40%; left: 48%; top: 30%; }
.duo-art .orb.o3 { width: 46%; left: 14%; top: 14%; }
.duo-card b { display: block; padding: 0 14px; font: 500 20px/1.3 var(--display); }
.duo-card span { display: block; padding: 6px 14px 0; color: var(--slate); max-width: 460px; }

/* Split section heads */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.label { font-size: 14px; color: var(--slate); margin-bottom: 14px; }
.split-copy { font-size: 17px; opacity: .86; max-width: 470px; padding-top: 34px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: var(--card); border-radius: 18px; padding: 22px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; transition: background .2s; }
.card:hover { background: #E9EBF4; }
.card-lg { grid-column: span 2; min-height: 360px; }
.card-txt small { display: block; font-size: 14px; color: var(--slate); margin-bottom: 4px; }
.card-txt span { display: block; font-size: 15px; line-height: 1.45; }
.ico { width: 40px; height: 40px; border-radius: 11px; background: var(--white); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-feature { background: linear-gradient(160deg, #DDE2FF 0%, #F0F1F7 60%); }

/* Mini slide mock */
.mini-slide { position: relative; align-self: center; width: 88%; aspect-ratio: 16 / 9; background: var(--white); border-radius: 8px; padding: 6% 6% 5%; box-shadow: 0 18px 40px rgba(28, 27, 90, .14); display: flex; flex-direction: column; gap: 5%; }
.ms-line { width: 9%; height: 3px; background: var(--coral); border-radius: 2px; }
.ms-eyebrow { font: 600 9px/1 var(--body); letter-spacing: .08em; color: var(--cobalt); }
.ms-title { font: 500 15px/1.2 var(--display); }
.ms-bars { display: grid; gap: 5px; }
.ms-bars i { height: 9px; border-radius: 3px; background: var(--peri); }
.ms-bars i.hl { background: var(--coral); }
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.ms-cards i { height: 26px; border-radius: 5px; background: var(--mist); }
.ms-cards i.hl { background: #FFE3DA; }

/* Chat and step mocks */
.chat, .apps { display: flex; flex-direction: column; gap: 9px; max-width: 380px; }
.bubble { background: var(--white); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 2px rgba(28, 27, 90, .06); }
.bubble.me { background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; margin-left: 30px; }
.step { position: relative; padding-left: 24px; font-size: 14px; color: var(--slate); }
.step::before { content: ""; position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--teal); }
.dl { align-self: flex-start; margin-top: 4px; padding: 10px 16px; border-radius: 999px; background: var(--cobalt); color: var(--white); font-size: 14px; font-weight: 500; }
.app-row { display: flex; gap: 8px; }
.app { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: var(--white); font: 600 18px/1 var(--display); }
.a-p { background: var(--coral); } .a-x { background: var(--teal); } .a-w { background: var(--cobalt); }
.translate { display: flex; align-items: center; gap: 12px; }
.lang { width: 64px; height: 64px; border-radius: 16px; background: var(--white); display: grid; place-items: center; font: 500 20px/1 var(--display); box-shadow: 0 6px 18px rgba(28, 27, 90, .08); }
.arrow { width: 28px; height: 2px; background: var(--peri); position: relative; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--peri); border-right: 0; }

/* Quality and security */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trio > div { padding: 26px 24px 30px; border-radius: 18px; background: var(--card); }
.trio b, .quad b { display: block; font: 500 18px/1.3 var(--display); margin: 22px 0 6px; }
.trio p, .quad p { color: var(--slate); font-size: 15px; }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.quad > div { padding: 4px 24px 0 0; }
.quad > div + div { padding-left: 24px; border-left: 1px solid var(--line); }

/* CTA */
.cta { position: relative; overflow: hidden; margin: 24px; padding: 96px 40px; border-radius: 22px; background: var(--ink); color: var(--white); text-align: center; }
.cta .orb { opacity: .55; }
.cta .orb.o1 { width: 340px; left: -80px; top: -60px; }
.cta .orb.o3 { width: 300px; right: -60px; left: auto; top: 120px; }
.cta h2, .cta p, .cta .pill { position: relative; }
.cta p { opacity: .8; margin: -10px 0 30px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 48px 32px; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-top p { color: var(--slate); font-size: 15px; margin-top: 14px; max-width: 320px; }
.foot-top p a { text-decoration: underline; }
.foot-top h4 { font: 500 14px/1 var(--body); color: var(--slate); margin-bottom: 14px; }
.foot-top div > a:not(.brand) { display: block; font-size: 15px; margin-bottom: 9px; }
.foot-top div > a:not(.brand):hover { color: var(--cobalt); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate); }

/* Responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; }
  .menu-btn { display: block; }
  .bento { grid-template-columns: 1fr 1fr; }
  .quad { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .quad > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .rule::before, .rule::after { display: none; }
  .pad { padding: 72px 20px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 72px 20px 40px; }
  .showcase-wrap { padding: 0 12px 12px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab { font-size: 14px; }
  .mode { flex-direction: column; gap: 4px; }
  .play { width: 58px; height: 58px; }
  .row-head { flex-direction: column; align-items: flex-start; padding: 32px 20px 24px; }
  .audience { grid-template-columns: 1fr 1fr; }
  .audience span:nth-child(4n) { border-right: 1px solid var(--line); }
  .audience span:nth-child(2n) { border-right: 0; }
  .audience span:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .audience span:nth-last-child(-n+2) { border-bottom: 0; }
  .duo, .split, .trio { grid-template-columns: 1fr; }
  .split { gap: 8px; margin-bottom: 36px; }
  .split-copy { padding-top: 0; }
  .bento { grid-template-columns: 1fr; }
  .card { min-height: 0; gap: 28px; }
  .card-lg { grid-column: auto; min-height: 300px; }
  .quad { grid-template-columns: 1fr; }
  .quad > div + div { border-left: 0; padding-left: 0; }
  .cta { margin: 12px; padding: 72px 24px; }
  .footer { padding: 48px 20px 28px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
  .announce { font-size: 13px; gap: 10px; }
  .announce > span:nth-child(2) { flex: 1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video .orb { animation: none; }
  .pill, .card, .duo-card { transition: none; }
}
