/* idiibi corporate site shell (every public page except the /chat assistant): top bar, home, work, hosting, footer. Uses the app.css tokens, so light/dark follow the theme. */
body.v2 { background: var(--bg); color: var(--text); }
.v2 { --v2-max: 1180px; --v2-pad: clamp(16px, 4vw, 32px); }

/* top bar */
.v2-head { position: sticky; inset-block-start: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-block-end: 1px solid var(--border); }
.v2-bar { max-inline-size: var(--v2-max); margin-inline: auto; padding: 10px var(--v2-pad); display: flex; align-items: center; gap: 18px; }
.v2-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; flex: none; }
.v2-brand span { display: flex; flex-direction: column; line-height: 1.1; } .v2-brand small { font-size: .66rem; font-weight: 600; color: var(--muted); }
.v2-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-inline-size: 0; }
.v2-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 700; font-size: .93rem; text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; }
.v2-link::-webkit-details-marker { display: none; }
.v2-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.v2-link.on { color: var(--accent-ink); background: var(--accent-soft); }
.v2-dd { position: relative; } .v2-dd[open] > .v2-link { background: var(--surface-2); }
.v2-menu { position: absolute; inset-inline-start: 0; inset-block-start: calc(100% + 6px); min-inline-size: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; z-index: 5; animation: rise .2s var(--ease) both; }
.v2-menu a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.v2-menu a:hover { background: var(--accent-soft); } .v2-menu b { font-size: .92rem; } .v2-menu small { color: var(--muted); font-size: .78rem; }
.v2-nav-extra { display: none; }
.v2-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.v2-ib { inline-size: 38px; block-size: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; }
.v2-ib:hover { background: var(--surface-2); text-decoration: none; }
.v2-acc { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.v2-acc:hover { background: var(--surface-2); }
.v2-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.v2-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px var(--accent-glow); text-decoration: none; color: #fff; }
.v2-cta.v2-lg, .v2-ghost.v2-lg { padding: 13px 24px; font-size: 1rem; border-radius: 13px; }
.v2-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--border-2); background: transparent; color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.v2-ghost:hover { background: var(--surface-2); text-decoration: none; }
.v2-burger { display: none; inline-size: 40px; block-size: 40px; place-items: center; border-radius: 10px; border: 1px solid var(--border-2); background: transparent; color: var(--text); cursor: pointer; }
@media (max-width: 1100px) {
  .v2-burger { display: grid; } .v2-acc span, .v2-cta { display: none; } .v2-cta.v2-lg { display: inline-flex; }
  .v2-nav { position: fixed; inset: 58px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 4px; padding: 14px var(--v2-pad) 40px; overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .v2-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .v2-link { padding: 14px 12px; font-size: 1.02rem; border-radius: 12px; justify-content: space-between; }
  .v2-menu { position: static; box-shadow: none; border: 0; padding: 0 8px 8px; min-inline-size: 0; background: transparent; }
  .v2-nav-extra { display: flex; flex-direction: column; border-block-start: 1px solid var(--border); margin-block-start: 8px; padding-block-start: 8px; }
}

/* shared blocks */
.hm-in { max-inline-size: var(--v2-max); margin-inline: auto; padding-inline: var(--v2-pad); }
.hm-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .82rem; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; } .hm-cta.center { justify-content: center; }
.hm-grid { display: grid; gap: 14px; } .hm-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hm-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .hm-grid.g3, .hm-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hm-grid.g3, .hm-grid.g4 { grid-template-columns: 1fr; } }
.hm-tile, .hm-prod, .hm-work { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; position: relative; transition: transform .18s, border-color .18s, box-shadow .18s; }
a.hm-tile:hover, .hm-prod:hover, .hm-work:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.hm-tile b, .hm-prod b, .hm-work b { font-size: 1.04rem; } .hm-tile small, .hm-prod small, .hm-work small { color: var(--muted); line-height: 1.6; }
.hm-ico { inline-size: 44px; block-size: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-block-end: 4px; }
.hm-tag { align-self: flex-start; padding: 3px 10px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .04em; }
.hm-prod em { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; font-style: normal; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); }
.hm-wt { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 8px; background: var(--surface-2); color: var(--accent-ink); font-weight: 700; font-size: .78rem; }
.hm-work i { font-style: normal; direction: ltr; text-align: start; color: var(--accent-ink); font-size: .8rem; margin-block-start: auto; padding-block-start: 6px; }

