/* ---------------------------------------------
   HumanTechConnect — base
--------------------------------------------- */

:root {
  --bg: #08090b;
  --bg-alt: #0c0d10;
  --surface: #101116;
  --surface-hover: #15161c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f2f2f4;
  --text-muted: #a4a7b0;
  --text-faint: #6d707a;

  --accent: #7c8cff;
  --accent-2: #a78bfa;
  --accent-soft: rgba(124, 140, 255, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --max-width: 1120px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container.narrow { max-width: 720px; }
.container.center { text-align: center; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.15; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0; }

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

ul { margin: 0; padding: 0; list-style: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent);
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08090b;
  box-shadow: 0 0 0 0 rgba(124, 140, 255, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(124, 140, 255, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-small { padding: 10px 20px; font-size: 0.875rem; }
.btn-large { padding: 16px 34px; font-size: 1rem; }

/* ---------------------------------------------
   Header
--------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 16px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */

.hero {
  position: relative;
  padding: 200px 0 140px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero h1 {
  max-width: 880px;
  background: linear-gradient(180deg, #ffffff 20%, #b8bacc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-grid {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 620px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, #000 40%, transparent 100%);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(ellipse at center, rgba(124, 140, 255, 0.28), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

/* ---------------------------------------------
   Sections (generic)
--------------------------------------------- */

.section {
  padding: 128px 0;
  position: relative;
}

.section.alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 0 64px;
}

.section-sub {
  margin-top: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.section-desc {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

.lead-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.lead-text strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------
   Diagnostic grid
--------------------------------------------- */

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.diagnostic-item {
  background: var(--bg);
  padding: 32px 24px;
  transition: background 0.25s var(--ease);
}

.diagnostic-item:hover { background: var(--surface-hover); }

.diagnostic-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.diagnostic-item h3 { margin-bottom: 14px; }

.diagnostic-item ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diagnostic-item li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.diagnostic-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
}

/* ---------------------------------------------
   Cards
--------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 24px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 10px; }

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------------------------------------------
   Check list
--------------------------------------------- */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--text);
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 140, 255, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8cff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.split-label {
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

/* ---------------------------------------------
   Process
--------------------------------------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-item {
  padding: 32px 4px;
  border-top: 1px solid var(--border-strong);
  position: relative;
}

.process-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.process-item h3 { margin-bottom: 10px; }
.process-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------------------------------------------
   Split (positioning)
--------------------------------------------- */

.split-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
}

.split h2 { margin-bottom: 4px; }

/* ---------------------------------------------
   Metrics
--------------------------------------------- */

.metrics-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.metric {
  background: var(--bg-alt);
  padding: 36px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
}

.metric-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------------------------------------------
   CTA section
--------------------------------------------- */

.cta-section {
  text-align: center;
  position: relative;
}

.cta-section h2 { margin-bottom: 16px; }

.cta-section .btn { margin-top: 32px; }

/* ---------------------------------------------
   Contact
--------------------------------------------- */

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-submit { margin-top: 8px; }

.form-note {
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.2em;
}

.form-note.is-error { color: #ff8080; }

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------
   Blog
--------------------------------------------- */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 48px;
}

.blog-list-item {
  display: block;
  background: var(--bg);
  padding: 32px;
  transition: background 0.25s var(--ease);
}

.blog-list-item:hover { background: var(--surface-hover); }

.blog-list-date {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.blog-list-item h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-list-item p:not(.blog-list-date) {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 640px;
}

.blog-list-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.post-back {
  display: block;
  width: fit-content;
  margin-bottom: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.post-back:hover { color: var(--text); }

.post-title {
  margin-bottom: 20px;
}

.post-lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.prose {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 40px 0 16px;
}

.prose h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 32px 0 12px;
}

.prose p { margin-bottom: 20px; }

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li::marker { color: var(--accent); }

.prose strong { color: var(--text); font-weight: 600; }

.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.prose blockquote {
  margin: 24px 0;
  padding: 4px 24px;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-style: italic;
}

.prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
}

.footer-brand p {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
  width: fit-content;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-bottom p {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------------------------------------------
   Reveal animation
--------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------------------------------------------
   Responsive
--------------------------------------------- */

@media (max-width: 900px) {
  .diagnostic-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .split-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero { padding: 160px 0 96px; }

  .section { padding: 88px 0; }

  .diagnostic-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-item { border-top: none; border-left: 2px solid var(--border-strong); padding-left: 20px; }
  .metrics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
}
