/* ==========================================================================
   ECOPC.NZ: Anvil Solutions refurbished hardware & IT recycling microsite
   Dark glassmorphism "SOC dashboard" aesthetic: Space Grotesk + Barlow
   Condensed, red/cyan/gold accents, glass panels, scanlines.
   ========================================================================== */
:root {
  --bg:     #07090f;
  --bg2:    #0d1120;
  --bg3:    #10142a;
  --red:    #e8001d;
  --red2:   #ff3348;
  --cyan:   #00d4f0;
  --gold:   #ffb830;
  --green:  #00e87a;
  --text:   #e8eaf0;
  --muted:  rgba(232,234,240,0.55);
  --glass:  rgba(255,255,255,0.05);
  --glass2: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.10);
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   30px;
}

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

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.section-inner {
  position: relative; z-index: 2;
  width: min(1200px, 90vw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) 0;
}
.section-tight .section-inner { padding-top: 0; padding-bottom: clamp(40px, 6vw, 70px); }

/* ---------- ambient glow -------------------------------------------------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-fx::before, .bg-fx::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px);
}
.bg-fx::before {
  width: 60vw; height: 60vw; top: -22vw; left: -18vw;
  background: radial-gradient(circle, rgba(232,0,29,0.22), transparent 70%);
}
.bg-fx::after {
  width: 50vw; height: 50vw; bottom: -10vw; right: -15vw;
  background: radial-gradient(circle, rgba(0,212,240,0.14), transparent 70%);
}

/* ---------- typography ---------------------------------------------------- */
.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem;
  font-weight: 600; color: var(--cyan); margin-bottom: 14px;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); margin-bottom: 24px;
}
.eyebrow-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red2);
  box-shadow: 0 0 8px var(--red2); animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.75); } }

h1 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.01em;
  color: #fff; text-wrap: balance; margin-bottom: 22px;
}
h2 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.04; color: #fff;
  margin-bottom: 16px; text-wrap: balance;
}
h3 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 1.3rem; color: #fff; margin-bottom: 6px;
}
.accent-red { color: var(--red2); font-style: italic; }
.accent-cyan { color: var(--cyan); font-style: italic; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(232,234,240,0.82); max-width: 58ch; line-height: 1.7; }
.fineprint { margin-top: 20px; color: var(--muted); font-size: 0.84rem; }
.muted { color: var(--muted); font-size: 0.86rem; }

/* ---------- nav ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,9,15,0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1200px, 92vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark img { display: block; height: 26px; width: auto; mix-blend-mode: screen; }
.brand-sep { width: 1px; height: 20px; background: var(--border); }
.brand-sub { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.95rem; color: #fff; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

/* ---------- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.96rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.btn-red { background: linear-gradient(135deg, var(--red), var(--red2)); color: #fff; box-shadow: 0 8px 28px rgba(232,0,29,0.4); }
.btn-red:hover { box-shadow: 0 12px 36px rgba(232,0,29,0.6); }
.btn-ghost { background: var(--glass); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--glass2); }

/* ---------- hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding-top: clamp(20px, 4vw, 40px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/hero-ewaste.jpg") center / cover no-repeat;
  filter: saturate(1.05) brightness(.55);
  transform: scale(1.04); animation: heroZoom 26s ease-in-out infinite alternate;
}
.hero-bg::after {
  position: absolute; inset: 0; content: "";
  background:
    linear-gradient(115deg, rgba(232, 0, 29, .22), transparent 42%),
    linear-gradient(180deg, rgba(0, 212, 240, .1), transparent 70%),
    linear-gradient(100deg, rgba(7, 9, 15, .9) 0%, rgba(7, 9, 15, .6) 48%, rgba(7, 9, 15, .35) 100%),
    linear-gradient(to top, rgba(7, 9, 15, .85) 0%, transparent 55%);
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; transform: none; } }
.hero-grid { position: relative; z-index: 2; }
.hero-scanlines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background: repeating-linear-gradient(0deg, #fff 0px, #fff 1px, transparent 1px, transparent 3px);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-stats { display: flex; flex-direction: column; gap: 14px; }

.stat-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 20px 22px; border-left: 3px solid var(--border);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-red { border-left-color: var(--red2); }
.stat-cyan { border-left-color: var(--cyan); }
.stat-gold { border-left-color: var(--gold); }
.stat-green { border-left-color: var(--green); }
.stat-val { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 2.2rem; color: #fff; line-height: 1; }
.stat-val small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.stat-lbl { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* ---------- section head ---------------------------------------------------- */
.section-head { max-width: 76ch; margin-bottom: 48px; }

