/* Botbolaget — static site styles. No build step. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #08080a;
  --bg-raise: #0e0e12;
  --card: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.04);
  --fg: #f2f2f4;
  --fg-soft: #d4d4da;
  --muted: #8a8a94;
  --faint: #5c5c66;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #8f8cff;
  --accent-soft: rgba(143, 140, 255, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: 24px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
}

.skip:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 22px;
  height: 22px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.nav a[aria-current="page"] {
  color: var(--fg);
}

/* ---------- Buttons & links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.button-primary {
  background: var(--fg);
  color: #0a0a0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 8px 30px -8px rgba(143, 140, 255, 0.45);
}

.button-primary:hover {
  background: #ffffff;
}

.button-ghost {
  color: var(--fg-soft);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.button-ghost:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

a:hover .arrow {
  transform: translateX(2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.text-link:hover {
  border-color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 168px 0 144px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  /* soft top glow */
  content: "";
  position: absolute;
  inset: -240px 0 auto;
  height: 760px;
  z-index: -2;
  background:
    radial-gradient(ellipse 760px 460px at 50% 36%, rgba(143, 140, 255, 0.20), transparent 70%),
    radial-gradient(ellipse 420px 260px at 50% 32%, rgba(220, 222, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.hero::after {
  /* faint grid, faded out at the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 720px 420px at 50% 34%, rgba(0, 0, 0, 0.9), transparent 100%);
  mask-image: radial-gradient(ellipse 720px 420px at 50% 34%, rgba(0, 0, 0, 0.9), transparent 100%);
  pointer-events: none;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(46px, 7.4vw, 100px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.74) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* ---------- Sections ---------- */

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: -0.005em;
}

.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}

.split .section-body {
  padding-top: 8px;
}

/* ---------- Cards (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01) 60%),
    var(--bg-raise);
  overflow: hidden;
}

.card::before {
  /* hairline highlight on the top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.card h2,
.card h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.card p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}

.card-workforce {
  grid-column: span 7;
}

.card-model {
  grid-column: span 5;
}

.card-process {
  grid-column: span 12;
}

.card-model .glow {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 140, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-soft);
  background: rgba(255, 255, 255, 0.02);
}

.process-head {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: start;
}

.process-head p {
  margin-top: 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-soft);
  counter-increment: step;
  background: rgba(255, 255, 255, 0.015);
}

.steps li + li {
  border-left: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.steps li:last-child {
  color: var(--fg);
  background: var(--accent-soft);
}

.steps li:last-child::before {
  color: var(--accent);
}

/* sr-only arrows keep the "→" order readable for assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  isolation: isolate;
  padding: 152px 0 160px;
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -320px;
  width: 1100px;
  height: 640px;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(143, 140, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.closing h2 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.042em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.74) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.closing p {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
}

.closing .actions {
  margin-top: 40px;
}

/* ---------- Products page ---------- */

.page-head {
  position: relative;
  isolation: isolate;
  padding: 136px 0 72px;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -260px 0 auto;
  height: 640px;
  z-index: -1;
  background: radial-gradient(40% 50% at 22% 40%, rgba(143, 140, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.page-head h1 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.page-head p {
  max-width: 560px;
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

.products {
  display: grid;
  gap: 16px;
  padding-bottom: 136px;
}

.product {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  padding: 40px;
}

.product h2 {
  margin-top: 18px;
  font-size: clamp(32px, 3.6vw, 44px);
  letter-spacing: -0.04em;
}

.product p {
  font-size: 17px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border: 1px solid rgba(143, 140, 255, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #c9c8ff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Decorative, abstract ring (not a product logo) */
.ring {
  position: relative;
  justify-self: center;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #111116 calc(100% - 5px), transparent calc(100% - 4px)),
    conic-gradient(from 0deg, rgba(143, 140, 255, 0.25) 0%, #a9a7ff 72%, rgba(255, 255, 255, 0.09) 72.4% 100%);
  box-shadow: 0 0 90px -30px rgba(143, 140, 255, 0.45);
}

.ring::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.more {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.more .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links span {
  color: var(--faint);
  margin-right: 6px;
}

.footer-links a {
  color: var(--fg-soft);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--fg);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .split,
  .process-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-workforce,
  .card-model {
    grid-column: span 12;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps li:nth-child(4) {
    border-left: 0;
  }

  .steps li:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

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

  .ring {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .site-header .wrap {
    height: 56px;
  }

  .nav a {
    padding: 6px 9px;
  }

  .hero {
    padding: 112px 0 96px;
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -0.04em;
  }

  .hero .lede {
    margin-top: 22px;
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 36px auto 0;
  }

  .section {
    padding: 80px 0;
  }

  .section-body {
    font-size: 17px;
  }

  .card,
  .product {
    padding: 28px 24px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps li:nth-child(n) {
    border-left: 0;
    border-top: 0;
  }

  .steps li:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .steps li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .closing {
    padding: 104px 0 112px;
  }

  .closing p {
    font-size: 17px;
  }

  .page-head {
    padding: 96px 0 48px;
  }

  .products {
    padding-bottom: 96px;
  }

  .more {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .wrap {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
