/* ============================================================
   SATOM — site stylesheet
   Matches the SATOM web console design system:
   light content (#F4F5F7) · navy chrome (#162940 / #1D3452) ·
   Fortinet orange accent (#EF5424) · 4px radius · Inter ·
   ADOM product colors (FortiWeb red / FortiADC green / FAZ amber)
   ============================================================ */
:root {
  --bg: #F4F5F7;
  --surface: #ffffff;
  --card: #ffffff;
  --card-2: #ffffff;
  --header: #162940;        /* topbar navy (app --fw-topbar-bg) */
  --sidebar: #1D3452;       /* sidebar navy (app --fw-sidebar-bg) */
  --text: #212529;          /* app --fw-text-primary */
  --text-2: #6C757D;        /* app --fw-text-secondary */
  --muted: #8A97A6;
  --accent: #EF5424;        /* app --fw-accent */
  --accent-a: #EF5424;
  --accent-b: #F97316;      /* lighter orange for subtle warm gradients */
  --accent-hover: #D44A1E;  /* app --fw-accent-hover */
  --accent-light: rgba(239, 84, 36, 0.10);
  --ok: #28A745;
  --warn: #FFC107;
  --err: #DC3545;
  --info: #17A2B8;
  --border: #DEE2E6;        /* app --fw-border */
  --border-2: #E9ECEF;      /* app --fw-border-light */
  --shadow: 0 1px 2px rgba(16,32,52,.06), 0 3px 12px rgba(16,32,52,.06);
  --shadow-hover: 0 4px 10px rgba(16,32,52,.10), 0 12px 30px rgba(16,32,52,.10);
  --radius: 4px;
  --radius-lg: 8px;
  /* product / ADOM accents (mirror the manager's ADOM colors) */
  --fweb: #ef4444;
  --fadc: #10b981;
  --faz:  #d97706;
  --global: #3b82f6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code { font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: .86em;
  background: var(--accent-light); color: var(--accent-hover); padding: 1px 6px; border-radius: 4px; }
::selection { background: rgba(239,84,36,.22); color: var(--text); }

/* ---------- nav (navy topbar, like the app header) ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 1px 0 rgba(16,32,52,.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand .mark { width: 28px; height: 28px; object-fit: contain; }
.brand b { color: var(--accent); font-weight: 800; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 24px; font-size: .9rem; }
.nav-links a { color: #B8C8D8; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 600; position: relative; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -19px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-cta { padding: 7px 15px; border-radius: var(--radius); font-size: .84rem; font-weight: 600; color: #fff;
  background: var(--accent); text-decoration: none; transition: background .2s; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-hover); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- hero / page head ---------- */
