/*
 * Copyright 2026 Mist Tecnologia LTDA. All rights reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

@font-face {
  font-family: "Space Grotesk";
  src: url("space-grotesk-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c1117;
  --bg-elev: #141b24;
  --ink: #e8eef5;
  --muted: #8b97a8;
  --line: rgba(232, 238, 245, 0.12);
  --accent: #3d9b8f;
  --accent-soft: rgba(61, 155, 143, 0.16);
  --airlock: #c9a227;
  --forkpoint: #5b8def;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(61, 155, 143, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(91, 141, 239, 0.14), transparent 50%),
    linear-gradient(180deg, #101722 0%, var(--bg) 42%, #0a0e13 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1040px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4.5rem;
}

.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.mark span {
  color: var(--accent);
}

.topbar-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  margin-bottom: 3.25rem;
  animation: rise 700ms ease both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  animation: rise 900ms ease both;
  animation-delay: 80ms;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 15.5rem;
  padding: 1.45rem 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 42%),
    var(--bg-elev);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.product:hover,
.product:focus-visible {
  border-color: rgba(232, 238, 245, 0.28);
  transform: translateY(-2px);
  outline: none;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.product-airlock .dot {
  background: var(--airlock);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.product-forkpoint .dot {
  background: var(--forkpoint);
  box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.15);
}

.product h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.product p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.product-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.product-airlock:hover .product-go,
.product-airlock:focus-visible .product-go {
  color: var(--airlock);
}

.product-forkpoint:hover .product-go,
.product-forkpoint:focus-visible .product-go {
  color: var(--forkpoint);
}

.site-footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  animation: rise 1000ms ease both;
  animation-delay: 140ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(1040px, calc(100% - 1.5rem));
  }

  .topbar {
    margin-bottom: 3rem;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .products,
  .site-footer,
  .product {
    animation: none;
    transition: none;
  }
}
