/* Techpings — Think Smart. Brand: black, cyan, white. */
:root {
  --bg: #05070a;
  --bg-2: #0b1016;
  --panel: #0f161e;
  --line: #1c2733;
  --text: #f2f6f9;
  --muted: #9aa8b5;
  --cyan: #19e3ff;
  --cyan-dim: #0fb6cf;
  --cyan-glow: rgba(25, 227, 255, 0.18);
  --radius: 14px;
  --max: 1120px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--cyan); color: #000; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 8px; }
.footer-badge img { width: 120px; height: 120px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.22em; font-size: 1.05rem; }
.brand-tag { font-size: 0.62rem; letter-spacing: 0.32em; color: var(--cyan); margin-top: 4px; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
}

/* Hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 65%); pointer-events: none;
}
.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.hero h1 span { color: var(--cyan); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cyan); color: #001318; }
.btn-primary:hover { background: #5cecff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan-dim); }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--cyan-dim); transform: translateY(-2px); }
.card .num { font-family: var(--font-head); color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.2em; }
.card h3 { margin-top: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.82rem; color: var(--muted); margin: 0 6px 8px 0; }

.callout {
  border: 1px solid var(--cyan-dim); border-radius: var(--radius); padding: 32px;
  background: linear-gradient(135deg, rgba(25,227,255,0.08), transparent 60%);
}

/* Prose pages */
.page-head { padding: 72px 0 24px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); }
.prose { max-width: 760px; padding: 48px 0 80px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--muted); font-size: 0.9rem; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 620px; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { margin-top: 5px; accent-color: var(--cyan); }
.hp { position: absolute; left: -5000px; }
.form-status { padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4); }
.form-status.err { display: block; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4); }

/* Ad slots: reserved for AdSense, hidden until ads are switched on */
.ad-slot { display: none; }
body.ads-on .ad-slot { display: block; margin: 32px auto; min-height: 120px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-family: var(--font-head); font-size: 0.95rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--cyan); }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6); display: none;
}
.cookie.show { display: block; }
.cookie p { font-size: 0.93rem; color: var(--muted); margin-bottom: 14px; }
.cookie .actions { margin-top: 0; }
.cookie .btn { padding: 10px 16px; font-size: 0.9rem; }
.cookie-prefs { display: none; margin-bottom: 14px; }
.cookie-prefs.open { display: grid; gap: 10px; }
.cookie-prefs .check strong { color: var(--text); }
