/* ============================================================
   Datech Innovation Solutions Ltd — site styles
   Palette: glacier ice + deep ink blue + cyan circuit accent
   Type: Sora (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  --ink: #0b1b2a;
  --deep: #123047;
  --ice: #f1f6fa;
  --mist: #d6e4ee;
  --cyan: #29c5dd;
  --teal: #0e7490;
  --white: #ffffff;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--ice);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.04rem;
}

h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.15; letter-spacing: -0.015em; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.7rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }

a { color: var(--teal); }

/* ---------- header ---------- */
header.site {
  background: var(--ink);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(41,197,221,0.25);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 0.8rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 1.2rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.brand-name {
  font-family: 'Sora', sans-serif; font-weight: 700; color: var(--white);
  font-size: 1.05rem; letter-spacing: 0.01em;
}
.brand-name span { color: var(--cyan); }
nav.links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; }
nav.links a {
  color: #bcd3e2; text-decoration: none; font-size: 0.92rem; padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
nav.links a:hover, nav.links a:focus-visible { color: var(--cyan); }
nav.links a.active { color: var(--white); border-bottom-color: var(--cyan); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(41,197,221,0.16), transparent 55%),
    var(--ink);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p.lead { font-size: 1.15rem; color: #c4d8e5; max-width: 38em; }
.hero .eyebrow { color: var(--cyan); }
.hero-trace { position: absolute; inset: 0; z-index: 1; opacity: 0.5; pointer-events: none; }

/* circuit-trace heading underline — the site's signature */
.trace {
  display: flex; align-items: center; gap: 6px; margin: 0.9rem 0 0;
}
.trace::before { content: ""; height: 2px; width: 64px; background: var(--cyan); }
.trace i, .trace::after {
  content: ""; display: block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
}
.trace i:nth-child(2) { opacity: 0.55; width: 5px; height: 5px; }
.trace i:nth-child(3) { opacity: 0.25; width: 4px; height: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-family: 'Sora', sans-serif;
  font-weight: 600; font-size: 0.95rem; border-radius: 6px;
  padding: 0.75rem 1.5rem; transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #4fd9ee; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--cyan); color: var(--cyan); }
.btn-ghost:hover { background: rgba(41,197,221,0.12); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- sections ---------- */
section.block { padding: 4.2rem 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.block h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.4rem; }
.block .intro { max-width: 44em; color: #33495c; margin-top: 1.1rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--mist); border-radius: 10px;
  padding: 1.7rem 1.6rem; position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.alt .card { background: var(--ice); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,27,42,0.10); border-color: var(--cyan); }
.card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.card p { font-size: 0.96rem; color: #33495c; }
.card .tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 0.6rem;
}
.card a.more { font-weight: 600; text-decoration: none; font-size: 0.92rem; display: inline-block; margin-top: 0.8rem; }
.card a.more::after { content: " →"; }
.card-icon { width: 42px; height: 42px; margin-bottom: 0.9rem; }

/* checklist */
ul.check { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
ul.check li { padding-left: 1.7rem; position: relative; color: #243b4f; }
ul.check li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(41,197,221,0.2);
}

/* steps */
.steps { counter-reset: step; display: grid; gap: 1.2rem; margin-top: 2.2rem; }
.step {
  background: var(--white); border: 1px solid var(--mist); border-radius: 10px;
  padding: 1.4rem 1.5rem 1.4rem 4.4rem; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.3rem; top: 1.35rem;
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--cyan);
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.95rem; color: #33495c; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); color: var(--white); padding: 3.6rem 0; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { color: #bcd3e2; margin-top: 0.6rem; max-width: 40em; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink); color: #9db5c6; padding: 3rem 0 2rem; font-size: 0.93rem;
}
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
footer.site h4 { font-family: 'Sora', sans-serif; color: var(--white); font-size: 0.98rem; margin-bottom: 0.8rem; }
footer.site a { color: #bcd3e2; text-decoration: none; }
footer.site a:hover { color: var(--cyan); }
footer.site ul { list-style: none; display: grid; gap: 0.45rem; }
.foot-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(214,228,238,0.15);
  font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}

/* page hero (inner pages) */
.page-hero { background: var(--ink); color: var(--white); padding: 3.6rem 0 3.2rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.page-hero p { color: #c4d8e5; max-width: 40em; margin-top: 0.9rem; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--cyan); }

@media (max-width: 640px) {
  .nav { justify-content: center; text-align: center; }
  nav.links { justify-content: center; }
  .hero { padding: 3.6rem 0; }
}
