/* =========================================================
   Crivotech — style.css
   Design tokens
   ========================================================= */
:root {
  /* Palette — pulled from the CT mark's magenta→violet→blue→cyan gradient */
  --bg: #08080f;
  --bg-soft: #0c0d18;
  --surface: #12131f;
  --surface-2: #191a2c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f2f2f7;
  --text-muted: #9496af;
  --text-faint: #5c5e78;

  --magenta: #c026f5;
  --violet: #7c3aed;
  --blue: #3b82f6;
  --cyan: #22d3ee;

  --gradient: linear-gradient(120deg, var(--magenta) 0%, var(--violet) 38%, var(--blue) 70%, var(--cyan) 100%);
  --gradient-soft: linear-gradient(120deg, rgba(192, 38, 245, 0.14), rgba(34, 211, 238, 0.14));

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1180px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::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;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gradient);
  color: #0a0a12;
}
.btn-primary:hover { box-shadow: 0 8px 30px -8px rgba(124, 58, 237, 0.6); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.06); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 8, 15, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.nav-brand img { height: 34px; width: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span::after { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 190px 0 130px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, black 40%, transparent 85%);
}
#network-canvas { width: 100%; height: 100%; display: block; }
.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  margin-top: 22px;
  font-weight: 600;
}
.hero p.lead {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-tags {
  margin-top: 64px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 2px; background: var(--gradient); }

/* =========================================================
   Section shell
   ========================================================= */
section { padding: 120px 0; position: relative; }
.section-head {
  max-width: 620px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-top: 18px;
  font-weight: 600;
}
.section-head p { margin-top: 18px; color: var(--text-muted); font-size: 1.05rem; }

#services { border-bottom: 1px solid var(--border); background: var(--bg-soft); }

/* =========================================================
   Services grid
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--surface);
  padding: 40px 34px;
  transition: background 0.25s ease;
  position: relative;
}
.service-card:hover { background: var(--surface-2); }
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--cyan); }
.service-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
}
.about-copy p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 20px; }
.about-copy p:last-child { margin-bottom: 0; }
.capability-list { display: flex; flex-direction: column; gap: 22px; }
.capability {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.capability:first-child { border-top: none; padding-top: 0; }
.capability .mark {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--gradient);
  flex-shrink: 0;
}
.capability h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.capability p { color: var(--text-muted); font-size: 0.92rem; }

/* =========================================================
   Process
   ========================================================= */
#process { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step { position: relative; padding-top: 28px; }
.process-step::before {
  content: attr(data-index);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.process-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gradient);
}
.process-step h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; }

/* =========================================================
   Trusted-by / client logos (placeholders)
   ========================================================= */
.trusted-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.logo-slot {
  height: 84px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================
   Contact
   ========================================================= */
#contact { border-top: 1px solid var(--border); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }
.contact-detail { margin-bottom: 22px; }
.contact-detail span.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.contact-detail a, .contact-detail span.value { font-size: 1.02rem; }
.contact-detail a:hover { color: var(--cyan); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%239496af' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 6px; }
.form-status {
  margin-top: 18px;
  font-size: 0.9rem;
  min-height: 22px;
}
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }
.btn-submit { width: 100%; padding: 15px 26px; }
.btn-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

/* honeypot — hidden from real users, catches bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  background: var(--bg-soft);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.footer-brand img { height: 30px; width: 30px; }
.footer-tagline { color: var(--text-muted); font-size: 0.92rem; margin-top: 10px; max-width: 280px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}
.social-row { display: flex; gap: 16px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-row a:hover { border-color: var(--cyan); color: var(--cyan); }
.social-row svg { width: 16px; height: 16px; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .trusted-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .site-header.mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 8, 15, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 26px 22px;
    gap: 20px;
  }
  .hero { padding: 150px 0 90px; }
  section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; gap: 36px; }
  .trusted-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 36px; }
}
