@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/jost-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #0a1730;
  --ink-2: #12264a;
  --blue: #2f5fcf;
  --blue-light: #6592e6;
  --coral: #ff6666;
  --text: #1d2a3f;
  --muted: #5a6b85;
  --line: #e2e8f2;
  --soft: #f4f7fc;
  --cream: #faf8f4;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(10, 23, 48, .10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Jost", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px; line-height: 1.65; color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 1rem; transition: color .3s; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-light), var(--blue)); color: #fff; font-weight: 700; letter-spacing: 0; font-size: 1rem; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: rgba(255,255,255,.9); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav .cta { background: var(--coral); color: #fff; padding: 9px 22px; border-radius: 999px; font-weight: 600; }
.nav .cta:hover { background: #ff4d4d; }
.site-header.solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.solid .brand { color: var(--ink); }
.site-header.solid .nav a { color: var(--text); }
.site-header.solid .nav a:hover { color: var(--blue); }
.site-header.solid .nav .cta { color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: .25s; }
.site-header.solid .menu-btn span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 500px at 78% 40%, rgba(47,95,207,.32), transparent 65%),
    radial-gradient(700px 400px at 5% 100%, rgba(255,102,102,.14), transparent 60%),
    var(--ink); }
.hero .wrap { width: 100%; padding-top: 120px; padding-bottom: 150px; position: relative; }
.hero-copy { max-width: 620px; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; font-weight: 600; color: var(--coral); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--coral); }
.hero h1 { margin: 0 0 24px; font-size: clamp(2.8rem, 6.6vw, 5.3rem); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-light), #9db9f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.32rem; color: #ccd8ee; margin: 0 0 36px; max-width: 540px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2450b5; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #ff4d4d; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.systems { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: #97a9c9; letter-spacing: .04em; }
.systems b { color: #dbe6fb; font-weight: 500; }

.hero-map { position: absolute; right: 1%; top: 50%; transform: translateY(-46%); width: min(60vw, 900px); z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%); mask-image: linear-gradient(to right, transparent 0%, #000 16%); }
.map { width: 100%; height: auto; display: block; overflow: visible; }
.map .land { fill: none; stroke: rgba(101,146,230,.55); stroke-width: 3; stroke-linecap: round; }
.map .arc { fill: none; stroke: #ff8a8a; stroke-width: 1.4; stroke-dasharray: 3 5; opacity: .75; animation: dash 2.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.map .pkt { fill: #fff; filter: drop-shadow(0 0 4px #ff8a8a); }
.map .node .core { fill: #fff; }
.map .node .pulse { fill: var(--blue-light); opacity: .45; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.map .hub .core { fill: var(--coral); }
.map .hub .pulse { fill: var(--coral); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }
.map .node text { fill: #dbe6fb; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.map .hub text { fill: #fff; font-weight: 600; font-size: 16px; }
.map .minor .core { fill: #dbe6fb; }

/* Stats overlap */
.stats { position: relative; z-index: 3; margin-top: -78px; }
.stats-card { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 30px 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.3rem; line-height: 1.1; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.stat strong i { font-style: normal; color: var(--coral); }
.stat span { color: var(--muted); font-size: .98rem; }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; font-weight: 600; color: var(--blue); margin: 0 0 12px; display: inline-flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h2 { margin: 0 0 16px; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
.sub { color: var(--muted); font-size: 1.2rem; max-width: 640px; margin: 0 0 56px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Front-to-back flow */
.flow-bg { background: var(--cream); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; position: relative; }
.stage::after { content: ""; position: absolute; top: 46px; right: -22px; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-light) 0 4px, transparent 4px 8px); }
.stage:last-child::after { display: none; }
.stage .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.stage:nth-child(2) .num { background: var(--blue); }
.stage:nth-child(3) .num { background: var(--coral); }
.stage:nth-child(4) .num { background: #1d8f74; }
.stage h3 { margin: 0 0 10px; font-size: 1.3rem; color: var(--ink); font-weight: 600; }
.stage ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 1rem; }
.stage li { padding: 7px 0; border-top: 1px solid var(--line); }
.stage li:first-child { border-top: 0; }
.rail { margin-top: 26px; border-radius: 16px; background: var(--ink); color: #fff; padding: 20px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; }
.rail strong { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--coral); }
.rail span { color: #dbe6fb; font-weight: 500; }
.rail em { font-style: normal; color: #8fa3c7; font-size: .95rem; margin-left: auto; }

/* Services */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 32px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--blue), var(--coral)); transition: width .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { width: 100%; }
.card .idx { position: absolute; right: 24px; top: 20px; font-size: 3.4rem; font-weight: 700; color: #eef2f9; line-height: 1; }
.icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px; background: #edf2fd; color: var(--blue); position: relative; }
.icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3n+2) .icon { background: #fff0f0; color: #e84a4a; }
.card h3 { margin: 0 0 10px; font-size: 1.38rem; color: var(--ink); font-weight: 600; position: relative; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 1.03rem; position: relative; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; position: relative; }
.card .tags li { font-size: .82rem; font-weight: 500; color: var(--ink-2); background: var(--soft); padding: 3px 11px; border-radius: 999px; }

/* Approach */
.approach { position: relative; color: #fff; isolation: isolate; background: var(--ink) url("images/hero.jpg") center / cover no-repeat fixed; }
.approach::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,23,48,.94), rgba(10,23,48,.86)); }
.approach h2 { color: #fff; }
.approach .kicker { color: var(--coral); }
.approach .sub { color: #c1cee6; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--blue-light), var(--coral)); opacity: .5; }
.step { position: relative; padding-top: 74px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 2px solid var(--blue-light); font-weight: 700; font-size: 1.15rem; }
.step:nth-child(4)::before { border-color: var(--coral); }
.step h3 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 600; }
.step p { margin: 0; color: #c1cee6; font-size: 1.02rem; }

/* About */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about-photo .frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(.9) contrast(1.03); }
.about-photo .badge { position: absolute; left: -22px; bottom: 34px; background: var(--ink); color: #fff; padding: 18px 24px; border-radius: 16px; box-shadow: var(--shadow); max-width: 260px; }
.about-photo .badge strong { display: block; font-size: 1.9rem; line-height: 1.1; }
.about-photo .badge span { color: #b9c8e2; font-size: .95rem; }
.about-text .sub { margin-bottom: 40px; font-size: 1.15rem; }
.timeline { position: relative; margin: 0 0 44px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue-light), var(--coral)); opacity: .45; }
.tl { position: relative; padding: 0 0 30px 52px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 0 6px #fff; }
.tl:last-child::before { border-color: var(--coral); }
.tl .when { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--blue); }
.tl h3 { margin: 2px 0 4px; font-size: 1.28rem; color: var(--ink); font-weight: 600; }
.tl p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.cloud h4 { margin: 0 0 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.chips li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 15px; font-size: .95rem; color: var(--ink-2); font-weight: 500; }

/* Contact */
.contact-bg { position: relative; color: #fff; isolation: isolate; background: var(--ink) url("images/desk.jpg") center / cover no-repeat; }
.contact-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10,23,48,.96), rgba(10,23,48,.88)); }
.contact-bg h2 { color: #fff; }
.contact-bg .kicker { color: var(--coral); }
.contact-bg .sub { color: #c7d4ea; margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.info { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 22px; }
.info li { display: flex; gap: 16px; align-items: flex-start; }
.info .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.info .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: #9fb2d3; font-weight: 600; }
.info a, .info span.v { color: #fff; font-size: 1.15rem; text-decoration: none; }
.info a:hover { text-decoration: underline; }
.docs a { color: #fff; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.35); padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1rem; }
.docs a:hover { background: rgba(255,255,255,.1); }
.docs svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-card { background: #fff; color: var(--text); border-radius: 22px; padding: 40px; box-shadow: 0 30px 60px rgba(0,0,0,.28); }
.form-card h3 { margin: 0 0 22px; font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.row { margin-bottom: 18px; }
label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
input, textarea { width: 100%; padding: 13px 16px; border: 1.5px solid #cfd8e6; border-radius: 12px; font: inherit; font-size: 1rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,95,207,.15); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-card .btn { width: 100%; font-size: 1.05rem; }

/* Footer */
footer { background: var(--ink); color: #9fb2d3; padding: 34px 0; font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
footer a { color: #cfdaf0; }

/* Status page (contact.php) */
.status { min-height: 100vh; display: grid; place-items: center; background: var(--soft); padding: 24px; }
.status .box { background: #fff; padding: 48px; border-radius: 20px; box-shadow: var(--shadow); max-width: 520px; text-align: center; }
.status h1 { margin: 0 0 10px; color: var(--ink); font-size: 2rem; }
.status p { color: var(--muted); margin: 0 0 26px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .map .arc, .map .pulse { animation: none; }
  .map .pkt { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .stage::after { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { position: relative; top: 0; max-width: 520px; }
  .approach { background-attachment: scroll; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  section { padding: 76px 0; }
  .grid, .flow, .steps { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 24px 20px; box-shadow: 0 20px 30px rgba(0,0,0,.12); display: none; }
  .nav.open { display: flex; }
  .nav a, .site-header.solid .nav a { color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .cta, .site-header.solid .nav .cta { text-align: center; margin-top: 16px; border: 0; color: #fff; }
  .site-header.menu-open { background: rgba(255,255,255,.98); }
  .site-header.menu-open .brand { color: var(--ink); }
  .site-header.menu-open .menu-btn span { background: var(--ink); }
  .hero { min-height: 0; display: block; }
  .hero .wrap { padding-top: 110px; padding-bottom: 130px; }
  .hero-map { position: relative; right: auto; top: auto; transform: none; width: 118%; margin: -90px -9% 0; opacity: .95; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%); mask-image: linear-gradient(to bottom, transparent 0%, #000 12%); }
  .hero-copy { max-width: none; }
  .map .node text { font-size: 24px; }
  .map .hub text { font-size: 26px; }
  .stats { margin-top: -60px; }
  .stat { padding: 22px 20px; }
  .stat strong { font-size: 1.7rem; }
  .rail em { margin-left: 0; }
  .about-photo .badge { left: 14px; bottom: 14px; }
  .form-card { padding: 28px 22px; }
}
