/* ZoneSoft — mid-tone "mist" theme: neither light nor dark */
:root {
  --bg-1: #bcc7cf;
  --bg-2: #a8b6c0;
  --bg-3: #a2b5ae;
  --ink: #0f1d2b;
  --ink-2: #2c3b4a;
  --muted: #3e4d5c;
  --line: rgba(15, 29, 43, 0.12);
  --glass: rgba(236, 241, 244, 0.58);
  --glass-strong: rgba(240, 244, 246, 0.78);
  --glass-border: rgba(255, 255, 255, 0.6);
  --blue: #1f4fd1;
  --green: #17945a;
  --brand: linear-gradient(120deg, #1f4fd1 0%, #1d7fb8 50%, #17945a 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 29, 43, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(15, 29, 43, 0.45);
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-2); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* soft background colour blobs */
.bg-blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: linear-gradient(165deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%); }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.bg-blobs span:nth-child(1) { width: 520px; height: 520px; background: #6f8fe6; top: -140px; left: -120px; }
.bg-blobs span:nth-child(2) { width: 460px; height: 460px; background: #5fc79a; bottom: -160px; right: -100px; }
.bg-blobs span:nth-child(3) { width: 360px; height: 360px; background: #e9b99a; top: 40%; left: 55%; opacity: .3; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .chip:focus-visible, .lang button:focus-visible, a:focus-visible { outline: 3px solid #1f4fd1; outline-offset: 3px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -10px rgba(31, 79, 209, .6); }
.btn--ghost { background: rgba(255,255,255,.45); color: var(--ink); border: 1px solid rgba(255,255,255,.7); }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  background: rgba(214, 222, 228, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { border-radius: 11px; }
.brand small { font-weight: 600; color: var(--muted); font-size: .85rem; margin-left: .15rem; }
.nav { display: flex; gap: .3rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .85rem; border-radius: 999px; color: var(--ink-2); transition: background .2s; }
.nav a:hover, .nav a.is-active { background: rgba(255,255,255,.5); color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: .75rem; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.65); }
.lang button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .8rem; padding: .35rem .7rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255,255,255,.5); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 3rem; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1.4rem; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(-n+2) { color: var(--ink-2); font-weight: 700; font-size: .62em; letter-spacing: -0.02em; margin-bottom: .2em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__art { position: relative; aspect-ratio: 1 / .9; }
.shot { position: absolute; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.7); background: #fff; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot--a { width: 64%; aspect-ratio: 16/10; top: 0; right: 0; transform: rotate(3deg); }
.shot--b { width: 58%; aspect-ratio: 1200/630; bottom: 6%; left: 0; transform: rotate(-4deg); z-index: 2; }
.shot--c { width: 46%; aspect-ratio: 16/10; bottom: 0; right: 4%; z-index: 1; transform: rotate(2deg); }
.hero__badge { position: absolute; top: 34%; left: 6%; z-index: 3; padding: .9rem 1.2rem; display: flex; flex-direction: column; line-height: 1.2; }
.hero__badge strong { font-size: 1.8rem; font-weight: 800; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__badge span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }

/* Stats */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.8rem; }
.stat { text-align: center; padding: .3rem 1rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: .92rem; color: var(--muted); font-weight: 500; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 100%); }
.section__head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.section__head p:last-child { color: var(--ink-2); font-size: 1.07rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { padding: 1.9rem; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.card__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--brand); color: #fff; margin-bottom: 1.2rem; box-shadow: 0 10px 20px -10px rgba(31,79,209,.7); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { padding: 1.7rem; }
.step__n { display: inline-block; font-weight: 800; font-size: .85rem; color: var(--blue); background: rgba(31,79,209,.1); padding: .25rem .6rem; border-radius: 999px; margin-bottom: 1rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 2.8rem; }
.tech span { padding: .45rem .95rem; border-radius: 999px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.6); font-weight: 600; font-size: .88rem; color: var(--ink-2); }

/* Portfolio */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.chip { border: 1px solid rgba(255,255,255,.65); background: rgba(255,255,255,.4); font: inherit; font-weight: 700; font-size: .9rem; padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--ink-2); transition: background .2s, color .2s; }
.chip:hover { background: rgba(255,255,255,.65); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.projects { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.projects > .project { width: calc((100% - 3rem) / 3); }
.project { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .25s ease, box-shadow .25s ease; }
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project.is-hidden { display: none; }
.project__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe5ea; }
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.project:hover .project__media img { transform: scale(1.04); }
.project__status { position: absolute; top: .8rem; left: .8rem; font-size: .74rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; background: rgba(15,29,43,.82); color: #fff; }
.project__body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.tag { font-size: .73rem; font-weight: 700; letter-spacing: .02em; padding: .22rem .6rem; border-radius: 999px; background: rgba(31,79,209,.1); color: var(--blue); }
.tag--green { background: rgba(23,148,90,.12); color: #0f7347; }
.project h3 { margin-bottom: .45rem; }
.project p { font-size: .95rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.project__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.project__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .93rem; text-decoration: none; color: var(--blue); }
.project__link svg { width: 18px; height: 18px; transition: transform .2s; }
.project__link:hover svg { transform: translate(2px, -2px); }
.project__lang { font-size: .75rem; font-weight: 600; color: var(--muted); }

/* CTA */
.cta { padding: 1rem 0; }
.cta__box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 3.2rem); border-radius: calc(var(--radius) + 6px); background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); }
.cta__box h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 40rem; }
.cta__box p { margin: 0; opacity: .92; max-width: 40rem; }
.cta__box .btn { flex-shrink: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact__info > p { color: var(--ink-2); font-size: 1.05rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list .ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.7); color: var(--blue); }
.contact__list div { display: flex; flex-direction: column; }
.contact__list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .1rem; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--blue); }