/* home */
.v2-main.is-landing { padding: 0; }
.hm-hero { padding-block: clamp(36px, 7vw, 84px); background: radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent 70%); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; }
.hm-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.25; margin: 14px 0 12px; font-weight: 800; letter-spacing: -.01em; }
.hm-lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-2); line-height: 1.8; max-inline-size: 60ch; margin: 0; }
.hm-card { border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); padding: 16px; transform: rotate(-1.2deg); }
html[dir="rtl"] .hm-card { transform: rotate(1.2deg); }
.hm-dots { display: flex; gap: 6px; margin-block-end: 12px; } .hm-dots i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--border-2); }
.hm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block-end: 12px; }
.hm-kpis div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; } .hm-kpis small { display: block; color: var(--muted); font-size: .72rem; } .hm-kpis b { font-size: 1.25rem; }
.hm-bars { display: flex; align-items: flex-end; gap: 8px; block-size: 110px; background: var(--surface-2); border-radius: 12px; padding: 10px; }
.hm-bars i { flex: 1; background: var(--accent); border-radius: 5px; opacity: .85; } .hm-bars i:nth-child(1) { block-size: 30%; opacity: .35; } .hm-bars i:nth-child(2) { block-size: 48%; opacity: .5; } .hm-bars i:nth-child(3) { block-size: 40%; opacity: .6; } .hm-bars i:nth-child(4) { block-size: 66%; opacity: .75; } .hm-bars i:nth-child(5) { block-size: 82%; } .hm-bars i:nth-child(6) { block-size: 96%; }
@media (max-width: 860px) { .hm-hero-grid { grid-template-columns: 1fr; } .hm-card { display: none; } }
.hm-trust { border-block: 1px solid var(--border); background: var(--surface); }
.hm-trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.hm-trust-grid > div { padding: 18px 12px; text-align: center; border-inline-start: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.hm-trust-grid > div:first-child { border-inline-start: 0; } .hm-trust-grid b { font-size: 1.12rem; } .hm-trust-grid small { color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .hm-trust-grid { grid-template-columns: repeat(2, 1fr); } .hm-trust-grid > div { border-block-end: 1px solid var(--border); } }
.hm-sec { padding-block: clamp(32px, 5vw, 60px); } .hm-alt { background: var(--surface-2); }
.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-end: 18px; }
.hm-head h2, .wk-sec h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 0; font-weight: 800; } .hm-head a { color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.hm-host { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; } .hm-host h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 10px 0 8px; } .hm-host p { color: var(--text-2); margin: 0 0 16px; line-height: 1.8; max-inline-size: 58ch; }
.hm-host-badge { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px 32px; }
@media (max-width: 760px) { .hm-host { grid-template-columns: 1fr; } .hm-host-badge { justify-self: start; } }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.hm-steps.three { grid-template-columns: repeat(3, 1fr); }
.hm-steps li { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.hm-steps li span { inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; } .hm-steps li small { color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) { .hm-steps, .hm-steps.three { grid-template-columns: 1fr 1fr; } } @media (max-width: 480px) { .hm-steps, .hm-steps.three { grid-template-columns: 1fr; } }
.hm-final { text-align: center; padding-block: clamp(40px, 6vw, 72px); background: linear-gradient(135deg, var(--accent-ink), var(--accent)); color: #fff; }
.hm-final h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 8px; color: #fff; } .hm-final p { margin: 0; opacity: .92; }
.hm-final .v2-cta { background: #fff; color: var(--accent-ink); border-color: #fff; } .hm-final .v2-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); } .hm-final .v2-ghost:hover { background: rgba(255, 255, 255, .14); }

/* work + hosting pages */
.wk, .hs { padding-block: var(--sp-4) var(--sp-6); }
.wk-head, .hs-hero { padding-block: 18px 26px; } .wk-head h1, .hs-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; margin: 8px 0; font-weight: 800; }
.wk .lede, .hs .lede { color: var(--text-2); font-size: 1.05rem; line-height: 1.8; max-inline-size: 64ch; }
.wk-nums { display: flex; gap: 22px; margin-block-start: 14px; } .wk-nums div { display: flex; flex-direction: column; } .wk-nums b { font-size: 1.6rem; color: var(--accent-ink); } .wk-nums small { color: var(--muted); }
.wk-sec { margin-block: clamp(22px, 4vw, 40px); } .wk-sub { color: var(--muted); margin: 4px 0 14px; } .wk-sec h2 { margin-block-end: 12px; }
.wk-final { border-radius: 22px; margin-block-start: 36px; }
.hs-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.hs-badge { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px 34px; }
@media (max-width: 760px) { .hs-hero { grid-template-columns: 1fr; } .hs-badge { justify-self: start; } }
.hs-coupon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1.5px dashed var(--accent); border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); font: inherit; cursor: pointer; }
.hs-coupon small { color: var(--muted); } .hs-coupon code { font-weight: 800; letter-spacing: .08em; }
.hs-note { display: block; margin-block-start: 12px; color: var(--muted); }
.hm-tile.static { cursor: default; }

