/* ==========================================================================
   HCS Marketing Site — Design tokens
   ========================================================================== */

:root {
  --bg: #0a0d11;
  --bg-alt: #0f1319;
  --surface: #151a21;
  --surface-2: #1b212a;
  --border: #262e39;
  --border-soft: #1d232b;

  --text: #eef1f5;
  --text-dim: #aab2bf;
  --text-faint: #6c7684;

  --accent: #e8934a;
  --accent-dim: #c97a38;
  --accent-tint: rgba(232, 147, 74, 0.12);

  --blue: #5b8cff;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;

  --container: 1180px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 12px 30px -18px rgba(0, 0, 0, 0.6);

  --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", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 { font-weight: 650; letter-spacing: -0.02em; margin: 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin-top: 14px; color: var(--text); }
.section-head p { color: var(--text-dim); font-size: 17px; margin-top: 14px; line-height: 1.6; }

section { position: relative; padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #14100a; }
.btn-primary:hover { background: #f0a05f; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #3a4451; background: rgba(255,255,255,0.03); }

.btn-arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), padding 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 13, 17, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border-soft);
  padding: 13px 0;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo-footer { height: 52px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-portal { font-size: 14px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.nav-portal:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  align-items: center; justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 100px 28px 40px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 18px 4px;
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

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

.hero {
  position: relative;
  padding: 168px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(8,10,13,0.72) 0%, rgba(8,10,13,0.88) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,10,13,0.55) 0%, rgba(8,10,13,0.15) 55%),
    url("../assets/images/hero-warehouse.jpg");
  background-size: cover;
  background-position: center 62%;
}

.hero-content { max-width: 700px; }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.04;
  margin-top: 20px;
  color: #fff;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

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

.stat {
  background: rgba(10,13,17,0.55);
  backdrop-filter: blur(6px);
  padding: 22px 20px;
}
.stat .num { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.stat .label { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.4; }

/* ---------- Logo / trust strip ---------- */

.trust-strip { padding: 34px 0; border-bottom: 1px solid var(--border-soft); }
.trust-strip-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-strip-label { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.trust-marks { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-mark {
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 34px 30px;
  transition: background 0.25s var(--ease);
}
.service-card:hover { background: var(--surface-2); }

.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-s);
  background: var(--accent-tint);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { font-size: 17px; color: var(--text); margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-soft);
  isolation: isolate;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover img { transform: scale(1.05); }

.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,17,0) 35%, rgba(10,13,17,0.92) 100%);
  z-index: 1;
}

.project-tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #14100a; background: var(--accent);
  padding: 6px 11px; border-radius: 999px;
}

.project-caption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.project-caption h4 { color: #fff; font-size: 19px; }
.project-caption p { color: var(--text-dim); font-size: 13.5px; margin-top: 6px; }

/* ---------- Client roster ---------- */

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.client-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 20px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dim);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.client-chip:hover { border-color: var(--accent-dim); color: var(--text); background: var(--surface-2); }

.client-note { margin-top: 22px; font-size: 14px; color: var(--text-faint); }

/* ---------- Expertise / tech ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.split-media img { width: 100%; }

.check-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; }
.check-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.check-icon svg { width: 12px; height: 12px; }
.check-item p { font-size: 15px; color: var(--text-dim); line-height: 1.55; }
.check-item strong { color: var(--text); font-weight: 600; }

/* ---------- Why choose ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pillar { padding: 6px 0; }
.pillar-index { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.pillar h3 { font-size: 20px; margin-top: 14px; color: var(--text); }
.pillar p { margin-top: 10px; font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Team ---------- */

.team-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.team-media { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--border); }
.team-cards { display: flex; flex-direction: column; gap: 18px; }
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px 26px;
  background: var(--surface);
  display: flex; gap: 18px; align-items: center;
}
.team-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #14100a; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.team-card h4 { font-size: 17px; color: var(--text); }
.team-card span { font-size: 13.5px; color: var(--accent); font-weight: 600; }
.team-card p { font-size: 13.5px; color: var(--text-faint); margin-top: 4px; }

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

.cta-panel {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface), var(--bg-alt));
  padding: 64px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute; top: -40%; right: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-tint) 0%, transparent 70%);
  pointer-events: none;
}

.cta-panel h2 { font-size: clamp(26px, 3vw, 34px); color: #fff; }
.cta-panel p { margin-top: 14px; color: var(--text-dim); font-size: 16px; max-width: 460px; }

.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; align-items: center; gap: 14px; }
.contact-row-icon {
  width: 38px; height: 38px; border-radius: var(--radius-s);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.contact-row-icon svg { width: 17px; height: 17px; }
.contact-row a, .contact-row span.value { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-row .label { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 2px; }

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

.footer { padding: 56px 0 40px; border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand p { font-size: 13.5px; color: var(--text-faint); margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-faint); }

/* ---------- 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: none; }

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

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .team-wrap { grid-template-columns: 1fr; gap: 40px; }
  .team-media { order: -1; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .cta-panel { grid-template-columns: 1fr; padding: 44px 28px; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { padding: 140px 0 72px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