.form { padding: clamp(1.5rem, 4vw, 2.3rem); display: grid; gap: 1.05rem; background: var(--glass-strong); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(15,29,43,.16); background: rgba(255,255,255,.75);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,79,209,.15); }
.form input.is-invalid, .form textarea.is-invalid { border-color: #c0392b; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__status.ok { color: #0f7347; }
.form__status.err { color: #b0281a; }

/* Footer */
.footer { padding: 2rem 0 1.5rem; }
.footer__card {
  position: relative; overflow: hidden;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 1.4rem;
  border-radius: calc(var(--radius) + 10px);
  background: rgba(236, 241, 244, .5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.footer__card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand);
}
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer__brand p { color: var(--ink-2); margin: .9rem 0 0; max-width: 26rem; font-size: .98rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer__nav a {
  text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2);
  padding: .55rem 1rem; border-radius: 999px; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.7);
  transition: background .2s, color .2s, transform .2s;
}
.footer__nav a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.footer__mid {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.footer__pill {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink);
  padding: .4rem 1rem .4rem .4rem; border-radius: 999px; background: rgba(255,255,255,.55);
  transition: box-shadow .2s, transform .2s;
}
a.footer__pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.footer__pill .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.footer__pill .ico svg { width: 17px; height: 17px; }
.footer__pill--plain { background: transparent; }
.footer__pill--plain .ico { background: rgba(15,29,43,.08); color: var(--ink-2); }
.footer__top-btn {
  margin-left: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: transform .2s;
}
.footer__top-btn:hover { transform: translateY(-3px); }
.footer__top-btn svg { width: 20px; height: 20px; }

.footer__word {
  font-weight: 800; letter-spacing: -0.06em; line-height: .8; text-align: center;
  font-size: clamp(4.5rem, 19vw, 15.5rem);
  margin: .6rem 0 0; user-select: none;
  background: linear-gradient(180deg, rgba(31,79,209,.32) 0%, rgba(23,148,90,.14) 70%, rgba(23,148,90,0) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted);
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .projects > .project { width: calc((100% - 1.5rem) / 2); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .burger { display: inline-flex; }
  .hide-sm { display: none; }
  .nav {
    position: absolute; top: var(--header-h); left: 12px; right: 12px; margin: 0;
    flex-direction: column; padding: .8rem; border-radius: var(--radius);
    background: rgba(226, 232, 236, .96); box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { padding: .8rem 1rem; }
  .header__actions { margin-left: auto; }
  .hero__grid, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__art { max-width: 560px; width: 100%; margin-inline: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0; }
  .stat:nth-child(3) { border-left: 0; }
  .cta__box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .steps, .form__row { grid-template-columns: 1fr; }
  .projects > .project { width: 100%; }
  .footer__top-btn { margin-left: 0; }
  .brand small { display: none; }
}
