/* Firelinks website */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Firelinks palette: ~/projects/firelinks-developer-package/tokens */
  --fl-midnight: #03112F;
  --fl-surface-dark: #0B2144;
  --fl-navy: #102454;
  --fl-action: #075BB5;
  --fl-blue: #007CE8;
  --fl-cyan: #00B8D9;
  --fl-sky: #51C7FF;
  --fl-on-dark-muted: #ADC2DF;
  --fl-gradient: linear-gradient(135deg, #075BB5 0%, #007CE8 50%, #00B8D9 100%);
  --bg: #F5F8FC;
  --text: #102454;
  --muted: #526480;
  --line: #D7E1EE;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--fl-action); }
h1, h2, h3 { font-family: "Poppins", "Montserrat", sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 17, 47, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.nav .brand img { height: 52px; width: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { color: #E6EEFB; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fl-sky); }
.nav a.lang-switch { font-size: .85rem; color: var(--fl-on-dark-muted); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .3rem .75rem; }
.nav a.lang-switch .on { color: #fff; font-weight: 700; }
.nav a.lang-switch:hover { border-color: var(--fl-sky); }
.os-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.os-tabs a { text-decoration: none; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; }
.os-tabs a:hover { border-color: var(--fl-blue); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--fl-gradient); color: #fff !important; box-shadow: 0 8px 24px rgba(0, 124, 232, .35); }
.btn-ghost { color: #fff !important; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--fl-sky); }
.nav .btn { padding: .55rem 1.2rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 184, 217, .2), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(7, 91, 181, .45), transparent 50%),
    url("../img/hero-bg.webp") center / cover no-repeat,
    var(--fl-midnight);
  padding: 6rem 0 7rem;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fl-sky); margin-bottom: 1rem; font-weight: 600;
}
.hero p.lead { font-size: 1.15rem; color: var(--fl-on-dark-muted); max-width: 38rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.gradient-text { background: linear-gradient(135deg, #2F9BFF 0%, #51C7FF 55%, #00B8D9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-mark { justify-self: center; width: min(360px, 80%); filter: drop-shadow(0 30px 60px rgba(0, 124, 232, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 5.5rem 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); }
.alt { background: #fff; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 14px 36px rgba(3, 17, 47, .08); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--fl-gradient);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pillars (dark band) */
.band { background: var(--fl-midnight); color: #fff; }
.band .section-head p { color: var(--fl-on-dark-muted); }
.pillar { border-top: 3px solid; border-image: var(--fl-gradient) 1; padding-top: 1.4rem; }
.pillar p { color: var(--fl-on-dark-muted); }
.pillar .num { font-family: "Poppins", sans-serif; font-size: .85rem; color: var(--fl-sky); letter-spacing: .15em; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--fl-gradient); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step p { color: var(--muted); }

/* CTA */
.cta { background: var(--fl-gradient); color: #fff; border-radius: 22px; padding: 3.5rem; text-align: center; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 36rem; margin: 0 auto 1.8rem; }
.cta .btn { background: #fff; color: var(--fl-action) !important; }

/* Page header (docs / support) */
.page-hero { background: var(--fl-midnight); color: #fff; padding: 4rem 0 3.5rem; }
.page-hero p { color: var(--fl-on-dark-muted); max-width: 42rem; margin: 0; }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 3rem; padding: 3.5rem 0 5rem; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc h4 { margin: 0 0 .8rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc a { display: block; padding: .3rem 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.toc a:hover { color: var(--fl-action); }
.doc h2 { margin-top: 2.6rem; padding-top: .5rem; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.6rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .35rem; }
pre {
  background: var(--fl-midnight); color: #E3ECF8; padding: 1.1rem 1.3rem; border-radius: 10px;
  overflow-x: auto; font-size: .88rem; line-height: 1.55;
}
:not(pre) > code { background: #E6EEF8; padding: .1em .4em; border-radius: 5px; font-size: .9em; }
.note { border-left: 4px solid var(--fl-blue); background: #E6F6FB; padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
th { background: #EEF3FA; }

/* Support */
.contact-card { text-align: left; }
.contact-card a { font-weight: 600; text-decoration: none; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: .8rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .8rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--fl-midnight); color: var(--fl-on-dark-muted); padding: 3.5rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 52px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; margin: 0 0 .8rem; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--fl-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--fl-sky); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--fl-midnight); color: #fff; }
.notfound img { width: 120px; margin: 0 auto 1.5rem; }
.notfound p { color: var(--fl-on-dark-muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .docs-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 5rem; }
  .hero-mark { width: 200px; order: -1; }
  .toc { position: static; }
  .nav-toggle { display: block; }
  .nav ul {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--fl-midnight); padding: 1.2rem; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav ul.open { display: flex; }
  .cta { padding: 2.5rem 1.5rem; }
}

/* Product tour: screenshot gallery + videos */
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.shot:hover { box-shadow: 0 14px 36px rgba(3, 17, 47, .1); transform: translateY(-2px); }
.shot button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.shot button:focus-visible { outline: 3px solid var(--fl-blue); outline-offset: -3px; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.shot figcaption { padding: 1rem 1.2rem 1.2rem; }
.shot figcaption strong { display: block; font-family: "Poppins", sans-serif; margin-bottom: .25rem; }
.shot figcaption span { color: var(--muted); font-size: .92rem; }
.shot-hero { grid-column: 1 / -1; }
.browser { border-radius: 12px; overflow: hidden; background: #0B2144; box-shadow: 0 30px 70px rgba(3, 17, 47, .35); border: 1px solid rgba(255, 255, 255, .08); }
.browser .bar { display: flex; gap: 6px; padding: 10px 14px; background: #102454; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #28466D; }
.browser video, .browser img { display: block; width: 100%; height: auto; background: #F5F8FC; }
.video-card h3 { margin-top: 1.2rem; }
.video-card p { color: var(--muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1440px, 96vw, 150vh); width: 96vw; }
.lightbox::backdrop { background: rgba(3, 17, 47, .88); }
.lightbox img { width: 100%; height: auto; border-radius: 10px; }
.lightbox p { color: #fff; text-align: center; margin: .8rem 0 0; }
.lightbox .close { position: fixed; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }
.doc figure { margin: 1.2rem 0 1.5rem; }
.doc figure img { border: 1px solid var(--line); border-radius: 10px; }
.doc figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