/* footer */
.v2-foot { background: var(--surface-2); border-block-start: 1px solid var(--border); margin-block-start: 0; }
.v2-foot-in { max-inline-size: var(--v2-max); margin-inline: auto; padding: 40px var(--v2-pad) 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; }
.vf-brand p { color: var(--muted); line-height: 1.8; max-inline-size: 38ch; margin: 10px 0; font-size: .9rem; }
.vf-col { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; } .vf-col b { margin-block-end: 4px; } .vf-col a, .vf-col span { color: var(--text-2); text-decoration: none; } .vf-col a:hover { color: var(--accent-ink); }
.vf-col svg { vertical-align: -3px; } .vf-badge { display: inline-block; margin-block-start: 6px; }
.vf-legal { max-inline-size: var(--v2-max); margin-inline: auto; padding: 14px var(--v2-pad) 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; border-block-start: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
@media (max-width: 860px) { .v2-foot-in { grid-template-columns: 1fr 1fr; } .vf-brand { grid-column: 1 / -1; } } @media (max-width: 480px) { .v2-foot-in { grid-template-columns: 1fr; } }

/* inner pages keep their own content width; the old rail layout is not used here */
.v2-main.is-page { min-block-size: 60vh; }
.v2 .to-top { inset-block-end: 18px; }
@media (prefers-reduced-motion: reduce) { .v2 * { animation: none !important; transition: none !important; } }
.v2-cta, .v2-ghost, .hs-coupon { white-space: nowrap; flex: none; }
.v2-link { padding-inline: 10px; }
.v2-brand small { display: none; }
@media (min-width: 1101px) { .v2-brand small { display: block; } }
@media (max-width: 1240px) and (min-width: 1101px) { .v2-acc span { display: none; } }
.v2-cta.v2-lg, .v2-ghost.v2-lg { white-space: normal; text-align: center; max-inline-size: 100%; }

/* Motion: endless hero card, live numbers, stronger closing band */
.hm-card { animation: hm-float 6s ease-in-out infinite; }
@keyframes hm-float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }
html[dir="rtl"] .hm-card { animation-name: hm-float-rtl; }
@keyframes hm-float-rtl { 0%, 100% { transform: translateY(0) rotate(1.2deg); } 50% { transform: translateY(-14px) rotate(-.6deg); } }
.hm-dots i:nth-child(1) { animation: hm-blink 2.4s infinite; } .hm-dots i:nth-child(2) { animation: hm-blink 2.4s .4s infinite; } .hm-dots i:nth-child(3) { animation: hm-blink 2.4s .8s infinite; }
@keyframes hm-blink { 0%, 100% { background: var(--border-2); } 50% { background: var(--accent); } }
.hm-bars i { transform-origin: bottom; animation: hm-bar 2.8s ease-in-out infinite; }
.hm-bars i:nth-child(2) { animation-delay: .25s; } .hm-bars i:nth-child(3) { animation-delay: .5s; } .hm-bars i:nth-child(4) { animation-delay: .75s; } .hm-bars i:nth-child(5) { animation-delay: 1s; } .hm-bars i:nth-child(6) { animation-delay: 1.25s; }
@keyframes hm-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
.hm-kpis b { color: var(--accent); font-variant-numeric: tabular-nums; }
.hm-trust-grid .hm-num b { font-size: 1.9rem; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.hm-trust-grid > div { transition: background .2s, transform .2s; } .hm-trust-grid > div:hover { background: var(--surface-2); transform: translateY(-2px); }
.hm-final { background: linear-gradient(135deg, #02565a 0%, #038387 55%, #04a1a6 100%); }
.hm-final h2 { text-shadow: 0 2px 12px rgba(0, 0, 0, .25); } .hm-final p { opacity: 1; color: #e6fbfb; }
.hm-final .v2-cta { background: #fff; color: #02565a; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.hm-final .v2-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .8); } .hm-final .v2-ghost:hover { background: rgba(255, 255, 255, .26); }
@media (prefers-reduced-motion: reduce) { .hm-card, .hm-bars i, .hm-dots i { animation: none !important; } }

/* Mobile pass (RTL-safe: logical properties only) */
@media (max-width: 560px) {
  .hm-grid.g3, .hm-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hm-tile, .hm-prod, .hm-work, .hm-steps li { padding: 14px 12px; border-radius: 14px; gap: 4px; }
  .hm-tile b, .hm-prod b, .hm-work b { font-size: .95rem; line-height: 1.35; }
  .hm-tile small, .hm-prod small, .hm-work small { font-size: .78rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hm-work i { font-size: .7rem; overflow-wrap: anywhere; }
  .hm-steps, .hm-steps.three { grid-template-columns: 1fr; }
  .hm-hero { padding-block: 28px 24px; }
  .hm-hero h1 { font-size: 1.7rem; }
  .hm-cta { gap: 8px; } .hm-cta > * { flex: 1 1 100%; justify-content: center; text-align: center; }
  .hm-card { display: block; margin-block-start: 20px; padding: 12px; animation-duration: 7s; }
  .hm-kpis { gap: 6px; } .hm-kpis div { padding: 8px; } .hm-kpis b { font-size: 1rem; } .hm-bars { block-size: 80px; }
  .hm-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-trust-grid > div { padding: 14px 8px; }
  .hm-trust-grid > div:nth-child(odd) { border-inline-start: 0; }
  .hm-trust-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hm-trust-grid .hm-num b { font-size: 1.6rem; }
  .hm-final { padding-block: 36px; } .hm-final h2 { font-size: 1.35rem; }
  .v2-foot-in { grid-template-columns: 1fr 1fr; gap: 20px; } .vf-brand, .v2-foot-in > .vf-col:last-child { grid-column: 1 / -1; }
  .vf-legal { flex-direction: column; gap: 6px; text-align: start; }
}
@media (max-width: 860px) { .hm-card { display: block; } }

/* Legal pages and footer links */
.lg-page { max-inline-size: 820px; margin-inline: auto; padding: 28px var(--v2-pad) 56px; line-height: 1.85; }
.lg-page h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 10px 0 4px; }
.lg-sec h2 { font-size: 1.1rem; margin: 26px 0 6px; color: var(--accent-ink); }
.lg-sec p { margin: 0; color: var(--text); }
.lg-ids { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 8px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.lg-ids dt { color: var(--muted); } .lg-ids dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vf-links { display: flex; flex-wrap: wrap; gap: 8px 18px; } .vf-links a { color: var(--muted); font-size: .85rem; text-decoration: none; } .vf-links a:hover { color: var(--accent); }
@media (max-width: 560px) { .lg-ids { grid-template-columns: 1fr; gap: 2px; } .lg-ids dd { margin-bottom: 8px; } }
