:root {
  color-scheme: light;
  --navy: #0b1820;
  --ink: #13252a;
  --muted: #465b61;
  --teal: #0f6360;
  --mint: #b8f5dd;
  --paper: #f3f8f6;
  --line: #d7e4e0;
  --gutter: clamp(1rem, 5vw, 3rem);
  font: 100%/1.55 Inter, "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.04em; }
h1 { font-size: clamp(2.5rem, 6.15vw, 4.65rem); text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
img { display: block; max-inline-size: 100%; }
a { color: inherit; }
a, button { touch-action: manipulation; }
:is(a, button):focus-visible { outline: 3px solid #318fbc; outline-offset: 4px; }
a:active { opacity: .8; }
.wrap {
  width: min(100%, 69rem);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.skip-link {
  position: absolute;
  z-index: 2;
  inset: .5rem auto auto .5rem;
  padding: .75rem 1rem;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { color: #f6fffc; background: var(--navy); padding-block-start: env(safe-area-inset-top); }
.header-row {
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: center;
}
.brand, .main-nav a, .language-nav a { text-decoration: none; }
.brand {
  width: fit-content;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: -.06em;
}
.main-nav, .language-nav { display: flex; align-items: center; }
.main-nav { gap: clamp(1rem, 4vw, 2.6rem); }
.main-nav a, .language-nav a {
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #c6dadc;
  font-size: .9rem;
  font-weight: 600;
}
.language-nav { justify-self: end; gap: .2rem; padding: .15rem; border: 1px solid #ffffff33; border-radius: .7rem; }
.language-nav a { min-width: 44px; border-radius: .5rem; }
.language-nav a[aria-current] { color: var(--navy); background: var(--mint); }

.hero { color: #f6fffc; background: radial-gradient(ellipse at 78% 80%, #194748, var(--navy) 67%); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.65rem, 7vw, 5.5rem);
}
.hero-copy h1 { max-width: 10em; }
.hero-copy p { max-width: 28rem; margin-block: 1rem 1.35rem; color: #c6dadc; font-size: 1.1rem; }
.hero .hero-action { color: var(--navy); background: var(--mint); }
.download-section { padding-block: clamp(2.8rem, 6.4vw, 5rem); background: var(--paper); }
.section-heading { margin-inline: auto; max-width: 36rem; text-align: center; }
.download-card {
  width: min(100%, 32rem);
  margin: 1.55rem auto 0;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 .75rem 2.6rem #152e2512;
}
.device-stage { position: relative; width: min(100%, 32rem); margin-inline: auto; aspect-ratio: 1.42; container-type: inline-size; }
.clock {
  position: absolute;
  top: 18%;
  left: 5%;
  width: 62%;
  aspect-ratio: 1.11;
  display: grid;
  align-content: center;
  justify-items: center;
  border: clamp(6px, 2.1cqw, 13px) solid #e5eee9;
  border-inline-end-color: #aebfb9;
  border-block-end-color: #b8c9c2;
  border-radius: 16%;
  background: linear-gradient(151deg, #365053, #142823 31%, #061510 80%);
  box-shadow: 0 3.2cqw 7cqw #020b0b95, inset 0 0 0 1px #ffffff32;
  transform: rotate(-7deg);
}
.clock-brand { color: #ecf7f6; font-size: 4cqw; font-weight: 750; letter-spacing: -.06em; }
.clock-time { color: #baffdd; font: 650 12cqw/1.3 "Cascadia Mono", Consolas, monospace; letter-spacing: -.08em; text-shadow: 0 0 1.6cqw #80eec284; }
.clock-name { color: #b2cfca; font-size: 2.65cqw; font-weight: 650; }
.phone {
  position: absolute;
  top: 4%;
  left: 58%;
  width: 32%;
  aspect-ratio: .52;
  padding: 1.3cqw;
  border: 1px solid #62736e;
  border-radius: 5.4cqw;
  background: linear-gradient(155deg, #526461, #102024 55%);
  box-shadow: .4rem 1.1rem 1.7rem #173a3038;
  transform: rotate(10deg);
}
.phone-viewport {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.6cqw 1.9cqw 2.8cqw;
  border-radius: 4.2cqw;
  background: #f5faf7;
}
.phone-camera { width: 7cqw; height: 1.4cqw; border-radius: 2cqw; background: var(--navy); }
.phone-brand { display: flex; align-items: center; gap: .7cqw; color: var(--ink); font-size: 3.85cqw; font-weight: 760; }
.phone-brand img { width: 4.2cqw; height: auto; }
.face-frame { width: 76%; aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed #448f7b; border-radius: 3.7cqw; background: #e0f2ea; }
.face-icon { position: relative; width: 34%; aspect-ratio: .9; }
.face-icon::before, .face-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #31715e;
}
.face-icon::before { top: 0; width: 56%; aspect-ratio: 1; border-radius: 50%; }
.face-icon::after { bottom: 0; width: 100%; height: 37%; border-radius: 100% 100% 28% 28%; }
.phone-status { display: flex; align-items: center; gap: .55cqw; color: #205b46; font-size: 2.45cqw; font-weight: 700; white-space: nowrap; }
.phone-status span { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #25785b; }
.phone-punch { width: 100%; padding: 1.2cqw .2cqw; border-radius: 1.8cqw; color: #fff; background: var(--teal); text-align: center; font-size: 2.65cqw; font-weight: 680; }

.download-details { padding: clamp(1.4rem, 4vw, 2.5rem); text-align: center; }
.download-details h3 { font-size: clamp(1.5rem, 4vw, 2.15rem); }
.download-details > p { margin-block-start: .48rem; color: var(--muted); }
.card-actions { display: grid; gap: .7rem; margin-block-start: 1.45rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.1rem;
  min-width: 0;
  padding: .65rem .9rem;
  border-radius: .65rem;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { cursor: wait; opacity: .65; }
.primary { color: #fff; background: var(--teal); }
.guide-link { color: #164d48; background: #ebf4f0; }
.play-icon, .download-icon { position: relative; display: inline-grid; flex: 0 0 auto; place-items: center; }
.play-icon { width: 1.1rem; aspect-ratio: 1; border: 1.5px solid; border-radius: 50%; }
.play-icon::after { content: ""; margin-inline-start: .14em; border-block: .24em solid transparent; border-inline-start: .37em solid; }
.download-icon { width: .95rem; height: .95rem; border: 1.5px solid; border-top: 0; border-radius: 0 0 .13rem .13rem; }
.download-icon::after { content: ""; width: .42rem; height: .42rem; margin-block-start: -.2rem; border-inline-end: 1.5px solid; border-block-end: 1.5px solid; transform: rotate(45deg); }
.download-dialog {
  width: min(calc(100% - 2rem), 28rem);
  max-height: calc(100% - 2rem);
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1rem 4rem #0b18204d;
}
.download-dialog::backdrop { background: #0b1820a8; }
.download-dialog h2 { font-size: 1.55rem; }
.download-dialog p { margin-block-start: .7rem; color: var(--muted); }
.download-dialog .download-status:empty { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; margin-block-start: 1.4rem; }

.guide-section { padding-block: clamp(3rem, 7vw, 5rem); }
.guide-section h2 { margin-block-end: 1rem; }
.video-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .75rem;
  aspect-ratio: 16 / 9;
  max-height: 23rem;
  padding: 1rem;
  border: 1px dashed #85aaa0;
  border-radius: 1rem;
  background: #f2f7f5;
  color: var(--muted);
  text-align: center;
}
.video-slot .play-icon { width: 2.75rem; font-size: 1.55rem; color: var(--teal); }

.company { background: var(--paper); }
.company-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem 2.5rem; align-items: baseline; padding-block: clamp(2.65rem, 6vw, 4rem); }
.company-row p { color: var(--muted); }
.company-row p + p { margin-block-start: .75rem; }

.site-footer { padding-block: clamp(3rem, 7vw, 5rem) max(1rem, env(safe-area-inset-bottom)); color: #eff9f8; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 3rem; }
.footer-email { display: inline-flex; align-items: center; min-height: 44px; margin-block-start: .55rem; color: #c6dadc; overflow-wrap: anywhere; text-underline-offset: .21em; }
.social-links { display: flex; flex-wrap: wrap; gap: .55rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.social-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #456069; border-radius: .65rem; }
.social-icon img { filter: invert(91%) sepia(15%) saturate(259%) hue-rotate(117deg) brightness(93%); }
.footer-details { justify-self: end; }
.saem-logo { display: inline-flex; align-items: center; padding: .48rem .68rem; border-radius: .4rem; background: #f2f5fc; margin-block-end: .8rem; }
.saem-logo img { width: 7rem; height: auto; }
.footer-details h3 { font-size: 1rem; letter-spacing: 0; }
.footer-details address { margin-block-start: .4rem; color: #c6dadc; font-style: normal; }
.footer-end a { display: flex; width: fit-content; min-height: 44px; align-items: center; text-underline-offset: .21em; }
.footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; align-items: center; margin-block-start: 2rem; padding-top: .65rem; border-top: 1px solid #496169; color: #b0c5c8; font-size: .875rem; }

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover, .language-nav a:not([aria-current]):hover { color: #fff; }
  .main-nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
  .primary:hover { background: #084844; }
  .guide-link:hover { background: #e0efe9; }
  .hero .hero-action:hover { background: #d3ffed; }
}
@media (max-width: 38rem) {
  .header-row { grid-template-columns: 1fr auto; column-gap: .5rem; row-gap: 0; padding-block-start: .45rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .4rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .company-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-details { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
