/* yzflux.com.br: the landing page of yzFlux Grid. The tokens are the studio's dark theme
   (studio/web/src/index.css, ".dark"), so the page and the tool look like one product. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --background: #060a12;
  --foreground: #e6ecf3;
  --card: #0b111c;
  --primary: #5ad1e6;
  --primary-foreground: #04212a;
  --muted-foreground: #8e9bb0;
  --border: #1c2636;
  --flow-lv: #39b3a0;
  --glass: linear-gradient(
    165deg,
    rgb(130 225 240 / 0.16) 0%,
    rgb(40 90 110 / 0.12) 38%,
    rgb(8 22 34 / 0.58) 100%
  );
  --glass-border: rgb(150 235 248 / 0.22);
  --glass-sheen: linear-gradient(
    115deg,
    transparent 0 32%,
    rgb(255 255 255 / 0.07) 40%,
    rgb(255 255 255 / 0.02) 48%,
    transparent 56%
  );
  --glass-edge: rgb(190 250 255 / 0.95);
  --glass-glow: rgb(90 209 230 / 0.5);
  --float-shadow:
    inset 0 1.5px 0 rgb(210 250 255 / 0.55), inset 0 -1px 0 rgb(0 0 0 / 0.45),
    0 0 0 1px rgb(0 0 0 / 0.35), 0 -1px 22px -6px rgb(90 209 230 / 0.35),
    0 24px 60px rgb(0 0 0 / 0.55);
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
}

/* a faint grid of lines under everything, lit from the top like the studio's map */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 70% -10%, rgb(90 209 230 / 0.16), transparent 70%),
    radial-gradient(40rem 24rem at 0% 30%, rgb(57 179 160 / 0.1), transparent 70%),
    linear-gradient(rgb(90 209 230 / 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(90 209 230 / 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--background);
}

/* the frosted glass of the studio's floating panels */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--float-shadow);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass-sheen);
  pointer-events: none;
}
.glass::after {
  content: '';
  position: absolute;
  top: -1px;
  right: 8%;
  left: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--glass-edge), transparent);
  box-shadow: 0 0 12px 2px var(--glass-glow);
  pointer-events: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
}
.top nav {
  display: flex;
  gap: 1.25rem;
}
.top nav a {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  text-decoration: none;
}
.top nav a:hover {
  color: var(--foreground);
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  max-width: 46rem;
  padding: 4.5rem 0 3rem;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.lead {
  margin: 1.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.15rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button.primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 24px -4px var(--glass-glow);
}
.button.primary:hover {
  box-shadow: 0 0 32px 0 var(--glass-glow);
}
.button.ghost {
  border: 1px solid var(--glass-border);
  color: var(--foreground);
}
.button.ghost:hover {
  background: rgb(90 209 230 / 0.08);
}

.block {
  padding: 3rem 0;
}
h2 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}
h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}
p {
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.card {
  padding: 1.4rem;
}
.card p,
.features p,
.steps p {
  color: var(--muted-foreground);
  font-size: 0.97rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding-left: 1rem;
  border-left: 2px solid rgb(90 209 230 / 0.45);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
}
.steps .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgb(90 209 230 / 0.14);
  color: var(--primary);
  font-family: var(--font-mono);
}
.note {
  margin-top: 1.5rem;
  color: var(--muted-foreground);
}

.foot {
  max-width: 72rem;
  margin: 2rem auto 0;
  padding: 2rem 1.5rem 9rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.9rem;
}
.foot p + p {
  margin-top: 0.5rem;
}

/* The mini window of the Grid, always in sight (author, 2026-12-03). A click grows it to the
   whole tab (main.js) and then opens the studio. */
.mini {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 20rem;
  overflow: hidden;
  padding: 0;
  color: var(--foreground);
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.mini:hover,
.mini:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    var(--float-shadow),
    0 0 36px -4px var(--glass-glow);
}
.mini:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.mini-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}
.dots {
  display: inline-flex;
  gap: 0.3rem;
}
.dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgb(150 235 248 / 0.35);
}
.mini-url {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.mini img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.mini-cta {
  padding: 0.55rem 0.75rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

/* the window grown to the whole tab: a copy of the mini window over the page */
.zoom {
  position: fixed;
  z-index: 100;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--float-shadow);
  transition:
    top 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    left 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    width 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    height 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    border-radius 0.6s;
}
.zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zoom.full {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
}

@media (max-width: 640px) {
  .top nav {
    display: none;
  }
  .hero {
    padding-top: 2.5rem;
  }
  /* on a phone the window shrinks to a thumbnail and its link, to cover less of the text */
  .mini {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 8.5rem;
    border-radius: 14px;
  }
  .mini-bar {
    display: none;
  }
  .mini-cta {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }
  .foot {
    padding-bottom: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mini,
  .button {
    transition: none;
  }
}
