/* RootNet — Professional Cybersecurity & IT Consulting */
:root {
  --bg: #0A0F1F;
  --bg-2: #0D1530;
  --surface: #1D2A39;
  --surface-2: #1F2C3D;
  --accent: #1F8FFF;
  --accent-60: rgba(31, 143, 255, .6);
  --accent-15: rgba(31, 143, 255, .15);
  --text: #F5F5F5;
  --text-80: rgba(255, 255, 255, .8);
  --text-65: rgba(255, 255, 255, .65);
  --text-50: rgba(255, 255, 255, .5);
  --text-40: rgba(255, 255, 255, .4);
  --line: rgba(255, 255, 255, .1);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  --container: 1200px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* subtle grid backdrop */
.grid-bg {
  background-image:
    linear-gradient(rgba(31, 143, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 143, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3b9dff; box-shadow: 0 0 24px var(--accent-60); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 31, .85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) { color: var(--text-80); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: #fff; }
.nav-links a.active { font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 140px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; margin-bottom: 24px; }
.hero p.lead { font-size: 18px; color: var(--text-65); max-width: 540px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.radar { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; margin: 0 auto; }
.radar svg { width: 100%; height: 100%; overflow: visible; }
.radar .sweep { transform-origin: 200px 200px; animation: spin 6s linear infinite; }
.radar .blip { animation: blink 3s ease-in-out infinite; }
.radar .blip:nth-of-type(2n) { animation-delay: 1s; }
.radar .blip:nth-of-type(3n) { animation-delay: 2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Stats ---------- */
.stats { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-mono); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: #fff; }
.stat span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-40); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.section-head p { color: var(--text-65); margin-top: 16px; font-size: 17px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* services grid */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.service {
  display: flex; gap: 24px; padding: 36px 32px;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  transition: background .25s;
}
.service:nth-child(2n) { border-right: 0; }
.service:nth-last-child(-n+2) { border-bottom: 0; }
.service:hover { background: rgba(31, 143, 255, .05); }
.service .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.service h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service p { color: var(--text-50); font-size: 15px; }

/* values split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 3.6vw, 44px); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.checklist li { position: relative; padding-left: 26px; color: var(--text-80); font-size: 15.5px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 10px var(--accent-60); }

/* certs */
.certs { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--bg-2); border: 1px solid var(--surface); }
.cert { padding: 28px 22px; border-right: 1px solid var(--surface); display: flex; flex-direction: column; transition: background .25s; }
.cert:last-child { border-right: 0; }
.cert:hover { background: rgba(31, 143, 255, .05); }
.cert strong { font-family: var(--font-mono); color: var(--accent); font-size: 17px; margin-bottom: 10px; }
.cert span { color: var(--text-65); font-size: 13px; line-height: 1.45; flex: 1; }
.cert small { font-family: var(--font-mono); color: var(--text-40); font-size: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }

/* clients */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.client { padding: 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15px; color: var(--text-80); display: flex; gap: 14px; align-items: center; }
.client:nth-child(3n) { border-right: 0; }
.client::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }

.aligned { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: var(--text-40); text-transform: uppercase; }

/* CTA */
.cta { padding: 110px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta .bar { width: 40px; height: 2px; background: var(--accent); margin-bottom: 28px; }
.cta h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 12px; }
.cta p { color: var(--text-65); max-width: 420px; }

/* ---------- Page hero ---------- */
.page-hero { padding: 100px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 20px; max-width: 820px; }
.page-hero p { color: var(--text-65); font-size: 18px; max-width: 640px; }

/* service detail (services page) */
.svc-detail { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 40px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail .num { font-family: var(--font-mono); color: var(--accent); font-size: 14px; }
.svc-detail h2 { font-size: 26px; margin-bottom: 14px; }
.svc-detail p { color: var(--text-65); }
.svc-detail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-detail li { position: relative; padding-left: 22px; color: var(--text-80); font-size: 15px; }
.svc-detail li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.step { padding: 32px 28px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; display: block; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-50); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; padding-top: 90px; padding-bottom: 110px; }
.contact-info h1 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 20px; }
.contact-info > p { color: var(--text-65); font-size: 17px; margin-bottom: 44px; }
.info-list { list-style: none; margin: 0 0 32px; padding: 0; }
.info-list li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.info-list small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-40); text-transform: uppercase; margin-bottom: 4px; }
.info-list span, .info-list a { color: var(--text); font-size: 15px; }
.note { background: var(--bg-2); border: 1px solid rgba(31,143,255,.25); padding: 26px; margin-bottom: 20px; }
.note h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.note h4 svg { width: 15px; height: 15px; }
.note p { color: var(--text-65); font-size: 14.5px; }
.response { background: var(--surface); padding: 20px 26px; }
.response small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-40); display: block; margin-bottom: 4px; }
.response strong { font-size: 15px; }

