/* =====================================================================
   WebProxy — landing page styles
   Theme: warm dark (Claude-inspired) with terracotta accent
   ===================================================================== */

:root {
  --bg: #1f1e1c;
  --bg-2: #262624;
  --bg-3: #2b2a28;
  --panel: #2f2e2b;
  --panel-2: #353330;
  --border: #3a3835;
  --border-soft: #2f2d2a;

  --text: #efece1;
  --text-soft: #c2bfb3;
  --text-muted: #8a8780;

  --accent: #d97757;
  --accent-2: #c96849;
  --accent-soft: rgba(217, 119, 87, 0.16);
  --accent-ink: #1f1e1c;

  --ok: #6fb796;
  --no: #c97565;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.02), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.03), 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow:
    0 0 0 1px rgba(217, 119, 87, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(217, 119, 87, 0.12);

  --max: 1180px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  background: rgba(31, 30, 28, 0.7);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { width: 22px; height: 22px; color: var(--accent); }
.brand-name { font-size: 17px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  font-size: 14.5px;
  color: var(--text-soft);
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: var(--text); }

.header-cta { display: flex; gap: 10px; align-items: center; }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--text-soft);
}
.menu-btn:hover { background: var(--panel); color: var(--text); }
.menu-btn svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 18px;
  gap: 4px;
  border-top: 1px solid var(--border-soft);
}
.mobile-nav a {
  padding: 12px 6px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-soft);
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}
.btn-ghost:hover { background: var(--panel); border-color: #4a4844; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  padding: 80px 0 56px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(217, 119, 87, 0.18), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(217, 119, 87, 0.06), transparent 60%),
    radial-gradient(500px 400px at 10% 30%, rgba(180, 90, 60, 0.06), transparent 60%);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--text-soft);
}
.badge.faint { color: var(--text-muted); }
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(111, 183, 150, 0.12);
}
.badge .dot.live { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(111, 183, 150, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(111, 183, 150, 0.18); }
}

.headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.accented {
  color: var(--accent);
  font-style: italic;
}

.subhead {
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 0 36px;
}

/* Proxy form card */
.proxy-card {
  width: 100%;
  max-width: 720px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-glow);
  transition: border-color 0.15s ease;
}
.proxy-card:focus-within {
  border-color: rgba(217, 119, 87, 0.5);
}

.proxy-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.proxy-input-icon {
  width: 18px; height: 18px;
  color: var(--text-muted);
  flex: 0 0 18px;
}
.proxy-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.proxy-input input::placeholder { color: var(--text-muted); }

.proxy-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}
.go-btn { padding: 0 22px; height: 46px; }

/* Region select */
.region-select { position: relative; }
.region-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-soft);
  font-size: 13.5px;
  transition: background 0.12s ease, color 0.12s ease;
}
.region-btn:hover { background: var(--panel); color: var(--text); }
.region-icon { width: 14px; height: 14px; opacity: 0.85; }
.region-tag { font-size: 11.5px; color: var(--text-muted); }
.chev { width: 12px; height: 12px; transition: transform 0.15s ease; }
.region-select.open .chev { transform: rotate(180deg); }

.region-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  display: none;
  z-index: 10;
}
.region-select.open .region-menu { display: block; }
.region-menu li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.region-menu li:hover { background: var(--panel); color: var(--text); }
.region-menu li.active { color: var(--text); }
.region-menu li.active::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  margin-right: 8px;
}
.region-menu li span { font-size: 11.5px; color: var(--text-muted); }

.hero-fineprint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.hero-fineprint a {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
.hero-fineprint a:hover { color: var(--text); }

/* Quick chips */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.chip:hover {
  background: var(--panel);
  color: var(--text);
  border-color: #4a4844;
}

/* Stats strip */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.stat { text-align: center; min-width: 110px; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* =====================================================================
   Sections
   ===================================================================== */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border-soft);
}
.section-soft {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(217, 119, 87, 0.05), transparent 60%),
    var(--bg-2);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head.left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head .lede {
  font-size: 16.5px;
  color: var(--text-soft);
  margin: 0;
}

/* Card */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.card:hover {
  border-color: #4a4844;
  background: var(--bg-3);
}

/* Grid */
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.steps { grid-template-columns: repeat(3, 1fr); }

/* Feature */
.feature h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }

/* Steps */
.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.step-num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.compare-copy h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.compare-copy p { color: var(--text-soft); margin: 0 0 20px; }
.check-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
  font-size: 14.5px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 4px, transparent 5px) ,
    var(--accent-soft);
}

.compare-table { padding: 0; overflow: hidden; }
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div:not(:first-child) { text-align: center; }
.compare-head {
  background: var(--panel);
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding-top: 12px; padding-bottom: 12px;
}
.compare-row .ok { color: var(--ok); font-weight: 500; }
.compare-row .no { color: var(--no); font-weight: 500; }

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.faq-item[open] {
  background: var(--bg-2);
  border-color: #4a4844;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--text-soft);
  font-size: 16px;
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  line-height: 1;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
  border-color: var(--accent);
}
.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* CTA */
.cta-section { padding: 56px 0 96px; border-top: 1px solid var(--border-soft); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(217, 119, 87, 0.16), transparent 60%),
    var(--bg-2);
}
.cta-inner h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.cta-inner p { margin: 0; color: var(--text-soft); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 24px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-tag {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  max-width: 320px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .primary-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .features { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 64px 0; }
  .stats-strip { gap: 18px; margin-top: 40px; }
  .divider { display: none; }
  .proxy-controls { flex-direction: column; align-items: stretch; }
  .region-btn { justify-content: flex-start; height: 44px; }
  .go-btn { width: 100%; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* =====================================================================
   Blog
   ===================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 18px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.blog-card:hover { transform: translateY(-2px); }
.blog-card:hover .blog-link {
  color: var(--accent);
  gap: 10px;
}

.blog-featured {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-rows: 280px auto;
}

.blog-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.featured-thumb {
  aspect-ratio: auto;
  height: 100%;
}

.thumb-pattern {
  position: absolute;
  inset: 0;
}
.pattern-1 {
  background:
    radial-gradient(600px 320px at 30% 30%, rgba(217, 119, 87, 0.55), transparent 60%),
    radial-gradient(500px 300px at 80% 80%, rgba(180, 90, 60, 0.45), transparent 60%),
    linear-gradient(135deg, #2f2622, #1f1e1c);
}
.pattern-1::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 50%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 50%, transparent 80%);
}
.pattern-2 {
  background:
    radial-gradient(380px 240px at 70% 30%, rgba(217, 119, 87, 0.4), transparent 60%),
    linear-gradient(135deg, #2c2a27, #1f1e1c);
}
.pattern-2::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 16px);
}
.pattern-3 {
  background:
    radial-gradient(380px 220px at 30% 70%, rgba(111, 183, 150, 0.28), transparent 60%),
    radial-gradient(380px 220px at 70% 30%, rgba(217, 119, 87, 0.28), transparent 60%),
    linear-gradient(135deg, #262624, #1f1e1c);
}
.pattern-4 {
  background:
    conic-gradient(from 200deg at 70% 50%, rgba(217, 119, 87, 0.5), transparent 50%),
    linear-gradient(135deg, #2a2725, #1f1e1c);
}
.pattern-4::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.pattern-5 {
  background:
    radial-gradient(420px 240px at 50% 100%, rgba(217, 119, 87, 0.35), transparent 60%),
    linear-gradient(135deg, #2a2826, #1f1e1c);
}
.pattern-5::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 24px);
}
.pattern-6 {
  background:
    radial-gradient(380px 220px at 80% 30%, rgba(217, 119, 87, 0.5), transparent 55%),
    linear-gradient(135deg, #2c2926, #1f1e1c);
}
.pattern-6::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 12px);
}

.blog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(31, 30, 28, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.blog-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-featured .blog-body { padding: 28px; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.blog-cat {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11.5px;
}
.blog-dot { opacity: 0.5; }

.blog-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.blog-featured h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
}
.blog-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s ease, gap 0.15s ease;
}
.blog-link svg { width: 14px; height: 14px; }

.blog-foot {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured {
    grid-column: span 2;
    grid-row: span 1;
    grid-template-rows: 220px auto;
  }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-column: span 1; grid-template-rows: 200px auto; }
  .blog-featured .blog-body { padding: 22px; }
}

/* =====================================================================
   Proxy viewer overlay
   ===================================================================== */
body.proxy-open { overflow: hidden; }

.proxy-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.proxy-view[hidden] { display: none !important; }

