/* Outcorex BV — corporate site styles. No external dependencies. */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #04060d;
  --bg-2: #070b1a;
  --surface: rgba(13, 20, 46, 0.62);
  --surface-solid: #0b1129;
  --border: rgba(140, 160, 255, 0.13);
  --border-strong: rgba(140, 160, 255, 0.26);
  --text: #e8ecf6;
  --muted: #a3aec8;
  --dim: #7a86a3;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 50%, var(--violet) 100%);
  --radius: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero-link { color: var(--muted); padding-inline: 8px; }
.hero-link:hover { color: var(--text); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 6, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(4, 6, 13, 0.88); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500;
  transition: color .2s ease; padding: 6px 0; position: relative;
}
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--text); }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong); color: var(--text);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body);
  font-weight: 600; font-size: .98rem; text-decoration: none; border-radius: 10px;
  padding: 13px 22px; transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff; background: linear-gradient(100deg, #0ea5e9 0%, #3b82f6 48%, #7c3aed 100%);
  box-shadow: 0 8px 28px -10px rgba(59, 130, 246, .7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(99, 102, 241, .85); }
.btn-outline {
  color: var(--text); border: 1px solid rgba(34, 211, 238, .55);
  background: rgba(34, 211, 238, .04); padding: 10px 18px; font-size: .92rem;
}
.btn-outline:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .1); }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 120px); }
.section + .section { border-top: 1px solid var(--border); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display);
  font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 34rem; margin-top: 18px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 130px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(59, 130, 246, .20), transparent 60%),
    radial-gradient(40% 50% at 95% 80%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(50% 60% at 0% 110%, rgba(34, 211, 238, .12), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: clamp(420px, 40vw, 520px); }
.hero-copy { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.025em; }
.hero h1 .line { display: block; }
@media (min-width: 861px) { .hero h1 .line { white-space: nowrap; } }
.hero-sub { margin-top: 24px; color: #c3cbe0; font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 35rem; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { color: var(--dim); font-size: .9rem; }
.hero-visual {
  position: absolute; z-index: 0; right: calc(var(--gutter) * -0.5); top: 50%; transform: translateY(-50%);
  width: 48%; max-width: 600px; aspect-ratio: 1.15 / 1; pointer-events: none;
}
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; pointer-events: none;
  opacity: .9;
}
.hero-wave svg { width: 100%; height: 100%; }

.x-float { animation: float 9s ease-in-out infinite; transform-origin: 50% 50%; }
.x-glow { animation: glow 6s ease-in-out infinite; }
.x-sheen { animation: sheen 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-.6deg); } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes sheen { 0%, 100% { opacity: .15; } 50% { opacity: .45; } }

/* ---------- Expertise ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.split-intro { position: sticky; top: 110px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px 26px; transition: border-color .3s ease, transform .3s ease, background .3s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 211, 238, .55), rgba(139, 92, 246, .45) 60%, transparent 85%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease;
}
.card:hover { transform: translateY(-3px); background: rgba(16, 24, 56, .75); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .14));
  border: 1px solid var(--border);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.08rem; font-weight: 650; }
.card .tags { color: var(--cyan); font-size: .8rem; font-weight: 500; margin-top: 6px; letter-spacing: .01em; opacity: .9; }
.card p { color: var(--muted); font-size: .92rem; margin-top: 12px; line-height: 1.6; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 4px; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text);
  background: var(--surface-solid); position: relative;
}
.step-num::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.step-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(99, 102, 241, .6), rgba(99, 102, 241, 0)); }
.step:last-child .step-line { display: none; }
.step h3 { font-size: 1.08rem; font-weight: 650; }
.step p { color: var(--muted); font-size: .93rem; margin-top: 8px; }

.audiences { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.audiences h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }
.audiences .lead { color: var(--muted); margin-top: 12px; font-size: .98rem; }
.audience-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.audience-list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(10, 16, 38, .5);
}
.audience-list li:last-child:nth-child(odd) { grid-column: span 2; }
.audience-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--cyan); }
.audience-list strong { display: block; font-weight: 600; font-size: .98rem; }
.audience-list span { color: var(--muted); font-size: .9rem; }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about::after {
  content: ""; position: absolute; inset: auto -10% -40% 30%; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 60% 50%, rgba(59, 130, 246, .14), transparent 70%);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.about-text { color: #c3cbe0; border-left: 1px solid var(--border-strong); padding-left: clamp(20px, 3vw, 36px); }
.about-text p + p { margin-top: 14px; }
.about-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.about-points li { display: flex; gap: 12px; color: var(--muted); font-size: .95rem; }
.about-points li::before { content: ""; width: 6px; height: 6px; margin-top: 10px; flex-shrink: 0; border-radius: 50%; background: var(--grad); }
.about-map { max-width: 300px; justify-self: center; width: 100%; }

/* ---------- Contact ---------- */
.contact-panel {
  position: relative; border-radius: 20px; padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(34, 211, 238, .12), transparent 60%),
    var(--surface-solid);
  border: 1px solid var(--border);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center;
}
.contact-panel .section-lead { max-width: 30rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; text-decoration: none; word-break: break-all;
}
.contact-email:hover .grad-text { filter: brightness(1.2); }
.contact-email svg { width: 26px; height: 26px; color: var(--cyan); flex-shrink: 0; }
.contact-details { display: grid; gap: 18px; margin: 0; }
.contact-details > div { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; }
.contact-details svg { width: 20px; height: 20px; margin-top: 3px; color: var(--muted); }
.contact-details dt { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.contact-details dd { margin: 2px 0 0; color: var(--text); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 40px 32px; background: #03050b; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top img { height: 34px; width: auto; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .9rem; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--dim); font-size: .85rem;
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
.legal .updated { color: var(--dim); margin-top: 10px; font-size: .92rem; }
.legal h2 { font-size: 1.25rem; font-weight: 650; margin-top: 44px; margin-bottom: 12px; }
.legal p, .legal li { color: #c3cbe0; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2rem; margin: 10px 0 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--cyan); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.legal dt { color: var(--dim); }
.legal dd { margin: 0; color: var(--text); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .audiences { grid-template-columns: 1fr; }
  .split-intro { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .step:nth-child(2) .step-line { display: none; }
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
  .about-grid .about-text { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #04060d; border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-list a::after { display: none; }
  .nav .btn { margin-top: 20px; justify-content: center; padding: 13px 22px; }
  .hero-grid { min-height: 0; }
  .hero-visual { position: relative; right: auto; top: auto; transform: none; order: -1; width: 100%; max-width: 380px; justify-self: center; margin-bottom: 8px; aspect-ratio: 1.3 / 1; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand img { height: 34px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step-line { display: none; }
  .audience-list { grid-template-columns: 1fr; }
  .audience-list li:last-child:nth-child(odd) { grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-map { max-width: 240px; }
  .about-grid .about-text { grid-row: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