.form-card { background: var(--bg-2); border: 1px solid var(--surface); padding: 40px; }
.form-card > h2 { font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; color: var(--accent); font-weight: 600; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-50); margin-bottom: 8px; text-transform: uppercase; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231F8FFF' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-40); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-15); }
.field.invalid input, .field.invalid textarea { border-color: #ff5c6c; }
.field .err { color: #ff7a87; font-size: 13px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; font-size: 14.5px; padding: 14px 16px; display: none; border-left: 3px solid var(--accent); background: var(--accent-15); }
.form-status.show { display: block; }
.form-status.error { border-left-color: #ff5c6c; background: rgba(255,92,108,.12); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-grid .logo img { height: 34px; margin-bottom: 18px; }
.footer-grid p { color: var(--text-50); font-size: 14.5px; max-width: 300px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--text-40); margin-bottom: 18px; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text-80); font-size: 14.5px; transition: color .2s; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-grid .muted { color: var(--text-40); font-size: 13.5px; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--text-40); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #fff; color: rgb(17, 24, 39);
  box-shadow: 0 -6px 30px rgba(0,0,0,.35);
  transform: translateY(110%); transition: transform .35s ease;
}
.cookie.show { transform: translateY(0); }
.cookie .container { display: flex; align-items: center; gap: 28px; padding-top: 20px; padding-bottom: 20px; }
.cookie h4 { font-family: var(--font-body); font-size: 15px; margin-bottom: 6px; }
.cookie p { font-size: 14px; color: rgb(75, 85, 99); }
.cookie .actions { display: flex; gap: 10px; flex: none; }
.cookie .btn-dark { background: var(--surface); color: #fff; }
.cookie .btn-dark:hover { background: #2a3a4f; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .radar .sweep, .radar .blip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.notfound .code { font-family: var(--font-mono); font-size: 96px; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.notfound p { color: var(--text-65); margin: 16px 0 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .certs { grid-template-columns: repeat(3, 1fr); }
  .cert:nth-child(3n) { border-right: 0; }
  .cert:nth-child(-n+3) { border-bottom: 1px solid var(--surface); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 18px; }
  .hero { padding: 72px 0 90px; }
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .radar { max-width: 300px; order: -1; display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .service:last-child { border-bottom: 0 !important; }
  .clients { grid-template-columns: 1fr 1fr; }
  .client { border-right: 1px solid var(--line) !important; }
  .client:nth-child(2n) { border-right: 0 !important; }
  .svc-detail { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 84px 0; }
  .cookie .container { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 560px) {
  .certs { grid-template-columns: 1fr 1fr; }
  .cert { border-right: 1px solid var(--surface) !important; border-bottom: 1px solid var(--surface); }
  .cert:nth-child(2n) { border-right: 0 !important; }
  .clients, .process, .form-row { grid-template-columns: 1fr; }
  .client, .step { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .form-card { padding: 28px 20px; }
  .service { padding: 28px 22px; }
}
