/* DiAItu's product page (repos diaitu-web: template.html and product.html), copied as built. */

@font-face {
  font-family: "Archivo";
  src: url("/static/landing/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --obsidian: #0B0B12;
  --graphite: #1C1D26;
  --violet: #6B4BFF;
  --violet-light: #8C73FF;
  --blue: #2D7DFF;
  --cyan: #00E0FF;
  --ivory: #F4F4F0;
  --mist: #E2E4EC;
  --amber: #F5B567;
  --muted: #555866;
  --muted-dark: #A9ABBA;
  --pad: clamp(1.25rem, 5vw, 4rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font: 400 1.0625rem/1.55 "Archivo", system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 76rem; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
h1, h2, h3 { margin: 0; font-stretch: 118%; letter-spacing: -.015em; }
h2 { font-weight: 800; font-size: clamp(2rem, 6.5vw, 3.75rem); line-height: 1; }
.kicker { margin: 0 0 1rem; color: var(--violet); font-weight: 700; font-size: 1rem; }

/* FIHAV ribbon: shown by the script between its dates */
.ribbon { display: none; height: 2rem; line-height: 2rem; padding: 0 var(--pad); background: var(--obsidian); border-bottom: 1px solid #23243a; color: var(--mist); font-size: .8125rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon.on { display: block; }
.ribbon a { color: inherit; text-decoration: none; }
.ribbon a:hover b { text-decoration: underline; }
.ribbon b { color: var(--cyan); font-weight: 600; }
.ribbon .short { display: none; }
@media (max-width: 40rem) { .ribbon .long { display: none; } .ribbon .short { display: inline; } }
.ribbon.on ~ .top { top: 2rem; }

/* Top bar, floating over the dark hero */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  color: var(--ivory);
}
.mark { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-stretch: 125%; font-size: 1.2rem; text-decoration: none; }
.mark img { height: 1.9rem; width: auto; }
.top nav { display: flex; gap: 1.25rem; font-weight: 600; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Hero: the crystal switches on */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 40rem at 78% 42%, rgba(107, 75, 255, .28), transparent 60%),
    radial-gradient(30rem 22rem at 76% 46%, rgba(0, 224, 255, .12), transparent 70%),
    var(--obsidian);
  color: var(--ivory);
}
.hero .wrap {
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 1rem;
  min-height: min(100svh, 56rem);
  padding-top: 6rem; padding-bottom: 3.5rem;
}
/* The obsidian from the brand manual, untouched: its facets appear in the order the light falls
   (top left first), then it floats. The glow behind it is the hero's own background. */
.gem { width: min(42vw, 11rem); aspect-ratio: 61 / 100; margin: 1rem auto 1.5rem; order: -1; }
.gem svg { display: block; width: 100%; height: 100%; overflow: visible; animation: float 8s ease-in-out 1.8s infinite; }
.gem path { opacity: 0; transform-box: fill-box; transform-origin: center; animation: facet .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.gem path:nth-child(6) { animation-delay: .05s; }
.gem path:nth-child(1) { animation-delay: .15s; }
.gem path:nth-child(7) { animation-delay: .25s; }
.gem path:nth-child(2) { animation-delay: .35s; }
.gem path:nth-child(5) { animation-delay: .5s; }
.gem path:nth-child(8) { animation-delay: .6s; }
.gem path:nth-child(3) { animation-delay: .7s; }
.gem path:nth-child(4) { animation-delay: .8s; }
.gem path:nth-child(9) { animation-delay: .9s; }
@keyframes facet { from { opacity: 0; transform: translate(-6%, -6%) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3%) rotate(1.5deg); } }
.hero h1 {
  font-weight: 800; font-stretch: 108%;
  font-size: clamp(2.35rem, 9.5vw, 4.6rem); line-height: .98; letter-spacing: -.03em;
  max-width: 16ch;
}
.hero .lede { margin: 1.25rem 0 0; max-width: 34rem; color: #D6D7E2; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-light); }
.btn-ghost { color: var(--ivory); box-shadow: inset 0 0 0 1.5px rgba(244, 244, 240, .4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ivory); }

/* AInBox: a pinned browser whose screen follows the story; the last step turns it into a phone */
.apps { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 8vw, 6rem); }
.apps .intro { max-width: 40rem; }
.apps .intro p { margin: 1.25rem 0 0; font-size: 1.125rem; }
.story { display: grid; margin-top: 2rem; }
.stage {
  grid-area: 1 / 1; position: sticky; top: 4rem; height: calc(100svh - 4.5rem);
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.frames { display: grid; place-items: center; width: 100%; height: min(58svh, 40rem); }
.browser, .device { grid-area: 1 / 1; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.browser {
  position: relative; width: 100%; padding: 1.6rem .4rem .4rem; border-radius: 1rem; background: var(--obsidian);
  box-shadow: 0 2rem 4rem -1.5rem rgba(107, 75, 255, .45), inset 0 0 0 1px #2a2b38;
}
.browser::before {
  content: ""; position: absolute; top: .55rem; left: .9rem; width: .5rem; height: .5rem; border-radius: 50%;
  background: #3a3b48; box-shadow: .9rem 0 0 #3a3b48, 1.8rem 0 0 #3a3b48;
}
.browser .screens { height: auto; aspect-ratio: 16 / 10; border-radius: .6rem; }
.frames .device { opacity: 0; transform: scale(.94); pointer-events: none; }
.stage.phone .browser { opacity: 0; transform: scale(.96); }
.stage.phone .device { opacity: 1; transform: none; }
.device {
  position: relative; height: 100%; aspect-ratio: 390 / 844; padding: 8px; border-radius: 2.4rem;
  background: var(--obsidian);
  box-shadow: 0 2rem 4rem -1.5rem rgba(107, 75, 255, .45), inset 0 0 0 1px #2a2b38;
}
.screens { position: relative; height: 100%; border-radius: 1.95rem; overflow: hidden; background: #fff; container-type: inline-size; }
.shot { position: absolute; inset: 0; opacity: 0; transform: translateY(2%) scale(.97); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.shot.on { opacity: 1; transform: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.captions { position: relative; width: 100%; max-width: 24rem; min-height: 9rem; text-align: center; }
.soon { display: inline-block; margin-bottom: .5rem; padding: .1rem .7rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--violet); font-size: .8rem; font-weight: 700; }
.caption { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(.5rem); transition: opacity .15s, transform .15s; }
.caption.on { opacity: 1; transform: none; transition: opacity .35s .15s, transform .45s .15s; }
.caption h3 { font-weight: 800; font-size: clamp(1.35rem, 5.5vw, 1.75rem); line-height: 1.05; }
.caption p { margin: .4rem 0 0; color: var(--muted); }
.dots { display: flex; gap: .4rem; justify-content: center; }
.dots i { width: .45rem; height: .45rem; border-radius: 999px; background: #C9CBD6; transition: width .3s, background-color .3s; }
.dots i.on { width: 1.4rem; background: var(--violet); }
.steps { grid-area: 1 / 1; list-style: none; margin: 0; padding: 0; }
.step { min-height: 70svh; }
.step:last-child { min-height: 100svh; }
.card { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Your data stays home */
.home { background: var(--mist); padding: clamp(4rem, 10vw, 7rem) 0; }
.home .cols { display: grid; gap: 2.5rem; }
.home svg { width: 100%; height: auto; max-width: 34rem; }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.facts li { padding-left: 1.25rem; border-left: 3px solid var(--violet); }
.facts strong { display: block; font-stretch: 112%; font-size: 1.2rem; }
.facts span { color: var(--muted); }

/* More products */
.more { background: var(--obsidian); color: var(--ivory); padding: clamp(4rem, 10vw, 7rem) 0; }
.more ul { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.more li {
  display: grid; grid-template-columns: 1rem 1fr; gap: .4rem 1.1rem; align-items: baseline;
  padding: 1.5rem 0; border-top: 1px solid #2a2b38;
}
.more li:last-child { border-bottom: 1px solid #2a2b38; }
.chip { width: 1rem; height: 1rem; border-radius: 50%; align-self: center; }
.more h3 { font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.more h3 a { text-decoration: none; }
.more h3 a::after { content: " →"; color: var(--cyan); font-weight: 600; }
.more h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.more p { grid-column: 2; margin: 0; color: var(--muted-dark); max-width: 40rem; }
.more .note { margin: 2rem 0 0; color: var(--muted-dark); max-width: 40rem; }

/* Closing call */
.call { background: var(--violet); color: #fff; padding: clamp(4rem, 10vw, 6.5rem) 0; }
.call h2 { max-width: 16ch; }
.call p { margin: 1.25rem 0 0; max-width: 34rem; font-size: 1.125rem; }
.call .btn { margin-top: 2rem; background: var(--obsidian); color: #fff; }
.call .btn:hover { background: #fff; color: var(--obsidian); }

footer { background: var(--obsidian); color: var(--muted-dark); padding: 2rem 0 max(2rem, env(safe-area-inset-bottom)); font-size: .975rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer strong { color: var(--ivory); }

/* The diagram draws its links when it scrolls into view (the script arms it) */
.diagram.armed .net { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .2, 1); }
.diagram.armed .net:nth-of-type(2) { transition-delay: .12s; }
.diagram.armed .net:nth-of-type(3) { transition-delay: .24s; }
.diagram.armed .net:nth-of-type(4) { transition-delay: .36s; }
.diagram.drawn .net { stroke-dashoffset: 0; }
.diagram.armed .cut { opacity: 0; transform: scale(.3); transform-origin: 378px 186px; transition: opacity .3s 1.1s, transform .45s cubic-bezier(.3, 1.8, .5, 1) 1.1s; }
.diagram.drawn .cut { opacity: 1; transform: none; }

/* Live chat demo, laid out like the desktop app: conversations on the left, the thread beside them */
/* Colours follow the app's dark theme, so the first screen matches the screenshots after it. */
.chat { --c-bg: #111827; --c-side: #1A2234; --c-line: #273249; --c-text: #E5E9F0; --c-dim: #8B95A8; --c-bubble: #1F2A3D;
  display: flex; background: var(--c-bg); color: var(--c-text); font-size: 1.55cqw; }
.chat aside { flex: none; width: 27%; padding: 1.2em .9em; background: var(--c-side); border-right: 1px solid var(--c-line); display: flex; flex-direction: column; gap: .3em; }
.chat aside .new { margin-bottom: .8em; padding: .55em .9em; border-radius: 999px; background: #2563EB; color: #fff; font-weight: 600; text-align: center; }
.chat aside span { padding: .5em .7em; border-radius: .6em; color: var(--c-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat aside span.on { background: var(--c-bubble); color: var(--c-text); font-weight: 600; }
.thread { flex: 1; min-width: 0; display: flex; flex-direction: column; }
@container (max-width: 34rem) { .chat { font-size: 2.9cqw; } .chat aside { display: none; } }
.chat header { display: flex; align-items: center; gap: .7em; padding: 1.5em 1.1em .9em; border-bottom: 1px solid var(--c-line); }
.avatar { flex: none; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--obsidian); box-shadow: 0 0 0 1px var(--c-line); display: grid; place-items: center; }
.avatar svg { width: 1.3em; height: auto; overflow: visible; }
.who { line-height: 1.25; }
.who strong { display: block; font-stretch: 112%; }
.who span { display: inline-flex; align-items: center; gap: .35em; font-size: .8em; color: #34D399; }
.who span::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: #12B886; box-shadow: 0 0 0 3px rgba(18, 184, 134, .2); }
.msgs { flex: 1; display: flex; flex-direction: column; gap: .7em; padding: 1em; font-size: .9em; line-height: 1.45; }
.file {
  align-self: flex-end; display: inline-flex; align-items: center; gap: .5em;
  padding: .5em .8em; border-radius: .9em; background: var(--c-bubble); border: 1px solid var(--c-line); font-size: .84em;
}
.file::before { content: "PDF"; font-size: .62em; font-weight: 800; color: #fff; background: #E5484D; padding: .12em .3em; border-radius: .25em; }
.me { align-self: flex-end; max-width: 86%; margin: 0; padding: .6em .9em; border-radius: 1.1em 1.1em .35em 1.1em; background: #2563EB; color: #fff; }
.bot { align-self: flex-start; max-width: 94%; padding: .75em .95em; border-radius: 1.1em 1.1em 1.1em .35em; background: var(--c-bubble); }
.bot p { margin: 0; }
.bot ul { margin: .45em 0 0; padding-left: 1.1em; }
.bot li { margin-top: .3em; }
.local { align-self: flex-start; font-size: .78em; color: var(--c-dim); }
.typing { display: none; align-self: flex-start; gap: .3em; padding: .85em 1em; border-radius: 1.1em; background: var(--c-bubble); }
.typing i { width: .45em; height: .45em; border-radius: 50%; background: var(--c-dim); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.chat.pending .bot, .chat.pending .local, .chat.typing .bot, .chat.typing .local, .chat.streaming .local { display: none; }
.chat.typing .typing { display: inline-flex; }
.chat .w { display: none; }
.chat .w.on, .chat.done .w { display: inline; animation: appear .3s ease-out; }
.chat.streaming li:not(:has(.on)) { display: none; }
@keyframes appear { from { opacity: 0; } }
.composer { margin: .5em .9em 1.1em; padding: .7em 1em; border-radius: .8em; border: 1px solid #2563EB; color: var(--c-dim); font-size: .88em; }

@media (min-width: 48rem) {
  .home .cols { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .more li { grid-template-columns: 1rem minmax(10rem, 15rem) 1fr; }
  .more p { grid-column: 3; }
}
@media (min-width: 64rem) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .gem { order: 0; width: min(22vw, 17rem); margin: 0 auto; }
  .story { grid-template-columns: minmax(16rem, .7fr) 1.3fr; gap: 3rem; margin-top: 0; }
  .stage { grid-area: 1 / 2; top: 0; height: 100vh; justify-content: center; }
  .frames { height: min(76vh, 46rem); }
  .captions { display: none; }
  .steps { grid-area: 1 / 1; }
  .step { min-height: 100vh; display: flex; align-items: center; }
  .card { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; max-width: 26rem; }
  .card h3 { font-weight: 800; font-size: 2.6rem; line-height: 1.02; }
  .card p { margin: .75rem 0 0; color: var(--muted); font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot, .browser, .device { transition: none; }
  .gem svg, .gem path { animation: none; opacity: 1; }
}

/* Product page: the home page's parts, with the product's colour as accent */
.phero .wrap { display: block; min-height: 0; padding-top: 8rem; padding-bottom: 8rem; }
.phero .kicker { color: var(--pc); }
.phero h1 { max-width: 20ch; }
.pshot { margin-top: -5.5rem; position: relative; }
.frame {
  position: relative; margin: 0; padding: 1.6rem .4rem .4rem; border-radius: 1rem; background: var(--obsidian);
  box-shadow: 0 2rem 4rem -1.5rem rgba(107, 75, 255, .45), inset 0 0 0 1px #2a2b38;
}
.frame::before {
  content: ""; position: absolute; top: .55rem; left: .9rem; width: .5rem; height: .5rem; border-radius: 50%;
  background: #3a3b48; box-shadow: .9rem 0 0 #3a3b48, 1.8rem 0 0 #3a3b48;
}
.frame img { width: 100%; height: auto; border-radius: .6rem; background: #fff; }
.phone { max-width: 10.5rem; margin: 0 auto; padding: 7px; border-radius: 2rem; background: var(--obsidian); box-shadow: 0 2rem 4rem -1.5rem rgba(107, 75, 255, .45), inset 0 0 0 1px #2a2b38; }
.phone img { width: 100%; height: auto; border-radius: 1.6rem; }
.gallery figure:has(.phone) figcaption { text-align: center; }
.pfacts { padding: clamp(3rem, 8vw, 5rem) 0 0; }
.pfacts .facts { margin: 0; }
.pfacts .facts li { border-left-color: var(--pc); }
.gallery { padding: clamp(3rem, 8vw, 5rem) 0; }
.gallery .wrap { display: grid; gap: 2rem; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: .9rem; color: var(--muted); }
.how { padding: 0 0 clamp(4rem, 10vw, 6rem); }
.how h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.how p { margin: 1rem 0 0; max-width: 40rem; font-size: 1.125rem; }
@media (min-width: 48rem) {
  .pfacts .facts { grid-template-columns: repeat(3, 1fr); }
  .gallery .wrap { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: center; }
}
