/* ==========================================================================
   Graticule — Marketing Consulting
   GIS / satellite-navigation visual system
   ========================================================================== */

:root {
  --space:        #081423;
  --space-2:      #0b1d33;
  --space-3:      #0f2842;
  --panel:        rgba(16, 38, 64, 0.55);
  --panel-solid:  #0c2038;
  --line:         rgba(75, 233, 255, 0.16);
  --line-strong:  rgba(75, 233, 255, 0.34);
  --cyan:         #4BE9FF;
  --emerald:      #3ED6A3;
  --ink:          #eaf6ff;
  --muted:        #9fc0d6;
  --muted-2:      #6f92ac;
  --radius:       16px;
  --radius-sm:    10px;
  --maxw:         1180px;
  --glow-cyan:    0 0 24px rgba(75, 233, 255, 0.35);
  --glow-emerald: 0 0 24px rgba(62, 214, 163, 0.30);
  --font:         "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono:         "SFMono-Regular", "JetBrains Mono", "Consolas", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(75,233,255,0.10), transparent 60%),
    radial-gradient(900px 520px at 8% 8%, rgba(62,214,163,0.08), transparent 58%),
    var(--space);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Animated coordinate grid layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  z-index: 0;
  pointer-events: none;
  animation: gridDrift 26s linear infinite;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 55%, transparent 100%);
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 46px 46px, 46px 46px; }
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(75,233,255,0.06);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald); box-shadow: var(--glow-emerald);
  animation: ping 2.4s ease-in-out infinite;
}
@keyframes ping { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.96rem;
  padding: 13px 24px; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  color: #04121d; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(75,233,255,0.5); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(75,233,255,0.04);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(8, 20, 35, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; font-size: 1.22rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span b { color: var(--cyan); }
.brand small { display: block; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.24em; color: var(--muted-2); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: var(--cyan); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-tel { color: var(--ink); font-weight: 600; font-size: 0.94rem; white-space: nowrap; }
.nav-tel:hover { color: var(--cyan); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--cyan); width: 44px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 74px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); margin: 20px 0 18px; }
.hero h1 .hl { background: linear-gradient(120deg, var(--cyan), var(--emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta div { }
.hero-meta b { display: block; font-size: 1.5rem; color: var(--ink); font-family: var(--mono); }
.hero-meta span { font-size: 0.82rem; color: var(--muted-2); }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(75,233,255,0.05);
}
.hero-visual img { width: 100%; height: 420px; object-fit: cover; filter: saturate(1.05) contrast(1.03) brightness(0.82); }
.hero-visual .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,20,35,0.15), rgba(8,20,35,0.78)),
              repeating-linear-gradient(0deg, transparent 0 3px, rgba(8,20,35,0.10) 3px 4px);
  pointer-events: none;
}
.hero-visual .scan {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: var(--glow-cyan);
  animation: scan 4.5s ease-in-out infinite; z-index: 2;
}
@keyframes scan { 0%,100% { top: 4%; opacity: 0; } 10% { opacity: 1; } 50% { top: 96%; opacity: 1; } 60% { opacity: 0; } }
.hud {
  position: absolute; z-index: 3; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--cyan); background: rgba(8,20,35,0.7); border: 1px solid var(--line-strong);
  padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(4px);
}
.hud.tl { top: 14px; left: 14px; }
.hud.br { bottom: 14px; right: 14px; color: var(--emerald); border-color: rgba(62,214,163,0.4); }

