/* =========================================================================
   home-hero.css — homepage hero (rotating verb + Mac/iPad/iPhone display)
   Shared by / and /en/. Loaded after /site.css. Prefix: hh-
   ========================================================================= */

.hh { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; border-top: 5px solid var(--sky); }
.hh-glow { position: absolute; left: 50%; top: 420px; width: 1400px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91,155,255,.22), rgba(91,155,255,0) 70%); pointer-events: none; }

.hh-head { position: relative; max-width: 1100px; margin: 0 auto; padding: 56px 32px 8px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hh-h1 { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(44px, 7vw, 104px);
  line-height: .98; letter-spacing: -0.03em; color: #fff; }
.hh-h1-a { display: block; }
.hh-h1-b { display: block; overflow: hidden; min-height: 1.05em; padding-bottom: .04em; }
.hh-phrase { display: inline-block; color: var(--sky); }
.hh-phrase.is-in { animation: hhIn .55s cubic-bezier(.2,.9,.3,1) both; }
@keyframes hhIn { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
.hh-sub { margin: 0; font-size: 19px; line-height: 1.6; color: var(--panel-text); max-width: 680px; }
.hh-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hh-btn { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; padding: 16px 26px; }
.hh-btn-primary { background: var(--sky); color: var(--navy-deep); border: 2px solid var(--sky); }
.hh-btn-primary:hover { background: #7db0ff; border-color: #7db0ff; color: var(--navy-deep); }
.hh-btn-ghost { border: 2px solid var(--sky); color: #fff; }
.hh-btn-ghost:hover { background: rgba(91,155,255,.14); color: #fff; }

/* ── Device stage: authored at 1180×700, scaled to fit ─────────────────── */
.hh-stage { --s: 1; position: relative; width: 100%; max-width: 1240px; margin: 8px auto 0; padding: 0 20px;
  box-sizing: border-box; height: calc(700px * var(--s)); }
.hh-stage-inner { position: absolute; left: 50%; top: 0; width: 1180px; height: 700px;
  transform-origin: top center; transform: translateX(-50%) scale(var(--s)); }
@media (max-width: 1220px) { .hh-stage { --s: .9; } }
@media (max-width: 1080px) { .hh-stage { --s: .78; } }
@media (max-width: 920px)  { .hh-stage { --s: .64; } }
@media (max-width: 760px)  { .hh-stage { --s: .5; } }
@media (max-width: 600px)  { .hh-stage { --s: .38; } }
@media (max-width: 460px)  { .hh-stage { --s: .3; } }

.hh-shadow { position: absolute; }
.hh-dev { position: absolute; animation: hhFloat 6s ease-in-out infinite; }
@keyframes hhFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Shared app look (matches the Mili app) */
.hh-app { background: #f1f2fb; color: #1f1f1f; font-family: var(--font-body); }
.hh-bubble { align-self: flex-end; background: #5a72f2; color: #fff; }
.hh-pill { align-self: flex-start; font-family: var(--font-mono); color: #2c3e8c; background: #dfe6fb; border: 1px solid #b9c6f2; }
.hh-cmd { font-family: var(--font-mono); color: #3a7d55; background: #fff; border: 1px solid #e3e5f2; }
.hh-card { align-self: flex-start; background: #fff; border: 1px solid #e3e5f2; display: flex; flex-direction: column; }
.hh-card b { font-weight: 700; }
.hh-compose { background: #fff; border: 1px solid #e3e5f2; display: flex; align-items: center; color: #8a8fa3; }
.hh-compose span { flex: 1 1 auto; }
.hh-compose i { display: inline-block; background: #5a72f2; }
.hh-thread { flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; }

/* Reveal sequence: stage[data-reveal] 0→3 */
.hh-stage [data-r] { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.hh-stage[data-reveal="1"] [data-r="1"],
.hh-stage[data-reveal="2"] [data-r="1"], .hh-stage[data-reveal="2"] [data-r="2"],
.hh-stage[data-reveal="3"] [data-r] { opacity: 1; transform: none; }

/* MacBook */
.hh-mac { left: 200px; top: 30px; width: 800px; }
.hh-mac-lid { background: #1b1c20; border-radius: 22px 22px 6px 6px; padding: 14px 14px 18px;
  box-shadow: 0 0 0 2px #3a3c42 inset, 0 40px 80px rgba(0,0,0,.45); }
.hh-mac-screen { position: relative; height: 500px; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.hh-mac-notch { position: absolute; left: 50%; top: 0; width: 130px; height: 18px; transform: translateX(-50%);
  background: #1b1c20; border-radius: 0 0 9px 9px; z-index: 2; }
.hh-menubar { height: 22px; flex: 0 0 auto; background: #e6e8f4; display: flex; align-items: center; gap: 14px;
  padding: 0 12px; font-size: 11px; font-weight: 600; }
.hh-menubar span { font-weight: 400; }
.hh-menubar .hh-mb-app { font-weight: 600; }
.hh-menubar .hh-mb-clock { margin-left: auto; }
.hh-mac-body { flex: 1 1 auto; display: flex; min-height: 0; border-top: 1px solid #d9dcef; }
.hh-side { width: 210px; flex: 0 0 auto; background: #f7f7fc; border-right: 1px solid #e3e5f2; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.hh-lights { display: flex; gap: 6px; padding: 2px 4px 8px; }
.hh-lights i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.hh-lights i:nth-child(1) { background: #ff5f57; } .hh-lights i:nth-child(2) { background: #febc2e; } .hh-lights i:nth-child(3) { background: #28c840; }
.hh-side-h { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: #2c3e8c; padding: 0 4px 6px; }
.hh-side-item { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 9px; transition: background .3s; }
.hh-side-item.is-active { background: #e4e9fc; box-shadow: inset 3px 0 0 #5a72f2; }
.hh-side-item > i { width: 26px; height: 26px; border-radius: 7px; background: #5a72f2; color: #fff; font-style: normal;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hh-side-item > span { display: flex; flex-direction: column; min-width: 0; }
.hh-side-item b, .hh-side-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-side-item b { font-size: 11.5px; font-weight: 700; }
.hh-side-item small { font-size: 10px; color: #6b6f76; }
.hh-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hh-main-top { padding: 10px 16px; background: #fff; border-bottom: 1px solid #e3e5f2; display: flex; align-items: center; gap: 8px; }
.hh-main-top b { font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.hh-main-top small { margin-left: auto; font-size: 10.5px; color: #2c3e8c; background: #eef1fd; border-radius: 10px; padding: 3px 9px; }
.hh-mac .hh-thread { padding: 16px 18px; gap: 10px; }
.hh-mac .hh-bubble { max-width: 70%; font-size: 13px; line-height: 1.45; padding: 10px 14px; border-radius: 16px; }
.hh-mac .hh-cmds { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; }
.hh-mac .hh-pill { font-size: 10.5px; padding: 3px 10px; border-radius: 10px; }
.hh-mac .hh-cmd { font-size: 10px; padding: 3px 9px; }
.hh-mac .hh-card { max-width: 80%; border-radius: 12px; padding: 12px 15px; font-size: 13px; line-height: 1.55; gap: 4px; box-shadow: 0 2px 10px rgba(40,50,120,.07); }
.hh-mac .hh-compose { margin: 0 16px 14px; border-radius: 14px; padding: 8px 8px 8px 14px; gap: 8px; font-size: 12px; }
.hh-mac .hh-compose i { width: 26px; height: 26px; border-radius: 8px; }
.hh-mac-base { position: relative; height: 22px; margin: 0 -60px; background: linear-gradient(#e2e3e7, #a7a9b0);
  border-radius: 2px 2px 20px 20px / 2px 2px 14px 14px; box-shadow: 0 18px 30px rgba(0,0,0,.4); }
.hh-mac-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 150px; height: 8px; transform: translateX(-50%);
  background: #9c9ea5; border-radius: 0 0 8px 8px; }

/* iPad */
.hh-ipad { left: 40px; top: 170px; width: 350px; height: 480px; animation-delay: -2s; }
.hh-ipad-frame { width: 100%; height: 100%; background: #0e0f12; border-radius: 34px; padding: 15px; box-sizing: border-box;
  box-shadow: 0 0 0 2px #c9cbd1, 0 0 0 4px #8d9097, 0 40px 70px rgba(0,0,0,.5); }
.hh-ipad-screen { width: 100%; height: 100%; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.hh-status { display: flex; justify-content: space-between; font-weight: 700; }
.hh-ipad .hh-status { padding: 8px 16px 0; font-size: 10px; }
.hh-apphead { display: flex; align-items: center; border-bottom: 1px solid #e3e5f2; }
.hh-apphead img { display: block; }
.hh-apphead b { font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.hh-ipad .hh-apphead { gap: 8px; padding: 10px 14px; }
.hh-ipad .hh-apphead img { width: 22px; height: 22px; border-radius: 6px; }
.hh-ipad .hh-apphead b { font-size: 14px; }
.hh-ipad .hh-apphead small { margin-left: auto; font-size: 10px; color: #2c3e8c; background: #e4e9fc; border-radius: 9px; padding: 2px 8px; }
.hh-ipad .hh-thread { padding: 12px; gap: 8px; }
.hh-ipad .hh-bubble { max-width: 86%; font-size: 11.5px; line-height: 1.4; padding: 8px 11px; border-radius: 13px; }
.hh-ipad .hh-pill { font-size: 9.5px; padding: 3px 8px; border-radius: 10px; }
.hh-ipad .hh-card { max-width: 94%; border-radius: 11px; padding: 10px 11px; font-size: 11.5px; line-height: 1.45; gap: 3px; }
.hh-ipad .hh-compose { margin: 0 12px 14px; border-radius: 16px; padding: 7px 7px 7px 12px; gap: 6px; font-size: 10.5px; }
.hh-ipad .hh-compose i { width: 22px; height: 22px; border-radius: 50%; }

/* iPhone */
.hh-iphone { left: 900px; top: 230px; width: 214px; height: 430px; animation-delay: -4s; }
.hh-iphone-frame { width: 100%; height: 100%; background: #0e0f12; border-radius: 42px; padding: 9px; box-sizing: border-box;
  box-shadow: 0 0 0 2px #a5a7ad, 0 0 0 4px #6e7077, 0 40px 70px rgba(0,0,0,.55); }
.hh-iphone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; }
.hh-island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 64px; height: 19px; background: #0e0f12; border-radius: 10px; }
.hh-iphone .hh-status { padding: 11px 20px 0; font-size: 9.5px; }
.hh-iphone .hh-apphead { gap: 6px; padding: 14px 12px 8px; }
.hh-iphone .hh-apphead img { width: 18px; height: 18px; border-radius: 5px; }
.hh-iphone .hh-apphead b { font-size: 12px; }
.hh-iphone .hh-thread { padding: 9px; gap: 6px; }
.hh-iphone .hh-bubble { max-width: 90%; font-size: 9.5px; line-height: 1.4; padding: 6px 9px; border-radius: 11px; }
.hh-iphone .hh-card { max-width: 96%; border-radius: 9px; padding: 8px 9px; font-size: 9.5px; line-height: 1.45; gap: 2px; }
.hh-iphone .hh-compose { margin: 0 9px 10px; border-radius: 14px; padding: 6px 6px 6px 10px; gap: 6px; font-size: 9px; }
.hh-iphone .hh-compose i { width: 20px; height: 20px; border-radius: 50%; }
.hh-homebar { width: 70px; height: 4px; border-radius: 2px; background: #1f1f1f; margin: 0 auto 6px; }

/* Chips + ticker */
.hh-chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 20px 40px; }
.hh-chip { font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 11px 18px; min-height: 44px; cursor: pointer;
  border: 1px solid var(--sky); border-radius: 22px; background: transparent; color: var(--panel-text); }
.hh-chip:hover { background: rgba(91,155,255,.14); }
.hh-chip[aria-pressed="true"] { background: var(--sky); color: var(--navy-deep); }
.hh-ticker { position: relative; border-top: 1px solid var(--navy-rule); background: #0f2347; overflow: hidden; padding: 16px 0; }
.hh-ticker-track { display: flex; width: max-content; gap: 48px; padding-left: 48px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--panel-text); animation: hhTick 40s linear infinite; }
.hh-ticker-track em { font-style: normal; color: #34d399; }
.hh-ticker-track time { font-family: var(--font-mono); font-size: 13px; color: var(--faint); margin: 0 4px; }
@keyframes hhTick { to { transform: translateX(-50%); } }

/* ── Below the hero ─────────────────────────────────────────────────── */
.hh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hh-features { max-width: var(--wrap); margin: 0 auto; padding: 96px var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.hh-feature { display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--sky); padding-top: 20px; }
.hh-feature h3 { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--navy); line-height: 1.2; }
.hh-feature p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.hh-platforms { background: var(--paper); border-top: 1px solid var(--line-3); }
.hh-platforms-inner { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter); display: flex; flex-wrap: wrap;
  gap: 28px; align-items: center; justify-content: space-between; }
.hh-platforms h2 { margin: 0; flex: 1 1 420px; font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1; color: var(--navy); }
.hh-platform-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hh-platform-links a { font-family: var(--font-head); font-weight: 700; font-size: 15px; text-decoration: none;
  border: 2px solid var(--navy); color: var(--navy); padding: 12px 20px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.hh-platform-links a:hover { background: var(--navy); color: #fff; }

@media (max-width: 860px) {
  .hh-head { padding: 40px 20px 4px; }
  .hh-sub { font-size: 16px; }
  .hh-ctas { flex-direction: column; width: 100%; max-width: 360px; }
  .hh-ctas .hh-btn { justify-content: center; }
  .hh-features { padding: 64px 20px; }
  .hh-platforms-inner { padding: 56px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hh-dev, .hh-ticker-track, .hh-phrase.is-in { animation: none !important; }
  .hh-stage [data-r] { transition: none; }
}
.hh-bul { display: flex; flex-direction: column; gap: inherit; }
