/* =========================================================================
   Neni TechSystems Inc. — design system v2

   IDENTITY CONCEPT — "the connected node"
   The logo's signature is two circuit nodes joined by a diagonal line. That
   becomes the whole visual language here: an animated node network in the
   hero, diagonal section cuts, pulses that travel along connecting lines,
   and node dots that mark headings. Deliberately NOT a flat blue/white
   corporate template — the aim is that someone recognises a Neni page from
   the motion and geometry alone.

   Palette sampled from the logo:
     #4A9BD8 light blue · #3B6DB5 brand blue · deepened to navy/ink
   Accent #22D3A5 (signal green) is added for energy — it only ever appears
   on live/active states, so it reads as "current", not decoration.
   ========================================================================= */

:root {
  --brand-light: #4a9bd8;
  --brand: #3b6db5;
  --brand-deep: #2b4a8b;
  --navy: #122444;
  --navy-900: #0a1426;
  --navy-950: #060d1a;

  --accent: #22d3a5;
  --accent-dim: rgba(34, 211, 165, 0.16);
  --glow: rgba(74, 155, 216, 0.4);

  --ink: #0d1728;
  --body: #4a5a70;
  --muted: #8494a8;
  --line: #e2e9f2;
  --line-dark: rgba(255, 255, 255, 0.1);
  --bg: #ffffff;
  --bg-alt: #f5f9fd;
  --bg-tint: #eaf3fb;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 38, 0.06);
  --shadow: 0 14px 40px rgba(10, 20, 38, 0.1);
  --shadow-lg: 0 30px 80px rgba(10, 20, 38, 0.18);
  --shadow-glow: 0 18px 50px rgba(59, 109, 181, 0.32);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Plus Jakarta Sans", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1220px;
  --nav-h: 78px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.028em;
  margin: 0 0 14px;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 650; }

p { margin: 0 0 16px; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }

/* Dark section with the node-grid backdrop */
.section--dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(74,155,216,0.18) 1.5px, transparent 1.5px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 78%);
}

/* Diagonal cut between sections — echoes the logo's diagonal connector */
.cut-top {
  clip-path: polygon(0 3.2vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -3.2vw;
  padding-top: calc(104px + 3.2vw);
}
.cut-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.2vw), 0 100%);
  padding-bottom: calc(104px + 3.2vw);
}
/* Both cuts on one element: a single clip-path must describe BOTH diagonals,
   otherwise the second rule silently overrides the first and the top edge is
   lost. This is the combined shape. */
.cut-top.cut-bottom {
  clip-path: polygon(0 3.2vw, 100% 0, 100% calc(100% - 3.2vw), 0 100%);
}

.section-head { max-width: 740px; margin: 0 auto 60px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.62); }

/* Eyebrow with a live node dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-dim);
  animation: nodePulse 2.4s infinite;
}
.section--dark .eyebrow { color: var(--brand-light); }

@keyframes nodePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 165, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 165, 0); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(120deg, var(--brand-light), var(--brand-deep));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary::after {
  /* light sweep — a "signal" passing through the button */
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left 0.6s;
}
.btn--primary:hover { color: #fff; }
.btn--primary:hover::after { left: 100%; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand-light); color: var(--brand); background: var(--bg-tint); }

.btn--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.btn--accent {
  background: var(--accent);
  color: #05261c;
  box-shadow: 0 14px 34px rgba(34, 211, 165, 0.3);
}
.btn--accent:hover { color: #05261c; }

.btn--sm { padding: 9px 18px; font-size: 0.87rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.is-stuck { box-shadow: 0 6px 26px rgba(10, 20, 38, 0.08); }

.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img {
  height: 46px; width: auto;
  /* The source PNG is exported at ~4.6x the display height, so the
     browser downsamples rather than upscales — this keeps the serif
     wordmark crisp on 1x, 2x and 3x screens. */
  image-rendering: -webkit-optimize-contrast;
}

.nav-links {
  display: flex; align-items: center; gap: 22px;
  list-style: none; margin: 0; padding: 0;
  flex: 1 1 auto; justify-content: center;
  min-width: 0;   /* lets the bar shrink instead of overflowing */
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: var(--ink);
  font-weight: 550;
  font-size: 0.93rem;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
}
/* Underline grows from the left like a connecting line being drawn */
.nav-links > li > a::after {
  content: "";
  position: absolute; bottom: 4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-light), var(--accent));
  transition: width 0.28s ease;
}
.nav-links > li > a:hover::after,
.nav-links > li.is-current > a::after { width: 100%; }
.nav-links > li > a:hover { color: var(--brand); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(158px, 1fr));
  gap: 2px;
  min-width: 400px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-links > li:hover .dropdown-panel,
