/* =====================================================================
   NeAr Integration — site styles
   Brand colors come from the NeAr logo (plum + coral).
   Change colors in :root only.
   ===================================================================== */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-style: normal; font-display: swap; src: url("../fonts/dm-sans.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); }

:root only.
   ===================================================================== */

@font-face { font-family: "Titillium Web"; font-weight: 200; font-style: normal; font-display: swap; src: url("../fonts/titillium-web-200.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/titillium-web-300.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/titillium-web-600.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/titillium-web-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-style: normal; font-display: swap; src: url("../fonts/dm-sans.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  /* Brand (from logo) */
  --plum:        #4E3040;   /* logo "NeAr" letters */
  --plum-900:    #3A2330;
  --plum-800:    #45293A;
  --plum-700:    #604050;
  --coral:       #ED5056;   /* logo crosshair lines */
  --coral-strong:#C93A41;   /* coral for text/buttons on white (AA contrast) */
  --coral-light: #F7A0A4;   /* coral for text on plum (AA contrast) */
  --coral-tint:  #FBEDEE;

  /* Neutrals */
  --ink:     #2A1D24;
  --muted:   #5E5763;
  --line:    #E9E2E5;
  --line-2:  #D5CBD0;
  --surface: #F7F3F5;
  --white:   #FFFFFF;
  --on-dark: #F4EEF1;
  --on-dark-muted: #C9B6C0;

  --ok-bg: #E3F5EA; --ok-fg: #11643A;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--coral-strong); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.08; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .container { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--coral-strong); color: #fff; }
.btn-primary:hover { background: #AD3037; color: #fff; }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--plum); color: var(--plum); }
.btn-dark { background: var(--plum); color: #fff; min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-dark:hover { background: var(--plum-900); color: #fff; }

/* ---------- Eyebrow (logo crosshair motif) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--coral-strong); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--coral); }
.dark .eyebrow { color: var(--coral-light); }

.section { padding: 104px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.section-title { font-weight: 600; font-size: clamp(32px, 3.8vw, 50px); letter-spacing: -0.8px; }
.lead { font-size: 18px; color: var(--muted); }
.dark .lead { color: var(--on-dark-muted); }
.bg-surface { background: var(--surface); }
.dark { background: var(--plum); color: var(--on-dark); }
.dark a:hover { color: #fff; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; }
@media (max-width: 600px) { .section { padding: 72px 0; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand-tag { font-family: var(--font-head); font-weight: 300; font-size: 15px; color: #6B7280; white-space: nowrap; padding-top: 18px; }
.site-footer .brand-tag { color: var(--on-dark-muted); padding-top: 14px; }
@media (max-width: 420px) { .site-header .brand-tag { display: none; } }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; list-style: none; padding: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 16px 30px rgba(42,29,36,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-actions .btn-dark { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 84px; }
.hero::before, .hero::after { content: ""; position: absolute; background: var(--coral); opacity: .18; pointer-events: none; }
.hero::before { left: 0; right: 0; bottom: 44px; height: 1px; }
.hero::after { top: 0; bottom: 0; left: 50%; width: 1px; }
@media (max-width: 1000px) { .hero::after { display: none; } }
.hero .split { position: relative; z-index: 1; gap: 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-weight: 600; font-size: clamp(40px, 5vw, 66px); line-height: 1.02; letter-spacing: -1.5px; }
.hero h1 em { font-style: normal; color: var(--coral-strong); }
.hero .lead { font-size: 19px; max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.cert-pill { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.cert-pill b { padding: 3px 10px; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 600; font-size: 12px; }

.hero-visual { display: flex; flex-direction: column; padding-bottom: 8px; }
.dash { width: min(100%, 600px); border-radius: 20px; background: var(--plum-900); color: var(--on-dark); padding: 24px 24px 72px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px rgba(52,32,43,.25); }
.dash-top { display: flex; justify-content: space-between; align-items: center; }
.dash-top strong { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.dash-top span { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { border-radius: 12px; background: var(--plum-800); padding: 14px; }
.kpi small { display: block; font-size: 12px; color: var(--on-dark-muted); }
.kpi strong { font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 2.2vw, 26px); white-space: nowrap; }
.dash svg { width: 100%; height: auto; }
.assistant { width: min(92%, 360px); align-self: flex-end; margin-top: -60px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(42,29,36,.18); padding: 22px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.assistant-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.assistant-head span.ic { width: 30px; height: 30px; border-radius: 8px; background: var(--coral-strong); color: #fff; display: flex; align-items: center; justify-content: center; }
.bubble-q { align-self: flex-end; max-width: 260px; border-radius: 14px 14px 4px 14px; background: var(--surface); padding: 10px 14px; }
.bubble-a { border-radius: 14px 14px 14px 4px; background: var(--coral-tint); padding: 12px 14px; color: var(--ink); }

/* ---------- Value strip ---------- */
.values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; padding-top: 36px; padding-bottom: 36px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value .icon { color: var(--coral-strong); flex-shrink: 0; margin-top: 2px; }
.value strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.3; }
.value span { font-size: 15px; color: var(--muted); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.card { grid-column: span 2; border-radius: 20px; background: #fff; border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card.wide { grid-column: span 3; }
.card h3 { font-weight: 600; font-size: 23px; letter-spacing: -.2px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--coral-tint); color: var(--coral-strong); display: flex; align-items: center; justify-content: center; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.tag { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ok-bg); color: var(--ok-fg); }
.card .more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--coral-strong); }
.card.dark-card { background: var(--plum); border-color: var(--plum); color: var(--on-dark); }
.card.dark-card p { color: var(--on-dark-muted); }
.card.dark-card .ic { background: var(--coral-strong); color: #fff; }
.card.dark-card .tag { background: var(--plum-700); color: #FFE3E5; }
.card.dark-card .more { color: var(--coral-light); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } .card, .card.wide { grid-column: auto; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Local AI ---------- */
#local-ai .split { align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--plum-800); color: var(--on-dark); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.tile { border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tile h3 { font-weight: 600; font-size: 20px; }
.tile p { font-size: 15px; }
.dark .tile { background: var(--plum-800); border: 1px solid var(--plum-700); }
.dark .tile p { color: var(--on-dark-muted); }
.light-tiles .tile { background: var(--surface); }
.light-tiles .tile p { color: var(--muted); }

/* ---------- Ignition ---------- */
.badge-pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--coral-tint); color: var(--coral-strong); font-weight: 600; font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Validation ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.step { border-radius: 20px; background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--coral-strong); }
.step h3 { font-weight: 600; font-size: 21px; }
.step p { font-size: 15px; color: var(--muted); }
.standards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.standards span { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13px; }

/* ---------- Platforms ---------- */
.platforms { text-align: center; padding: 72px 0; border-top: 1px solid var(--line); }
.platforms h2 { font-weight: 600; font-size: 24px; color: var(--muted); margin-bottom: 26px; }
.platform-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; list-style: none; padding: 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--plum); }

/* ---------- Industries / approach ---------- */
.rows { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.row { border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 18px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.row strong { font-family: var(--font-head); font-weight: 600; font-size: 19px; }
.row span { font-size: 15px; color: var(--muted); text-align: right; }
.row .n { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--plum); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.row.numbered { justify-content: flex-start; align-items: flex-start; gap: 18px; }
.row.numbered span { display: block; text-align: left; }
.row.numbered .n { display: inline-flex; text-align: center; color: #fff; font-size: 14px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 56px; }
@media (max-width: 600px) { .row:not(.numbered) { flex-direction: column; gap: 2px; } .row:not(.numbered) span { text-align: left; } }

/* ---------- Contact ---------- */
.contact-box { border-radius: 28px; background: var(--plum); color: var(--on-dark); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; align-items: start; position: relative; overflow: hidden; }
.contact-box > * { position: relative; }
.contact-box h2 { font-weight: 600; font-size: clamp(34px, 4vw, 54px); letter-spacing: -1px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; font-size: 16px; }
.contact-details div { display: flex; gap: 14px; }
.contact-details dt { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-muted); width: 70px; padding-top: 2px; }
.contact-details dd { margin: 0; }
.contact-details a { text-decoration: underline; text-underline-offset: 3px; }

.form { border-radius: 20px; background: #fff; color: var(--ink); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.form .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea { min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.form textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: var(--coral); }
.form .btn { justify-content: center; width: 100%; }
.form .note { font-size: 13px; color: var(--muted); text-align: center; }
.form .note a { color: var(--coral-strong); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.alert-ok { background: var(--ok-bg); color: var(--ok-fg); }
.alert-err { background: #FDECEC; color: #9B1C24; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-900); color: var(--on-dark-muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 44px; width: auto; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 28px 104px; display: flex; flex-direction: column; gap: 28px; color: #3B2E35; line-height: 1.7; }
.legal h1 { font-weight: 700; font-size: clamp(36px, 5vw, 52px); color: var(--ink); }
.legal section { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2 { font-weight: 600; font-size: 24px; color: var(--ink); }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--coral-strong); text-decoration: underline; }
.legal .meta { color: var(--muted); }

.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: 96px 28px; max-width: 760px; margin: 0 auto; }
.not-found h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
