/* ============================================================
   CYBER — cyber.gb.net
   dark / technical / high-trust
   ============================================================ */

:root {
  --bg: #0a0e0c;
  --bg-raised: #101613;
  --bg-panel: #131b17;
  --line: #223028;
  --line-soft: #1a241f;
  --text: #d9e2dc;
  --text-dim: #8fa197;
  --text-faint: #5c6d64;
  --accent: #46f2a0;
  --accent-dim: #2ba86e;
  --amber: #ffc46b;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --sans: "Archivo", system-ui, sans-serif;
  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #06130c; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- backdrop grid ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  opacity: .55;
}

/* ---------- status bar ---------- */
.statusbar {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em;
  color: var(--text-faint); text-transform: uppercase;
  padding: .45rem var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.statusbar .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: .4em;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--accent); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.wordmark {
  font-family: var(--sans); font-weight: 900; font-stretch: 118%;
  font-size: 1.35rem; letter-spacing: .12em; color: var(--text);
}
.wordmark:hover { text-decoration: none; }
.wordmark-bracket { color: var(--accent); font-weight: 400; }
.wordmark.small { font-size: 1.05rem; }

/* ---------- 2plus1 branding (footer only) ---------- */
.footer-cols {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.footer-brand {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: .5rem;
}
.footer-brand:hover { text-decoration: none; }
.footer-brand-pre {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint);
}
.footer-brand-lockup {
  display: inline-flex; align-items: center; gap: .8rem;
  opacity: .92; transition: opacity .18s ease, transform .18s ease;
}
.footer-brand:hover .footer-brand-lockup { opacity: 1; transform: translateY(-1px); }
.p1-ring { width: 48px; height: 48px; flex: none; }
.p1-sep { width: 2px; align-self: stretch; background: #6e7478; opacity: .55; }
.p1-text { display: flex; flex-direction: column; line-height: 1; gap: .3rem; }
.p1-name {
  font-family: "Poppins", var(--sans); font-size: 1.55rem; font-weight: 600;
  letter-spacing: .015em; color: #B1B3B4;
}
.p1-name b { font-weight: 600; }
.p1-name .p1-o { color: #F7A800; }
.p1-name .p1-b { color: #66B8DC; }
.p1-strap {
  font-family: "Poppins", var(--sans); font-size: .62rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .34em; color: #9b9fa2;
}
.footer-brand-sub {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  color: var(--text-dim);
}
.footer-brand:hover .footer-brand-sub { color: var(--accent); }

.site-nav { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .05em;
  color: var(--text-dim); text-transform: lowercase;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav .nav-cta {
  color: var(--bg); background: var(--accent);
  padding: .45rem .9rem; font-weight: 500;
}
.site-nav .nav-cta:hover { background: var(--amber); color: #211500; }

.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--mono); font-size: .875rem;
  letter-spacing: .04em; padding: .85rem 1.5rem; border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease;
}
.btn-primary {
  background: var(--accent); color: #06130c; font-weight: 500;
  box-shadow: 0 0 0 0 rgba(70,242,160,0);
}
.btn-primary:hover {
  background: var(--amber); color: #211500; text-decoration: none;
  box-shadow: 0 0 24px rgba(255,196,107,.25);
}
.btn-ghost {
  border-color: var(--line); color: var(--text-dim); background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 7rem) var(--pad) 0;
}
.kicker {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .1em;
  color: var(--accent-dim); text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-title {
  font-weight: 900; font-stretch: 112%;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: .98; letter-spacing: -.015em;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.accent-line { color: var(--accent); text-shadow: 0 0 40px rgba(70,242,160,.35); }

.hero-split {
  display: flex; flex-wrap: wrap; gap: 2rem 4rem;
  align-items: flex-end; justify-content: space-between;
  margin-top: 2.5rem;
}
.hero-lede { max-width: 34rem; font-size: 1.15rem; color: var(--text-dim); }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-ticker {
  margin-top: clamp(3rem, 7vh, 5rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: .7rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; gap: 2.2rem; width: max-content;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .35em;
  color: var(--text-faint);
  animation: ticker 26s linear infinite;
}
.ticker-track i { color: var(--accent-dim); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- trust strip ---------- */
.trust-strip {
  max-width: var(--maxw); margin: clamp(3rem, 8vh, 5rem) auto 0;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: transparent;
}
.trust-item {
  background: var(--bg-raised); border: 1px solid var(--line-soft);
  margin-left: -1px; padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.trust-item strong { font-weight: 700; font-size: 1rem; letter-spacing: .01em; }
.trust-item span { font-size: .875rem; color: var(--text-dim); }

/* ---------- sections ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 11vh, 7.5rem) var(--pad) 0;
}
.section-alt { position: relative; }
.section-alt::before {
  content: ""; position: absolute; inset: clamp(2rem,6vh,4rem) 0 0;
  background: linear-gradient(180deg, var(--bg-raised), transparent 85%);
  z-index: -1;
}

.section-head { margin-bottom: clamp(2rem, 5vh, 3.5rem); position: relative; }
.section-num {
  font-family: var(--mono); font-size: .8rem; color: var(--accent-dim);
  letter-spacing: .2em; display: block; margin-bottom: .6rem;
}
.section-num::after { content: " ////"; color: var(--line); }
.section-head h2 {
  font-weight: 800; font-stretch: 110%;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05;
}
.section-sub { color: var(--text-dim); margin-top: .7rem; max-width: 40rem; }

/* ---------- services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.service {
  background: var(--bg-panel); border: 1px solid var(--line-soft);
  padding: 1.7rem 1.6rem 1.5rem; position: relative;
  display: flex; flex-direction: column; gap: .8rem;
  transition: border-color .2s ease, transform .2s ease;
}
.service:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.service::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
  opacity: 0; transition: opacity .2s ease;
}
.service:hover::after { opacity: 1; }
.service-index {
  font-family: var(--mono); font-size: .7rem; color: var(--text-faint);
  letter-spacing: .15em;
}
.service h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.service p { font-size: .9375rem; color: var(--text-dim); flex: 1; }
.service-tag {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em;
  color: var(--accent-dim); text-transform: uppercase;
  border-top: 1px dashed var(--line); padding-top: .8rem;
}

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); position: relative; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 34%; height: 1px;
  background: var(--accent); transition: width .35s ease;
}
.step:hover::before { width: 100%; }
.step-num {
  font-family: var(--mono); font-size: 2rem; font-weight: 400;
  color: var(--accent); line-height: 1;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.step p { font-size: .9375rem; color: var(--text-dim); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy { color: var(--text-dim); }
.about-lead { font-size: 1.25rem; color: var(--text); line-height: 1.55; }

.about-panel {
  background: var(--bg-panel); border: 1px solid var(--line);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 8px 8px 0 rgba(70,242,160,.06);
}
.panel-title {
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  color: var(--accent-dim); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.panel-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.panel-list li {
  font-size: .9rem; color: var(--text-dim); display: flex; gap: .8rem;
  padding-bottom: .9rem; border-bottom: 1px dashed var(--line-soft);
}
.panel-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-list li span { font-family: var(--mono); color: var(--accent); font-size: .8rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; padding-bottom: clamp(4rem, 10vh, 7rem); }

.contact-form {
  background: var(--bg-panel); border: 1px solid var(--line);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint);
}
input, textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font-family: var(--sans); font-size: 1rem; padding: .7rem .85rem;
  transition: border-color .15s ease;
  resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.btn-submit { align-self: flex-start; }
.form-note { font-size: .8125rem; color: var(--text-faint); }

.contact-aside {
  background: var(--bg-panel); border: 1px solid var(--line);
  padding: 1.6rem;
}
.contact-line { font-size: .9375rem; color: var(--text-dim); margin-bottom: 1.1rem; }
.contact-line:last-child { margin-bottom: 0; }
.contact-key {
  display: block; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dim);
  margin-bottom: .2rem;
}

/* form result states (set by contact.php redirect back) */
.form-flash {
  font-family: var(--mono); font-size: .875rem; padding: .8rem 1rem;
  border: 1px solid var(--accent-dim); color: var(--accent);
  background: rgba(70,242,160,.06);
}
.form-flash.error { border-color: #b3564f; color: #ff9d94; background: rgba(255,90,80,.06); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 2rem; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.2rem var(--pad) 2.6rem;
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .875rem; color: var(--text-dim);
}
.footer-fine { font-family: var(--mono); font-size: .75rem; color: var(--text-faint); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
.reveal.d4 { animation-delay: .38s; }
.reveal.d5 { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal-on-scroll.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-on-scroll { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.2rem; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .statusbar .statusbar-item:nth-child(2) { display: none; }

  .site-nav {
    position: fixed; inset: 0; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(12px);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1.1rem; }

  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; z-index: 60;
    background: none; border: 0; cursor: pointer; padding: .4rem;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer-cols { flex-direction: column; }
}