.proxy-bar {
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.proxy-bar-left,
.proxy-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}
.proxy-bar-right { justify-content: flex-end; }
.proxy-bar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.proxy-btn {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.proxy-btn:hover {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}
.proxy-btn svg { width: 16px; height: 16px; }

.proxy-status {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.proxy-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proxy-secured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ok);
}
.proxy-secured svg { width: 14px; height: 14px; }

.proxy-stage {
  flex: 1;
  position: relative;
  background: var(--bg);
}
.proxy-stage iframe,
.proxy-stage > * {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: #fff;
}
/* The loader sits on top of the iframe until the iframe has loaded */
.proxy-stage .proxy-loader {
  background: var(--bg) !important;
  z-index: 5;
}

@media (max-width: 720px) {
  .proxy-url { max-width: 50vw; font-size: 12px; }
  .proxy-bar-left, .proxy-bar-right { min-width: 0; }
  .proxy-secured { display: none; }
}

/* =====================================================================
   Use cases grid (links to per-site landing pages)
   ===================================================================== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.usecase-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.usecase-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 120px; height: 120px;
  background: radial-gradient(circle at 80% 20%, var(--c, var(--accent)) 0%, transparent 60%);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.usecase-card:hover::before { opacity: 0.28; }
.usecase-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--accent)) 22%, transparent);
}
.usecase-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.usecase-meta {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 980px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usecase-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Proxy loader — animated, branded, mid-screen with progress bar
   ===================================================================== */

/* Top progress bar */
.proxy-progress {
  position: relative;
  height: 2px;
  background: var(--border-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.proxy-progress-bar {
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  animation: progress-slide 1.6s ease-in-out infinite;
}
.proxy-progress.done .proxy-progress-bar {
  animation: none;
  transform: translateX(0);
  width: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
@keyframes progress-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* Centered loader card */
.proxy-loader {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  color: var(--text);
  transition: opacity 0.3s ease;
  z-index: 2;
}
.proxy-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Orbiting rings around the brand mark */
.loader-orbit {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-core {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2));
  color: #1f1e1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px rgba(217, 119, 87, 0.12),
    0 0 50px rgba(217, 119, 87, 0.45);
  animation: core-pulse 2s ease-in-out infinite;
}
.orbit-core svg { width: 30px; height: 30px; }
@keyframes core-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 6px rgba(217, 119, 87, 0.12),
      0 0 50px rgba(217, 119, 87, 0.45);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 0 10px rgba(217, 119, 87, 0.06),
      0 0 70px rgba(217, 119, 87, 0.6);
  }
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(217, 119, 87, 0.35);
  border-top-color: rgba(217, 119, 87, 0.9);
  animation: orbit-spin var(--d, 2s) linear infinite;
}
.orbit-ring.r1 { width: 80px;  height: 80px;  --d: 1.6s; }
.orbit-ring.r2 { width: 110px; height: 110px; --d: 2.4s; animation-direction: reverse; opacity: 0.65; }
.orbit-ring.r3 { width: 140px; height: 140px; --d: 3.2s; opacity: 0.4; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* Status text */
.loader-text { text-align: center; max-width: 400px; }
.loader-step {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
  min-height: 28px;
  transition: opacity 0.18s ease;
}
.loader-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  min-height: 18px;
  transition: opacity 0.18s ease;
}

/* Checklist of steps */
.loader-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13px;
}
.loader-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.loader-checks li.done { color: var(--text); }
.loader-checks li.active { color: var(--text); }
.lc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.loader-checks li.active .lc-dot {
  border-color: var(--accent);
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.loader-checks li.done .lc-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.loader-checks li.done .lc-dot::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1e1c' stroke-width='3.5'><path d='M5 12l5 5 9-10'/></svg>") center/contain no-repeat;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(217, 119, 87, 0); }
}

@media (max-width: 560px) {
  .loader-orbit { width: 110px; height: 110px; }
  .orbit-ring.r1 { width: 64px; height: 64px; }
  .orbit-ring.r2 { width: 88px; height: 88px; }
  .orbit-ring.r3 { width: 110px; height: 110px; }
  .orbit-core { width: 42px; height: 42px; }
  .orbit-core svg { width: 22px; height: 22px; }
  .loader-step { font-size: 18px; }
  .loader-checks { grid-template-columns: 1fr; }
}
