/* ===================================================================
   FoxProxy — design tokens
   Palette: warm near-black + the logo's own fox-orange, no cliché
   cream/serif or acid-green/near-black defaults. Signature element:
   the "wall & path" diagram — a proxy is a route around a blockage,
   so that's the one thing on this page that gets to be loud.
=================================================================== */
:root{
  --bg: #14100C;
  --surface: #1C1712;
  --surface-2: #241D15;
  --border: rgba(245, 236, 226, 0.10);
  --border-strong: rgba(245, 236, 226, 0.18);

  --fox: #E2691A;
  --fox-bright: #FF8A3D;
  --ember: #F5A855;
  --ember-dim: #C98A4A;

  --text: #F3ECE2;
  --text-muted: #ADA093;
  --text-faint: #79695C;

  --signal: #4ADE80;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 15% -10%, rgba(226,105,26,0.16), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(245,168,85,0.08), transparent 55%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

img{ max-width:100%; display:block; }
a{ color: inherit; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p{ margin: 0; }
:focus-visible{ outline: 2px solid var(--fox-bright); outline-offset: 3px; border-radius: 4px; }

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ember); display:flex; align-items:center; gap:8px; margin-bottom: 14px;
}
.eyebrow::before{ content:""; width:7px; height:7px; border-radius:50%; background: var(--fox); box-shadow: 0 0 0 4px rgba(226,105,26,0.18); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 40;
  background: rgba(20,16,12,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap{ height: 68px; display:flex; align-items:center; justify-content:space-between; gap: 20px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ height: 34px; width:auto; }
.brand span{ font-family: var(--font-display); font-weight:700; font-size: 19px; letter-spacing: -0.01em; }
.main-nav{ display:flex; align-items:center; gap: 26px; }
.main-nav a{ text-decoration:none; color: var(--text-muted); font-size: 14.5px; }
.main-nav a:hover{ color: var(--text); }
.header-cta{ display:none; }
@media (min-width: 860px){ .header-cta{ display:inline-flex; } }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: 999px; text-decoration:none; border: 1px solid transparent;
  cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(180deg, var(--fox-bright), var(--fox));
  color: #17110A; box-shadow: 0 10px 26px -10px rgba(226,105,26,0.65);
}
.btn-primary:hover{ box-shadow: 0 12px 30px -8px rgba(226,105,26,0.8); transform: translateY(-1px); }
.btn-ghost{
  background: transparent; border-color: var(--border-strong); color: var(--text);
}
.btn-ghost:hover{ background: rgba(245,236,226,0.05); }
.btn-lg{ padding: 16px 30px; font-size: 16.5px; }

/* ---------- Hero ---------- */
.hero{ padding: 76px 0 64px; }
.hero .wrap{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:center; }
@media (max-width: 900px){ .hero .wrap{ grid-template-columns: 1fr; } }
.hero h1{ font-size: clamp(36px, 5vw, 58px); }
.hero h1 .accent{ color: var(--fox-bright); }
.hero .lede{ margin-top:18px; font-size: 18px; color: var(--text-muted); max-width: 46ch; }
.hero .cta-row{ margin-top: 30px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.hero .cta-note{ margin-top:14px; font-family: var(--font-mono); font-size:12.5px; color: var(--text-faint); }

.diagram-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 30px 60px -35px rgba(0,0,0,0.8);
}
.diagram-card svg{ width:100%; height:auto; display:block; }
.diagram-caption{ margin-top:14px; font-family: var(--font-mono); font-size:12px; color: var(--text-faint); text-align:center; }

/* moving packet dot animation along the path */
.pkt{ offset-rotate: 0deg; animation: travel 3.6s cubic-bezier(.6,.1,.3,1) infinite; }
@keyframes travel{
  0%{ offset-distance: 0%; opacity: 0; }
  8%{ opacity:1; }
  92%{ opacity:1; }
  100%{ offset-distance: 100%; opacity:0; }
}

/* ---------- Stat strip ---------- */
.stat-strip{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background: rgba(255,255,255,0.015); }
.stat-strip .wrap{ display:grid; grid-template-columns: repeat(4,1fr); gap: 0; padding: 26px 24px; }
.stat{ text-align:center; padding: 6px 10px; border-left: 1px solid var(--border); }
.stat:first-child{ border-left:none; }
.stat .n{ font-family: var(--font-mono); font-size: clamp(22px,3vw,30px); font-weight:700; color: var(--fox-bright); }
.stat .l{ margin-top:6px; font-size:12.5px; color: var(--text-muted); letter-spacing:.02em; }
@media (max-width: 700px){ .stat-strip .wrap{ grid-template-columns: repeat(2,1fr); row-gap:22px; } .stat:nth-child(3){ border-left:none; } }

/* ---------- Sections ---------- */
.section{ padding: 84px 0; }
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(26px,3.4vw,36px); }
.section-head p{ margin-top:12px; color: var(--text-muted); font-size:16.5px; }

