/* The background of metal tiles that tilt toward the pointer: the hero of an invented AI design studio, Alloy.
   The wall of tiles is a canvas that fills the page (script.js draws every tile in 3D); over it a soft veil keeps
   the words readable, a fine grain gives the metal its tooth, and the hero sits in the middle. */
:root {
  --page: #08090b;          /* the gaps between the tiles */
  --tile: #1a1c21;          /* the aluminium at rest */
  --accent: #9cc2ff;        /* the colour of the light on the edges */
  --ink: #f1f2f4;           /* the title */
  --muted: #8d919b;         /* the small words */
  --button: #eef0f3;        /* the button */
  --button-ink: #0b0c0e;    /* the words on the button */
}

* {
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
}

html,
body {
  margin: 0;
  overflow: hidden;
}

body {
  height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
}

/* the veil: darker behind the words, and darker at the far corners like a lens */
.veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse max(min(46vw, 420px), 300px) max(min(30vh, 210px), 150px) at 50% 50%, rgba(8, 9, 11, 0.8), rgba(8, 9, 11, 0.5) 60%, transparent 100%),
    radial-gradient(ellipse 120% 95% at 50% 45%, transparent 55%, rgba(4, 5, 6, 0.75) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  z-index: 3;
  width: min(560px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2.6vh, 20px);
  pointer-events: none;
}

.hero a,
.hero button {
  pointer-events: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  font-size: clamp(11px, 1.9vh, 13px);
  color: #c9ccd3;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -10px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
}

.chip__tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-stretch: 110%;
  color: #0b0c0e;
  background: linear-gradient(180deg, #d9e7ff, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.chip__icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s cubic-bezier(0.34, 1.8, 0.5, 1);
}

@media (hover: hover) {
  .chip:hover .chip__icon {
    transform: translateX(2px);
  }
}

.title {
  margin: 0;
  font-weight: 620;
  font-stretch: 112%;
  font-size: clamp(30px, min(8.4vw, 10.5vh), 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.title__line {
  display: block;
  overflow: hidden;
  padding: 0 0.04em 0.06em;
}

/* the title is brushed metal too: the light's position moves its gradient (--lx, --ly from script.js) */
.title__in {
  display: inline-block;
  color: transparent;
  background-image:
    radial-gradient(circle at var(--lx, 30%) var(--ly, 0%), #ffffff 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #f6f7f9 10%, #b9bdc6 62%, #8a8f99 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  margin: 0;
  max-width: 30em;
  font-size: clamp(13px, min(3.6vw, 2.5vh), 17px);
  line-height: 1.45;
  color: var(--muted);
  opacity: 0;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

.btn {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.btn__face {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: clamp(40px, 7vh, 48px);
  padding: 0 clamp(18px, 3vh, 24px);
  border-radius: inherit;
  overflow: hidden;
  font-size: clamp(14px, 2.4vh, 16px);
  font-weight: 600;
  font-stretch: 105%;
  color: var(--button-ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--button) 45%, #c7cbd3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 14px 34px -12px rgba(156, 194, 255, 0.45);
}

/* a soft band of light that follows the pointer across the button (--bx from script.js) */
.btn__sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(60px 40px at var(--bx, -40%) 30%, rgba(255, 255, 255, 0.95), transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.btn__words,
.btn__icon {
  position: relative;
}

.btn__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note {
  font-size: clamp(11px, 1.8vh, 12px);
  color: #6c707a;
  letter-spacing: 0.01em;
}

@media (max-height: 470px) {
  .note {
    display: none;
  }
}
