/* ===========================================================
   Arventis — restrained dark theme, single typeface
   =========================================================== */

:root {
  --bg: #0a0e14;
  --bg-2: #0f141b;
  --bg-3: #141a23;
  --panel: #11161e;
  --panel-2: #161c25;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6e8ec;
  --text-dim: #9aa3ad;
  --text-mute: #6c7682;
  --accent: #7cc5ff;
  --accent-2: #5e8df0;
  --accent-soft: rgba(124, 197, 255, 0.08);
  --grad: linear-gradient(135deg, #7cc5ff 0%, #5e8df0 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 24px -16px rgba(0,0,0,0.5);
  --max-w: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(124, 197, 255, 0.25); color: var(--text); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 14px; color: var(--text); }
.muted { color: var(--text-dim); }
.muted.center { text-align: center; max-width: 700px; margin: 0 auto; }
.small { font-size: 0.85rem; }
.accent-line { color: var(--accent); font-weight: 700; }

/* -------- Scroll progress -------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  width: var(--progress, 0%);
  background: var(--accent);
  z-index: 100;
  transition: width 0.05s linear;
  opacity: 0.6;
}

/* -------- Navigation -------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 14, 20, 0.94);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.nav-logo-mark { width: 26px; height: 26px; }
.nav-logo-text { font-size: 1.05rem; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; }
.nav-links > a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #0a0e14 !important;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: #a4d6ff; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #0a0e14;
}
.btn-primary:hover { background: #a4d6ff; }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-text {
  background: transparent; color: var(--text);
  padding: 12px 4px;
}
.btn-text:hover { color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

/* -------- Sections -------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.kicker.accent { color: var(--accent); }

/* -------- Hero -------- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-wrap { max-width: 900px; }
.hero-title { margin-top: 10px; max-width: 18ch; }
.hero-lede { font-size: 1.15rem; color: var(--text-dim); max-width: 62ch; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0; padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 820px;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dt {
  font-size: 1.8rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; line-height: 1;
}
.hero-stats dd {
  margin: 0;
  font-size: 0.92rem; color: var(--text-dim);
}

/* -------- Trust strip -------- */
.trust-strip {
  padding: 28px 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.trust-strip-label {
  text-align: center; font-size: 0.84rem;
  color: var(--text-mute); margin: 0 0 18px;
}
.trust-strip-items {
  display: flex; justify-content: space-around; align-items: baseline;
  flex-wrap: wrap; gap: 24px 40px;
}
.ts-item { display: flex; align-items: baseline; gap: 8px; }
.ts-item strong {
  font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.ts-item span { font-size: 0.78rem; color: var(--text-mute); letter-spacing: 0.04em; }

/* -------- Cards -------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.card.solution { border-color: var(--border-strong); }
.card.highlight { background: var(--panel-2); }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--text); font-size: 0.96rem;
}
.bullet-check, .bullet-x {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px; position: relative;
}
.bullet-check {
  background: rgba(124, 197, 255, 0.12);
  border: 1px solid rgba(124, 197, 255, 0.35);
}
.bullet-check::after {
  content: ''; width: 7px; height: 4px;
  border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -1px);
}
.bullet-x { background: rgba(255, 100, 100, 0.08); border: 1px solid rgba(255, 100, 100, 0.25); }
.bullet-x::before, .bullet-x::after {
  content: ''; position: absolute; width: 9px; height: 1.6px; background: rgba(255, 140, 140, 0.85); border-radius: 1px;
}
.bullet-x::before { transform: rotate(45deg); }
.bullet-x::after { transform: rotate(-45deg); }

/* -------- Impact grid -------- */
.impact-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.impact-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s var(--ease);
}
.impact-card:hover { border-color: var(--border-strong); }
.impact-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.impact-icon svg { width: 24px; height: 24px; }
.impact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.impact-card p { color: var(--text-dim); font-size: 0.93rem; margin: 0; }
.impact-tag, .approach-tag {
  text-align: center; margin-top: 48px;
  font-size: 1.1rem; color: var(--text-dim);
}

/* -------- Steps -------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  counter-reset: step;
}
.step {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  position: relative;
}
.step-num {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-mute); letter-spacing: 0.1em; margin-bottom: 14px;
}
.step-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }

/* -------- Metrics -------- */
.metric-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  margin-bottom: 56px;
}
.metric {
  padding: 32px 24px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.metric-num {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1; margin-bottom: 12px; letter-spacing: -0.02em;
  color: var(--text);
}
.metric-label { color: var(--text-dim); font-size: 0.92rem; }

/* Results chart */
.results-chart {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  margin-bottom: 16px;
}
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.chart-head h4 { margin: 0; font-size: 0.95rem; }
.chart-legend { font-size: 0.82rem; color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chart-svg { width: 100%; height: 200px; }
.chart-path { transition: stroke-dashoffset 2s var(--ease-out); }
.results-chart.in .chart-path { stroke-dashoffset: 0; }

.footnote { text-align: center; color: var(--text-mute); font-size: 0.82rem; margin: 0; }

/* -------- Use cases -------- */
.usecases {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.usecase {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  transition: border-color .2s var(--ease);
}
.usecase:hover { border-color: var(--border-strong); }
.usecase-icon {
  width: 28px; height: 28px;
  color: var(--accent); margin-bottom: 14px;
}
.usecase-icon svg { width: 26px; height: 26px; }
.usecase h3 { font-size: 0.98rem; margin: 0 0 4px; }
.usecase p { font-size: 0.85rem; color: var(--text-dim); margin: 0; }

/* -------- Trust pillars -------- */
.trust-pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  margin-bottom: 56px;
}
.trust-pillar {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.trust-pillar-icon {
  width: 28px; height: 28px;
  color: var(--accent); margin-bottom: 16px;
}
.trust-pillar-icon svg { width: 26px; height: 26px; }
.trust-pillar h4 { font-size: 1rem; margin-bottom: 8px; }
.trust-pillar p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }

/* -------- Certifications -------- */
.certs {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 32px;
}
.certs-title { font-size: 1.2rem; margin-bottom: 6px; text-align: center; }
.certs-sub { color: var(--text-dim); margin-bottom: 32px; text-align: center; }
.certs-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.cert-badge {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color .2s var(--ease);
}
.cert-badge:hover { border-color: var(--border-strong); }
.cert-badge-art { width: 70px; }
.cert-badge-art svg { width: 100%; height: auto; }
.cert-label { font-size: 0.84rem; font-weight: 600; color: var(--text); text-align: center; }
.cert-sub { font-size: 0.74rem; color: var(--text-mute); text-align: center; }

/* -------- Partner -------- */
.partner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.partner-quote {
  padding: 32px;
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.partner-quote p {
  font-size: 1.2rem; line-height: 1.5; font-weight: 500;
  margin: 12px 0 0;
}
.quote-mark { color: var(--accent); opacity: 0.6; }

/* -------- Contact (email only) -------- */
.contact-simple { max-width: 640px; text-align: center; }
.contact-simple h2 { margin-bottom: 14px; }
.contact-simple .muted { margin-bottom: 28px; }

.contact-mail {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: #0a0e14;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem;
  transition: background .2s var(--ease);
}
.contact-mail:hover { background: #a4d6ff; }
.contact-mail svg { color: #0a0e14; }

.contact-meta {
  margin: 24px 0 0;
  color: var(--text-mute); font-size: 0.86rem;
}

/* -------- Legal / privacy page -------- */
.legal { padding: 80px 0 96px; }
.legal-wrap { max-width: 760px; }
.legal-wrap h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 8px; }
.legal-meta { color: var(--text-mute); font-size: 0.86rem; margin: 0 0 32px; }
.legal-wrap h2 {
  font-size: 1.25rem; margin-top: 40px; margin-bottom: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.legal-wrap h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
.legal-wrap h3 { font-size: 1rem; margin-top: 22px; margin-bottom: 8px; color: var(--text); }
.legal-wrap p { color: var(--text-dim); }
.legal-wrap p strong, .legal-list strong { color: var(--text); font-weight: 600; }
.legal-wrap a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-wrap a:hover { color: #a4d6ff; }
.legal-wrap code {
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px;
  font-size: 0.9em;
}
.legal-list { padding-left: 22px; margin: 8px 0 14px; color: var(--text-dim); }
.legal-list li { margin-bottom: 6px; }
.legal-back { margin-top: 48px; font-size: 0.92rem; }

/* -------- Footer -------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 24px;
  margin-top: 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 56px; margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h5 {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 16px; font-weight: 600;
}
.footer-cols a {
  display: block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 10px;
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-mute);
}

/* -------- Reveal animation (gentle) -------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

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

/* -------- Responsive -------- */
@media (max-width: 1100px) {
  .impact-grid, .trust-pillars { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(3, 1fr); }
  .certs-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero { padding: 60px 0 56px; }
  .split-grid, .partner { grid-template-columns: 1fr; gap: 22px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .trust-strip-items { gap: 18px 28px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .nav-inner { height: 60px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(10, 14, 20, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 16px; gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a { padding: 12px 4px; font-size: 1rem; }
  .nav-cta { justify-content: center; padding: 11px 18px; }

  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .hero-lede { font-size: 1.02rem; }
  .btn { padding: 11px 18px; font-size: 0.92rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }

  .impact-grid, .metric-grid, .trust-pillars, .usecases, .steps { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 26px; }
  .impact-card, .trust-pillar, .step, .usecase, .metric { padding: 22px; }
  .partner-quote { padding: 24px; }
  .partner-quote p { font-size: 1.05rem; }
  .contact-mail { width: 100%; justify-content: center; padding: 13px 18px; }
  .footer { padding: 48px 0 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section-head { margin-bottom: 36px; }
  .certs { padding: 28px 18px; }
}
