/*
Theme Name: HCOM Technologies
Description: Site vitrine HCOM Technologies
Version: 3.0
*/

:root {
  --ink:      #06080d;
  --surface:  #10141f;
  --surface2: #171d2c;
  --line:     #262e40;
  --paper:    #f2f4f8;
  --muted:    #8d96ac;
  --brass:    #d4af6a;
  --brass-dim:#8a7442;
  --brass-glow: rgba(212, 175, 106, 0.35);
  --gain:     #4fb88a;

  --font-display: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SF Mono', Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink:      #f1f3f8;
    --surface:  #ffffff;
    --surface2: #e9ecf3;
    --line:     #d7dce6;
    --paper:    #10141f;
    --muted:    #5b6478;
    --brass:    #93741f;
    --brass-dim:#b99a4f;
    --brass-glow: rgba(147, 116, 31, 0.18);
    --gain:     #1f8f63;
  }
}
:root[data-theme="light"] {
  --ink:      #f1f3f8;
  --surface:  #ffffff;
  --surface2: #e9ecf3;
  --line:     #d7dce6;
  --paper:    #10141f;
  --muted:    #5b6478;
  --brass:    #93741f;
  --brass-dim:#b99a4f;
  --brass-glow: rgba(147, 116, 31, 0.18);
  --gain:     #1f8f63;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--brass-glow); color: var(--paper); }

.max { max-width: 1180px; margin-inline: auto; padding-inline: max(20px, calc((100vw - 1180px) / 2)); }
.max-narrow { max-width: 900px; margin-inline: auto; padding-inline: max(20px, calc((100vw - 900px) / 2)); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Reveal-on-scroll — progressive enhancement, never gates the first frame ── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.16,.8,.3,1), transform .8s cubic-bezier(.16,.8,.3,1);
  }
  .js .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .js .reveal-1.is-visible { transition-delay: .08s; }
  .js .reveal-2.is-visible { transition-delay: .16s; }
  .js .reveal-3.is-visible { transition-delay: .24s; }
  .js .reveal-4.is-visible { transition-delay: .32s; }
  .js .reveal-5.is-visible { transition-delay: .40s; }
  .js .reveal-6.is-visible { transition-delay: .48s; }
}

/* ── Site header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 20px;
}
.site-header .wordmark { text-decoration: none; }
.site-header .wordmark-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: color .2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--paper); }
.site-nav a.lang-switch {
  border: 1px solid var(--line);
  padding: 6px 12px;
  color: var(--brass);
  transition: border-color .2s ease;
}
.site-nav a.lang-switch:hover { border-color: var(--brass); }

.wordmark { display: flex; align-items: center; gap: 12px; position: relative; }
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--brass);
  color: var(--brass);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.mark.small { width: 28px; height: 28px; font-size: 12px; }
.mark.big {
  width: 64px; height: 64px; font-size: 24px; border-width: 2px;
  box-shadow: 0 0 40px var(--brass-glow);
}

/* ── Giant hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: 120px 100px;
  overflow: hidden;
}
.hero-network {
  position: absolute;
  inset: -10% -5% -5% -5%;
  width: 110%;
  height: 120%;
  pointer-events: none;
  opacity: 0.55;
}
.hero-network line { stroke: var(--brass-dim); stroke-width: 1; opacity: 0.18; }
.hero-network circle { fill: var(--brass); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .hero-network circle { animation: node-pulse 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .hero-network line { animation: line-breathe 7s ease-in-out infinite; }
}
@keyframes node-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.35); }
}
@keyframes line-breathe {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.32; }
}
.hero-content { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass-dim); }
.hero h1 {
  font-size: clamp(44px, 7.5vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-block: 26px 30px;
  max-width: 16ch;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brass) 20%, #f0d9a8 50%, var(--brass) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}
.hero .sub b { color: var(--paper); font-weight: 600; }
.hero .intl-line {
  margin-block-start: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero .intl-line b { color: var(--brass); font-weight: 500; }

/* ── Hero: real composed interfaces (not decoration) ─────────────── */
.hero-visual {
  position: relative;
  margin-block-start: 72px;
  max-width: 980px;
}
.hero-visual .frame-main {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 50px 120px -24px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.02) inset;
  background: var(--surface);
}
.hero-visual .frame-secondary {
  position: absolute;
  z-index: 1;
  right: -6%;
  bottom: -12%;
  width: 46%;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.6);
  background: var(--surface);
  opacity: 0.94;
}
.hero-visual .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  padding: 10px 16px;
  border-block-end: 1px solid var(--line);
  background: var(--surface2);
}
.hero-visual .bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.hero-visual img { display: block; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-visual .frame-main { animation: frame-rise .9s cubic-bezier(.16,.8,.3,1) both; }
  .js .hero-visual .frame-secondary { animation: frame-rise 1.1s .15s cubic-bezier(.16,.8,.3,1) both; }
}
@keyframes frame-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Big stat row with counters ──────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-block-start: 64px;
}
.stat-row .stat { background: var(--surface); padding: 28px 24px; }
.stat-row .stat .figure {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.02em;
  display: block;
}
.stat-row .stat .label { font-size: 13px; color: var(--muted); margin-block-start: 6px; display: block; }

/* ── Section scaffolding ─────────────────────────────────────── */
section { padding-block: 100px; border-block-end: 1px solid var(--line); position: relative; }
section:last-of-type { border-block-end: none; }
.section-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-block-end: 14px;
}
section h2 { font-size: clamp(34px, 4.5vw, 56px); margin-block-end: 20px; line-height: 1.05; }
section > .lede { color: var(--muted); max-width: 68ch; margin-block-end: 40px; font-size: 18px; }