/* ---------- feature rows ----------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.feature-row { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.feature-grid .feature-row { margin-bottom: 0; }
.feature-icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.icon-red { background: rgba(232,0,29,0.14); color: var(--red2); }
.icon-cyan { background: rgba(0,212,240,0.14); color: var(--cyan); }
.icon-gold { background: rgba(255,184,48,0.14); color: var(--gold); }
.icon-green { background: rgba(0,232,122,0.14); color: var(--green); }
.feature-row p { color: rgba(232,234,240,0.75); font-size: 0.96rem; }

.callout {
  margin-top: 40px; padding: 26px 30px; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  max-width: 80ch;
}
.callout p { color: rgba(232,234,240,0.82); margin-bottom: 12px; font-size: 0.98rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- terminal panel --------------------------------------------------- */
.terminal-panel {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border);
}
.terminal-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-head .dot.red { background: var(--red2); }
.terminal-head .dot.gold { background: var(--gold); }
.terminal-head .dot.green { background: var(--green); }
.terminal-title { margin-left: 8px; color: var(--muted); font-size: 0.8rem; font-family: monospace; }
.terminal-body { padding: 22px 24px; font-family: "Space Grotesk", monospace; font-size: 0.88rem; }
.terminal-body p { margin-bottom: 9px; color: rgba(232,234,240,0.8); }
.t-muted { color: var(--muted); }
.t-red { color: var(--red2); }
.t-cyan { color: var(--cyan); font-weight: 600; }
.t-green { color: var(--green); font-weight: 600; }
.terminal-caption { margin-top: 18px; color: var(--muted); font-size: 0.92rem; text-align: center; }

