/* Fiko AI Labs: shared styles for the company site and every app's pages.
   Each app page sets --accent (and optionally --accent-ink) on <body>. */
:root {
  --bg: #07080c;
  --bg-2: #0e1018;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f3f4f8;
  --body: #c4c7d4;
  --muted: #8a8ea0;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #a3e635;
  --accent: #a78bfa;
  --accent-ink: #0b0b10;
  --radius: 22px;
  --max: 1080px;
  --display: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(7, 8, 12, 0.7);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 18px/1 var(--display); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: conic-gradient(from 200deg, var(--violet), var(--cyan), var(--green), var(--violet));
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.45);
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 5px; background: var(--bg); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--body); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 750; }
h3 { font-size: 21px; font-weight: 700; }
p { color: var(--body); margin: 0 0 14px; }
.eyebrow { display: inline-block; font: 600 13px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--body); max-width: 620px; }
.grad {
  background: linear-gradient(100deg, var(--violet), var(--cyan) 55%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 700 16px/1 var(--text);
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px var(--accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn svg { width: 20px; height: 20px; }

/* Sections and cards */
section { padding: 88px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* Legal and support pages */
.doc { padding: 64px 0 40px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.doc h2 { font-size: 24px; margin-top: 42px; }
.doc ul { padding-left: 20px; color: var(--body); }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.updated { color: var(--muted); font-size: 15px; }
.tldr { border-left: 3px solid var(--accent); }
details.card { padding: 0; margin: 12px 0; }
details.card summary { cursor: pointer; padding: 20px 24px; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform 0.2s; }
details.card[open] summary::after { transform: rotate(45deg); }
details.card > div { padding: 0 24px 20px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--body); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
