/* ============================================================
   GIGA TECH — gigatechzw.com
   Palette: paper #FAFAF8 · ink #17181A · red #D8232A
            gray #6E6E6B · line #E6E4E0
   Type:    Archivo (display) · Instrument Sans (body)
            IBM Plex Mono (spec labels)
   ============================================================ */

:root {
  --paper: #FAFAF8;
  --ink: #17181A;
  --red: #D8232A;
  --red-dark: #B01B21;
  --gray: #6E6E6B;
  --line: #E6E4E0;
  --white: #FFFFFF;

  --font-display: "Archivo", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --maxw: 1120px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}

.lede {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 34em;
}

.accent { color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--red); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s;
}
.nav a:hover, .nav a.active { color: var(--red); }

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Current line (signature) ---------- */
.current-line {
  position: relative;
}
.current-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--line) 8%, var(--line) 92%, transparent);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  .current-line::before { display: none; }
}

.node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--red);
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero .lede { margin: 24px 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg { width: 85%; height: auto; }

.spec-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gray);
  background: var(--white);
}
.chip b { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .lede { color: #A9A9A6; }
.section-dark .chip { background: transparent; border-color: #3A3A3D; color: #A9A9A6; }
.section-dark .chip b { color: var(--paper); }

.section-head { max-width: 620px; margin-bottom: 48px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(23, 24, 26, 0.07);
  border-color: var(--red);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(216, 35, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--red); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.97rem; }
.card .card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--red);
}

.section-dark .card {
  background: #1F2023;
  border-color: #2C2D30;
}
.section-dark .card p { color: #A9A9A6; }
.section-dark .card:hover { border-color: var(--red); }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--red);
  position: relative;
}
.price-card.featured::before {
  content: "Most requested";
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card .tier {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}
.price-card .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-card .amount small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0;
}
.price-card .for-who {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 12px 0 22px;
}
.price-card ul { margin-bottom: 26px; flex: 1; }
.price-card li {
  padding: 8px 0 8px 28px;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23D8232A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') no-repeat center / contain;
}
.price-note {
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--gray);
  text-align: center;
}

/* ---------- Process (EPC) ---------- */
.process {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.process::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.step {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  position: relative;
}
.step-marker {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--red);
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray); max-width: 46em; }
.step .step-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
  display: block;
}

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  color: var(--red);
}
.stat .label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(23, 24, 26, 0.07);
}
.post-thumb {
  height: 160px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-thumb svg { width: 64px; height: 64px; stroke: var(--red); opacity: 0.9; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-body .meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.post-body h3 { margin-bottom: 10px; }
.post-body p { color: var(--gray); font-size: 0.94rem; flex: 1; }
.post-body .read-more {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--red);
}

/* ---------- Article ---------- */
.article {
  max-width: 700px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}
.article .meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 20px; }
.article .intro { font-size: 1.15rem; color: var(--gray); margin-bottom: 40px; }
.article h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.article p { margin-bottom: 18px; }
.article ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.article li { margin-bottom: 8px; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.article th, .article td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.article th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.article .callout {
  background: rgba(216, 35, 42, 0.05);
  border-left: 3px solid var(--red);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
.article .callout p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 14em; }
.cta-band .btn {
  background: var(--white);
  color: var(--red);
}
.cta-band .btn:hover { background: var(--ink); color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list svg { width: 20px; height: 20px; stroke: var(--red); flex: 0 0 20px; margin-top: 3px; }
.contact-list .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
}
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--red); }

form .field { margin-bottom: 16px; }
form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
form input, form textarea, form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
form input:focus, form textarea:focus, form select:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A9A9A6;
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2C2D30;
}
.site-footer .logo { color: var(--paper); }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 16px;
}
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--red); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-grid, .price-grid, .post-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 28px; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav.open { transform: none; }
  .nav-toggle { display: block; }
}
