/* ============================================================
   VALENIN TECHNOLOGIES — shared design system
   Deep forest green canvas · electric-green accent · mono labels
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg:        #07120B;
  --bg-2:      #0A180F;
  --surface:   #0E2014;
  --surface-2: #12291A;
  --border:    rgba(120, 200, 150, 0.13);
  --border-2:  rgba(120, 200, 150, 0.22);

  --forest:    #14401F;
  --forest-2:  #1C5A30;
  --accent:    #5FE38C;     /* electric green */
  --accent-2:  #3CCB72;
  --glow:      rgba(95, 227, 140, 0.5);

  --text:      #EAF3EC;
  --muted:     #93AE9C;
  --faint:     #5E7466;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', monospace;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #04240F; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; }
.section-pad { padding: clamp(72px, 11vh, 140px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.01em; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary {
  background: var(--accent); color: #04240F; font-weight: 700;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn-primary:hover { box-shadow: 0 8px 34px -8px var(--glow); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 18, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 32px;
}
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em;
  /* color: var(--muted);  */
  padding: 8px 16px; border-radius: 2px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
/* .nav-links a.active { color: var(--accent); } */
.nav-cta { margin-left: 12px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer img.fl { height: 40px; margin-bottom: 20px; }
.footer h5 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; }
.footer li a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.footer li a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.02em;
}

/* ---------- cards / generic ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 32px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.card:hover { border-color: var(--border-2); transform: translateY(-4px); background: var(--surface-2); }

/* circuit-node bullet (echoes logo) */
.node {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--accent); flex: none;
}

/* divider line with node */
.rule { height: 1px; background: var(--border); position: relative; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- circuit background motif ---------- */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.5;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { position: fixed; top: 0; right: 0; left: auto;
    height: 100vh; height: 100dvh; width: min(82vw, 320px); z-index: 105;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 8px; background: var(--bg-2); padding: 40px 32px;
    transform: translateX(110%); transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--border); }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 17px; padding: 12px 7px; }
  .nav-cta { margin: 16px 0 0; }
  .nav-burger { display: flex; z-index: 110; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 11px 20px; }
  .nav-logo img { height: 40px; }
  .section-pad { padding: 64px 0; }
  .btn { padding: 14px 22px; }
  .footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { margin-top: 40px; flex-direction: column; align-items: flex-start; gap: 8px; }
}
