/* Pentesoft modern theme — self-contained (no Bootstrap/Tailwind needed) */
:root {
  --navy-950: #060f1f;
  --navy-900: #0a1830;
  --navy-800: #0f2a4a;
  --navy-700: #164a6e;
  --green: #7ac143;
  --green-600: #2e9e3f;
  --teal: #00a99d;
  --ink: #0f1b2d;
  --muted: #5b6b80;
  --line: #e4e9f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --grad: linear-gradient(135deg, var(--green), var(--teal));
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10,24,48,.06), 0 12px 32px -12px rgba(10,24,48,.18);
  --shadow-lg: 0 2px 4px rgba(10,24,48,.08), 0 28px 60px -20px rgba(10,24,48,.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2.title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: .4rem 0 1rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--grad); color: #04210f; box-shadow: 0 10px 30px -10px rgba(122,193,67,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(0,169,157,.7); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(6,15,31,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand img { height: 36px; width: auto; }
.brand span small { font-weight: 500; opacity: .6; margin-left: .25rem; }
.nav ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { white-space: nowrap; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .9rem; border-radius: 999px; transition: .2s; }
.nav ul a:hover, .nav ul a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-cta { margin-left: .6rem; padding: .55rem 1.1rem !important; background: var(--grad); color: #04210f !important; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--navy-950); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url(../images/hero.jpg) center/cover; opacity: .38; filter: saturate(.7); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 80% 40%, rgba(0,169,157,.25), transparent 60%), linear-gradient(100deg, var(--navy-950) 25%, rgba(6,15,31,.78) 60%, rgba(6,15,31,.55)); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 120px 0 80px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; margin: 1rem 0 1.25rem; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: rgba(255,255,255,.78); font-size: 1.2rem; }
.hero .cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-art img { width: 100%; max-width: 560px; margin-inline: auto; animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(1.5deg); } }
.stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stats b { display: block; font-size: 2rem; font-weight: 800; }
.stats span { color: rgba(255,255,255,.65); font-size: .88rem; }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 760px; margin-bottom: 3rem; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center .lead { margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split .visual img { border-radius: 28px; box-shadow: var(--shadow-lg); width: 100%; }
.prose p { color: var(--muted); }
.prose p:first-of-type { font-size: 1.15rem; color: var(--ink); }

/* Capability cards */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.cap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.cap .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-900); display: grid; place-items: center; margin-bottom: 1.1rem; }
.cap .ico img { width: 28px; height: 28px; }
.cap h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.cap > p { color: var(--muted); font-size: .98rem; margin: 0 0 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .84rem; font-weight: 600; padding: .38rem .8rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: #26405e; transition: .2s; }
.chips li:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* Dark band */
.band { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px; background: radial-gradient(circle, rgba(0,169,157,.28), transparent 65%); pointer-events: none; }
.band .lead, .band .prose p { color: rgba(255,255,255,.72); }
.band .prose p:first-of-type { color: #fff; }
.band .chips li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #dbe8f5; }
.band .chips li:hover { background: var(--green); color: #04210f; border-color: var(--green); }
.band .cap { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); box-shadow: none; }
.band .cap > p { color: rgba(255,255,255,.7); }
.band .cap .ico { background: rgba(255,255,255,.1); }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.client { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.client:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.client .logo { background: #fff; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); display: grid; place-items: center; aspect-ratio: 245/130; }
.client .logo img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(.85); opacity: .85; transition: .3s; mix-blend-mode: multiply; }
.client:hover .logo img { filter: none; opacity: 1; }
.client .body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.client h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.client p { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; flex: 1; }
.client .links { display: flex; gap: .9rem; font-size: .88rem; font-weight: 700; }
.client .links a, .client .links button { color: var(--green-600); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; }
.client .links a:hover, .client .links button:hover { color: var(--teal); text-decoration: underline; }
.client.you { background: var(--navy-900); border-color: transparent; }
.client.you .logo { background: var(--navy-800); border-color: rgba(255,255,255,.1); padding: 0; overflow: hidden; }
.client.you .logo img { width: 100%; height: 100%; object-fit: cover; filter: none; opacity: .9; mix-blend-mode: normal; }
.client.you h3 { color: #fff; } .client.you p { color: rgba(255,255,255,.7); }

/* Contact */
.contact { background: var(--navy-950); color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.c-card { padding: 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.c-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; margin-bottom: 1rem; color: #04210f; }
.c-card .ico svg { width: 22px; height: 22px; }
.c-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.c-card p, .c-card a { margin: 0; color: rgba(255,255,255,.75); font-size: .95rem; text-decoration: none; display: block; word-break: break-word; }
.c-card a:hover { color: var(--green); }
.c-card h4 { margin: .8rem 0 .1rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.map-row { display: grid; grid-template-columns: 1fr 2.4fr; gap: 1rem; }
.map-row > img { width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); border: 0; object-fit: cover; }

footer { background: #040a15; color: rgba(255,255,255,.6); padding: 1.6rem 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #04210f; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .3s; z-index: 40; box-shadow: var(--shadow-lg); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Modals */
.modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(6,15,31,.7); backdrop-filter: blur(6px); overflow: auto; padding: 4vh 16px; }
.modal.show { display: block; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-content { background: #fff; border-radius: 24px; max-width: 880px; margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); position: relative; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.modal-x:hover { background: var(--line); }
.m-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.m-grid img { border: 1px solid var(--line); border-radius: 14px; padding: .6rem; background: #fff; }
.m-grid h2 { font-size: 1.9rem; margin-bottom: .5rem; }
.m-grid .tag { color: var(--green-600); font-weight: 700; margin-bottom: 1rem; }
.m-grid p { color: var(--muted); }
.pay-box { text-align: center; padding-top: 1rem; }
.pay-box h2 { margin-bottom: .4rem; }

/* Content is visible by default; the reveal animation only applies once JS has flagged <html class="js"> */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .hero-art img { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 1000px) {
  .client-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 110px; }
  .map-row { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav ul { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: rgba(6,15,31,.97); padding: 1rem 24px 1.4rem; display: none; }
  .nav.open ul { display: flex; }
  .nav.open { background: rgba(6,15,31,.97); }
  .nav-cta { margin: .4rem 0 0; text-align: center; }
  .cap-grid { grid-template-columns: 1fr; }
  .m-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .client-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats { gap: 1.6rem; }
}

/* Map */
.map-box { position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
#map { position: absolute; inset: 0; background: #0a1830; }
.map-link { position: absolute; right: 14px; bottom: 28px; z-index: 500; padding: .55rem 1rem; border-radius: 999px; background: var(--grad); color: #04210f; font-weight: 700; font-size: .88rem; text-decoration: none; box-shadow: var(--shadow-lg); }
.psoft-pin { position: relative; width: 56px; height: 66px; }
.psoft-pin .head { position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--navy-900); border: 3px solid var(--green); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 0 6px rgba(122,193,67,.18); }
.psoft-pin .head img { width: 34px !important; height: 23px !important; max-width: none !important; display: block; }
.psoft-pin::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 14px; height: 14px; background: var(--navy-900); border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: translateX(-50%) rotate(45deg); }
.leaflet-container { font-family: var(--font); }
.leaflet-container a { color: var(--teal); }
.map-tiles { filter: invert(1) hue-rotate(185deg) saturate(.55) brightness(.92) contrast(.92); }
.leaflet-container .leaflet-control-attribution { background: rgba(6,15,31,.8); color: rgba(255,255,255,.6); }
