/* Version 2 — hero. Layout and sizes (1440px): centred badge, 64px
   two-line headline with one italic serif word, 18px subtext, two 42px buttons, then a 420px image + 840px framed
   dashboard, clipped by the hero's bottom edge. Colours: the crysmed.ae home page palette (tokens-layout-2.css).
   Fonts: Inter Tight + Lora. The dome, grid and clouds are drawn in CSS. */
.v2 {
  --ink-900: #161616;
  --ink-500: #6b6b6b;
  --paper: #fbfaf7;
  --brand-900: #0a4550;
  --brand-700: #077994;
  --brand-500: #2b9fb0;
  --brand-tint: #e2f3f5;
  --brand-tint-strong: #c5e8ec;
  --sky-500: #2394c0;
  --gold-500: #ffb100;
  --v2-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --v2-serif: 'Lora', Georgia, serif;
  --v2-ease: cubic-bezier(.22, 1, .36, 1);
  /* one vertical rhythm for every section: the same padding top and bottom, so the space between any two sections'
     content is 2 × --sec-y (112px at desktop, 88px on phones) instead of each section deciding its own */
  --sec-y: clamp(44px, 4vw, 56px);
}

.hero2 { position: relative; overflow: hidden; isolation: isolate; background: var(--paper); font-family: var(--v2-sans); color: var(--ink-900); }

/* background: a pale teal dome with a faint grid, soft clouds along its foot */
.hero2__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero2__dome { position: absolute; left: 50%; top: 52px; width: max(1900px, 132vw); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, #cfecef 0%, var(--brand-tint) 55%, rgba(226,243,245,.75) 84%, rgba(226,243,245,0) 100%); }
.hero2__dome::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background-image: linear-gradient(rgba(255,255,255,.75) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.75) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 88%); mask-image: radial-gradient(closest-side, #000 55%, transparent 88%); }
.hero2__grid-out { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(7,121,148,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(7,121,148,.05) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 46%); mask-image: linear-gradient(180deg, #000 0%, transparent 46%); }
.hero2__cloud { position: absolute; border-radius: 50%; background: #fff; filter: blur(34px); opacity: .9; }
.hero2__cloud--1 { width: 620px; height: 200px; left: -180px; top: 300px; }
.hero2__cloud--2 { width: 520px; height: 170px; left: 80px; top: 420px; opacity: .7; }
.hero2__cloud--3 { width: 640px; height: 210px; right: -200px; top: 290px; }
.hero2__cloud--4 { width: 520px; height: 170px; right: 60px; top: 430px; opacity: .7; }

/* content column: 1280px wide, centred */
.hero2__wrap { width: min(100% - 30px, 1280px); margin: 0 auto; padding-top: 136px; }
.hero2__top { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero2__badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 100px; background: #fff;
  box-shadow: 0 1px 2px rgba(10,69,80,.06), 0 6px 18px -10px rgba(10,69,80,.25); font-size: 14px; font-weight: 500; line-height: 14px; letter-spacing: -.02em; color: var(--ink-900); }
.hero2__faces { display: flex; }
.hero2__face { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #fff; color: #fff; }
.hero2__face + .hero2__face { margin-left: -4px; }
.hero2__face svg { width: 13px; height: 13px; }
.hero2__face--a { background: var(--brand-700); } .hero2__face--b { background: var(--sky-500); } .hero2__face--c { background: var(--gold-500); color: var(--brand-900); }

.hero2__title { margin-top: 20px; font-size: 64px; font-weight: 600; line-height: 1.11; letter-spacing: -.03em; }
.hero2__title em { font-family: var(--v2-serif); font-style: italic; font-weight: 500; letter-spacing: -.03em; }
.hero2__sub { max-width: 440px; margin-top: 20px; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink-500); }

.hero2__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 30px; }
.b2 { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 13px 16px; border-radius: 76px;
  font: 500 14px/16px var(--v2-sans); letter-spacing: -.006em; text-decoration: none; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.b2--fill { background: var(--brand-700); color: #fff; }
.b2--fill:hover { background: var(--brand-900); }
.b2--line { background: transparent; color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-700); }
.b2--line:hover { background: var(--brand-tint); }
/* text roll on hover: the label slides up and an identical copy follows from below */
.b2__roll { position: relative; display: block; overflow: hidden; height: 16px; }
.b2__roll span { display: block; transition: transform .45s var(--v2-ease); }
.b2:hover .b2__roll span, .b2:focus-visible .b2__roll span { transform: translateY(-100%); }

/* images: 420px photo + 840px framed dashboard (20px gap), cut by the hero's bottom edge */
.hero2__shots { display: grid; grid-template-columns: 420fr 840fr; gap: 20px; align-items: start; height: 464px; overflow: hidden; margin-top: 60px; }
.hero2__phone { height: 460px; overflow: hidden; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 30px 60px -36px rgba(10,69,80,.45); }
.hero2__phone img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.hero2__frame { padding: 12px 12px 0; border-radius: 26px 26px 0 0; background: var(--brand-700); box-shadow: 0 30px 70px -40px rgba(10,69,80,.6); }
.hero2__frame img { display: block; width: 100%; height: auto; border-radius: 16px 16px 0 0; }

/* entrance: staggered fade-up on load (content stays visible without script) */
.js .hero2 [data-in] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--v2-ease), transform 1s var(--v2-ease); transition-delay: calc(var(--n) * 110ms + 120ms); }
.js .hero2.is-in [data-in] { opacity: 1; transform: none; }

/* tablet */
@media (max-width: 991px) {
  .hero2__wrap { padding-top: 120px; }
  .hero2__title { font-size: 52px; }
  .hero2__shots { height: calc((100vw - 30px) * .34); grid-template-columns: 1fr 2fr; gap: 14px; margin-top: 48px; }
  .hero2__phone { height: 100%; }
}
/* phones: the dashboard alone, full width */
@media (max-width: 600px) {
  .hero2__wrap { padding-top: 112px; }
  .hero2__title { font-size: 38px; }
  .hero2__title br { display: none; }
  .hero2__sub { font-size: 16px; }
  .hero2__shots { grid-template-columns: 1fr; height: auto; max-height: 300px; margin-top: 40px; }
  .hero2__phone { display: none; }
  .hero2__frame { padding: 8px 8px 0; border-radius: 18px 18px 0 0; }
}
@media (max-width: 400px) { .hero2__title { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero2 [data-in] { opacity: 1; transform: none; transition: none; }
  .b2__roll span { transition: none; }
}
