/* =========================================================
   Vigilo by Vincamore — shared styles for subpages
   ========================================================= */
:root {
  --bg-0: #05070d;
  --bg-1: #0a0e1a;
  --bg-2: #111726;
  --surface: rgba(20, 28, 48, 0.55);
  --surface-2: rgba(14, 20, 36, 0.75);
  --surface-border: rgba(120, 150, 220, 0.12);
  --surface-border-2: rgba(120, 150, 220, 0.22);
  --text-0: #f2f5fb;
  --text-1: #b9c2d6;
  --text-2: #7a869f;
  --blue: #0066FF;
  --blue-soft: #2a7bff;
  --blue-glow: rgba(0,102,255,.45);
  --orange: #FF6B00;
  --orange-soft: #ff8a33;
  --yellow: #ffc93c;
  --red: #ff3e55;
  --green: #22c55e;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
code, .mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.94 0 0 0 0 1 0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.container { width: min(1200px, 92%); margin: 0 auto; position: relative; z-index: 2; }

/* NAV */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 16px 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.top.scrolled {
  background: rgba(7,10,18,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--surface-border);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: 'Manrope'; }
.brand-logo { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--text-0); }
.brand-text .sub { font-family: 'Inter'; font-weight: 500; font-size: 10.5px; letter-spacing: .06em; color: var(--text-2); margin-top: 3px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-1); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-0); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--surface-border);
  border-radius: 999px; padding: 4px; font-size: 12px; font-weight: 600;
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--text-2);
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  transition: all .25s; font: inherit;
}
.lang-toggle button.active { background: var(--blue); color: #fff; box-shadow: 0 2px 10px var(--blue-glow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px; cursor: pointer; border: 0; font-family: inherit;
  transition: transform .2s, box-shadow .25s, background-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 30px -8px var(--blue-glow); }
.btn-primary:hover { background: var(--blue-soft); transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(0,102,255,.7); }
.btn-secondary { background: var(--orange); color: #fff; box-shadow: 0 8px 30px -8px rgba(255,107,0,.55); }
.btn-secondary:hover { background: var(--orange-soft); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text-0); border: 1px solid var(--surface-border); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--surface-border-2); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* PAGE HEADER (instead of hero for subpages) */
.page-head {
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--surface-border);
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(255,107,0,.08), transparent 60%),
    radial-gradient(1000px 600px at 10% 100%, rgba(0,102,255,.12), transparent 60%),
    var(--bg-0);
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,150,220,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,220,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top right, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 30%, transparent 70%);
}
.page-head .container { position: relative; z-index: 1; }
.crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-2); margin-bottom: 22px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.crumb a { color: var(--text-1); transition: color .2s; }
.crumb a:hover { color: var(--text-0); }
.crumb svg { width: 12px; height: 12px; opacity: .6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(0,102,255,.08);
  border: 1px solid rgba(0,102,255,.28);
  font-size: 12px; font-weight: 600;
  color: #9fc2ff; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow.orange { background: rgba(255,107,0,.08); border-color: rgba(255,107,0,.3); color: #ffb07a; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: pulseDot 1.6s ease-in-out infinite; }
.eyebrow.orange .dot { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.page-head h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; margin-bottom: 16px; max-width: 820px; }
.page-head h1 .accent {
  background: linear-gradient(90deg, #3a88ff, #9ec2ff 55%, #ffb07a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head .lead { color: var(--text-1); font-size: 18px; max-width: 680px; }

/* SECTIONS */
section { padding: 90px 0; position: relative; z-index: 2; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--orange-soft); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--text-1); font-size: 16px; max-width: 640px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .4s; }

/* GENERIC CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(0,102,255,.3); box-shadow: 0 24px 50px -30px rgba(0,102,255,.35); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-1); font-size: 14.5px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card-ico {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,102,255,.18), rgba(0,102,255,.04));
  border: 1px solid rgba(0,102,255,.3); color: #9fc2ff;
  margin-bottom: 14px;
}
.card.accent .card-ico {
  background: linear-gradient(135deg, rgba(255,107,0,.18), rgba(255,107,0,.04));
  border-color: rgba(255,107,0,.3); color: var(--orange-soft);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 48px 0 28px; background: var(--bg-1);
  position: relative; z-index: 2;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 36px;
}
.foot-col h5 { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; font-weight: 700; }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col ul li a { color: var(--text-1); font-size: 14px; transition: color .2s; }
.foot-col ul li a:hover { color: var(--text-0); }
.foot-about p { color: var(--text-2); font-size: 13px; margin-top: 14px; max-width: 320px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--surface-border);
  color: var(--text-2); font-size: 13px;
}

/* CTA STRIP */
.cta-strip {
  background: linear-gradient(135deg, rgba(0,102,255,.08), rgba(255,107,0,.06));
  border: 1px solid var(--surface-border-2);
  border-radius: 22px;
  padding: 44px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow), transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.cta-strip h3 { font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 6px; position: relative; }
.cta-strip p { color: var(--text-1); font-size: 15px; max-width: 500px; position: relative; }
.cta-strip .btns { display: flex; gap: 12px; position: relative; z-index: 1; flex-wrap: wrap; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .cta-strip { padding: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .page-head { padding: 120px 0 50px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand-text .sub { display: none; }
  .brand-text .name { font-size: 18px; }
}

.fade-lang { animation: langFade .35s ease; }
@keyframes langFade { from { opacity: 0; transform: translateY(4px);} to {opacity:1; transform: none;} }
