/* ============================================================
   NUOVX — Visual Identity
   Concept: "The Detector" — computer-vision systems frame what
   they find with sharp corner brackets and confidence scores.
   That becomes the site's structural device instead of generic
   rounded cards + drop shadows.
   ============================================================ */

:root {
  --ink: #12131a;          /* near-black navy-charcoal, not pure #000/#111 */
  --ink-2: #1c1e29;
  --paper: #f4f5f7;         /* cool light grey, not warm cream */
  --paper-raised: #ffffff;
  --line: #d8dbe3;
  --line-strong: #b7bcc9;
  --muted: #5b5f6d;
  --signal: #4b3aff;        /* primary accent — precise indigo, not SaaS-blue or neon-green */
  --signal-dim: #ece9ff;
  --confidence: #ffb020;    /* secondary accent, used sparingly on scored/highlighted numbers */
  --danger: #e0447a;
  --radius: 3px;            /* sharp, not the rounded-card default */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.35rem; }
.logo img { height: 28px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
.main-nav a { font-weight: 500; font-size: 0.95rem; position: relative; }
.main-nav > ul > li > a::after {
  content: ''; position: absolute; left: 0; bottom: -22px; width: 0; height: 2px; background: var(--signal);
  transition: width 0.15s ease;
}
.main-nav > ul > li:hover > a::after { width: 100%; }
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 22px); left: 0; background: var(--paper-raised);
  border: 1px solid var(--line); min-width: 240px; padding: 6px 0; list-style: none;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 10px 18px; font-size: 0.9rem; }
.dropdown li a:hover { background: var(--signal-dim); color: var(--signal); }
.btn-nav {
  background: var(--ink); color: #fff !important; padding: 9px 20px; border-radius: var(--radius);
  font-weight: 600;
}
.btn-nav:hover { background: var(--signal); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; padding: 13px 26px; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius); border: 1px solid transparent; margin: 0 8px 0 0;
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: #3a2ce0; }
.btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------------- Hero: annotated-scene detector ---------------- */
.hero {
  background: var(--ink); color: #fff; padding: 88px 0 96px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero .container { display: contents; }
.hero-copy { grid-column: 1; padding-left: 24px; }
.hero-copy .eyebrow-line { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #9a9db0; font-size: 0.85rem; }
.hero-copy .eyebrow-line .dot { width: 7px; height: 7px; background: var(--confidence); border-radius: 50%; display: inline-block; }
.hero h1 { font-size: 2.9rem; color: #fff; max-width: 11ch; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--confidence); }
.hero p.lede { color: #c3c5d4; font-size: 1.1rem; max-width: 46ch; margin-bottom: 34px; }
.hero-visual { grid-column: 2; padding-right: 24px; }
.hero-visual svg { width: 100%; height: auto; }
.detect-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; fill: var(--confidence);
}
.detect-box { stroke: var(--confidence); stroke-width: 2; fill: none; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s ease forwards; }
.detect-box.d2 { stroke: var(--signal); animation-delay: 0.25s; }
.detect-box.d3 { stroke: #7de0c8; animation-delay: 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------- Sections ---------------- */
.section { padding: 88px 0; }
.alt-bg { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: 2.1rem; margin-bottom: 12px; max-width: 20ch; }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 44px; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); background: transparent; border: none; gap: 32px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy, .hero-visual { grid-column: 1; padding: 0 24px; }
}

/* ---------------- Detection cards (replaces rounded shadow cards) ---------------- */
.card {
  background: var(--paper-raised); padding: 30px 26px; position: relative;
  border-radius: 0; transition: background 0.15s ease;
}
.card::before, .card::after {
  content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--line-strong);
  transition: border-color 0.15s ease;
}
.card::before { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.card::after { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; }
.card:hover::before, .card:hover::after { border-color: var(--signal); }
.card:hover { background: var(--signal-dim); }
.card .tag-id { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--signal); letter-spacing: 0.02em; display: block; margin-bottom: 12px; }
.card img { margin-bottom: 16px; }
.card h3, .card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.link-arrow { color: var(--signal); font-weight: 600; display: inline-block; margin-top: 14px; font-size: 0.9rem; }
.badge { background: var(--confidence); color: var(--ink); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; margin-left: 8px; font-family: 'IBM Plex Mono', monospace; }
.location-card h4 { display: flex; align-items: center; }

.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; margin-bottom: 26px; }

.page-hero { background: var(--ink); color: #fff; padding: 70px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c3c5d4; margin-top: 10px; }

.content-block h2, .content-block h3 { margin: 28px 0 14px; }
.content-block p { margin-bottom: 14px; color: var(--ink); }
.full-width-img { width: 100%; margin: 22px 0; }

/* ---------------- Forms ---------------- */
form label { display: block; margin-bottom: 18px; font-weight: 600; font-size: 0.88rem; }
form input, form select, form textarea {
  width: 100%; padding: 11px 14px; margin-top: 7px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit; background: var(--paper-raised);
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--signal); outline: none; }
form button { cursor: pointer; border: none; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #e6f8ee; color: #146c43; border-left: 3px solid #146c43; }
.alert-error { background: #fde8e8; color: #b42318; border-left: 3px solid #b42318; }

/* ---------------- Team / testimonials ---------------- */
.team-card { text-align: left; }
.team-card img { width: 84px; height: 84px; object-fit: cover; margin-bottom: 14px; }
.designation { color: var(--muted); font-size: 0.88rem; }
.loc { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.testimonial-card p { font-size: 1rem; margin-bottom: 16px; }
.testimonial-card strong { display: block; }
.testimonial-card span { color: var(--muted); font-size: 0.85rem; }

/* ---------------- Jobs ---------------- */
.job-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.job-card { display: block; padding: 22px 26px; background: var(--paper-raised); }
.job-card:hover { background: var(--signal-dim); }
.job-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.job-meta span { margin-right: 16px; color: var(--muted); font-size: 0.86rem; font-family: 'IBM Plex Mono', monospace; }
.app-form { max-width: 480px; }

/* ---------------- Blog ---------------- */
.tag { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--signal); margin-bottom: 10px; }
.post-meta { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; margin: 10px 0 20px; }
.post-content { max-width: 68ch; }
.post-content p { margin-bottom: 16px; }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination a { padding: 9px 15px; border: 1px solid var(--line-strong); font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; }
.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #b6b9c7; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h3, .footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--confidence); }
.socials a { margin-right: 14px; font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid #2a2c3a; margin-top: 48px; padding: 22px 0; text-align: center; font-size: 0.82rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.error-page { text-align: center; padding: 130px 0; }
.error-page h1 { font-size: 5.5rem; color: var(--signal); }
