/* =========================================================
   LogiWeb — Design tokens
   ========================================================= */
:root {
  --ink: #10192E;
  --ink-soft: #1B2740;
  --paper: #F6F7FA;
  --white: #FFFFFF;
  --cobalt: #2A4BD7;
  --cobalt-dark: #1B34A0;
  --amber: #F2A93B;
  --slate: #47536B;
  --mist: #93A0BE;
  --line: #E2E5ED;
  --line-dark: #2B3A5A;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em 0; max-width: 62ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow-hidden { display: none; } /* intentionally not used — avoiding generic eyebrow label pattern */

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}
.btn-primary:hover { background: #f0a020; box-shadow: 0 6px 18px rgba(242,169,59,0.35); }

.btn-outline {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline-dark:hover { border-color: var(--cobalt); color: var(--cobalt); }

.btn-cobalt {
  background: var(--cobalt);
  color: var(--white);
}
.btn-cobalt:hover { background: var(--cobalt-dark); box-shadow: 0 6px 18px rgba(42,75,215,0.3); }

.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 25, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand-mark { width: 32px; height: 32px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: var(--mist);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 65px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 24px 28px; gap: 20px; border-bottom: 1px solid var(--line-dark); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-outline { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s forwards;
}

.hero h1 {
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.hero .lede {
  color: var(--mist);
  font-size: 1.1rem;
  max-width: 46ch;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.68s forwards;
}

.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.85s forwards;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  font-size: 0.88rem;
}
.hero-trust-item svg { width: 16px; height: 16px; color: var(--amber); flex-shrink: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Circuit mark drawing animation */
.circuit-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s ease forwards 0.2s;
}
.circuit-node {
  opacity: 0;
  transform-origin: center;
  animation: nodePop 0.4s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nodePop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at 30% 30%, black, transparent 70%);
}

/* =========================================================
   Sections (generic)
   ========================================================= */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-ink { background: var(--ink); color: var(--white); }
.section-ink .section-kicker { color: var(--amber); }
.section-ink p { color: var(--mist); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-kicker {
  font-family: var(--font-display);
  color: var(--cobalt);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.section-head p { color: var(--slate); font-size: 1.05rem; }

/* =========================================================
   Pillars / value props
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: var(--white);
  padding: 32px 28px;
}
.pillar-icon { width: 36px; height: 36px; color: var(--cobalt); margin-bottom: 18px; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--slate); font-size: 0.95rem; margin: 0; }

@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr; }
}

/* =========================================================
   Service cards
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--cobalt); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,25,46,0.08); }
.card-featured { border: 2px solid var(--cobalt); position: relative; }
.card-tag {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--cobalt);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 4px; }
.card-desc { color: var(--slate); font-size: 0.92rem; margin-bottom: 20px; }
.card-list { list-style: none; padding: 0; margin: 0 0 28px 0; flex-grow: 1; }
.card-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink);
}
.card-list li:first-child { border-top: none; }
.card-list svg { width: 16px; height: 16px; color: var(--cobalt); flex-shrink: 0; margin-top: 3px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

/* =========================================================
   Process steps
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
  counter-reset: step;
}
.step { position: relative; padding-left: 46px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--amber);
  border: 1px solid var(--line-dark);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { color: var(--white); margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--mist); font-size: 0.9rem; margin: 0; }

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item { background: var(--white); padding: 24px 28px; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--slate); font-size: 0.95rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--cobalt);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-primary:hover { background: var(--white); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: var(--mist); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--mist); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--mist); font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.social-row { display: flex; gap: 14px; }
.social-row a { width: 36px; height: 36px; border: 1px solid var(--line-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s ease, color 0.15s ease; }
.social-row a:hover { border-color: var(--amber); color: var(--amber); }
.social-row svg { width: 16px; height: 16px; }

.share-row { display: flex; align-items: center; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
.share-label { font-size: 0.85rem; color: var(--mist); margin-right: 4px; }
.share-row a { width: 34px; height: 34px; border: 1px solid var(--line-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--mist); transition: border-color 0.15s ease, color 0.15s ease; }
.share-row a:hover { border-color: var(--cobalt); color: var(--white); }
.share-row svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   About page
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
.stat-row { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--cobalt); }
.stat-label { font-size: 0.85rem; color: var(--slate); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.tech-chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tech-chip:hover { border-color: var(--cobalt); transform: translateY(-2px); }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-channels { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.channel-card:hover { border-color: var(--cobalt); transform: translateX(3px); }
.channel-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.channel-icon svg { width: 22px; height: 22px; }
.icon-whatsapp { background: #25D366; }
.icon-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.icon-mail { background: var(--cobalt); }
.icon-upwork { background: #14A800; }
.channel-title { font-weight: 600; font-size: 0.98rem; }
.channel-sub { font-size: 0.85rem; color: var(--slate); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 14px; }

/* =========================================================
   Misc
   ========================================================= */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 72px;
}
.page-hero .hero-eyebrow { animation: none; opacity: 1; }
.page-hero h1 { color: var(--white); animation: none; opacity: 1; }
.page-hero p { color: var(--mist); animation: none; opacity: 1; max-width: 56ch; }