.nav-links > li:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown-panel a::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-light);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}
.dropdown-panel a:hover { background: var(--bg-tint); color: var(--brand-deep); }
.dropdown-panel a:hover::before { opacity: 1; transform: scale(1.5); background: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 42px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- HERO with live node network ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(74, 155, 216, 0.34), transparent 64%),
    radial-gradient(700px 480px at 12% 88%, rgba(34, 211, 165, 0.12), transparent 62%),
    linear-gradient(152deg, var(--navy-950) 0%, var(--navy) 52%, var(--brand-deep) 130%);
  color: #fff;
  padding: 116px 0 128px;
  overflow: hidden;
}
#nodeCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.85;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }

/* Animated gradient on the key word */
.hero h1 .grad {
  background: linear-gradient(100deg, #7fc4f0, var(--accent), #7fc4f0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-lede { font-size: 1.15rem; color: rgba(255, 255, 255, 0.8); max-width: 570px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: #cfe6f8;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: nodePulse 2.4s infinite;
}

/* Typewriter line under the hero */
.hero-type {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent);
  margin-top: 26px;
  min-height: 1.5em;
}
.hero-type .caret {
  display: inline-block;
  width: 8px;
  background: var(--accent);
  margin-left: 2px;
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Hero panel — the "network" list */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  position: relative;
}
.hero-card h3 { color: #fff; font-size: 1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 9px; }
.hero-card h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: nodePulse 2.4s infinite;
}
.hero-stack { display: grid; gap: 9px; }
.hero-stack div {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 2px solid transparent;
  font-size: 0.89rem;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.24s, border-color 0.24s, transform 0.24s;
}
.hero-stack div:hover {
  background: rgba(255, 255, 255, 0.13);
  border-left-color: var(--accent);
  transform: translateX(5px);
}
.hero-stack span:last-child { color: #9ed0ef; font-family: var(--font-mono); font-size: 0.78rem; }

/* ---------- Marquee (client/tech ticker) ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; width: 120px; height: 100%; z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  display: flex; align-items: center; gap: 52px;
}
.marquee-track span::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); opacity: 0.55;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Stats with count-up ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: -58px; position: relative; z-index: 3; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.stat:hover::before { transform: scaleX(1); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem; font-weight: 700;
  color: var(--brand-deep); line-height: 1.1;
}
.stat span { font-size: 0.85rem; color: var(--muted); font-weight: 550; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.26s, box-shadow 0.26s, border-color 0.26s;
}
.card::after {
  /* diagonal sheen sweeping in on hover — the "connector" gesture */
  content: "";
  position: absolute; top: -60%; right: -60%;
  width: 120%; height: 120%;
  background: linear-gradient(135deg, transparent 40%, rgba(74,155,216,0.09) 50%, transparent 60%);
  transform: translate(30%, -30%);
  transition: transform 0.6s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(74,155,216,0.46); }
.card:hover::after { transform: translate(-10%, 10%); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.94rem; margin: 0; color: var(--body); }

.section--dark .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-dark);
}
.section--dark .card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(74,155,216,0.5); }
.section--dark .card p { color: rgba(255, 255, 255, 0.68); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(74,155,216,0.18), rgba(34,211,165,0.14));
  color: var(--brand-deep);
  transition: transform 0.3s, background 0.3s;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon svg { width: 25px; height: 25px; }
.section--dark .card-icon { color: var(--brand-light); }

/* Numbered step cards connected by a line */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-light) 0 8px, transparent 8px 16px);
  opacity: 0.4;
}
.step { text-align: center; position: relative; }
.step .num {
  counter-increment: step;
  width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-light);
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  display: grid; place-items: center;
  position: relative; z-index: 1;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.step .num::before { content: counter(step); }
.step:hover .num { background: var(--brand); color: #fff; transform: scale(1.1); }
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.9rem; }

/* Tech pills */
.pills { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }
.pill {
  padding: 10px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 0.89rem; font-weight: 600; color: var(--ink);
  transition: all 0.2s;
}
.pill:hover {
  border-color: var(--accent); color: var(--brand-deep);
  transform: translateY(-3px); box-shadow: 0 10px 24px rgba(34,211,165,0.18);
}

/* ---------- Accordion (industries / capabilities) ---------- */

.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head {
  width: 100%; text-align: left;
  padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 650; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background 0.2s, color 0.2s;
}
.acc-head:hover { background: var(--bg-tint); color: var(--brand-deep); }
.acc-head .chev { transition: transform 0.3s; flex-shrink: 0; color: var(--brand); }
.acc-item.is-open .acc-head { color: var(--brand-deep); background: var(--bg-tint); }
.acc-item.is-open .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-body-inner { padding: 4px 24px 22px; font-size: 0.95rem; }