header.hero { padding: 90px 0 66px; text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(239,84,36,.06), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--bg)); border-bottom: 1px solid var(--border); }
header.page { padding: 70px 0 20px; text-align: center; }
header.page h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
header.page p.sub { font-size: 1.04rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); margin-bottom: 26px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; color: var(--text); }
.grad { color: var(--accent); }
.sub { max-width: 700px; margin: 22px auto 0; color: var(--text-2); font-size: 1.12rem; }
.sub b { color: var(--text); font-weight: 600; }
.cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: var(--radius); font-weight: 600; font-size: .93rem; text-decoration: none; transition: background .2s, box-shadow .2s, border-color .2s, transform .15s; }
.btn-primary { color: #fff; background: var(--accent); box-shadow: 0 2px 8px rgba(239,84,36,.28); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239,84,36,.34); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: #C7CED6; transform: translateY(-1px); color: var(--text); }

.stats { margin-top: 54px; display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.stat span { font-size: .82rem; color: var(--muted); }

/* product chips row */
.devchips { margin-top: 38px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.devchip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .84rem; font-weight: 600; color: var(--text); }
.devchip img { width: 22px; height: 22px; }
.devchip.fweb { border-color: rgba(239,68,68,.45); }
.devchip.fadc { border-color: rgba(16,185,129,.45); }
.devchip.faz  { border-color: rgba(217,119,6,.45); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-head h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.sec-head p { color: var(--text-2); margin-top: 10px; max-width: 660px; margin-inline: auto; }
.sec-head.left { text-align: left; }
.sec-head.left p { margin-inline: 0; }
.eyebrow { display: inline-block; font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; }

/* ---------- cards / grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: #CED4DA; box-shadow: var(--shadow-hover); }
.card .ico { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--accent-light); border: 1px solid rgba(239,84,36,.22); font-size: 1.15rem; margin-bottom: 15px; }
.card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card p, .card li { font-size: .89rem; color: var(--text-2); }
.card ul { list-style: none; margin-top: 10px; }
.card ul li { padding-left: 22px; position: relative; margin-bottom: 7px; }
.card ul li::before { content: '·'; position: absolute; left: 8px; color: var(--accent); font-weight: 800; }
.card a { color: var(--accent); text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* ---------- docs layout ---------- */
.doc { display: grid; grid-template-columns: 236px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 74px; font-size: .86rem; }
.toc .toc-title { font-size: .71rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.toc a { display: block; color: var(--text-2); text-decoration: none; padding: 6px 12px; border-left: 2px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; transition: all .18s; }
.toc a:hover { color: var(--text); background: #EEF1F4; }
.toc a.active { color: var(--accent-hover); border-left-color: var(--accent); background: var(--accent-light); font-weight: 600; }
.doc-body { min-width: 0; }
.dsec { scroll-margin-top: 74px; margin-bottom: 40px; padding-bottom: 6px; }
.dsec > h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; display: flex; align-items: center; gap: 11px; color: var(--text); }
.dsec > h2 .hico { width: 32px; height: 32px; border-radius: var(--radius); display: grid; place-items: center; font-size: 1rem;
  background: var(--accent-light); border: 1px solid rgba(239,84,36,.24); flex-shrink: 0; }
.dsec > p.lead { color: var(--text-2); margin: 4px 0 16px; font-size: .98rem; }
.dsec ul.feat { list-style: none; }
.dsec ul.feat li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--border-2); font-size: .92rem; color: var(--text-2); }
.dsec ul.feat li:last-child { border-bottom: none; }
.dsec ul.feat li::before { content: ''; position: absolute; left: 6px; top: 16px; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.dsec ul.feat li b { color: var(--text); font-weight: 600; }

/* ---------- callouts ---------- */
.callout { display: flex; gap: 14px; padding: 15px 18px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); border-left: 3px solid var(--accent); box-shadow: var(--shadow); margin: 18px 0; }
.callout .cico { font-size: 1.15rem; flex-shrink: 0; line-height: 1.4; }
.callout p { font-size: .9rem; color: var(--text-2); margin: 0; }
.callout.ok { border-left-color: var(--ok); }
.callout.warn { border-left-color: var(--warn); }
.callout b { color: var(--text); }

/* ---------- sync flow diagram ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 8px 0 6px; }
.flow .step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 16px; text-align: center; box-shadow: var(--shadow); }
.flow .step .n { width: 26px; height: 26px; border-radius: var(--radius); display: grid; place-items: center; margin: 0 auto 10px;
  font-size: .8rem; font-weight: 800; color: #fff; background: var(--accent); }
.flow .step h4 { font-size: .9rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.flow .step p { font-size: .78rem; color: var(--muted); }
.flow .step::after { content: '→'; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 800; z-index: 2; }
.flow .step:last-child::after { display: none; }
.flow.back .step .n { background: var(--sidebar); }
.flow.back .step::after { content: '←'; }

/* ---------- supported devices ---------- */
.devgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.devcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.devcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.devcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--acc, var(--accent)); opacity: .95; }
.devcard.fweb { --acc: var(--fweb); } .devcard.fweb:hover { border-color: rgba(239,68,68,.45); }
.devcard.fadc { --acc: var(--fadc); } .devcard.fadc:hover { border-color: rgba(16,185,129,.45); }
.devcard.faz  { --acc: var(--faz); }  .devcard.faz:hover  { border-color: rgba(217,119,6,.45); }
.devcard .dhead { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.devcard .dhead img { width: 42px; height: 42px; }
.devcard .dhead h3 { font-size: 1.06rem; font-weight: 800; color: var(--text); }
.devcard .dhead span { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }
.devcard ul { list-style: none; }
.devcard ul li { font-size: .85rem; color: var(--text-2); padding: 5px 0 5px 20px; position: relative; }
.devcard ul li::before { content: '✓'; position: absolute; left: 0; color: var(--acc, var(--accent)); font-weight: 700; }
.devcard .proto { margin-top: 14px; display: inline-block; font-size: .72rem; font-weight: 600; color: var(--text-2);
  padding: 4px 11px; border-radius: 999px; background: #F1F3F5; border: 1px solid var(--border); }

/* ---------- screenshots gallery ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.shot { margin: 0; }
.shot .frame { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; cursor: zoom-in; }
.shot .frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(239,84,36,.4); }
.shot .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.shot .frame .ph-label { display: none; }
/* empty state (screenshot not supplied yet) */
.shot .frame.is-empty { cursor: default; background:
  linear-gradient(135deg, #fbfcfd, #eef1f4);
  border-style: dashed; }
.shot .frame.is-empty:hover { transform: none; box-shadow: var(--shadow); border-color: var(--border); }
.shot .frame.is-empty img { display: none; }
.shot .frame.is-empty .ph-label { display: flex; position: absolute; inset: 0; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--muted); text-align: center; padding: 16px; }
.shot .frame.is-empty .ph-label i { font-style: normal; font-size: 1.7rem; opacity: .7; }
.shot .frame.is-empty .ph-label b { color: var(--text-2); font-weight: 600; font-size: .92rem; }
.shot .frame.is-empty .ph-label small { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.shot figcaption { margin-top: 11px; font-size: .86rem; color: var(--text-2); }
.shot figcaption b { color: var(--text); font-weight: 600; display: block; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(16,32,52,.82); padding: 24px; cursor: zoom-out; opacity: 0; transition: opacity .2s; }
.lb.open { display: flex; opacity: 1; }
.lb img { max-width: 96vw; max-height: 92vh; border-radius: var(--radius-lg); box-shadow: 0 24px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.12); }
.lb .lb-close { position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; border: 0; cursor: pointer; }
.lb .lb-close:hover { background: rgba(255,255,255,.22); }

/* ---------- architecture / code / tags / tables ---------- */
.arch { background: var(--sidebar); border: 1px solid var(--sidebar); border-radius: var(--radius-lg); padding: 30px; overflow-x: auto; box-shadow: var(--shadow); }
.arch pre { font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: .82rem; line-height: 1.7; color: #B8C8D8; min-width: 560px; }
.arch pre b { color: #fff; font-weight: 600; }
.arch pre .hl { color: var(--accent); font-weight: 600; }
.code { background: #1D3452; border: 1px solid #2a466b; border-radius: var(--radius); padding: 15px 18px; margin-top: 16px; overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: .8rem; color: #cfe0f0; line-height: 1.8; }
.code code { background: none; color: inherit; padding: 0; }
.code .c { color: #7A94AD; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; margin-right: 6px; }
.tag-blue { color: #1D6FA5; background: rgba(23,162,184,.12); border: 1px solid rgba(23,162,184,.35); }
.tag-vio { color: #7c3aed; background: rgba(124,58,237,.10); border: 1px solid rgba(124,58,237,.3); }
.tag-grn { color: #1E7E34; background: rgba(40,167,69,.12); border: 1px solid rgba(40,167,69,.3); }
ul.checks { list-style: none; margin-top: 14px; }
ul.checks li { padding-left: 26px; position: relative; font-size: .89rem; color: var(--text-2); margin-bottom: 9px; }
ul.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .87rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
table.cmp th, table.cmp td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-2); }
table.cmp th { font-size: .73rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #F8F9FA; }
table.cmp td { color: var(--text-2); }
table.cmp td:first-child { color: var(--text); font-weight: 600; }
table.cmp tr:last-child td { border-bottom: none; }

/* ---------- footer ---------- */
footer { background: var(--header); border-top: 1px solid rgba(255,255,255,.06); padding: 44px 0 50px; text-align: center; color: #8CA0B4; font-size: .85rem; margin-top: 30px; }
footer .fbrand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
footer .fbrand img { height: 26px; opacity: .95; filter: brightness(0) invert(1); }
footer a { color: #B8C8D8; text-decoration: none; }
footer a:hover { color: #fff; }
footer .flinks { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
footer .addr { color: var(--accent); font-weight: 600; }

/* ---------- scroll reveal + back to top ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
#top { position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--header); border: 1px solid #2a466b; color: #fff; text-decoration: none; font-size: 1.1rem;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s, background .2s; z-index: 40; box-shadow: var(--shadow-hover); }
#top.show { opacity: 1; pointer-events: auto; }
#top:hover { transform: translateY(-3px); background: var(--accent); border-color: var(--accent); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
header.hero > * { animation: fadeUp .6s cubic-bezier(.16,1,.3,1) both; }
header.hero > *:nth-child(2){ animation-delay:.05s } header.hero > *:nth-child(3){ animation-delay:.10s }
header.hero > *:nth-child(4){ animation-delay:.15s } header.hero > *:nth-child(5){ animation-delay:.20s }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; background: var(--surface); box-shadow: var(--shadow); }
  .toc .toc-title { width: 100%; }
  .toc a { border-left: 0; border-radius: var(--radius); padding: 6px 10px; font-size: .8rem; }
  .toc a.active { border-left: 0; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  nav.open .nav-right { position: absolute; top: 56px; left: 0; right: 0; background: var(--header);
    flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  nav.open .nav-links { display: flex; flex-direction: column; gap: 0; width: 100%; }
  nav.open .nav-links a { padding: 13px 24px; width: 100%; }
  nav.open .nav-links a.active::after { display: none; }
  nav.open .nav-cta { display: block; margin: 10px 24px; text-align: center; }
}
@media (max-width: 640px) {
  header.hero { padding: 60px 0 46px; }
  .stats { gap: 26px; }
  .flow .step::after { content: '↓'; right: 50%; top: auto; bottom: -14px; transform: translateX(50%); }
  .flow.back .step::after { content: '↑'; }
}
