/* ==========================================================================
   Ailexity Retail — landing page
   Light product-showcase layout that fills the browser edge to edge: a white
   sticky nav, a hero as tall as the first screen, then white cards with
   hairline borders on a pale grey page. Geometric display type (Sora) over a
   neutral text face (Inter), one blue accent, and real app screens rendered
   as devices in CSS 3D.
   Device scenes are sized in container units (cqw), so every render scales as
   one piece and the callout positions stay true at any width.
   Standalone: shares nothing with styles.css (the app's own stylesheet).
   ========================================================================== */

:root {
  color-scheme: light;

  --page:      #f3f4f6;
  --surface:   #ffffff;
  --surface-2: #f7f8f9;
  --ink:       #15181d;
  --ink-2:     #2f343b;
  --muted:     #686e76;
  --muted-2:   #9aa0a7;
  --line:      #e1e4e8;
  --line-2:    #eceef1;
  --accent:    #3461c9;   /* links, eyebrows, callout dots */
  --accent-soft: rgba(52, 97, 201, .14);
  --dark:      #1a1d22;   /* buttons */

  --nav-h: 72px;
  --pad: clamp(16px, 4vw, 96px);
  --gap: clamp(10px, 1.1vw, 16px);
  --r-card: 16px;
  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex: none; }
b { font-weight: 600; color: var(--ink-2); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

.frame { width: 100%; overflow: clip; }
@supports not (overflow: clip) { .frame { overflow: hidden; } }

/* ---------- shared type and controls ------------------------------------ */

.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-accent { color: var(--accent); }

.h2 {
  font-family: var(--display);
  font-size: clamp(24px, 2.35vw, 36px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -.015em;
  color: var(--ink);
}
.h3 {
  font-family: var(--display);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.text { font-size: 14px; line-height: 1.68; color: var(--muted); }
.text em { font-style: italic; color: var(--ink-2); }
.text-sm { font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 46px;
  padding: 0 22px 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn-dark { background: var(--dark); color: #fff; box-shadow: 0 8px 18px rgba(21, 24, 29, .16); }
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: 0 12px 24px rgba(21, 24, 29, .2); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 6px 16px rgba(21, 24, 29, .06); }
.btn-light:hover { border-color: #cdd2d8; transform: translateY(-1px); }
.btn-light:hover svg, .btn[download]:hover svg { transform: translateY(2px); }
.btn-sm { height: 40px; padding: 0 16px 0 20px; font-size: 10.5px; gap: 12px; }
.btn-lg { height: 52px; padding: 0 26px 0 30px; font-size: 11.5px; }
.btn[aria-disabled="true"], .link[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}
.link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.link:hover svg { transform: translateX(3px); }
.link[download]:hover svg { transform: translateY(2px); }

.ulink { color: var(--ink); border-bottom: 1px solid rgba(21, 24, 29, .28); transition: border-color .2s ease; }
.ulink:hover { border-color: var(--ink); }

/* ---------- navigation ------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  transition: box-shadow .25s ease;
}
.nav.is-scrolled { box-shadow: 0 10px 30px rgba(21, 24, 29, .07); }

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
.brand-word {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .2em;
  margin-right: -.2em;   /* letter-spacing trails the last letter; keep it centred */
}
.brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: .46em;
  margin-right: -.46em;
  color: var(--muted);
}
.brand-sub::before, .brand-sub::after { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .55; }

.nav-links { flex: 1; display: flex; justify-content: center; gap: clamp(22px, 3.6vw, 56px); }
.nav-links a {
  position: relative;
  padding: 8px 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.menu { position: relative; }
.menu-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  padding: 0; border: 0; border-radius: 50%;
  background: transparent;
  transition: background .2s ease;
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--line-2); }
.menu-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px);
  min-width: 230px; padding: 8px;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(21, 24, 29, .13);
}
.menu-panel[hidden] { display: none; }
.menu-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.menu-panel a span { color: var(--muted-2); }
.menu-panel a:hover { background: var(--surface-2); color: var(--ink); }
.menu-sections { display: none; }
.menu-sep { display: block; height: 1px; margin: 6px 6px; background: var(--line-2); }

