/* ═══ LOKIT GROUP — CSS commun ═══ */

:root {
  --bg: #060a10;
  --bg-card: #0c1019;
  --bg-elevated: #111827;
  --border: #1a2236;
  --border-hover: #2a3a5c;
  --text: #e4e8f0;
  --text-muted: #7b8ba8;
  --blue: #2196f3;
  --blue-bright: #42a5f5;
  --blue-deep: #1565c0;
  --blue-glow: rgba(33, 150, 243, 0.15);
  --cyan: #4fc3f7;
  --cyan-glow: rgba(79, 195, 247, 0.12);
  --gradient: linear-gradient(135deg, #1565c0, #42a5f5, #4fc3f7);
  --gradient-text: linear-gradient(135deg, #42a5f5, #4fc3f7, #80deea);
  --gradient-soft: linear-gradient(180deg, rgba(33,150,243,0.14), rgba(79,195,247,0.04));
  --sans: 'Outfit', system-ui, sans-serif;
  --shadow: 0 22px 70px rgba(0,0,0,0.28);
  --radius: 22px;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  background: radial-gradient(circle at 0% 0%, var(--blue-glow), transparent 28%),
              radial-gradient(circle at 100% 10%, var(--cyan-glow), transparent 26%),
              linear-gradient(180deg, #060a10 0%, #0a1424 45%, #060a10 100%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: #fff; color: #111; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ─── NAV ─── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(6,10,16,0.82);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 78px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; padding: 14px 0;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 44px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 16px; border-radius: 8px;
  color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
  transition: all 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-cta {
  background: var(--gradient) !important; color: #fff !important;
  font-weight: 700 !important; border-radius: 10px !important;
  box-shadow: 0 8px 24px var(--blue-glow) !important;
}
.nav-cta:hover { box-shadow: 0 12px 36px rgba(33,150,243,0.3) !important; transform: translateY(-1px); }

.hamburger {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255,255,255,0.03); color: var(--text);
  align-items: center; justify-content: center; cursor: pointer;
}

/* ─── HERO ─── */
.hero { padding: 80px 0 40px; }

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 20px; align-items: stretch;
}

.panel {
  position: relative; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
  box-shadow: var(--shadow); overflow: hidden;
}

.hero-main { padding: 44px; display: flex; flex-direction: column; justify-content: center; }

.hero-main::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--blue-glow), rgba(79,195,247,0.04) 42%, transparent 74%);
  border-radius: inherit; pointer-events: none; z-index: 0;
}

.hero-main > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--cyan); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.72rem; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 40px; height: 1px; background: rgba(79,195,247,0.65); }

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.06; max-width: 16ch;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: 1.08rem; font-weight: 600; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead {
  margin-top: 22px; max-width: 62ch; color: #c8d8f0;
  font-size: 1.05rem; line-height: 1.85; font-weight: 300;
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  border-radius: 100px; padding: 8px 16px; font-size: 0.82rem; font-weight: 500;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(79,195,247,0.16); color: #d0e4ff;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: 12px;
  font-weight: 700; font-family: var(--sans); font-size: 0.92rem;
  border: none; cursor: pointer; transition: all 0.25s;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 10px 30px var(--blue-glow);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(33,150,243,0.3); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(33,150,243,0.05); transform: translateY(-2px); }