.feature-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:18px; }
@media (max-width: 980px){ .feature-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .feature-grid{ grid-template-columns: 1fr; } }
.feature{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px;
}
.feature .ic{ width:38px; height:38px; color: var(--fox-bright); }
.feature h3{ margin-top:16px; font-size:17px; }
.feature p{ margin-top:8px; font-size:14.5px; color: var(--text-muted); }

/* ---------- Platform tabs ---------- */
.tabs{ display:flex; gap:8px; flex-wrap:wrap; border-bottom:1px solid var(--border); padding-bottom: 4px; margin-bottom: 28px; }
.tab-btn{
  font-family: var(--font-body); font-weight:600; font-size:14.5px; color: var(--text-muted);
  background:transparent; border:none; padding: 11px 16px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor:pointer; position:relative; top:1px;
}
.tab-btn[aria-selected="true"]{ color: var(--text); border-bottom: 2px solid var(--fox-bright); }
.tab-btn:hover{ color: var(--text); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }
.steps{ list-style:none; margin:0; padding:0; counter-reset: step; display:grid; gap:14px; }
.steps li{
  counter-increment: step; display:flex; gap:16px; align-items:flex-start;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); padding:16px 18px;
}
.steps li::before{
  content: counter(step); font-family: var(--font-mono); font-weight:700; font-size:13px;
  width:26px; height:26px; flex:none; border-radius:50%; background: rgba(226,105,26,0.16); color: var(--fox-bright);
  display:flex; align-items:center; justify-content:center;
}
.steps li p{ color: var(--text-muted); font-size:15px; }
.steps li strong{ color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list{ display:grid; gap:10px; max-width: 800px; }
.faq-item{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); overflow:hidden; }
.faq-item summary{
  cursor:pointer; list-style:none; padding: 18px 20px; font-weight:600; font-size:15.5px;
  display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-family: var(--font-mono); color: var(--fox-bright); font-size:20px; flex:none; }
.faq-item[open] summary::after{ content:"−"; }
.faq-item .a{ padding: 0 20px 20px; color: var(--text-muted); font-size:15px; }

/* ---------- CTA band ---------- */
.cta-band{
  margin: 0 24px; border-radius: 24px; padding: 56px 40px; text-align:center;
  background: linear-gradient(160deg, rgba(226,105,26,0.18), rgba(226,105,26,0.03));
  border:1px solid var(--border-strong);
}
.cta-band h2{ font-size: clamp(24px,3.2vw,34px); }
.cta-band p{ margin-top:12px; color: var(--text-muted); }
.cta-band .btn{ margin-top:26px; }

/* ---------- Article / SEO page content ---------- */
.article{ padding: 56px 0 90px; }
.article .wrap{ max-width: 760px; }
.article h1{ font-size: clamp(30px,4vw,44px); }
.article .dek{ margin-top:16px; font-size:18px; color: var(--text-muted); }
.article .meta{ margin-top:18px; font-family: var(--font-mono); font-size:12.5px; color: var(--text-faint); }
.article .body{ margin-top:38px; display:grid; gap:22px; font-size:16.5px; }
.article .body h2{ font-size:24px; margin-top:14px; }
.article .body h3{ font-size:19px; }
.article .body p{ color: var(--text-muted); }
.article .body ul, .article .body ol{ color: var(--text-muted); padding-left: 22px; display:grid; gap:8px; }
.article .body strong{ color: var(--text); }
.article .callout{
  background: var(--surface); border:1px solid var(--border); border-left:3px solid var(--fox);
  border-radius: var(--radius-sm); padding: 18px 20px; font-size:15.5px; color: var(--text-muted);
}
.related{ margin-top:50px; padding-top:30px; border-top:1px solid var(--border); }
.related h2{ font-size:18px; margin-bottom:16px; }
.related ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.related a{ text-decoration:none; color: var(--fox-bright); font-weight:600; font-size:15px; }
.related a:hover{ text-decoration:underline; }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--border); padding: 54px 0 34px; margin-top: 40px; }
.site-footer .cols{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width:700px){ .site-footer .cols{ grid-template-columns: 1fr; } }
.site-footer h4{ font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--text-faint); margin-bottom:14px; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.site-footer a{ text-decoration:none; color: var(--text-muted); font-size:14.5px; }
.site-footer a:hover{ color: var(--text); }
.site-footer .bottom{ margin-top: 44px; padding-top: 22px; border-top:1px solid var(--border); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color: var(--text-faint); }
