/* ==========================================================================
   Fibi Labs — site styles
   Plain CSS, no build step. System font stack, dark theme.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #070b14;
  --bg-elev: #0c1322;
  --surface: rgba(148, 163, 184, 0.045);
  --surface-hover: rgba(148, 163, 184, 0.075);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);

  --text: #e7edf6;
  --text-muted: #a8b5c8;
  --text-subtle: #8a99b0;

  --accent: #5eead4;
  --accent-2: #7cb4ff;
  --accent-ink: #04201c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

/* --- Reset / base ------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(60rem 32rem at 15% -10%, rgba(94, 234, 212, 0.09), transparent 70%),
    radial-gradient(50rem 30rem at 95% 0%, rgba(124, 180, 255, 0.08), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #8ff3e2;
}

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

::selection {
  background: rgba(94, 234, 212, 0.3);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 6px 20px -6px rgba(94, 234, 212, 0.5);
}

.brand-name span {
  color: var(--text-muted);
  font-weight: 500;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-hover);
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #8ff3e2;
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.5);
  background: var(--surface-hover);
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Type helpers -------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.7);
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  max-width: 40rem;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--text-muted);
}

.section-note {
  margin-top: 1.5rem;
}

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

.hero {
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.hero .lead {
  margin-bottom: 2rem;
}

.hero-split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 860px) {
  .hero-split {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

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

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 0.6rem;
}

.section-kicker {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Cards --------------------------------------------------------------- */

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--bg-elev);
}

.product-card {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: rgba(94, 234, 212, 0.4);
}

@media (min-width: 720px) {
  .product-card {
    grid-template-columns: 1fr minmax(180px, 240px);
    align-items: center;
  }
}

.product-card h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.product-card h3 a {
  color: var(--text);
  text-decoration: none;
}

/* Stretch the title link so the whole card is clickable. */
.product-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.product-card h3 a:focus-visible {
  outline: none;
}

.product-card:has(h3 a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.product-card p {
  color: var(--text-muted);
  max-width: 36rem;
}

.product-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9875rem;
}

.product-card .card-cta .arrow {
  transition: transform 0.15s ease;
}

.product-card:hover .card-cta .arrow {
  transform: translateX(3px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: rgba(94, 234, 212, 0.08);
  color: var(--accent);
}

.feature-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* --- Decorative wheel (pure CSS, aria-hidden) ---------------------------- */

.wheel {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  aspect-ratio: 1;
}

.wheel-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #0c1322 0 15%, rgba(94, 234, 212, 0.6) 15.5% 16.5%, transparent 17%),
    radial-gradient(circle, transparent 0 62%, rgba(7, 11, 20, 0.35) 100%),
    repeating-conic-gradient(
      from -15deg,
      #115e59 0deg 30deg,
      #1e3a8a 30deg 60deg,
      #155e75 60deg 90deg,
      #312e81 90deg 120deg
    );
  box-shadow:
    0 0 0 6px #0c1322,
    0 0 0 7px var(--border-strong),
    0 30px 90px -25px rgba(94, 234, 212, 0.35),
    0 0 120px -30px rgba(124, 180, 255, 0.35);
}

/* Thin spokes between segments */
.wheel-face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -15deg,
    rgba(231, 237, 246, 0.22) 0deg 0.6deg,
    transparent 0.6deg 30deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 17%, #000 17.5%);
  mask: radial-gradient(circle, transparent 0 17%, #000 17.5%);
}

/* Pointer */
.wheel::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--accent);
  filter: drop-shadow(0 4px 8px rgba(94, 234, 212, 0.45));
}

.wheel-sm {
  max-width: 220px;
}

/* --- Contact ------------------------------------------------------------- */

.contact-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(124, 180, 255, 0.1), transparent 70%),
    radial-gradient(40rem 20rem at 0% 100%, rgba(94, 234, 212, 0.08), transparent 70%),
    var(--bg-elev);
}

@media (min-width: 760px) {
  .contact-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.contact-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 0.6rem;
}

.contact-panel p {
  color: var(--text-muted);
  max-width: 36rem;
}

.email-link {
  font-family: var(--font-mono);
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

/* --- Breadcrumb ---------------------------------------------------------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--border-strong);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* --- Long-form content (policy, support) -------------------------------- */

.page-head {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.page-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.page-meta {
  color: var(--text-subtle);
  font-size: 0.9375rem;
}

.prose {
  max-width: 46rem;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.125rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose li::marker {
  color: var(--accent);
}

.callout {
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: var(--radius);
  background: rgba(94, 234, 212, 0.05);
}

.callout p {
  color: var(--text);
}

.callout > * + * {
  margin-top: 0.75rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}

.steps li {
  position: relative;
  padding-left: 2.6rem;
}

.steps li + li {
  margin-top: 1rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem 2.5rem;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* --- Small screens ------------------------------------------------------- */

@media (max-width: 520px) {
  .site-header .container {
    padding-block: 0.6rem;
  }

  .site-nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }
}