/* ---------- hero: the whole first screen --------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 0 clamp(8px, 2vw, 32px);
  min-height: calc(100svh - var(--nav-h) - 44px);   /* the spec bar straddles the bottom edge of the first screen */
  padding: clamp(24px, 3vw, 48px) var(--pad) 0;
  background:
    radial-gradient(55% 65% at 70% 46%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #f6f7f8 0%, #edeff2 100%);
}
.hero-copy { position: relative; z-index: 2; padding-bottom: clamp(28px, 4vw, 64px); }
.hero-title {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(44px, 6.3vw, 104px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title-2 { font-weight: 300; color: #40454d; }
.hero-tagline {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(18px, 1.85vw, 29px);
  font-weight: 300;
  letter-spacing: -.01em;
  color: #50565e;
}
.hero-text { margin-top: 22px; max-width: 38ch; font-size: clamp(14.5px, 1.05vw, 17px); line-height: 1.68; color: var(--muted); }
.hero-text b { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-visual { position: relative; z-index: 1; align-self: end; width: 100%; max-width: 1100px; margin-left: auto; margin-right: calc(var(--pad) * -.5); }

/* ---------- devices (CSS 3D renders of real app screens) ---------------- */

/* A phone: light metal rim, black glass, the app screen. 1em = 1/40 of the phone's width. */
.device {
  --w: 30cqw;
  position: absolute;
  width: var(--w);
  font-size: calc(var(--w) / 40);
  padding: .5em;
  border-radius: 6em;
  background: linear-gradient(135deg, #ffffff 0%, #eceef1 28%, #c9cdd3 58%, #e9ebee 82%, #ffffff 100%);
  box-shadow:
    inset 0 0 0 .14em rgba(255, 255, 255, .95),
    inset 0 0 .6em rgba(0, 0, 0, .1),
    0 3em 4em -1.6em rgba(22, 27, 35, .42),
    0 1.2em 1.6em -.8em rgba(22, 27, 35, .3);
  transform-style: preserve-3d;
}
/* the right-hand edge of the body, folded back so the phone has thickness */
.device::before {
  content: "";
  position: absolute;
  top: 5.2em; bottom: 5.2em; right: .1em;
  width: 2.6em;
  border-radius: 1.3em;
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
  background: linear-gradient(180deg, #e4e7ea 0%, #aeb3ba 22%, #cfd3d8 50%, #a9aeb5 78%, #e1e4e7 100%);
}
.device-bezel { padding: 1em; border-radius: 5.5em; background: #0a0b0d; }
.device-screen { position: relative; overflow: hidden; border-radius: 4.6em; background: #fff; isolation: isolate; }
.device-screen img { width: 100%; height: auto; aspect-ratio: 390 / 844; }
.device-status {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 2.75em; padding: 0 2.5em 0 3em;
  background: #fff; color: #111;
}
.device-status b { font: 600 1.15em/1 var(--text); letter-spacing: .02em; color: #111; }
.device-status svg { width: 3.4em; height: auto; fill: currentColor; stroke-width: 1; }
.device-cam {
  position: absolute; left: 50%; top: .7em;
  width: 1.3em; height: 1.3em; margin-left: -.65em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2c3340 0 20%, #0a0b0d 45%);
}
.device-shot { position: relative; }
.anchor { position: absolute; width: 2px; height: 2px; margin: -1px 0 0 -1px; pointer-events: none; }

/* glare across the glass */
.device-screen::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .22) 48%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.stage-shadow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24, 29, 37, .34), rgba(24, 29, 37, .12) 55%, rgba(24, 29, 37, 0));
  filter: blur(4px);
  pointer-events: none;
}

/* hero: two phones standing on a studio floor */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.2;
  container-type: inline-size;
  perspective: 150cqw;
  perspective-origin: 46% 22%;
}
.stage-floor {
  position: absolute; left: 0; right: -6%; bottom: 0; height: 26%;
  background: radial-gradient(60% 70% at 50% 60%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}
.stage .device-front { --w: 33cqw; left: 17cqw; top: 3cqw; transform: rotateY(-27deg) rotateX(5deg); z-index: 2; animation: rise-front 1.1s cubic-bezier(.2, .8, .25, 1) both; }
.stage .device-back { --w: 31cqw; left: 41cqw; top: 0; transform: rotateY(-27deg) rotateX(5deg) translateZ(-8cqw); z-index: 1; animation: rise-back 1.1s .12s cubic-bezier(.2, .8, .25, 1) both; }
.stage-shadow-front { left: 16cqw; top: 73.4cqw; width: 39cqw; height: 5.2cqw; }
.stage-shadow-back { left: 44cqw; top: 65.4cqw; width: 34cqw; height: 4.4cqw; opacity: .75; }

@keyframes rise-front { from { opacity: 0; transform: translateY(4cqw) rotateY(-27deg) rotateX(5deg); } }
@keyframes rise-back { from { opacity: 0; transform: translateY(4cqw) rotateY(-27deg) rotateX(5deg) translateZ(-8cqw); } }

/* ---------- at a glance ------------------------------------------------ */

.specs {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 var(--pad) -40px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(21, 24, 29, .05);
  transform: translateY(-50%);
}
.spec { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.4vw, 20px); padding: 20px clamp(12px, 1.8vw, 28px); }
.spec + .spec { border-left: 1px solid var(--line); }
.spec svg { width: 30px; height: 30px; fill: none; stroke: #3c4148; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.spec strong { font-family: var(--display); font-size: clamp(24px, 2.2vw, 34px); font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.spec .spec-word { font-size: clamp(19px, 1.6vw, 26px); font-weight: 400; color: var(--accent); }
/* RET.ai's mark (assets/ret-mark.svg), painted in the current text colour. */
.ret-mark { display: inline-block; flex: 0 0 auto; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("assets/ret-mark.svg") center / contain no-repeat; mask: url("assets/ret-mark.svg") center / contain no-repeat; }
.spec .spec-mark { width: 34px; height: 34px; color: var(--accent); }
.spec span { font-size: 9.5px; font-weight: 600; line-height: 1.45; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- panels and sections ----------------------------------------- */

.panel {
  margin: var(--gap) var(--pad) 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
}
.section { padding: clamp(44px, 4.8vw, 72px) var(--pad) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: clamp(18px, 2vw, 26px);
}
.section-head .h2 { margin-top: 12px; }
.section-head .link { margin-bottom: 8px; }
.section-note { max-width: 46ch; padding-bottom: 6px; font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ---------- meet RET.ai: one phone with callouts --------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr);
  gap: 0 clamp(8px, 2vw, 28px);
  margin-top: clamp(64px, 6vw, 84px);
  padding: clamp(28px, 3.4vw, 48px) clamp(20px, 3.2vw, 46px) 0;
  overflow: hidden;
  background:
    radial-gradient(45% 70% at 66% 55%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #fbfbfc 0%, #f0f2f4 100%);
}
.feature-copy { align-self: start; padding-bottom: 32px; }
.feature-copy .h2 { margin-top: 16px; }
.feature-copy .text { margin-top: 18px; max-width: 38ch; font-size: 13.5px; }
.feature-points { display: grid; gap: 7px; margin-top: 18px; }
.feature-points li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.feature-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.feature-copy .link { margin-top: 24px; }

.callouts {
  position: relative;
  aspect-ratio: 1.45;
  container-type: inline-size;
  align-self: end;
}
.callouts-stage { position: absolute; inset: 0; perspective: 150cqw; perspective-origin: 50% 24%; }
.callouts .device { --w: 31cqw; left: 35cqw; top: 2.5cqw; transform: rotateY(-27deg) rotateX(4deg); }

.callout {
  position: absolute;
  top: var(--y);
  z-index: 2;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}
.callout-l { left: 0; width: var(--x); }
.callout-r { left: var(--x); right: 0; flex-direction: row-reverse; }
.callout-label { flex: none; display: grid; gap: 3px; width: 192px; }
.callout-r .callout-label { width: 204px; }
.callout-label b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.callout-label small { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.callout-line { flex: 1; height: 1px; min-width: 18px; margin: 0 -1px 0 14px; background: #b9bec6; }
.callout-r .callout-line { margin: 0 14px 0 -1px; }
.callout-dot {
  position: relative;
  flex: none;
  width: 9px; height: 9px;
  margin-right: -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(52, 97, 201, .35);
}
.callout-r .callout-dot { margin: 0 0 0 -4.5px; }
.callout-dot::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(52, 97, 201, .45);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- use cases --------------------------------------------------- */

.use-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.use-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.use-card:hover { transform: translateY(-4px); border-color: #d6dade; box-shadow: 0 22px 44px rgba(21, 24, 29, .1); }
.use-scene {
  position: relative;
  aspect-ratio: 16 / 10.4;
  overflow: hidden;
  container-type: inline-size;
  perspective: 130cqw;
  perspective-origin: 50% 0%;
}
.use-scene::after {   /* a soft floor line and vignette, like a photographed set */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .22) 100%);
  pointer-events: none;
}
.use-scene .device {
  --w: 50cqw;
  left: 26cqw; top: 9cqw;
  transform: rotateY(-24deg) rotateX(18deg) rotateZ(-4deg);
  transition: transform .5s cubic-bezier(.2, .8, .25, 1);
}
.use-card:hover .use-scene .device { transform: rotateY(-20deg) rotateX(15deg) rotateZ(-3deg) translateY(-2cqw); }

.scene-warm {
  background:
    radial-gradient(70% 80% at 30% 0%, rgba(255, 196, 140, .35) 0%, rgba(255, 196, 140, 0) 60%),
    radial-gradient(90% 60% at 80% 100%, #3a2c22 0%, rgba(58, 44, 34, 0) 70%),
    linear-gradient(160deg, #57483d 0%, #2a221d 55%, #17130f 100%);
}
.scene-steel {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, rgba(255, 255, 255, 0) 2px 46px),
    radial-gradient(60% 50% at 50% 0%, rgba(214, 228, 245, .45) 0%, rgba(214, 228, 245, 0) 70%),
    linear-gradient(180deg, #6d7783 0%, #3a424c 55%, #20262d 100%);
}
.scene-ember {
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(255, 150, 80, .5) 0%, rgba(255, 150, 80, 0) 60%),
    radial-gradient(70% 60% at 10% 100%, rgba(120, 50, 20, .6) 0%, rgba(120, 50, 20, 0) 70%),
    linear-gradient(170deg, #8a5638 0%, #4a2a1c 50%, #1e120d 100%);
}
.scene-light {
  background:
    radial-gradient(60% 60% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 75%),
    repeating-linear-gradient(90deg, rgba(20, 30, 45, .035) 0 1px, rgba(20, 30, 45, 0) 1px 38px),
    linear-gradient(180deg, #f3f5f8 0%, #d9dee5 100%);
}
.scene-light::after { background: radial-gradient(120% 90% at 50% 0%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .1) 100%); }

.use-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px 18px 20px 20px; }
.use-body h3 { font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.use-body p { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.use-body svg { width: 16px; height: 16px; margin-bottom: 3px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.use-card:hover .use-body svg { transform: translateX(3px); }

/* ---------- twelve tools ------------------------------------------------ */

.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.fcard {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  scroll-margin-top: 96px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.fcard:hover { border-color: #d3d8de; box-shadow: 0 14px 30px rgba(21, 24, 29, .06); }
.fnum { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; font-weight: 300; letter-spacing: .04em; color: var(--muted-2); }
.fnum em {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--text);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fcard h3 { margin-top: 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.fcard p { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.fcard ul { display: grid; gap: 5px; margin-top: auto; padding-top: 12px; }
.fcard p + ul { margin-top: 12px; border-top: 1px solid var(--line-2); }
.fcard li { position: relative; padding-left: 15px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.fcard li::before { content: ""; position: absolute; left: 0; top: .56em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .75; }
.fcard-new { background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 60%); border-color: #d6e0f6; }

/* ---------- install ---------------------------------------------------- */

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(44px, 4.8vw, 72px);
  padding: clamp(26px, 3.6vw, 52px);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(52, 97, 201, .06) 0%, rgba(52, 97, 201, 0) 60%),
    #fff;
  scroll-margin-top: 90px;
}
.h2-xl { margin-top: 16px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -.025em; }
.install-main .text { margin-top: 18px; max-width: 44ch; }
.install-main .btn { margin-top: 28px; }
.install-meta { margin-top: 14px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.install-meta.is-missing { color: #b0521b; }
.install-alt { margin-top: 12px; max-width: 48ch; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.install-steps { align-self: center; border-top: 1px solid var(--line); }
.istep { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.istep span { grid-row: span 2; padding-top: 1px; font-family: var(--display); font-size: 13px; font-weight: 400; color: var(--accent); }
.istep h3 { font-size: 14px; font-weight: 600; }
.istep p { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- faq ------------------------------------------------------- */

.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.qcard { padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.qcard h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
.qcard p { margin-top: 8px; font-size: 13px; line-height: 1.68; color: var(--muted); }

/* ---------- ecosystem · technical overview · cta ------------------------- */

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr) minmax(0, .86fr);
  gap: var(--gap);
  padding: clamp(44px, 4.8vw, 72px) var(--pad) 0;
}
.ccard {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
}

.eco {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 8px;
  align-items: center;
  padding-right: 0;
  background:
    radial-gradient(50% 70% at 75% 50%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #fbfbfc 0%, #eff1f4 100%);
}
.eco-copy .h3 { margin-top: 14px; }
.eco-copy .text-sm { margin-top: 12px; }
.eco-copy .link { margin-top: 22px; }
.eco-visual {
  position: relative;
  align-self: stretch;
  min-height: 210px;
  container-type: inline-size;
  perspective: 120cqw;
  perspective-origin: 30% 30%;
}
.tablet {
  position: absolute;
  left: 4cqw; top: 50%;
  width: 90cqw;
  font-size: calc(90cqw / 100);
  padding: 1.15em;
  border-radius: 4.4em;
  background: linear-gradient(140deg, #3a3f47 0%, #15171b 40%, #0b0c0e 100%);
  box-shadow:
    inset 0 0 0 .25em #2b2f36,
    0 3em 4em -1.5em rgba(22, 27, 35, .5),
    0 1em 1.5em -.6em rgba(22, 27, 35, .35);
  transform: translateY(-50%) rotateY(-26deg) rotateX(14deg) rotateZ(5deg);
  transform-style: preserve-3d;
}
.tablet::before {   /* the lower edge, folded back for thickness */
  content: "";
  position: absolute; left: 4em; right: 4em; bottom: .2em;
  height: 1.6em;
  border-radius: .8em;
  transform-origin: 50% 100%;
  transform: rotateX(90deg);
  background: linear-gradient(90deg, #2a2e35, #6b717a 50%, #2a2e35);
}
.tablet-screen { position: relative; overflow: hidden; border-radius: 3.4em; background: #f8f8f6; }
.tablet-screen img { width: 100%; height: auto; aspect-ratio: 1180 / 820; }
.tablet-screen::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, 0) 62%);
}
.eco-visual .stage-shadow { left: 12cqw; right: 6cqw; bottom: 8%; height: 16%; }

.tech { display: flex; flex-direction: column; }
.spec-table { margin: 14px 0 20px; }
.spec-table div { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 11.5px; line-height: 1.4; }
.spec-table div:last-child { border-bottom: 0; }
.spec-table dt { color: var(--muted); }
.spec-table dd { color: var(--ink-2); font-weight: 500; }
.tech .link { margin-top: auto; }

.cta { display: flex; flex-direction: column; background: linear-gradient(165deg, #ffffff 0%, #eef0f3 100%); }
.cta-title { font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1.38; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.cta .text-sm { position: relative; z-index: 1; margin-top: 12px; max-width: 30ch; }
.cta .btn { position: relative; z-index: 1; align-self: flex-start; margin-top: auto; }
.cta-rings {
  position: absolute; right: -70px; bottom: -70px;
  width: 230px; height: 230px;
  fill: none; stroke: rgba(21, 24, 29, .07); stroke-width: 1;
  pointer-events: none;
}

/* ---------- footer ---------------------------------------------------- */

.foot { margin-top: clamp(40px, 4.6vw, 64px); border-top: 1px solid var(--line); background: #fff; }
/* Company details: the main website, contact, address and social links */
.foot-main { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); padding: clamp(32px, 4vw, 48px) var(--pad); border-bottom: 1px solid var(--line-2); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.foot-col h4 { margin: 0 0 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.foot-col p { margin: 0; max-width: 36ch; }
.foot-col address { font-style: normal; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); transition: color .2s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-col svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.foot-col .foot-site { margin-top: 4px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink); }
.foot-col .foot-site:hover { border-color: var(--accent); }
.foot-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 24px;
  padding: 22px var(--pad);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-brand { display: flex; align-items: center; gap: 16px; }
.logo-mark { display: inline-grid; grid-template-columns: repeat(3, 4px); align-items: end; gap: 2px; height: 18px; color: var(--ink); }
.logo-mark i { display: block; width: 4px; border-radius: 3px 3px 1px 1px; background: currentColor; }
.logo-mark i:nth-child(1) { height: 10px; }
.logo-mark i:nth-child(2) { height: 18px; }
.logo-mark i:nth-child(3) { height: 14px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(18px, 2.6vw, 40px); }
.foot-links a:hover { color: var(--ink); }
.foot-icons { display: flex; justify-content: flex-end; gap: 4px; }
.foot-icons a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); transition: background .2s ease; }
.foot-icons a:hover { background: var(--line-2); color: var(--ink); }
.foot-icons svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- reveal ---------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .25, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .use-card.reveal.is-in:hover { transform: translateY(-4px); }

/* ---------- responsive ------------------------------------------------ */

/* big desktops: six tools across */
@media (min-width: 1800px) {
  .fgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* laptops */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .closing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .eco { grid-column: 1 / -1; }
  .callout-label, .callout-r .callout-label { width: 156px; }
}

/* small laptops and tablets: the nav folds into the menu, the hero stacks */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-sections { display: block; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 40px; }
  .hero-copy { padding-bottom: 8px; text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(100%, 680px); margin: 0 auto; }

  .specs { transform: translateY(-28px); margin-bottom: -4px; }

  .feature { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .feature-copy { padding-bottom: 8px; }
  .feature-copy .text { max-width: 60ch; }

  /* callouts become a captioned list under the phone */
  .callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; aspect-ratio: auto; padding-bottom: 28px; }
  .callouts-stage {
    position: relative; inset: auto; grid-column: 1 / -1; aspect-ratio: 1.45;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .callouts .device { --w: 34cqw; left: 33cqw; top: 2cqw; }
  .callout { position: static; transform: none; width: auto !important; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 12px; }
  .callout-r { flex-direction: row-reverse; }
  .callout-line { display: none; }
  .callout-dot, .callout-r .callout-dot { margin: 5px 0 0; }
  .callout-label, .callout-r .callout-label { width: auto; }

  .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install { grid-template-columns: minmax(0, 1fr); }
  .install-steps { align-self: start; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .link { margin-bottom: 0; }
}

/* phones */
@media (max-width: 960px) { .foot-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .nav { height: 62px; gap: 12px; }
  .brand-word { font-size: 16px; }
  .nav-cta { display: none; }

  .hero { padding-top: 32px; }
  .hero-title { margin-top: 14px; }
  .hero-text { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
  /* Phones: no phone mock-ups in the hero, just the words and buttons. */
  .hero { padding-bottom: 36px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { display: none; }

  .specs { grid-template-columns: minmax(0, 1fr); margin: 0 12px 4px; transform: none; }
  .spec + .spec { border-left: 0; border-top: 1px solid var(--line); }
  .spec { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 14px; }
  .spec svg, .spec .spec-mark { grid-row: span 2; width: 24px; height: 24px; }
  .spec strong { font-size: 22px; }
  .spec .spec-word { font-size: 18px; }
  .spec span { font-size: 8.5px; letter-spacing: .12em; }
  .spec span br { display: none; }

  .panel { margin-inline: 12px; }
  .feature { padding-inline: 18px; }
  .callouts { grid-template-columns: minmax(0, 1fr); }
  .callouts-stage { aspect-ratio: 1.05; }
  .callouts .device { --w: 46cqw; left: 27cqw; }

  /* use cases: a swipeable row instead of four tall cards */
  .use-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    margin: 0 calc(var(--pad) * -1);
    padding: 2px var(--pad) 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .use-grid::-webkit-scrollbar { display: none; }
  .use-card { scroll-snap-align: start; }

  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .install { padding: 24px 20px; }
  .btn-lg { width: 100%; }

  .closing { grid-template-columns: minmax(0, 1fr); }
  .eco { grid-template-columns: minmax(0, 1fr); padding-right: 26px; }
  .eco-visual { min-height: 0; aspect-ratio: 1.25; margin-top: 10px; }
  .tablet { left: 5cqw; width: 84cqw; font-size: calc(84cqw / 100); }

  .foot-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-about { grid-column: 1 / -1; }
  .foot-bar { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-block: 26px; }
  .foot-brand { flex-direction: column; gap: 10px; }
  .foot-icons { justify-content: center; }
}

/* browsers without container units cannot size the device renders: show the words only */
@supports not (width: 1cqw) {
  .hero, .feature { grid-template-columns: minmax(0, 1fr); }
  .hero-visual, .callouts-stage, .callout-line, .use-scene, .eco-visual { display: none; }
  .callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; aspect-ratio: auto; padding-bottom: 28px; }
  .callout { position: static; transform: none; width: auto !important; flex-direction: row-reverse; justify-content: flex-end; gap: 12px; }
  .callout-label, .callout-r .callout-label { width: auto; }
  .eco { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  body { background: #fff; }
  .nav, .hero-visual, .callouts-stage, .use-scene, .eco-visual { display: none; }
}
