/* =========================================================
   CoSarathi.ai — Home page (November 2026 Figma update, frame 1:6428)
   Loaded after style.css; reuses its hero, product cards, product rows,
   outcomes and CTA box, and adds the new sections (prefix hm-).
   ========================================================= */

/* ---------- Shared bits ---------- */
.hm-eyebrow {
  display: inline-block; font-size: 16px; line-height: 32px; letter-spacing: .07px;
  text-transform: uppercase; border-bottom: 2px solid #4a2cf5;
}
.hm-eyebrow--center { display: table; margin: 0 auto; }
.hm-h2 {
  margin: 26px auto 0; text-align: center; font-weight: 500;
  font-size: clamp(32px, 3.7vw, 50px); line-height: 1.5; letter-spacing: -1.2px;
}
.hm-sub { max-width: 790px; margin: 26px auto 0; text-align: center; font-size: 16px; line-height: 25px; }

/* ---------- Hero ---------- */
.hm-hero__title { max-width: 696px; line-height: 1.265; }
.hm-hl { position: relative; z-index: 0; }
.hm-hl::before { /* the gradient block behind "AI" */
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: .125em; height: 1.058em;
  background: linear-gradient(156deg, #7300ff 18.6%, rgba(22, 255, 255, .7) 212.8%);
}
.hm-hero__lead { max-width: 604px; }

.hm-clip { /* small looping preview of the brand film, top right of the hero */
  grid-column: 3; grid-row: 1; justify-self: end; align-self: start; position: relative;
  width: 287.5px; aspect-ratio: 287.5 / 172.5; margin-top: 228px; margin-right: calc(120px - var(--gutter));
}
.hm-clip__video { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: #000; }
.hm-clip__btn { position: absolute; top: -10px; right: -10px; width: 46px; height: 46px; border-radius: 50%; transition: transform .2s; }
.hm-clip__btn img { width: 46px; height: 46px; }
.hm-clip__btn:hover { transform: scale(1.06); }

/* ---------- About ---------- */
.hm-about { background: #020103; padding: 14px var(--gutter); }
.hm-about__card {
  max-width: 1270px; min-height: 660px; margin: 0 auto; border-radius: 12px;
  background: linear-gradient(108.3deg, #7300ff 2.2%, #a30cb5 44.5%, #00173a 87.3%);
  display: flex; align-items: center; gap: 37px; padding: 28px 0 28px 25px;
}
.hm-about__text { flex: 0 0 488px; }
.hm-about__title { margin-top: 18px; font-weight: 600; }
.hm-about__big { display: block; font-size: 50px; line-height: 60px; letter-spacing: -.75px; }
.hm-about__sub { display: block; margin-top: 12px; font-size: 30px; line-height: 40px; letter-spacing: -.75px; }
.hm-about__lead { margin-top: 12px; max-width: 464px; font-size: 16px; line-height: 1.5; }
.hm-about__frame {
  position: relative; flex: 0 0 750px; height: 420px; margin-right: -30px; overflow: hidden;
  border-radius: 12px; border: 1px solid rgba(143, 141, 145, .2); background: rgba(0, 0, 0, .6);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .8), 0 4px 40px 8px rgba(0, 0, 0, .4);
}
.hm-about__frame::after { /* inner top highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 .5px 0 1px rgba(255, 255, 255, .3);
}
.hm-about__video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.hm-about__play {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .25));
}
.hm-about__play img { width: 84px; height: 84px; transition: transform .2s; }
.hm-about__play:hover img, .hm-about__play:focus-visible img { transform: scale(1.06); }
.hm-about__play[hidden] { display: none; }

/* ---------- Four products (reuses .bento rows) ---------- */
.hm-products__title { max-width: 740px; }
.hm-products__sub { max-width: 560px; }
.hm-bcard { padding-top: 0; }
.hm-badge {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: "Story Script", "Segoe Script", cursive; font-size: 25px; line-height: 1.3; color: #fff;
  animation: hm-badge 2.4s ease-in-out infinite alternate;
}
@keyframes hm-badge { from { color: #fff; } to { color: #edb750; } }
/* Figma: smaller, centred visuals under the badge so each card stays 400px tall */
.hm-bcard .bcard__visual { width: 203px; height: 158px; object-fit: contain; margin: 42px auto 26px; }
.hm-bcard .bcard__visual--sq { width: 167px; height: 150px; margin-top: 34px; margin-bottom: 23px; }
.hm-bcard .bcard__visual--sm { width: 150px; height: 150px; margin-top: 44px; margin-bottom: 26px; }

/* ---------- Industries ---------- */
.hm-ind { padding: 40px 0 80px; }
.hm-ind__sub { max-width: 789px; }
.hm-ind__box { max-width: 1272px; margin: 26px auto 0; }
.hm-ind__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-ind__tab {
  height: 100px; padding: 0 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
  background: #080808; border: 1px solid #1e1e1e; box-shadow: 0 0 44px 13px rgba(6, 21, 44, .2); text-align: left;
  transition: background .2s, border-color .2s;
}
.hm-ind__tab:first-child { border-radius: 15px 0 0 15px; }
.hm-ind__tab:last-child { border-radius: 0 15px 15px 0; }
.hm-ind__tab:hover { background: #121016; }
.hm-ind__tab.is-active { background: linear-gradient(90deg, rgba(115, 0, 255, .3), rgba(114, 61, 172, .3)); border-color: #614ace; }
.hm-ind__logo { display: flex; align-items: center; gap: 6px; height: 32px; }
.hm-ind__logo .logo-mark { height: 30px; width: auto; }
.hm-ind__logo .logo-text { height: 24px; width: auto; }
#hm-tab-chorus .logo-text { height: 20px; }
#hm-tab-optimind .logo-text { height: 26px; }
.hm-ind__cap { font-weight: 500; font-size: 14px; line-height: 1.3; }
.hm-ind__panel {
  min-height: 375px; padding: 34px; background: #080808; border: 1px solid #1e1e1e; border-radius: 15px;
}
.hm-ind__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hm-ind__tile {
  height: 95px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 15px; border-radius: 15px; border: 1px solid #1e1e1e;
  background: linear-gradient(131.8deg, rgba(34, 34, 34, .3) 0%, rgba(26, 26, 26, .3) 42.7%, rgba(49, 49, 49, .3) 79.2%, rgba(53, 53, 53, .3) 100%);
  animation: hm-tile-in .35s ease both;
}
.hm-ind__tile[hidden] { display: none; }
.hm-ind__tile img { width: 49px; height: 49px; flex-shrink: 0; }
.hm-ind__tile span { flex: 1; text-align: center; font-weight: 600; font-size: 17px; line-height: 24px; color: #fbfbfc; }
@keyframes hm-tile-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hm-ind__note {
  max-width: 1205px; margin: 26px auto 0; padding: 30px 65px; border-radius: 16px; border: 1px solid #343434;
  background: rgba(52, 52, 52, .53); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hm-ind__col { flex: 0 1 382px; padding: 20px; text-align: center; }
.hm-ind__col--wide { flex-basis: 457px; }
.hm-ind__col h3 { font-family: var(--font-ui); font-weight: 500; font-size: 24px; line-height: 1.2; }
.hm-ind__col p { margin-top: 24px; font-family: "Manrope", var(--font-body); font-size: 16px; line-height: 1.4; letter-spacing: -.4px; }
.hm-ind__divider { align-self: stretch; width: 1px; min-height: 160px; background: rgba(255, 255, 255, .3); }

/* ---------- Where to start ---------- */
.hm-start {
  padding: 40px var(--gutter) 44px;
  background:
    radial-gradient(118px 124px at 68% 38%, rgba(35, 32, 230, .18), transparent),
    radial-gradient(60% 40% at 70% 35%, rgba(35, 32, 230, .12), transparent 70%),
    linear-gradient(180deg, #05020c 0%, #060214 100%);
}
.hm-start__inner { max-width: 1240px; margin: 0 auto; }
.hm-start__head { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 580px); gap: 80px; align-items: center; }
.hm-start__title { margin-top: 14px; font-weight: 600; font-size: clamp(36px, 3.7vw, 50px); line-height: 1.44; letter-spacing: -2.88px; color: #f8f7fb; }
.hm-start__note { border-left: 2px solid #9e52ff; padding-left: 40px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.hm-start__box {
  margin-top: 58px; padding: 20px; border-radius: 22px; border: 1px solid #4e347d; background: rgba(19, 13, 38, .72);
  box-shadow: 0 0 65px rgba(62, 26, 151, .18);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 46px;
}
.hm-start__card { display: flex; gap: 36px; min-height: 308px; padding: 32px 40px; background: #171035; transition: background .2s; }
.hm-start__card:hover { background: #1f1546; }
.hm-start__card > img { flex: 0 0 264px; width: 264px; height: 243px; object-fit: cover; }
.hm-start__copy { display: flex; flex-direction: column; align-items: flex-start; padding-top: 25px; min-width: 0; }
.hm-start__name { font-weight: 500; font-size: 22px; line-height: 1.28; }
.hm-start__text { margin-top: 40px; max-width: 235px; font-size: 16px; line-height: 1.23; }
.hm-start__go { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 10px; font-size: 18px; line-height: 1; }
.hm-start__go img { width: 19px; height: 15px; transition: transform .2s; }
.hm-start__card:hover .hm-start__go img, .hm-start__card:focus-visible .hm-start__go img { transform: translateX(4px); }

/* ---------- Start with one. Prove it. Then scale. ---------- */
.hm-how { position: relative; overflow: hidden; background: #020103; padding: 40px var(--gutter) 80px; }
.hm-how__inner { position: relative; max-width: 1272px; min-height: 649px; margin: 0 auto; }
.hm-how__text { position: relative; z-index: 1; max-width: 599px; padding-top: 52px; }
.hm-how__title { font-weight: 600; font-size: clamp(36px, 3.7vw, 50px); line-height: 1.2; letter-spacing: -.75px; }
.hm-how__lead { margin-top: 40px; font-size: 16px; line-height: 1.5; }
.hm-steps { position: relative; margin-top: 10px; padding: 48px 0 0 32px; }
.hm-steps::before { /* the line joining the step icons (masked by each icon's black ring) */
  content: ""; position: absolute; left: 49px; top: 48px; bottom: 74px; width: 2px; background: rgba(212, 228, 254, .19);
}
.hm-step { position: relative; display: grid; grid-template-columns: 36px 50px minmax(0, 1fr); column-gap: 15.6px; align-items: start; min-height: 110px; }
.hm-step:last-child { min-height: 0; }
.hm-step__ico {
  position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid rgba(212, 228, 254, .19); background: linear-gradient(180deg, #1b1b1b, #030303); box-shadow: 0 0 0 8px #020103;
}
.hm-step__tag {
  margin-top: 4px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: rgba(115, 0, 255, .22);
  font-weight: 500; font-size: 12px; line-height: 16px; color: #9d6bff;
}
.hm-step__body { padding-top: 6px; }
.hm-step__body h3 { font-weight: 600; font-size: 20px; line-height: 24px; }
.hm-step__body p { margin-top: 8px; max-width: 326px; font-size: 14px; line-height: 16px; }
.hm-how__art { position: absolute; left: 590px; top: -10px; width: 690px; height: auto; pointer-events: none; }

/* ---------- Four commitments ---------- */
.hm-commit { padding: 40px 0 80px; }
.hm-commit__band { background: #161a26; padding: 44px 0 69px; }
.hm-commit .hm-h2 { margin-top: 0; }
.hm-commit .hm-sub { margin-top: 30px; }
.hm-commit__grid { max-width: 1271px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-commit__card {
  position: relative; height: 480px; overflow: hidden; padding: 40px 18px 0 36px; border-radius: 12px;
  background: #1b202c; border: 1px solid rgba(255, 255, 255, .03);
}
.hm-commit__card h3 { font-weight: 600; font-size: 20px; line-height: 22px; }
.hm-commit__card p { margin-top: 28px; font-family: var(--font-body); font-size: 15px; line-height: 24px; color: #888ea5; }
.hm-commit__card img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }

/* ---------- One site, five scenarios ---------- */
.hm-score { padding: 40px var(--gutter) 50px; }
.hm-score__inner { max-width: 1272px; margin: 0 auto; display: flex; justify-content: center; align-items: flex-start; gap: 26px; }
.hm-score__text { flex: 0 1 629px; }
.hm-score__title { max-width: 599px; font-weight: 600; font-size: clamp(34px, 3.7vw, 50px); line-height: 1.2; letter-spacing: -.75px; }
.hm-score__text > p { max-width: 599px; font-size: 16px; line-height: 1.5; }
.hm-score__title + p { margin-top: 40px; }
.hm-score__foot { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hm-score__logo { display: inline-flex; align-items: center; gap: 9px; }
.hm-score__logo .logo-mark { height: 44px; width: auto; }
.hm-score__logo .logo-text { height: 32px; width: auto; }
.hm-score__btn { height: 46px; padding: 0 26px; }
.hm-score__grid {
  flex: 0 0 617px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 155px 155px; gap: 11px 10px;
}
.hm-score__grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.hm-score__grid .hm-score__tall { grid-row: 1 / span 2; }

/* ---------- Insights (reuses the .industries rings) ---------- */
.hm-insights { padding: 60px 0 84px; }
.hm-insights__ring { /* white ring at the lower left, as in Figma */
  position: absolute; left: -330px; bottom: 300px; width: 450px; height: 226px; border-radius: 113px;
  border: 14px solid #fff; pointer-events: none;
}
.hm-insights__title { max-width: 690px; margin-top: 30px; line-height: 1.5; }
.hm-insights__grid { margin-top: 54px; display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; gap: 54px 48px; }
.hm-insight { display: flex; flex-direction: column; min-height: 399px; overflow: hidden; border-radius: 48px; background: #fff; color: #333; }
.hm-insight > img { width: 100%; height: 180px; object-fit: cover; }
.hm-insight__body { display: flex; flex-direction: column; gap: 25px; padding: 20px 50px 48px 48px; }
.hm-insight__cat { font-weight: 700; font-size: 23px; line-height: 30px; }
.hm-insight__title { font-weight: 500; font-size: 20px; line-height: 24px; }

/* ---------- CTA ---------- */
.hm-cta__box { border-radius: 10px; border-color: rgba(255, 255, 255, .15); }
.hm-cta__title { max-width: 809px; font-weight: 500; font-size: clamp(30px, 4vw, 60px); line-height: 1.167; }
.hm-btn-grad {
  display: inline-flex; height: 56px; padding: 4px 5px; border-radius: 40px; border: 1px solid #fff;
  background: linear-gradient(253deg, #2320e6 20%, #fff 78.7%, #ff2df7 115%);
}
.hm-btn-grad span {
  display: flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 24px; background: rgba(53, 53, 53, .61);
  font-weight: 500; font-size: 20px; line-height: 1; transition: background .2s;
}
.hm-btn-grad:hover span { background: rgba(53, 53, 53, .4); }
.hm-btn-ghost {
  display: inline-flex; align-items: center; height: 56px; padding: 0 34px; border-radius: 70px; border: 1px solid #fff; background: #000;
  font-weight: 500; font-size: 16px; line-height: 1.2; transition: background .2s;
}
.hm-btn-ghost:hover { background: #1a1424; }

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .hm-about__card { gap: 28px; padding-right: 28px; }
  .hm-about__text { flex: 1 1 420px; }
  .hm-about__frame { flex: 0 1 620px; height: auto; aspect-ratio: 16 / 9; margin-right: 0; }
  .hm-how__art { left: auto; right: -40px; width: min(690px, 52%); top: 40px; }
  .hm-score__grid { flex-basis: 520px; grid-template-rows: 132px 132px; }
}

@media (max-width: 1200px) {
  .hm-clip { display: none; }
  .hm-about__card { flex-direction: column; align-items: stretch; min-height: 0; padding: 40px 32px; }
  .hm-about__text { flex: none; }
  .hm-about__frame { flex: none; width: 100%; }
  .hm-ind__tab { padding: 0 18px; }
  .hm-ind__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-ind__note { padding: 24px 32px; }
  .hm-start__head { gap: 40px; }
  .hm-start__card { flex-direction: column; gap: 20px; padding: 28px; }
  .hm-start__card > img { flex: none; width: 100%; height: 220px; }
  .hm-start__copy { padding-top: 0; }
  .hm-start__text { margin-top: 14px; max-width: none; }
  .hm-how__inner { min-height: 0; }
  .hm-how__art { position: static; display: block; width: min(560px, 100%); margin: 32px auto 0; }
  .hm-commit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .hm-score__inner { flex-direction: column; align-items: stretch; }
  .hm-score__text { flex: none; }
  .hm-score__grid { flex: none; width: 100%; grid-template-rows: auto auto; }
  .hm-score__grid img { aspect-ratio: 199 / 155; height: auto; }
  .hm-score__grid .hm-score__tall { aspect-ratio: auto; height: 100%; }
  .hm-insights__ring { display: none; }
}

@media (max-width: 960px) {
  .hm-ind__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hm-ind__tab, .hm-ind__tab:first-child, .hm-ind__tab:last-child { border-radius: 12px; height: 88px; }
  .hm-ind__panel { margin-top: 8px; padding: 20px; min-height: 0; }
  .hm-ind__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-ind__note { flex-direction: column; align-items: stretch; padding: 16px; }
  .hm-ind__col { flex: none; }
  .hm-ind__divider { width: auto; min-height: 0; height: 1px; }
  .hm-start__head { grid-template-columns: 1fr; gap: 20px; }
  .hm-start__note { padding-left: 20px; }
  .hm-start__box { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .hm-insights__grid { grid-template-columns: repeat(2, minmax(0, 320px)); gap: 40px 28px; }
  .hm-insights::before, .hm-insights::after { display: none; }
}

@media (max-width: 600px) {
  .hm-about { padding-left: 0; padding-right: 0; }
  .hm-about__card { border-radius: 0; padding: 36px var(--gutter); }
  .hm-about__big { font-size: 36px; line-height: 44px; }
  .hm-about__sub { font-size: 24px; line-height: 32px; }
  .hm-badge { font-size: 22px; }
  .hm-bcard { padding-top: 52px; }
  .hm-ind__tab { padding: 0 12px; height: 92px; }
  .hm-ind__logo .logo-mark { height: 22px; }
  .hm-ind__logo .logo-text, #hm-tab-optimind .logo-text, #hm-tab-chorus .logo-text { height: 16px; }
  .hm-ind__cap { font-size: 12px; }
  .hm-ind__grid { grid-template-columns: 1fr; }
  .hm-ind__tile { height: 72px; }
  .hm-ind__tile span { text-align: left; font-size: 16px; line-height: 20px; }
  .hm-start__card { padding: 18px; }
  .hm-start__card > img { height: 180px; }
  .hm-steps { padding-left: 0; }
  .hm-steps::before { left: 17px; }
  .hm-step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
  .hm-step__tag { grid-column: 2; grid-row: 1; justify-self: start; padding: 0 8px; margin-top: 4px; }
  .hm-step__body { grid-column: 2; padding-top: 8px; }
  .hm-commit__grid { grid-template-columns: 1fr; max-width: 360px; }
  .hm-commit__card { height: 420px; }
  .hm-score__foot { gap: 16px; }
  .hm-insights__grid { grid-template-columns: minmax(0, 360px); }
  .hm-insight { border-radius: 32px; min-height: 0; }
  .hm-insight__body { padding: 20px 28px 32px; }
  .hm-btn-grad span { font-size: 17px; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-badge, .hm-ind__tile { animation: none; }
  .hm-clip__btn, .hm-about__play img, .hm-start__go img { transition: none; }
}
