/* ==========================================================================
   euCyberSec — Design System
   Palette: white / black / blue (#2563eb). Language-agnostic, shared by all
   locales. No CSS is duplicated per language — only text lives in the pages.
   ========================================================================== */

/* ---------- Design tokens ------------------------------------------------- */
:root {
  /* Brand blue scale */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #2563eb;   /* primary brand */
  --blue-600: #1d4ed8;   /* hover / active */
  --blue-700: #1e40af;

  /* Neutrals (slate) */
  --black:    #0a0f1a;   /* near-black ink */
  --slate-900:#0f172a;
  --slate-700:#334155;
  --slate-600:#475569;
  --slate-500:#64748b;
  --slate-400:#94a3b8;
  --slate-300:#cbd5e1;
  --slate-200:#e2e8f0;
  --slate-100:#f1f5f9;
  --slate-50: #f8fafc;
  --white:    #ffffff;

  /* Semantic roles */
  --bg:          var(--white);
  --bg-alt:      var(--slate-50);
  --bg-dark:     var(--slate-900);
  --ink:         var(--slate-900);
  --ink-soft:    var(--slate-600);
  --ink-faint:   var(--slate-500);
  --brand:       var(--blue-500);
  --brand-dark:  var(--blue-600);
  --border:      var(--slate-200);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
               monospace;

  /* Spacing scale */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-8: 3rem;    --sp-10: 4rem;
  --sp-12: 6rem;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow:    0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --ring: 0 0 0 4px var(--blue-100);
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  color: var(--slate-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 var(--sp-4); }

/* ---------- Layout helpers ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section { padding-block: var(--sp-12); }
.section--tight { padding-block: var(--sp-10); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--slate-300); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

/* Eyebrow — the little mono label above headings gives the "tech" signal */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-3);
}
.eyebrow::before { content: "//"; opacity: 0.6; }

.section-head { max-width: 720px; margin-bottom: var(--sp-8); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; margin-bottom: 0; }

.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8em 1.5em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--slate-900); border-color: var(--slate-300); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost-light { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.18); color: var(--white); }
.btn--lg { font-size: 1.05rem; padding: 0.95em 1.9em; }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / navigation ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}
.brand:hover { color: var(--slate-900); }
.brand .brand-mark {
  width: 30px; height: 30px;
  color: var(--brand);
  flex: none;
}
.brand b { color: var(--brand); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.98rem;
  padding: var(--sp-2) 0;
  position: relative;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.is-active { color: var(--slate-900); font-weight: 600; }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: var(--sp-4); }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}
.lang-switch a { color: var(--slate-400); padding: 2px 4px; border-radius: 4px; }
.lang-switch a:hover { color: var(--brand); }
.lang-switch a.is-current { color: var(--slate-900); background: var(--slate-100); }
.lang-switch .sep { color: var(--slate-300); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--slate-900);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-2) var(--sp-5) var(--sp-5);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: var(--sp-3) 0; border-bottom: 1px solid var(--slate-100); }
  .nav-links a.is-active::after { display: none; }
  .nav .btn { display: none; }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--slate-900);
  color: var(--slate-300);
  padding-block: var(--sp-12);
}
/* Tech grid + glow backdrop */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 40%, transparent 100%);
  opacity: 0.7;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.35), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-10);
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: var(--sp-5); }
.hero-sub { font-size: 1.2rem; color: var(--slate-300); max-width: 34ch; }
.hero .eyebrow { color: var(--blue-200); }
.hero-points {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0;
  display: grid;
  gap: var(--sp-3);
}
.hero-points li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  color: var(--slate-200);
}
.hero-points b { color: var(--white); font-weight: 600; }
.hero-points .tick {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  color: var(--blue-200);
}
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ---------- Image placeholders -------------------------------------------
   Swap each <div class="ph"> for an <img>. The data-note text describes the
   intended photo so the designer/photographer knows what belongs there.      */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, var(--slate-100) 0 12px, var(--slate-50) 12px 24px);
  border: 1.5px dashed var(--slate-300);
  border-radius: var(--radius);
  color: var(--slate-500);
  font-size: 0.9rem;
  padding: var(--sp-5);
  min-height: 240px;
  overflow: hidden;
}
.ph::before {
  content: "📷";
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  font-size: 1.1rem;
  opacity: 0.5;
}
.ph span { max-width: 30ch; line-height: 1.4; }
.ph--wide { min-height: 320px; }
.ph--hero { min-height: 380px; background-color: rgba(255,255,255,0.03); }
.ph--round { border-radius: 50%; aspect-ratio: 1; min-height: 0; width: 120px; }
.ph--avatar { width: 96px; height: 96px; border-radius: 50%; min-height: 0; flex: none; }

/* ---------- Cards / grids ------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 1rem; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--brand);
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- Role chips ---------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.5em 1em;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--blue-50); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }

/* ---------- Stat / info band ---------------------------------------------- */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr; text-align: center; } }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--white); letter-spacing: -0.03em; }
.stat span { color: var(--slate-400); }

/* ---------- Process stepper ----------------------------------------------- */
.steps { display: grid; gap: var(--sp-4); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  position: relative;
}
.step-num {
  counter-increment: step;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50);
  color: var(--brand);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.1rem; margin-bottom: var(--sp-1); }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (min-width: 760px) {
  .steps--flow { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Team ---------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.member {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.member-head { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.member-head h3 { margin: 0; }
.member-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.member p { font-size: 0.98rem; color: var(--ink-soft); }
.member-contact { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); font-size: 0.95rem; }
.member-contact a { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 500; }

/* ---------- Prose (long text blocks) -------------------------------------- */
.prose p { color: var(--slate-700); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- CTA band ------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border-radius: var(--radius);
  padding: var(--sp-10);
  text-align: center;
  color: var(--white);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000, transparent 75%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--blue-100); max-width: 52ch; margin-inline: auto; margin-bottom: var(--sp-6); }

/* ---------- Contact form -------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--sp-5); }
.form-row { display: grid; gap: var(--sp-2); }
.form label { font-weight: 600; font-size: 0.95rem; color: var(--slate-700); }
.form label .req { color: var(--brand); }
.form input[type="text"],
.form input[type="url"],
.form input[type="email"],
.form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.form textarea { resize: vertical; min-height: 140px; }
.form-consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.form-consent input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--brand); }
.form-consent label { font-weight: 400; }

.contact-aside { display: grid; gap: var(--sp-5); }
.info-card {
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-4); }
.info-item { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-4); }
.info-item:last-child { margin-bottom: 0; }
.info-item svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }
.info-item .label { font-size: 0.82rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.info-item a, .info-item .val { font-weight: 500; color: var(--slate-900); }

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding-block: var(--sp-10) var(--sp-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.site-footer .brand { color: var(--white); margin-bottom: var(--sp-4); }
.site-footer .brand b { color: var(--blue-200); }
.footer-about { max-width: 40ch; font-size: 0.95rem; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.footer-col a { color: var(--slate-400); font-size: 0.95rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-5);
  font-size: 0.88rem;
  color: var(--slate-500);
}

/* ---------- Utilities ----------------------------------------------------- */
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
[hidden] { display: none !important; }