/* ---------- Section shell ---------- */
section { position: relative; padding: 76px 0; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px 160px at var(--mx,50%) var(--my,0%), rgba(75,233,255,0.10), transparent 70%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 44px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(75,233,255,0.06); margin-bottom: 16px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .tag { margin-top: 14px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--emerald); text-transform: uppercase; }

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.step .num { font-family: var(--mono); color: var(--cyan); font-size: 0.8rem; letter-spacing: 0.16em; margin-bottom: 12px; }
.step h4 { font-size: 1.04rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 0.9rem; }
.step::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--line-strong); font-size: 1.1rem; }
.steps .step:last-child::after { display: none; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split .media { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; position: relative; }
.split .media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; filter: brightness(0.82) saturate(1.05); }
.split .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(75,233,255,0.10), transparent 40%, rgba(8,20,35,0.4)); }
.checklist { list-style: none; margin-top: 20px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--muted); }
.checklist li b { color: var(--ink); font-weight: 600; }
.checklist .mk { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(62,214,163,0.12); border: 1px solid rgba(62,214,163,0.4); color: var(--emerald); font-size: 0.8rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.stat b { display: block; font-family: var(--mono); font-size: 2.1rem; color: var(--cyan); text-shadow: var(--glow-cyan); }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  background: var(--panel); transition: transform .2s ease, border-color .2s ease;
}
.price:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.price.featured { border-color: var(--cyan); box-shadow: var(--glow-cyan); background: linear-gradient(180deg, rgba(75,233,255,0.08), var(--panel)); }
.price .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: #04121d; background: linear-gradient(135deg, var(--cyan), var(--emerald)); padding: 5px 14px; border-radius: 100px; font-weight: 700; }
.price h3 { font-size: 1.2rem; }
.price .desc { color: var(--muted-2); font-size: 0.88rem; margin: 6px 0 18px; min-height: 40px; }
.price .amount { font-family: var(--mono); font-size: 2.3rem; color: var(--ink); }
.price .amount small { font-size: 0.9rem; color: var(--muted-2); letter-spacing: 0; }
.price .per { color: var(--muted-2); font-size: 0.82rem; margin-bottom: 20px; }
.price ul { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.price ul li { display: flex; gap: 10px; color: var(--muted); font-size: 0.93rem; }
.price ul li::before { content: "◈"; color: var(--emerald); flex: 0 0 auto; }
.price .btn { margin-top: auto; width: 100%; }
.price-note { text-align: center; color: var(--muted-2); font-size: 0.86rem; margin-top: 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.info-item .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(75,233,255,0.06); color: var(--cyan); }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item h4 { font-size: 0.98rem; margin-bottom: 3px; }
.info-item p, .info-item a { color: var(--muted); font-size: 0.94rem; }

.form-card { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 30px 28px; background: var(--panel-solid); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.84rem; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field label .req { color: var(--emerald); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(8,20,35,0.6); border: 1px solid var(--line);
  color: var(--ink); font-family: inherit; font-size: 0.95rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(75,233,255,0.12); }
.field textarea { resize: vertical; min-height: 118px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.checkbox input { width: auto; margin-top: 3px; accent-color: var(--cyan); }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-msg.ok { display: block; background: rgba(62,214,163,0.12); border: 1px solid rgba(62,214,163,0.4); color: var(--emerald); }
.form-msg.err { display: block; background: rgba(255,90,120,0.12); border: 1px solid rgba(255,90,120,0.4); color: #ff9fb0; }
.field small.hint { display: block; color: #ff9fb0; font-size: 0.78rem; margin-top: 5px; min-height: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 4px); padding: 52px 30px; background: linear-gradient(150deg, rgba(75,233,255,0.08), rgba(62,214,163,0.06)); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 56px 0 30px; background: rgba(8,18,32,0.6); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid ul li a { color: var(--muted); font-size: 0.92rem; }
.footer-grid ul li a:hover { color: var(--cyan); text-decoration: none; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 14px 0; max-width: 34ch; }
.footer-brand .coord { font-family: var(--mono); font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.1em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.84rem; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 22px; right: 22px; bottom: 22px; z-index: 80;
  max-width: 560px; margin: 0 auto;
  background: rgba(9, 22, 38, 0.94); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  transform: translateY(160%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cookie.show { transform: translateY(0); }
.cookie h4 { font-size: 1rem; margin-bottom: 7px; display: flex; align-items: center; gap: 9px; }
.cookie h4 svg { width: 20px; height: 20px; color: var(--cyan); }
.cookie p { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; }
.cookie p a { color: var(--cyan); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 60px 0 40px; }
.legal .doc { max-width: 820px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 42px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 0.76rem; color: var(--muted-2); letter-spacing: 0.1em; margin-bottom: 30px; }
.legal h2 { font-size: 1.24rem; margin: 30px 0 12px; color: var(--ink); }
.legal h3 { font-size: 1.04rem; margin: 20px 0 8px; color: var(--cyan); }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal ul { color: var(--muted); margin: 0 0 16px 22px; display: grid; gap: 8px; }
.legal a { color: var(--cyan); }
.legal .backlink { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { height: 300px; }
  .grid-3, .pricing { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step::after { display: none; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-tel { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(8,20,35,0.98); border-bottom: 1px solid var(--line-strong); padding: 12px 22px 20px;
  }
  .nav.open .nav-links a { padding: 8px 0; width: 100%; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats, .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px; }
  .legal .doc { padding: 28px 22px; }
  .cta-band { padding: 38px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
