/* =========================================================
   Oasis Defender — design system
   Engineered, typographic, enterprise. No marketing gloss.
   ========================================================= */

/* Inter / Inter Tight + JetBrains Mono */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root{
  /* Surface — warm off-white, no saturation */
  --bg:        #F7F6F2;
  --bg-alt:    #EFEEE8;
  --paper:     #FFFFFF;
  --ink:       #0E1116;
  --ink-2:     #2A2F38;
  --muted:     #5A6271;
  --muted-2:   #8A92A0;
  --hair:      rgba(14,17,22,.10);
  --hair-2:    rgba(14,17,22,.06);
  --hair-3:    rgba(14,17,22,.16);

  /* Accent — single brand teal used as signal, not fill */
  --accent:    #0F9E89;
  --accent-ink:#0A6657;
  --accent-bg: rgba(15,158,137,.08);
  --accent-br: rgba(15,158,137,.28);

  /* Product UI signal colors (mirroring the dashboard screenshots) */
  --wire:      #5BA8FF;   /* connectivity paths, link */
  --warn:      #E4843A;   /* findings */
  --ok:        #34B27A;
  --crit:      #D9534F;

  /* Dark band (used in hero strip / footer) */
  --dark:      #0E1116;
  --dark-2:    #14181F;
  --dark-3:    #1B2029;
  --dark-line: rgba(255,255,255,.08);
  --dark-line-2: rgba(255,255,255,.14);
  --dark-ink:  rgba(255,255,255,.92);
  --dark-mute: rgba(255,255,255,.56);

  /* Type */
  --display: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans:    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Scale */
  --t-xxs: 11px;
  --t-xs:  12px;
  --t-sm:  13.5px;
  --t-md:  15px;
  --t-lg:  17px;
  --t-xl:  20px;
  --t-2xl: 26px;
  --t-3xl: 34px;
  --t-4xl: 46px;
  --t-5xl: 60px;

  --lh-tight: 1.05;
  --lh-snug:  1.18;
  --lh-base:  1.55;
  --lh-loose: 1.7;

  --max:     1240px;
  --content: 880px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
html{ background: var(--bg); }
body{
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; text-decoration: none; }
b, strong{ font-weight: 600; color: var(--ink); }
p{ margin: 0; }
ul{ margin: 0; padding: 0; list-style: none; }

::selection{ background: var(--accent); color: #fff; }

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

/* ----- Layout ----- */
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px){ .wrap{ padding: 0 18px; } }

.content{ max-width: var(--content); margin: 0 auto; }

/* Eyebrow / section label (Stripe Docs feel) */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow::before{
  content: "";
  width: 18px;
  height: 1px;
  background: var(--hair-3);
}
.eyebrow.dot::before{
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ----- Type ----- */
h1, h2, h3, h4{
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
  font-weight: 700;
}
h1{ font-size: var(--t-5xl); line-height: var(--lh-tight); letter-spacing: -0.035em; font-weight: 700; }
h2{ font-size: var(--t-3xl); letter-spacing: -0.025em; }
h3{ font-size: var(--t-xl); letter-spacing: -0.015em; font-weight: 600; }
h4{ font-size: var(--t-lg); font-weight: 600; }

@media (max-width: 720px){
  h1{ font-size: 38px; }
  h2{ font-size: 28px; }
  h3{ font-size: 18px; }
}

.lede{
  font-size: var(--t-xl);
  line-height: var(--lh-loose);
  color: var(--muted);
  font-weight: 400;
}
@media (max-width: 720px){ .lede{ font-size: 17px; } }

.muted{ color: var(--muted); }
.mono{ font-family: var(--mono); }

/* ----- Top nav ----- */
.nav{
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(247,246,242,.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
}
.brand{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand img{ height: 24px; width: auto; display: block; }
.brand-name{ font-size: 15px; }

.menu{
  display: flex; align-items: center; gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.menu a{
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.menu a:hover{ color: var(--ink); background: var(--hair-2); }
.menu a.active{
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
  padding-bottom: 6px;
}
.menu-spacer{ flex: 1; }

.nav-actions{ display: flex; align-items: center; gap: 8px; }
.nav-actions .icon-link{
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 6px;
  border: 1px solid var(--hair);
  color: var(--muted);
  background: var(--paper);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.nav-actions .icon-link:hover{ color: var(--ink); border-color: var(--hair-3); }
.nav-actions .icon-link svg{ width: 14px; height: 14px; }

/* Burger */
.menu-burger{ display: none; position: relative; }
.menu-burger > summary{
  list-style: none;
  width: 36px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hair);
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
}
.menu-burger > summary::-webkit-details-marker{ display: none; }
.menu-burger > summary::before{
  content: ""; width: 14px; height: 1.5px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.menu-burger[open] > summary::before{
  box-shadow: none;
  transform: rotate(45deg);
}
.menu-burger[open] > summary::after{
  content: "";
  position: absolute;
  width: 14px; height: 1.5px;
  background: var(--ink);
  transform: rotate(-45deg);
  pointer-events: none;
}
.menu-drawer{
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(14,17,22,.08);
  display: grid; gap: 2px;
  z-index: 70;
}
.menu-drawer a{
  display: block; padding: 9px 10px;
  border-radius: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
}
.menu-drawer a.active{ color: var(--accent-ink); background: var(--accent-bg); }
.menu-drawer a:hover{ background: var(--hair-2); }

.nav-actions .cta-icon{ display: none; width: 16px; height: 16px; }

@media (max-width: 920px){
  .menu-primary{ display: none; }
  .menu-burger{ display: block; }
  .nav-actions .cta-text{ display: none; }
  .nav-actions .cta-icon{ display: block; }
  .nav-actions .btn.primary.sm{ padding: 8px 10px; }
}

/* ----- Buttons ----- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--hair);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover{ border-color: var(--hair-3); }
.btn.primary{
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn.primary:hover{ background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.accent{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.accent:hover{ background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost{
  background: transparent;
  border-color: var(--hair-3);
}
.btn.sm{ padding: 7px 12px; font-size: 13px; }
.btn .arrow{
  width: 12px; height: 12px;
  display: inline-block;
  transform: translateX(0);
  transition: transform .15s ease;
}
.btn:hover .arrow{ transform: translateX(2px); }

/* ----- Section structure ----- */
section.s{ padding: 96px 0; border-top: 1px solid var(--hair); }
section.s:first-of-type{ border-top: 0; }
section.s.tight{ padding: 64px 0; }
section.s.alt{ background: var(--bg-alt); }
@media (max-width: 720px){
  section.s{ padding: 64px 0; }
  section.s.tight{ padding: 48px 0; }
}

.s-head{
  max-width: 760px;
  margin: 0 0 40px;
}
.s-head .eyebrow{ margin-bottom: 18px; }
.s-head h2{ margin-bottom: 14px; }
.s-head .lede{ font-size: var(--t-lg); line-height: 1.55; }

/* Two-column section header (left: meta, right: title+lede) */
.s-head-2col{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.s-head-2col .left{
  position: sticky; top: 80px;
}
.s-head-2col .left .eyebrow{ margin-bottom: 8px; }
.s-head-2col .left .meta{
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}
.s-head-2col h2{ margin-bottom: 14px; max-width: 720px; }
.s-head-2col .lede{ font-size: var(--t-lg); max-width: 680px; }
@media (max-width: 900px){
  .s-head-2col{ grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .s-head-2col .left{ position: static; }
}

/* ----- Cards ----- */
.card{
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 24px;
  transition: border-color .15s ease;
}
.card:hover{ border-color: var(--hair-3); }
.card .num{
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}
.card h3{
  margin: 0 0 8px;
  font-size: var(--t-lg);
  letter-spacing: -0.01em;
}
.card p{
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Grid */
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* ----- Chip / badge ----- */
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--paper);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}
.chip .dot{
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.chip.dark{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
}
.chip.dark .dot{ background: var(--wire); box-shadow: 0 0 8px rgba(91,168,255,.5); }

.tag{
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--hair-3);
  color: var(--ink-2);
  background: var(--bg);
}
.tag.accent{ color: var(--accent-ink); border-color: var(--accent-br); background: var(--accent-bg); }
.tag.warn{ color: #8A4D17; border-color: rgba(228,132,58,.32); background: rgba(228,132,58,.10); }
.tag.wire{ color: #1F4E8A; border-color: rgba(91,168,255,.36); background: rgba(91,168,255,.10); }

/* ----- Footer ----- */
.footer{
  background: var(--dark);
  color: var(--dark-mute);
  border-top: 1px solid var(--hair);
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 28px;
  align-items: start;
}
.footer h5{
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 14px;
}
.footer ul li{ margin: 8px 0; }
.footer a{
  color: rgba(255,255,255,.78);
  font-size: 14px;
  transition: color .15s ease;
}
.footer a:hover{ color: #fff; }
.footer-brand img{ height: 26px; width: auto; display: block; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p{
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  max-width: 280px;
  line-height: 1.6;
}
.footer-bottom{
  padding: 18px 0 28px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.48);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a{ font-family: var(--mono); font-size: 12px; }
@media (max-width: 820px){
  .footer-inner{ grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 24px; }
  .footer-brand{ grid-column: 1 / -1; }
  .footer-legal{ grid-column: 1 / -1; }
}
@media (max-width: 560px){
  .footer .footer-inner{ grid-template-columns: 1fr 1fr; gap: 24px 20px; padding: 36px 24px 12px; }
  .footer .footer-bottom{ padding: 12px 24px 16px; }
  .footer-brand{ text-align: center; }
  .footer-brand img{ margin-left: auto; margin-right: auto; }
  .footer-brand p{ font-size: 13px; max-width: none; margin-left: auto; margin-right: auto; }
}

/* ----- Hairline divider with monospace caption ----- */
.rule{
  display: flex; align-items: center; gap: 16px;
  margin: 40px 0;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rule::before, .rule::after{
  content: ""; flex: 1;
  height: 1px;
  background: var(--hair);
}

/* ----- Site-specific helpers ----- */
.kbd-arrow{
  display: inline-block;
  width: 11px; height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* Numbered marker (small mono index) */
.idx{
  font-family: var(--mono);
  font-size: var(--t-xxs);
  color: var(--muted);
  letter-spacing: 0.04em;
}