/* ── Giant product screenshot showcase ──────────────────────── */
.showcase { position: relative; margin-block: 40px; }
.showcase-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
  background: var(--surface);
}
.showcase-frame .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 12px 18px;
  border-block-end: 1px solid var(--line);
  background: var(--surface2);
}
.showcase-frame .bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.showcase-frame img { display: block; width: 100%; }
.showcase-caption { margin-block-start: 22px; color: var(--muted); font-size: 15px; max-width: 62ch; }

/* ── Products grid ───────────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s ease;
}
.product:hover { background: var(--surface2); }
.product .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}
.product h3 { font-size: 22px; }
.product p { color: var(--muted); font-size: 15px; flex-grow: 1; line-height: 1.6; }
.product .status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-block-start: 14px;
  border-block-start: 1px dashed var(--line);
}
.product .status b { color: var(--paper); font-weight: 500; }
.products-compact .product { gap: 12px; padding: 26px; }
.products-compact .product p { font-size: 14.5px; }

/* ── Pillars grid ─────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-card { display: flex; flex-direction: column; gap: 10px; }
.pillar-card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass);
}
.pillar-card h3 { font-size: 19px; font-weight: 600; }
.pillar-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* legacy pillars strip (still used on interior pages) */
.pillars {
  display: flex;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding-block: 16px;
}
.pillars .item {
  padding-inline: 18px;
  border-inline-start: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.pillars .item:first-child { border-inline-start: none; padding-inline-start: 0; }
.pillars .item b { color: var(--paper); font-weight: 500; }

.hero-page { padding-block: 90px 40px; }
.hero-page h1 { font-size: clamp(38px, 5.5vw, 64px); max-width: 18ch; }

/* ── Technologies: 4 capability pillars ──────────────────────── */
.tech-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tech-pillar {
  background: var(--surface);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s ease;
}
.tech-pillar:hover { background: var(--surface2); }
.tech-pillar .icon {
  width: 40px;
  height: 40px;
  color: var(--brass);
}
.tech-pillar .icon svg { width: 100%; height: 100%; }
.tech-pillar h3 { font-size: 18px; letter-spacing: -0.01em; }
.tech-pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.tech-pillar .examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-start: auto;
  padding-block-start: 14px;
  border-block-start: 1px dashed var(--line);
}
.tech-pillar .examples span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

/* ── Built by HCOM: product cards (problem / solution / tech / status) ── */
.builtby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-card {
  background: var(--surface);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}
.product-card h3 { font-size: 23px; }
.product-card .field { display: flex; flex-direction: column; gap: 5px; }
.product-card .field .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card .field .v { font-size: 14.5px; color: var(--paper); line-height: 1.55; }
.product-card .tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card .tech-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-block-start: auto;
  padding-block-start: 16px;
  border-block-start: 1px dashed var(--line);
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.status-badge.is-pilot .dot { background: var(--gain); }
.status-badge.is-pilot { color: var(--paper); }
.status-badge.is-capability .dot { background: var(--brass-dim); }

/* ── How We Build: 6-step method ─────────────────────────────── */
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.method-step {
  background: var(--surface);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.method-step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass);
}
.method-step h3 { font-size: 18px; }
.method-step p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.method-steps.compact { grid-template-columns: repeat(6, 1fr); }
.method-steps.compact .method-step { padding: 24px 20px; }

/* ── The Vision: high-contrast editorial band ────────────────── */
.vision-band {
  background: var(--surface);
  position: relative;
}
.vision-band::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 2px;
  background: linear-gradient(var(--brass), transparent);
}
.vision-band blockquote {
  margin: 0;
  padding-inline-start: 36px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.32;
  font-weight: 500;
  color: var(--paper);
  max-width: 26ch;
}
.vision-band .vision-note {
  margin-block-start: 30px;
  padding-inline-start: 36px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ── Legal / prose pages ──────────────────────────────────────── */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin-block: 40px 14px; }
.prose h2:first-child { margin-block-start: 0; }
.prose p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-block-end: 14px; }
.prose .placeholder {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass-dim);
}

/* ── Big CTA band ────────────────────────────────────────────── */
.cta-band {
  position: relative;
  text-align: left;
  padding-block: 110px;
  background: radial-gradient(ellipse 80% 100% at 30% 0%, var(--brass-glow), transparent 60%);
}
.cta-band h2 { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; }
.cta-band .lede { font-size: 19px; }
.cta-band a.big-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-block-start: 30px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--brass);
  text-decoration: none;
  border-block-end: 1px solid var(--brass-dim);
  padding-block-end: 4px;
  transition: gap .2s ease;
}
.cta-band a.big-link:hover { gap: 18px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { padding-block: 60px 50px; border-block-start: 1px solid var(--line); }
.site-footer .max { display: flex; flex-direction: column; gap: 28px; }
footer .company {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer .company .name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
footer .company .meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
footer .tagline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--brass);
  margin-block-start: 6px;
}
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
footer .footer-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
footer .footer-links a:hover { color: var(--paper); }
footer .rev {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .tech-grid, .builtby-grid { grid-template-columns: repeat(2, 1fr); }
  .method-steps, .method-steps.compact { grid-template-columns: repeat(2, 1fr); }
  .hero-visual .frame-secondary { display: none; }
}
@media (max-width: 760px) {
  .hero { padding-block: 80px 60px; }
  .products, .pillars-grid { grid-template-columns: 1fr; }
  .tech-grid, .builtby-grid, .method-steps, .method-steps.compact { grid-template-columns: 1fr; }
  footer .company { flex-direction: column; }
  footer .rev { flex-direction: column; }
  .showcase-frame img { width: 100%; }
  .vision-band blockquote, .vision-band .vision-note { padding-inline-start: 22px; }
}
