/* ─────────────────────────────────────────────────────────────
   ProxyScrape · styles.css
   Palette: deep void + electric cyan + amber accent
   Fonts: IBM Plex Mono (display) · Manrope (body)
───────────────────────────────────────────────────────────── */

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void:      #05080f;
  --surface:   #0b0f1a;
  --surface2:  #111827;
  --border:    #1c2537;
  --border2:   #253047;

  --cyan:      #00e5c8;
  --cyan-dim:  #00b8a0;
  --cyan-glow: rgba(0, 229, 200, 0.18);
  --amber:     #f5a623;
  --amber-dim: #c07d10;

  --text:      #e8eef7;
  --text-mid:  #8898b3;
  --text-dim:  #4a5568;

  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Manrope', sans-serif;

  --radius: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.15; font-weight: 800; }
p { color: var(--text-mid); }
a { text-decoration: none; color: inherit; }
em { font-style: normal; color: var(--cyan); }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav.scrolled { background: rgba(5, 8, 15, 0.97); }
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 4px;
}
.logo-bracket { color: var(--cyan); }
.logo-full { margin-left: 6px; }

.nav__links {
  list-style: none;
  display: flex; gap: 2rem; align-items: center;
}
.nav__links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--cyan) !important;
  color: var(--void) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background var(--transition) !important;
}
.nav__cta:hover { background: var(--cyan-dim) !important; }

.nav__burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-mid);
  transition: var(--transition);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 0;
  align-items: center;
  padding: 100px 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero__grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 200, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 200, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero__inner { position: relative; z-index: 1; padding-right: 3rem; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  background: rgba(0, 229, 200, 0.08);
  border: 1px solid rgba(0, 229, 200, 0.22);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease both;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
}
.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: revealLine 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__title-line:nth-child(1) { animation-delay: 0.15s; }
.hero__title-line:nth-child(2) { animation-delay: 0.3s; color: var(--cyan); }
.hero__title-line:nth-child(3) { animation-delay: 0.45s; }

.hero__desc {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s both;
}

.hero__actions {
  display: flex; gap: 1rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.75s both;
}

.hero__stats {
  display: flex; align-items: center; gap: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.9s both;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.stat__unit { font-family: var(--mono); color: var(--cyan); font-size: 1.4rem; }
.stat__label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.stat__div { width: 1px; height: 40px; background: var(--border2); }

/* ── TERMINAL ─────────────────────────────────────────────── */
.hero__terminal {
  position: relative; z-index: 1;
  background: #080d18;
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s both;
  align-self: center;
  box-shadow: 0 0 60px rgba(0, 229, 200, 0.06), 0 24px 80px rgba(0,0,0,0.5);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febb2f; }
.term-dot.g { background: #28ca41; }
.term-title { font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); margin-left: 8px; }
.term-body {
  padding: 1.2rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.9;
  min-height: 260px;
  color: #c5d0e8;
}
.term-line { display: block; opacity: 0; animation: termAppear 0.1s ease forwards; }
.term-line.cmd { color: var(--cyan); }
.term-line.ok  { color: #28ca41; }
.term-line.dim { color: var(--text-dim); }
.term-line.warn { color: var(--amber); }
.term-cursor::after {
  content: '▋';
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  transition: var(--transition);
}
.btn--primary {
  background: var(--cyan);
  color: var(--void);
}
.btn--primary:hover { background: var(--cyan-dim); transform: translateY(-2px); box-shadow: 0 8px 24px var(--cyan-glow); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--xl { padding: 16px 36px; font-size: 0.95rem; }

/* ── SECTION SHARED ───────────────────────────────────────── */
.section { padding: 100px 2rem; }
.section__inner { max-width: 1200px; margin: 0 auto; }
.section__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  opacity: 0.8;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.section__title--center { text-align: center; }
.section__sub { text-align: center; max-width: 520px; margin: 0 auto 4rem; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.88rem;
  color: var(--cyan);
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 12px; }

/* ── OVERVIEW ─────────────────────────────────────────────── */
.overview { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.overview__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.overview__text p { margin-bottom: 1.2rem; }
.overview__text .section__title { margin-bottom: 1.5rem; }

.data-flow {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 1rem;
  align-items: center;
}
.df-node {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  padding: 9px 14px; border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text-mid);
  transition: var(--transition);
  animation: fadeUp 0.5s ease calc(var(--i) * 0.12s) both;
}
.df-node--source { border-left: 2px solid var(--amber); }
.df-node--core {
  grid-column: 2; grid-row: 1 / 4;
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 200, 0.06);
  position: relative;
  padding: 1.2rem 0.5rem;
  display: flex; align-items: center; justify-content: center;
}
.df-core-label { font-size: 0.68rem; text-align: center; line-height: 1.5; z-index: 1; }
.df-core-ring {
  position: absolute; inset: -6px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 200, 0.2);
  animation: ringPulse 3s ease-in-out infinite;
}
.df-connector { display: none; }
.df-node--out { border-right: 2px solid var(--cyan); }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how { background: var(--void); }
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  margin-top: 3.5rem;
}
.pipeline__track {
  position: absolute;
  top: 44px; left: 44px; right: 44px; height: 1px;
  background: linear-gradient(90deg, var(--border2), var(--cyan), var(--border2));
  z-index: 0;
}
.pipeline__step {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  transition: var(--transition);
}
.pipeline__step::before {
  content: attr(data-step);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.4rem;
}
.pipeline__step:hover {
  border-color: var(--border2);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--cyan-glow);
}
.step__icon {
  font-size: 1.8rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
  width: 52px; height: 52px;
  background: rgba(0, 229, 200, 0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pipeline__step h3 { font-size: 1rem; margin-bottom: 0.8rem; color: var(--text); font-weight: 700; }
.pipeline__step p { font-size: 0.85rem; }

/* ── FEATURES ─────────────────────────────────────────────── */
.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3.5rem;
}
.feat-card {
  background: var(--surface2);
  padding: 2rem;
  transition: background var(--transition);
  position: relative;
}
.feat-card:hover { background: #131d30; }
.feat-card--large {
  grid-column: span 2;
  grid-row: span 1;
  background: var(--void);
  border-right: 1px solid var(--border);
}
.feat-card--wide {
  grid-column: span 3;
  background: var(--void);
}
.feat-card__tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  background: rgba(0, 229, 200, 0.08);
  border: 1px solid rgba(0, 229, 200, 0.2);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.feat-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; color: var(--text); }
.feat-card p { font-size: 0.88rem; }
.feat-card__metric {
  margin-top: 1.5rem;
  display: flex; align-items: baseline; gap: 8px;
}
.metric-val { font-family: var(--mono); font-size: 2rem; color: var(--amber); font-weight: 500; }
.metric-label { font-size: 0.78rem; color: var(--text-dim); }

.feat-bars { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 12px; }
.feat-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; font-family: var(--mono); font-size: 0.72rem; color: var(--text-mid);
}
.feat-bar::before {
  content: '';
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) var(--w), var(--border2) var(--w));
  border-radius: 2px;
  order: 2;
}
.feat-bar span:first-child { order: 1; min-width: 52px; }
.feat-bar span:last-child { order: 3; min-width: 38px; text-align: right; color: var(--text-dim); }

