/* =========================================================================
   Google AI Edge — Apps showcase
   Type: Google Sans Flex (wght, wdth, opsz, ROND, GRAD, slnt)
   ========================================================================= */

@property --rond { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --grad { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --slnt { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --bg: #0a0b0d;
  --ink: #0a0b0d;
  --paper: #f7f8fb;
  --fg: #f2f3f5;
  --fg-dim: rgba(242, 243, 245, .62);
  --line: rgba(255, 255, 255, .12);

  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc04;
  --g-green: #34a853;

  --el-purple: #566cde;
  --el-pink: #f2c5fe;
  --fs-teal: #00303a;
  --fs-mint: #81c995;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(20px, 4.4vw, 72px);
  --max: 1360px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
*, *::before, *::after {
  font-variation-settings: "ROND" var(--rond), "GRAD" var(--grad), "slnt" var(--slnt);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html,
body { margin: 0; padding: 0; }
body {
  font-family: "Google Sans Flex", "Google Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  transition: background-color .9s var(--ease-io), color .6s var(--ease-io);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-theme="light"] {
  --fg: #111318;
  --fg-dim: rgba(17, 19, 24, .62);
  --line: rgba(17, 19, 24, .12);
  --grad: 0;
}
body[data-theme="dark"] { --grad: 0; }
/* The devsite framebox puts an inline style on the frame's body for an
   auto-sized iframe: style="height: auto; overflow: hidden; padding: 16px;"
   (devsite/two/webserver/templates/iframe.html). This frame is pinned to the
   viewport and must scroll itself, edge to edge, so take all of it back; only
   !important beats an inline style. ../gallery and ../foresight do the same.
   The preloader still locks scrolling until the page is ready. */
html { height: auto !important; overflow-x: hidden !important; overflow-y: auto !important; }
body { height: auto !important; min-height: 100% !important; overflow: visible !important; padding: 0 !important; }
/* html is the scroller now, so lock it (not body) while loading. */
html:has(body.is-loading) { overflow: hidden !important; }

img,
video,
svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(128, 128, 128, .18) }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-stretch: 112%;
  font-weight: 500;
  color: var(--fg-dim);
}
.kicker--dark { color: rgba(17, 19, 24, .55); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); }
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 22px 0 18px;
  border-radius: 99px;
  text-decoration: none;
  font-size: 16px; font-weight: 500;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .3s, font-weight .4s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { font-weight: 600; }
.btn--dark { background: #111318; color: #fff; }
.btn--dark:hover { box-shadow: 0 10px 30px -10px rgba(17, 19, 24, .5); }
.btn--ghost { background: transparent; color: #111318; box-shadow: inset 0 0 0 1.5px rgba(17, 19, 24, .18); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(17, 19, 24, .6); }
.btn--mint { background: #c4eed0; color: #00303a; }
.btn--mint:hover { background: #dbf7e3; }
