/* ============ Renewed main home ============ */
.hm .wrap { max-width: 1280px; }
.hm .eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hm-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.hm-h p { max-width: 420px; color: var(--muted); font-size: 16px; }
.hm-h.light p { color: rgba(255,255,255,.6); }

/* hero */
.hm-hero { position: relative; height: 760px; overflow: hidden; color: #fff; background: #0f1220; }
.hm-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 7s linear; }
.hm-slide.on { opacity: 1; transform: scale(1); }
.hm-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,10,24,.9) 0%, rgba(12,10,24,.62) 50%, rgba(12,10,24,.2) 100%); }
.hm-hero-txt { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding-bottom: 60px; }
.hm-hero-txt .eb { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); margin-bottom: 24px; }
.hm-hero-txt .eb::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); }
.hm-ptn { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; width: max-content; padding: 10px 18px 10px 14px; margin-bottom: 26px; background: #fff; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.hm-ptn .lg { display: flex; align-items: center; height: 24px; }
.hm-ptn .lg img { height: 100%; width: auto; display: block; }
.hm-ptn .x { font-style: normal; font-size: 15px; color: #9a96a6; font-weight: 500; }
.hm-ptn .tx { padding-left: 14px; border-left: 1px solid #e3e0ea; font-size: 13px; font-weight: 700; color: var(--accent-deep); white-space: nowrap; }
.hm-hero-txt h1 { font-size: 66px; line-height: 1.16; font-weight: 700; letter-spacing: -0.045em; max-width: 820px; }
.hm-hero-txt p { margin-top: 26px; font-size: 19px; color: rgba(255,255,255,.75); max-width: 560px; }
.hm-hero-txt .btns { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hm-hero-txt .anim > * { animation: aUp .8s both; }
.hm-hero-txt .anim > *:nth-child(2) { animation-delay: .08s; }
.hm-hero-txt .anim > *:nth-child(3) { animation-delay: .16s; }
.hm-hero-txt .anim > *:nth-child(4) { animation-delay: .24s; }
.hm-ctrl { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255,255,255,.14); background: rgba(10,8,20,.35); backdrop-filter: blur(8px); }
.hm-ctrl .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.hm-ctrl button { position: relative; text-align: left; padding: 22px 24px 24px 0; display: flex; gap: 14px; align-items: baseline; color: rgba(255,255,255,.5); transition: color .2s; }
.hm-ctrl button:hover, .hm-ctrl button.on { color: #fff; }
.hm-ctrl button i { position: absolute; left: 0; right: 24px; top: -1px; height: 2px; background: transparent; overflow: hidden; }
.hm-ctrl button i b { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hm-ctrl button.on i b { animation: aBar 6.5s linear forwards; }
.hm-ctrl span { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-ctrl em { font-style: normal; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* intro */
.hm-intro { padding: 140px 0 120px; }
.hm-intro .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 96px; align-items: start; }
.hm-intro h2 { font-size: 46px; line-height: 1.28; letter-spacing: -0.04em; font-weight: 700; }
.hm-intro-l p { margin: 28px 0 32px; font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.75; }
.hm-intro-r { border-top: 1px solid var(--fg); }
.hm-pt { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.hm-pt .n { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); padding-top: 6px; }
.hm-pt small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hm-pt h4 { font-size: 24px; letter-spacing: -0.03em; margin: 2px 0 6px; }
.hm-pt p { color: var(--muted); font-size: 15px; }

/* clients */
.hm-clients { padding: 110px 0 100px; background: var(--surface); overflow: hidden; }
.hm-clients-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.hm-clients-h p { max-width: 400px; color: var(--muted); }
.hm-marq { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hm-marq .trk { display: flex; gap: 14px; width: max-content; animation: hmMarq 60s linear infinite; }
.hm-marq.rev .trk { animation-direction: reverse; animation-duration: 70s; }
.hm-marq:hover .trk { animation-play-state: paused; }
.hm-marq .lg { width: 200px; height: 84px; flex: none; background: #fff; border-radius: 10px; display: grid; place-items: center; padding: 16px 26px; border: 1px solid var(--line); }
.hm-marq .lg img { max-width: 100%; max-height: 40px; object-fit: contain; }
@keyframes hmMarq { to { transform: translateX(-50%); } }
.hm-partners { margin-top: 56px; display: grid; grid-template-columns: 160px repeat(5, 1fr); align-items: center; border-top: 1px solid var(--line); padding-top: 28px; gap: 16px; }
.hm-partners .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hm-partners div { cursor: pointer; }
.hm-partners b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.hm-partners small { font-size: 13px; color: var(--muted); }
.hm-partners div:hover b { color: var(--accent); }

/* process */
.hm-proc { padding: 130px 0; }
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--fg); }
.hm-step { padding: 32px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; min-height: 340px; cursor: pointer; position: relative; transition: background .25s, color .25s; }
.hm-step:first-child { padding-left: 0; }
.hm-step:last-child { border-right: 0; }
.hm-step .top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.hm-step .n { color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.hm-step .k { color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.hm-step h3 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.3; margin: 56px 0 14px; }
.hm-step p { font-size: 15px; color: var(--muted); }
.hm-step .meta { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--fg); }
.hm-step .meta span { color: var(--muted); margin-right: 10px; }
.hm-step .go { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.hm-step:hover { background: var(--accent); color: #fff; padding-left: 28px; }
.hm-step:hover p, .hm-step:hover .k, .hm-step:hover .meta span, .hm-step:hover .n { color: rgba(255,255,255,.75); }
.hm-step:hover .meta, .hm-step:hover .go { color: #fff; }
.hm-step:hover .go { opacity: 1; transform: none; }
.hm-plus { margin-top: 24px; display: grid; grid-template-columns: 56px 1fr auto 24px; gap: 24px; align-items: center; padding: 26px 32px; border-radius: 12px; background: var(--surface); cursor: pointer; transition: background .2s; }
.hm-plus:hover { background: var(--surface-2); }
.hm-plus .pl { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 300; }
.hm-plus h4 { font-size: 19px; letter-spacing: -0.02em; }
.hm-plus p { font-size: 14.5px; color: var(--muted); }
.hm-plus .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-plus .chips span { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.hm-plus > .arrow { font-size: 20px; }
.hm-plus:hover > .arrow { transform: translateX(4px); }

/* solutions */
.hm-sol { padding: 130px 0; background: #14111d; color: #fff; }
.hm-sol .eyebrow { color: var(--accent-light); }
.hm-sol-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; }
.hm-sol-tabs { border-top: 1px solid rgba(255,255,255,.2); }
.hm-sol-tabs button { width: 100%; display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 12px; text-align: left; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); transition: color .2s, padding .25s; }
.hm-sol-tabs .n { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.hm-sol-tabs .t b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.hm-sol-tabs .t small { font-size: 12.5px; opacity: .7; }
.hm-sol-tabs .arrow { opacity: 0; transition: opacity .2s, transform .2s; }
.hm-sol-tabs button.on { color: #fff; padding-left: 10px; }
.hm-sol-tabs button.on .n { color: var(--accent-light); }
.hm-sol-tabs button.on .arrow { opacity: 1; }
.hm-sol-panel { display: grid; grid-template-columns: 1fr 1fr; background: #1d1929; border-radius: 16px; overflow: hidden; animation: aUp .5s both; min-height: 480px; }
.hm-sol-panel .img { background: #f3f2f7; display: grid; place-items: center; overflow: hidden; }
.hm-sol-panel .img img { width: 100%; height: 100%; }
.hm-sol-panel .img.cover img { object-fit: cover; }
.hm-sol-panel .img.contain { padding: 28px; }
.hm-sol-panel .img.contain img { object-fit: contain; }
.hm-sol-panel .bd { padding: 40px; display: flex; flex-direction: column; }
.hm-sol-panel .tag { font-size: 12.5px; color: var(--accent-light); font-weight: 600; }
.hm-sol-panel h3 { font-size: 28px; letter-spacing: -0.03em; margin: 10px 0 12px; line-height: 1.3; }
.hm-sol-panel p { color: rgba(255,255,255,.65); font-size: 15px; }
.hm-sol-panel .items { margin: 26px 0 24px; display: flex; flex-direction: column; }
.hm-sol-panel .items button { display: grid; grid-template-columns: 1fr auto 18px; gap: 12px; align-items: center; text-align: left; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hm-sol-panel .items b { font-size: 15.5px; }
.hm-sol-panel .items small { font-size: 12.5px; color: rgba(255,255,255,.5); }
.hm-sol-panel .items button:hover b { color: var(--accent-light); }
.hm-sol-panel .items button:hover .arrow { transform: translateX(4px); }
.hm-sol-panel .all { margin-top: auto; font-weight: 600; font-size: 14.5px; cursor: pointer; color: #fff; }
.hm-sol-panel .all:hover .arrow { transform: translateX(4px); }

/* spotlight */
.hm-spot { padding: 130px 0 40px; }
.hm-spot-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 280px 280px; gap: 20px; }
.hm-card { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; color: #fff; background: #111; }
.hm-card.big { grid-row: span 2; }
.hm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hm-card:hover img { transform: scale(1.05); }
.hm-card .ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; background: linear-gradient(0deg, rgba(10,8,20,.92) 0%, rgba(10,8,20,.45) 55%, rgba(10,8,20,.1) 100%); }
.hm-card .badge { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); margin-bottom: 12px; }
.hm-card h3 { font-size: 24px; letter-spacing: -0.03em; }
.hm-card.big h3 { font-size: 38px; }
.hm-card p { font-size: 14.5px; color: rgba(255,255,255,.75); margin-top: 6px; max-width: 440px; }
.hm-card .go { margin-top: 14px; font-size: 14px; font-weight: 600; }
.hm-card:hover .go .arrow { transform: translateX(4px); }

/* cases */
.hm-cases { padding: 110px 0; }
.hm-case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-case { border: 1px solid var(--line); border-radius: 12px; padding: 28px 26px; display: flex; flex-direction: column; min-height: 290px; cursor: pointer; transition: border-color .2s, transform .25s, box-shadow .25s; }
.hm-case:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(40,20,80,.35); }
.hm-case .ind { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.hm-case .ind b { color: var(--accent); }
.hm-case h4 { font-size: 19px; line-height: 1.42; letter-spacing: -0.02em; margin: 16px 0 10px; }
.hm-case .res { font-size: 14px; color: var(--muted); }
.hm-case .chips { margin-top: auto; padding-top: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.hm-case .chips span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface); }

/* news */
.hm-news { padding: 40px 0 130px; }
.hm-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hm-nw { display: block; cursor: pointer; }
.hm-nw .img { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--surface); }
.hm-nw .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hm-nw:hover .img img { transform: scale(1.04); }
.hm-nw .meta { font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.hm-nw h4 { font-size: 18px; line-height: 1.45; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-nw:hover h4 { color: var(--accent); }

/* contact */
.hm-contact { background: var(--accent); color: #fff; }
.hm-contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; padding-top: 96px; padding-bottom: 96px; align-items: end; }
.hm-contact .eyebrow { color: rgba(255,255,255,.65); }
.hm-contact h3 { font-size: 40px; line-height: 1.3; letter-spacing: -0.035em; }
.hm-contact .btns { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hm-contact .row { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.hm-contact .row small { font-size: 13px; opacity: .65; padding-top: 2px; }
.hm-contact .row p { font-size: 15.5px; }
.hm-contact .quick { display: flex; gap: 24px; margin-top: 22px; flex-wrap: wrap; }
.hm-contact .quick a { font-weight: 600; font-size: 14.5px; cursor: pointer; }
.hm-contact .quick a:hover .arrow { transform: translateX(4px); }

/* ---------- mobile ---------- */
@container site (max-width: 900px) {
  .hm-h, .hm-clients-h { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
  .hm-hero { height: 640px; }
  .hm-slide::after { background: linear-gradient(0deg, rgba(12,10,24,.95) 35%, rgba(12,10,24,.35) 100%); }
  .hm-hero-txt { justify-content: flex-end; padding-bottom: 96px; }
  .hm-hero-txt h1 { font-size: 34px; }
  .hm-ptn { gap: 10px; padding: 8px 14px 8px 10px; margin-bottom: 18px; }
  .hm-ptn .lg { height: 17px; }
  .hm-ptn .tx { padding-left: 10px; font-size: 11.5px; }
  .hm-hero-txt p { font-size: 15px; margin-top: 16px; }
  .hm-hero-txt .btns { margin-top: 26px; }
  .hm-ctrl em { display: none; }
  .hm-ctrl button { padding: 18px 12px 20px 0; }
  .hm-ctrl button i { right: 12px; }
  .hm-intro { padding: 80px 0 64px; }
  .hm-intro .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hm-intro h2 { font-size: 29px; }
  .hm-intro-l p { font-size: 15.5px; }
  .hm-pt { grid-template-columns: 40px 1fr; padding: 22px 0; }
  .hm-pt h4 { font-size: 20px; }
  .hm-clients { padding: 72px 0; }
  .hm-marq .lg { width: 140px; height: 64px; padding: 12px 16px; }
  .hm-marq .lg img { max-height: 30px; }
  .hm-partners { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hm-partners .lbl { grid-column: 1 / -1; }
  .hm-partners b { font-size: 16px; }
  .hm-proc, .hm-sol { padding: 72px 0; }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-step, .hm-step:first-child { min-height: 0; padding: 24px 0; border-right: 0; }
  .hm-step h3 { margin: 16px 0 8px; font-size: 21px; }
  .hm-step .go { opacity: 1; transform: none; }
  .hm-step:hover { padding-left: 16px; }
  .hm-plus { grid-template-columns: 44px 1fr; padding: 22px; gap: 14px; }
  .hm-plus .pl { width: 40px; height: 40px; }
  .hm-plus .chips { grid-column: 1 / -1; }
  .hm-plus > .arrow { display: none; }
  .hm-sol-grid { grid-template-columns: 1fr; gap: 20px; }
  .hm-sol-tabs { display: flex; overflow-x: auto; border-top: 0; gap: 8px; scrollbar-width: none; }
  .hm-sol-tabs::-webkit-scrollbar { display: none; }
  .hm-sol-tabs button { width: auto; flex: none; display: block; padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
  .hm-sol-tabs button.on { padding-left: 16px; background: #fff; color: #14111d; }
  .hm-sol-tabs .n, .hm-sol-tabs .arrow, .hm-sol-tabs .t small { display: none; }
  .hm-sol-tabs .t b { font-size: 14px; white-space: nowrap; }
  .hm-sol-panel { grid-template-columns: 1fr; min-height: 0; }
  .hm-sol-panel .img { aspect-ratio: 16/10; }
  .hm-sol-panel .bd { padding: 26px 22px; }
  .hm-sol-panel h3 { font-size: 23px; }
  .hm-spot { padding: 72px 0 24px; }
  .hm-spot-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 300px; gap: 14px; }
  .hm-card.big { grid-row: auto; }
  .hm-card.big h3 { font-size: 28px; }
  .hm-card .ov { padding: 22px; }
  .hm-cases { padding: 64px 0; }
  .hm-case-grid { grid-template-columns: 1fr; }
  .hm-case { min-height: 0; }
  .hm-news { padding: 24px 0 72px; }
  .hm-news-grid { grid-template-columns: 1fr; gap: 28px; }
  .hm-contact .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
  .hm-contact h3 { font-size: 27px; }
}