/* ── USE CASES ────────────────────────────────────────────── */
.usecases { background: var(--void); }
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.uc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.uc-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.uc-card__num {
  position: absolute; top: 1.6rem; right: 1.8rem;
  font-family: var(--mono);
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}
.uc-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 0.7rem; font-weight: 700; }
.uc-card p { font-size: 0.88rem; margin-bottom: 1.5rem; }
.uc-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.uc-card__tags span {
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--amber); background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.2);
  padding: 4px 10px; border-radius: 4px;
}

/* ── RELIABILITY ──────────────────────────────────────────── */
.reliability { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reliability__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.reliability__left p { margin-bottom: 1.8rem; }
.reliability__left .section__title { margin-bottom: 1.5rem; }
.rel-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rel-list li { font-size: 0.9rem; color: var(--text-mid); display: flex; align-items: flex-start; gap: 10px; }
.rel-check { color: var(--cyan); flex-shrink: 0; font-weight: 700; }

.reliability__right {
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
}
.perf-dial { width: 200px; height: 200px; }
.dial-svg { width: 100%; height: 100%; }
.dial-track {
  fill: none; stroke: var(--border2); stroke-width: 8;
  stroke-dasharray: 502; stroke-dashoffset: 126; /* 3/4 arc */
  stroke-linecap: round;
  transform: rotate(135deg); transform-origin: center;
}
.dial-fill {
  fill: none; stroke: var(--cyan); stroke-width: 8;
  stroke-dasharray: 502; stroke-dashoffset: 504;
  stroke-linecap: round;
  transform: rotate(135deg); transform-origin: center;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px var(--cyan));
}
.dial-fill.active { stroke-dashoffset: 128; }
.dial-pct { font-family: var(--mono); font-size: 2.4rem; font-weight: 500; fill: var(--text); }
.dial-sub { font-family: var(--sans); font-size: 0.78rem; fill: var(--text-dim); }

.perf-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: 100%; }
.perf-metric { text-align: center; }
.pm-val { font-family: var(--mono); font-size: 1.1rem; color: var(--cyan); display: block; margin-bottom: 4px; }
.pm-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; }

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  background: var(--void);
  padding: 120px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta__glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 200, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta__title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.2rem; }
.cta__desc { font-size: 1.05rem; max-width: 480px; margin: 0 auto 2.5rem; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact { background: var(--surface); border-top: 1px solid var(--border); }
.contact__cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px; margin: 3.5rem auto 0;
}
.contact__card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  display: flex; gap: 1.4rem; align-items: flex-start;
  transition: var(--transition);
}
.contact__card:hover { border-color: var(--border2); transform: translateY(-4px); }
.contact__avatar {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan-dim), rgba(0, 229, 200, 0.3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: 0.9rem;
  color: var(--void); flex-shrink: 0;
}
.contact__info { display: flex; flex-direction: column; gap: 4px; }
.contact__info h3 { font-size: 1rem; color: var(--text); font-weight: 700; }
.contact__role { font-size: 0.76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.contact__email {
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--cyan); margin-top: 8px;
  word-break: break-all;
  transition: color var(--transition);
}
.contact__email:hover { color: var(--cyan-dim); text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--void);
  border-top: 1px solid var(--border);
  padding: 1.4rem 2rem;
}
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer__copy { font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealLine {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 200, 0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 229, 200, 0); }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes termAppear { from { opacity: 0; } to { opacity: 1; } }
@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

/* scroll reveal */
[data-sr] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-sr].visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }
  .hero__inner { padding-right: 0; }
  .hero__terminal { display: none; }
  .overview__layout,
  .reliability__layout { grid-template-columns: 1fr; gap: 3rem; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline__track { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .feat-card--large,
  .feat-card--wide { grid-column: span 1; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    z-index: 99;
    animation: fadeUp 0.25s ease both;
  }
  .hero__stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat__div { display: none; }
  .pipeline { grid-template-columns: 1fr; }
  .usecases__grid { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .contact__card { flex-direction: column; }
  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}