.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 28px; }
.proof-card {
  padding: 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03);
}
.proof-card strong { display: block; font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.proof-card span { display: block; color: var(--text-muted); font-size: 0.82rem; line-height: 1.55; font-weight: 300; }

.hero-side { display: grid; grid-template-rows: 1.1fr 0.9fr; gap: 16px; }
.hero-side .panel { padding: 28px; }

.stack { display: grid; gap: 12px; margin-top: 16px; }
.stack-card, .mini-card {
  padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.stack-card p, .mini-card p { margin: 6px 0 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; font-weight: 300; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }

/* ─── SECTIONS ─── */
section { padding: 32px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-head > div { max-width: 62ch; }
.section-intro { margin-top: 12px; color: var(--text-muted); font-weight: 300; line-height: 1.75; }
.divider { max-width: var(--container); margin: 12px auto; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

.summary-box {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid rgba(66,165,245,0.2);
  background: linear-gradient(180deg, rgba(33,150,243,0.12), rgba(33,150,243,0.03));
  box-shadow: var(--shadow);
}
.summary-box p { color: #d0e4ff; font-size: 1.02rem; line-height: 1.9; font-weight: 300; }

/* Cards grid */
.cards-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.cards-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }

.card {
  padding: 24px; border: 1px solid var(--border); border-radius: 18px;
  background: rgba(255,255,255,0.025);
  transition: all 0.3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: 0 18px 44px rgba(0,0,0,0.2); }
.card .icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; margin-bottom: 14px;
  background: var(--gradient-soft); border: 1px solid rgba(79,195,247,0.18);
  color: var(--cyan); font-size: 0.85rem; font-weight: 800;
}
.card p { margin-top: 10px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; font-weight: 300; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card .tag {
  padding: 5px 10px; border-radius: 100px; font-size: 0.72rem;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06); color: #b8c8e0;
}
.card a.more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; color: var(--blue-bright); font-weight: 600; font-size: 0.88rem;
}

/* Approach */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list { display: grid; gap: 14px; margin-top: 16px; }
.list-item { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.dot {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 100px; background: rgba(33,150,243,0.14);
  color: var(--cyan); font-size: 0.85rem; font-weight: 800;
}
.list-item strong { display: block; margin-bottom: 4px; }
.list-item p { margin: 0; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

.method-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.method-step {
  padding: 22px; border: 1px solid var(--border); border-radius: 18px;
  background: rgba(255,255,255,0.025); transition: all 0.3s;
}
.method-step:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.method-step .num {
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 100px; background: rgba(33,150,243,0.16); color: var(--cyan);
  margin-bottom: 12px; font-weight: 800; font-size: 0.9rem;
}
.method-step p { margin-top: 8px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; font-weight: 300; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; transition: all 0.4s;
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: 0 24px 64px rgba(0,0,0,0.4); }
.team-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; filter: grayscale(15%) contrast(1.05); transition: filter 0.4s; }
.team-card:hover .team-photo { filter: grayscale(0%) contrast(1.1); }
.team-info { padding: 24px; }
.team-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.76rem; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.team-info p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; font-weight: 300; }

/* Local */
.local-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.local-card {
  padding: 22px; border-radius: 18px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.local-card h3 { margin-bottom: 8px; }
.local-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; font-weight: 300; }

/* FAQ */
.faq-grid { display: grid; gap: 12px; margin-top: 16px; }
details { border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,0.025); overflow: hidden; }
summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--cyan); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: '\2212'; }
.faq-answer { padding: 0 20px 18px; color: var(--text-muted); line-height: 1.72; font-weight: 300; }

/* Email protection fallback */
.email-protect { cursor: pointer; color: var(--blue-bright); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; }
.contact-box { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.contact-box p { color: var(--text-muted); line-height: 1.72; font-weight: 300; margin-top: 12px; }
.contact-stack { display: grid; gap: 12px; margin-top: 18px; }
.contact-item { padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.contact-item strong { display: block; margin-bottom: 6px; font-size: 0.92rem; }
.contact-item span, .contact-item a { color: var(--text-muted); line-height: 1.72; font-weight: 300; }
.contact-item a:hover { color: var(--blue-bright); }

.form-card {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(255,255,255,0.025);
  box-shadow: var(--shadow);
}
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 600; color: #c8d8f0; letter-spacing: 0.04em; }
input, select, textarea {
  width: 100%; border-radius: 10px;
  border: 1px solid rgba(151,181,233,0.16); background: #0a1321;
  color: var(--text); padding: 13px 15px; font: inherit; font-size: 1rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(66,165,245,0.56); box-shadow: 0 0 0 3px var(--blue-glow); }
textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--text-muted); font-size: 0.8rem; line-height: 1.65; }