/* ---------- compare table --------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col {
  padding: 30px 32px; border-radius: var(--r-md); border: 1px solid var(--border);
}
.compare-without { background: rgba(232,0,29,0.05); border-color: rgba(232,0,29,0.25); }
.compare-with { background: rgba(0,212,240,0.06); border-color: rgba(0,212,240,0.3); }
.compare-col h3 { margin-bottom: 18px; }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.compare-col li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: rgba(232,234,240,0.85); }
.glyph { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; margin-top: 1px; }
.glyph.no { background: rgba(232,0,29,0.18); color: var(--red2); }
.glyph.yes { background: rgba(0,232,122,0.18); color: var(--green); }

/* ---------- split panel / mosaic --------------------------------------------- */
.panel-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.mosaic { display: grid; gap: 12px; position: sticky; top: 100px; }
.mosaic-tile {
  height: 130px; border-radius: var(--r-md); border: 1px solid var(--border);
  display: flex; align-items: flex-end; padding: 16px; position: relative; overflow: hidden;
  transition: transform .3s;
}
.mosaic-tile:hover { transform: scale(1.04); }
.tile-1 { background: linear-gradient(135deg, rgba(232,0,29,0.22), rgba(13,17,32,0.6)); }
.tile-2 { background: linear-gradient(135deg, rgba(0,212,240,0.2), rgba(13,17,32,0.6)); height: 100px; }
.tile-3 { background: linear-gradient(135deg, rgba(255,184,48,0.2), rgba(13,17,32,0.6)); height: 160px; }
.mosaic-tag { font-size: 0.82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.tag-red { background: rgba(232,0,29,0.3); color: #fff; }
.tag-cyan { background: rgba(0,212,240,0.3); color: #fff; }
.tag-gold { background: rgba(255,184,48,0.3); color: #fff; }

.panel-copy .feature-row { margin-bottom: 28px; }
.trust-note { margin-top: 30px; padding: 20px 24px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 0.94rem; color: rgba(232,234,240,0.82); }
.trust-note strong { color: var(--gold); }

/* ---------- service cards (vibecoding: Bitdefender / Usecure) -------------------- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.service-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 32px; display: flex; flex-direction: column; gap: 4px;
}
.service-card .feature-icon { margin-bottom: 14px; }
.service-card h3 { font-size: 1.6rem; margin-bottom: 2px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 18px 0 6px; }
.service-list li {
  padding-left: 22px; position: relative; font-size: 0.94rem; color: rgba(232,234,240,0.82);
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--cyan);
}
.service-card:first-child .service-list li::before { background: var(--red2); }
.service-list.dot-green li::before { background: var(--green) !important; }
.service-list.dot-gold li::before { background: var(--gold) !important; }

/* ---------- faq accordion --------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.08rem; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--cyan); flex: 0 0 auto; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 22px 20px; color: rgba(232,234,240,0.78); font-size: 0.95rem; max-width: 75ch; }

/* ---------- pill cloud --------------------------------------------------------- */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--glass); font-size: 0.9rem; font-weight: 500; color: rgba(232,234,240,0.85);
}
.pill-hot { background: rgba(232,0,29,0.14); border-color: rgba(232,0,29,0.4); color: #fff; font-weight: 600; }
.beyond-note { margin-top: 32px; }
.beyond-note strong { color: var(--cyan); }

/* ---------- cta banner ----------------------------------------------------------- */
.cta-banner { position: relative; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-mesh {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(232,0,29,0.25), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0,212,240,0.2), transparent 55%),
    var(--bg2);
}
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow { text-align: center; }
.cta-inner .lead { margin: 0 auto 28px; }
.cta-inner h2 { max-width: 26ch; }

/* ---------- contact --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.contact-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 28px; display: flex; flex-direction: column; gap: 4px;
}
.contact-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 10px;
  text-decoration: none; color: var(--text); border-radius: var(--r-sm); transition: background .15s;
}
.contact-row:hover { background: var(--glass2); }
.contact-row-static:hover { background: none; }
.contact-ic { font-size: 1.3rem; flex: 0 0 26px; }
.contact-btn { margin-top: 12px; width: 100%; }

/* ---------- footer ----------------------------------------------------------------- */
.site-footer {
  position: relative; z-index: 2; width: min(1200px, 92vw); margin: 0 auto;
  padding: 28px 0 50px; border-top: 1px solid var(--border);
}
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.foot-brand { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: 0.1em; color: #fff; margin-right: 12px; }
.foot-tag { color: var(--muted); font-size: 0.86rem; }
.foot-contact a { color: var(--text); text-decoration: none; margin-left: 18px; font-size: 0.9rem; }
.foot-contact a:hover { color: var(--cyan); }
.foot-fine { margin-top: 18px; color: var(--muted); font-size: 0.78rem; max-width: 90ch; }

/* ---------- scroll-reveal animation ------------------------------------------------- */
.ani-1, .ani-2, .ani-3, .ani-4 { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.ani-1.in-view { opacity: 1; transform: none; }
.ani-2.in-view { opacity: 1; transform: none; transition-delay: .08s; }
.ani-3.in-view { opacity: 1; transform: none; transition-delay: .16s; }
.ani-4.in-view { opacity: 1; transform: none; transition-delay: .24s; }

/* ---------- responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1 1 220px; }
  .feature-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .panel-split { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .mosaic { position: static; grid-template-columns: repeat(3, 1fr); }
  .mosaic-tile, .tile-2, .tile-3 { height: 110px; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .nav-cta .btn-ghost { display: none; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-tile, .tile-2, .tile-3 { height: 90px; }
  h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}
