/* River Gum Security LLC — static site styles. No external dependencies. */

:root {
  color-scheme: light;
  --teal: #047878;          /* logo teal */
  --teal-deep: #035f5f;
  --teal-bright: #3cc4bd;   /* teal tuned for dark backgrounds */
  --ink-900: #06232a;
  --ink-800: #0b2f38;
  --ink-700: #12404b;
  --text: #17262b;
  --text-soft: #4a5b61;
  --paper: #f7f5f0;
  --paper-alt: #eef1ef;
  --white: #ffffff;
  --leaf: #ee7b3a;          /* logo orange, used sparingly */
  --leaf-red: #c0292b;
  --line: rgba(6, 35, 42, 0.12);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; color: var(--ink-900); }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.88em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.brand-sub { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--teal); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 10px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: 0.9rem; background: var(--teal); color: #fff; }
.btn-small:hover { background: var(--teal-deep); }
.btn-primary { background: var(--leaf); color: #1a0d04; }
.btn-primary:hover { background: #f58a4b; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: #f1fbfa; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #e5f1f1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(60,196,189,.22), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(238,123,58,.12), transparent 60%),
    var(--ink-900);
  padding: 88px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-bottom: 0.5em; }
.hero h1 .accent { color: var(--teal-bright); }
.lead { font-size: 1.18rem; color: #c3d8d9; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 18px;
}
.section .eyebrow { color: var(--teal); }
.eyebrow-light { color: var(--teal-bright) !important; }

.frameworks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.frameworks li {
  font-family: var(--mono); font-size: 0.78rem; padding: 6px 12px; border-radius: 999px;
  color: #a9c9ca; border: 1px solid rgba(255,255,255,.16);
}

/* Illustrative attack trace */
.trace {
  margin: 0; background: #041a1f; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0,0,0,.45); overflow: hidden;
}
.trace-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.trace-title { margin-left: 10px; font-family: var(--mono); font-size: 0.74rem; color: #7fa3a5; }
.trace-body { list-style: none; margin: 0; padding: 20px 20px 8px; counter-reset: s; }
.trace-body li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: start; padding: 11px 0; font-size: 0.92rem; line-height: 1.5; color: #cfe3e3; position: relative; }
.trace-body li:not(:last-child)::after {
  content: ""; position: absolute; left: 36px; bottom: -6px; height: 12px; width: 1px; background: rgba(255,255,255,.18);
}
.trace-body code { color: #ffd2b0; background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 4px; word-break: break-word; }
.tag { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-align: center; padding: 3px 0; border-radius: 5px; }
.tag-in { background: rgba(60,196,189,.16); color: var(--teal-bright); }
.tag-agent { background: rgba(255,255,255,.1); color: #dfeeee; }
.tag-tool { background: rgba(238,123,58,.18); color: #ffb27d; }
.tag-hit { background: var(--leaf-red); color: #fff; }
.trace-body .impact span:last-child { color: #fff; font-weight: 600; }
.trace figcaption { padding: 14px 20px 18px; font-size: 0.82rem; color: #7fa3a5; border-top: 1px solid rgba(255,255,255,.08); line-height: 1.55; }

/* ---------- Band ---------- */
.band { background: var(--teal-deep); color: #e9f6f5; padding: 56px 0; }
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.band-statement { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 500; margin: 0; color: #fff; letter-spacing: -0.01em; }
.band-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 0.98rem; }
.band-points li { padding-left: 20px; position: relative; color: #cde8e6; }
.band-points li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.band-points strong { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--text-soft); font-size: 1.1rem; margin: 0; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-tight { margin-top: 26px; }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 26px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: rgba(4,120,120,.45); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(6,35,42,.08); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.98rem; margin: 0; }
.card-num { display: block; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: var(--leaf); letter-spacing: 0.12em; margin-bottom: 14px; }
.card-plain { padding-top: 26px; border-top: 3px solid var(--teal); }

/* Feature block */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px;
  background: var(--ink-900); color: #cfe3e3; border-radius: 20px; padding: 48px;
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(60,196,189,.16), transparent 70%);
}
.feature h3 { color: #fff; font-size: 1.7rem; }
.feature p { color: #b5cfd0; margin: 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.feature-list li { padding-left: 30px; position: relative; font-size: 0.98rem; color: #dcecec; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-bright);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--teal); }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 16px;
}
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--text-soft); font-size: 0.98rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.about h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.about p { color: var(--text-soft); }
.about p strong { color: var(--text); }
.facts { margin: 0; display: grid; gap: 16px; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: baseline; gap: 20px; }
.facts dt { font-size: 2.2rem; font-weight: 800; color: var(--teal); letter-spacing: -0.03em; min-width: 80px; }
.facts dd { margin: 0; color: var(--text-soft); font-size: 0.98rem; line-height: 1.4; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-weight: 650; font-size: 1.08rem; color: var(--ink-900);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--teal); transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--text-soft); margin: 0 0 22px; max-width: 46em; }

/* Contact */
.contact { background: linear-gradient(120deg, var(--ink-900), var(--teal-deep)); color: #d9ecec; padding: 84px 0; }
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.contact h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact p { margin: 0; color: #b9d6d6; font-size: 1.08rem; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-note { font-size: 0.85rem; color: #9fc2c2; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; justify-content: space-between; }
.footer-brand img { width: 130px; }
.footer-meta { text-align: right; font-size: 0.9rem; color: var(--text-soft); }
.footer-meta p { margin: 0 0 4px; }
.footer-meta strong { color: var(--text); }

/* ---------- Responsive ---------- */
.hero-grid > *, .band-grid > *, .about > *, .contact-inner > *, .feature > * { min-width: 0; }
.hero h1, .lead { overflow-wrap: break-word; }
@media (max-width: 1020px) {
  .hero-grid, .band-grid, .about, .contact-inner, .feature { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 48px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
  .feature { padding: 36px; gap: 32px; }
}
@media (max-width: 820px) {
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 68px 0; }
  .grid-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 28px 22px; }
  .trace-body li { grid-template-columns: 62px 1fr; gap: 10px; font-size: 0.88rem; }
  .trace-body li:not(:last-child)::after { left: 30px; }
  .footer-meta { text-align: left; }
  .brand-sub { letter-spacing: 0.4em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.brand-name, .btn-small { white-space: nowrap; }
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .brand-name { font-size: 1.02rem; letter-spacing: 0.1em; }
  .btn-small { padding: 8px 12px; font-size: 0.82rem; }
  .brand img { width: 36px; }
}

/* White-box section */
.wb-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.wb-detail h3 { font-size: 1.2rem; }
.wb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.wb-list li { position: relative; padding-left: 22px; font-size: 0.98rem; color: var(--text-soft); }
.wb-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.wb-note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: var(--radius); padding: 24px 26px; }
.wb-note h3 { margin-bottom: 8px; }
.wb-note p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }
.wb-detail > * { min-width: 0; }
@media (max-width: 1020px) { .wb-detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .wb-list { grid-template-columns: minmax(0, 1fr); } }