/* Final CTA */
.final-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 30px; border-radius: 24px;
  border: 1px solid rgba(66,165,245,0.22);
  background: linear-gradient(135deg, rgba(17,38,73,0.98), rgba(10,18,30,0.98));
  box-shadow: var(--shadow);
}
.final-cta p { margin: 10px 0 0; color: var(--text-muted); max-width: 62ch; line-height: 1.75; font-weight: 300; }

/* Footer */
footer { padding: 28px 0 40px; color: var(--text-muted); font-size: 0.88rem; }
.footer-inner { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.footer-links a:hover { color: var(--blue-bright); }

/* ─── SERVICE PAGE HERO ─── */
.service-hero { padding: 80px 0 40px; }
.service-hero .hero-main { max-width: 800px; }
.service-hero h1 { max-width: 24ch; }

/* ─── PAGE HERO (generic for local/utility pages) ─── */
.page-hero { padding: 80px 0 40px; }
.page-hero .panel { padding: 44px; }
.page-hero h1 { max-width: 28ch; }

/* ─── SERVICES GRID (for local pages) ─── */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-link-card {
  padding: 24px; border: 1px solid var(--border); border-radius: 18px;
  background: rgba(255,255,255,0.025); transition: all 0.3s;
}
.service-link-card:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: 0 18px 44px rgba(0,0,0,0.2); }
.service-link-card h3 { margin-bottom: 8px; }
.service-link-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; font-weight: 300; margin-bottom: 12px; }
.service-link-card a.more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-bright); font-weight: 600; font-size: 0.88rem;
}

/* ─── LEGAL PAGES ─── */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin-top: 32px; margin-bottom: 12px; }
.legal-content h3 { margin-top: 20px; margin-bottom: 8px; }
.legal-content p { color: var(--text-muted); line-height: 1.8; font-weight: 300; margin-bottom: 14px; }
.legal-content ul { color: var(--text-muted); line-height: 1.8; font-weight: 300; margin-bottom: 14px; padding-left: 24px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--blue-bright); }
.legal-content a:hover { text-decoration: underline; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(32px); transition: all 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }

.anchor-offset { scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── TABLET (max 1120px) ─── */
@media (max-width: 1120px) {
  .hero-grid, .split, .contact-layout { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: auto; }
  .cards-3, .cards-4, .local-grid, .method-grid, .proof-grid, .team-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .final-cta { flex-direction: column; align-items: flex-start; }
}

/* ─── MOBILE (max 760px) ─── */
@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .hamburger { display: inline-flex; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding: 10px 0; gap: 2px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 0.95rem; }
  .hero, .service-hero, .page-hero { padding-top: 48px; }
  .hero-main, .form-card, .contact-box, .page-hero .panel, .summary-box { padding: 22px; }
  .final-cta { padding: 22px; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); max-width: none; }
  .service-hero h1, .page-hero h1 { max-width: none; }
  .lead { font-size: 1rem; }
  .row { grid-template-columns: 1fr; }
  .cards-3, .cards-4, .local-grid, .method-grid, .team-grid, .services-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .mini-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { gap: 10px 16px; }
  .btn { width: 100%; min-height: 50px; padding: 0 20px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* ─── SMALL PHONE (max 480px) ─── */
@media (max-width: 480px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .hero, .service-hero, .page-hero { padding-top: 32px; }
  .hero-main, .form-card, .contact-box, .page-hero .panel, .summary-box { padding: 18px; }
  .final-cta { padding: 18px; }
  .card { padding: 18px; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .proof-card { padding: 12px; }
  .proof-card strong { font-size: 1.1rem; }
  .brand img { height: 36px; }
  section { padding: 24px 0; }
}