/* ---------- Split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; color: var(--body); }
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.section--dark .check-list li { color: rgba(255, 255, 255, 0.76); }

.visual-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy), var(--brand-deep));
  padding: 40px; color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.visual-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
}
.visual-panel > * { position: relative; }
.visual-panel h3 { color: #fff; }
.visual-panel .grid { gap: 14px; }
.mini {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px; padding: 17px;
  transition: background 0.24s, transform 0.24s;
}
.mini:hover { background: rgba(255, 255, 255, 0.17); transform: translateY(-3px); }
.mini b { display: block; font-size: 1.55rem; font-family: var(--font-display); }
.mini span { font-size: 0.79rem; color: rgba(255, 255, 255, 0.74); }

/* ---------- Jobs ---------- */

.job {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  position: relative; overflow: hidden;
  transition: box-shadow 0.24s, border-color 0.24s, transform 0.24s;
}
.job::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand-light), var(--accent));
  transform: scaleY(0); transform-origin: top; transition: transform 0.32s;
}
.job:hover { box-shadow: var(--shadow); border-color: rgba(74,155,216,0.46); transform: translateX(4px); }
.job:hover::before { transform: scaleY(1); }
.job h3 { margin: 0 0 8px; font-size: 1.08rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.77rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--brand-deep); }
.tag--type { background: var(--accent-dim); color: #0d7a5c; }
.job-empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Forms ---------- */

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.87rem; font-weight: 650; color: var(--ink); margin-bottom: 7px; }
.field .req { color: #dc2626; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 11px;
  font-family: var(--font); font-size: 0.95rem; color: var(--ink); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(74, 155, 216, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field small { color: var(--muted); font-size: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 13px 16px; border-radius: 11px; font-size: 0.92rem; margin-bottom: 18px; display: none; }
.alert--ok { background: #e6f9f1; color: #0d6b4d; border: 1px solid #b4e8d3; }
.alert--err { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.alert.is-visible { display: block; }

/* ---------- Contact ---------- */

.contact-item { display: flex; gap: 15px; margin-bottom: 24px; }
.contact-item .ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(74,155,216,0.16), rgba(34,211,165,0.13));
  color: var(--brand-deep);
}
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item b { display: block; color: var(--ink); font-size: 0.95rem; }
.contact-item span, .contact-item a { font-size: 0.93rem; color: var(--body); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-deep) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 62px 48px; text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.86); max-width: 640px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.66);
  padding: 68px 0 26px;
  margin-top: 0;
  font-size: 0.92rem;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-light), var(--accent), var(--brand-light), transparent);
}
.site-footer h4 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.13em; margin-bottom: 18px; font-family: var(--font-mono); font-weight: 600;
}
.site-footer a { color: rgba(255, 255, 255, 0.66); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-logo { background: #fff; border-radius: 11px; padding: 9px 13px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 38px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-list a { display: inline-flex; align-items: center; gap: 7px; transition: gap 0.2s, color 0.2s; }
.footer-list a:hover { gap: 11px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  transition: background 0.22s, transform 0.22s;
}
.social a:hover { background: var(--brand); transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; }
.footer-tm { margin: 14px 0 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }
.form-note { margin: 14px 0 0; font-size: 0.8rem; color: #5b6b80; line-height: 1.5; }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal .legal-meta { color: var(--muted); font-size: 0.9rem; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background:
    radial-gradient(700px 400px at 78% 10%, rgba(74,155,216,0.3), transparent 62%),
    linear-gradient(140deg, var(--navy-950), var(--navy) 60%, var(--brand-deep));
  color: #fff; padding: 88px 0; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1.5px, transparent 1.5px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 75%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 660px; margin: 0 auto; }
.crumb { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.crumb a { color: rgba(255,255,255,0.72); }

/* ---------- Modal ---------- */

.modal {
  position: fixed; inset: 0;
  background: rgba(6, 13, 26, 0.72);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal.is-open { display: flex; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: #fff; border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 34px; box-shadow: var(--shadow-lg);
  animation: popIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.modal-close { background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--ink); }

/* ---------- Scroll progress bar ---------- */

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand-light), var(--accent));
  z-index: 300; transition: width 0.1s linear;
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed; bottom: 26px; right: 26px;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.26s, visibility 0.26s, transform 0.26s, background 0.2s;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-deep); }
.to-top svg { width: 19px; height: 19px; }

/* ---------- Utilities / reveal ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cut-top, .cut-bottom { clip-path: none; margin-top: 0; padding-top: 104px; padding-bottom: 104px; }
}

@media (max-width: 1080px) {
  .nav-links { gap: 15px; }
  .nav-links > li > a { font-size: 0.87rem; }
  .brand img { height: 40px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 0.83rem; }
}

/* Collapse to the burger early — before labels get squeezed. */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 22px; box-shadow: var(--shadow); display: none;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > li > a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links > li > a::after { display: none; }
  .dropdown-panel {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; min-width: 0; padding: 0 0 0 12px; grid-template-columns: 1fr 1fr;
  }
  .nav-actions .btn--ghost { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 42px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { margin-top: 34px; }
  .hero { padding: 76px 0 88px; }
  .to-top { bottom: 18px; right: 18px; }
}
