/* Rockwell H2 Systems — shared stylesheet
   IBM Plex Sans, black hero/footer, white body, charcoal accents */

:root {
  --black: #0A0A0A;
  --charcoal: #1A1A1A;
  --gray-900: #2A2A2A;
  --gray-700: #4A4A4A;
  --gray-500: #777777;
  --gray-300: #C8C8C8;
  --gray-100: #F2F2F2;
  --white: #FFFFFF;
  --green: #2EA043;
  --green-dark: #1F7A33;
  --blue: #1F6FEB;
  --blue-dark: #1758C4;
  --max-w: 1240px;
  --gutter: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

#solution, #products, #contact, [id] { scroll-margin-top: 96px; }

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--black);
}
h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-700); }
p  { font-size: 17px; line-height: 1.65; color: var(--gray-900); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand img { height: 40px; width: auto; border-radius: 4px; }
.brand-text {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-top: 4px;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  color: var(--gray-300);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .btn { margin-left: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 4px;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn-primary {
  background: var(--white);
  color: var(--black) !important;
  border: 1px solid var(--white);
}
.btn-primary:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-dark {
  background: var(--black);
  color: var(--white) !important;
  border: 1px solid var(--black);
}
.btn-dark:hover { background: var(--charcoal); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--black) !important;
  border: 1px solid var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white) !important; }

/* Hero — default (used by inner pages: dark band) */
.hero {
  position: relative;
  min-height: 480px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero .lead {
  color: var(--gray-300);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 32px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px var(--gutter);
}

/* Hero — home page (split white layout with visible video) */
.hero-home {
  background: var(--white);
  color: var(--charcoal);
  min-height: auto;
  padding: 80px 0 32px;
}
.hero-home h1 { color: var(--black); }
.hero-home .lead { color: var(--gray-700); }
.hero-home .eyebrow { color: var(--green-dark); }
.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.hero-text { padding-right: 8px; }
.hero-video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--black);
  aspect-ratio: 16 / 10;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15), 0 6px 14px rgba(0,0,0,0.06);
}
.hero-home .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* Section base */
.section { padding: 96px 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--gray-300); }
.section-dark .eyebrow { color: var(--green); }

.section-tight { padding: 64px 0; }

/* Section heading block */
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head h2 { margin-bottom: 16px; }

/* Why Hydrogen — three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  background: var(--gray-100);
  padding: 40px 32px;
  border-radius: 8px;
  border-top: 3px solid var(--gray-300);
  cursor: default;
  transition: background 0.25s, border-top-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.pillar:hover {
  background: var(--white);
  border-top-color: var(--green);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.04);
  transform: translateY(-4px);
}
.pillar:hover h3 { color: var(--green-dark); }
.pillar:hover ul li::before { background: var(--green); }
.pillar:hover .num { color: var(--green-dark); }
.pillar .num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 24px;
  transition: color 0.25s;
}
.pillar h3 {
  margin-bottom: 20px;
  transition: color 0.25s;
}
.pillar ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.5;
}
.pillar ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--black);
}

/* How it works diagram */
.how-it-works {
  text-align: center;
}

/* Custom flow diagram */
.flow {
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 56px 32px 48px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
}
.flow-node {
  position: relative;
  text-align: center;
  padding: 8px 6px;
}
.flow-num {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--green);
  background: var(--black);
  padding: 4px 10px;
  border: 1px solid rgba(46, 160, 67, 0.4);
  border-radius: 999px;
  white-space: nowrap;
}
.flow-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.flow-icon svg { width: 38px; height: 38px; }
.flow-node:hover .flow-icon {
  border-color: var(--green);
  background: rgba(46, 160, 67, 0.08);
  transform: translateY(-2px);
}
.flow-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.flow-source {
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.flow-arrow {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
}
.flow-arrow svg { width: 28px; height: 14px; }

/* Below-diagram caption */
.flow-caption {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 56px 24px 32px;
  }
  .flow-arrow { transform: rotate(90deg); margin: 6px auto; }
  .flow-arrow svg { width: 24px; height: 12px; }
}

/* Modules — 5 step row */
.modules-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding: 0 8px;
}
.module-step {
  text-align: left;
  padding: 32px 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.section:not(.section-dark) .module-step {
  background: var(--gray-100);
  border-color: var(--gray-100);
}
.module-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 24px;
}
.module-step h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 12px;
  line-height: 1.25;
}
.module-step p {
  font-size: 16px;
  line-height: 1.55;
}
.section-dark .module-step h4 { color: var(--white); }
.section-dark .module-step p { color: var(--gray-300); }
.section-dark .module-step .step-num { color: var(--white); }
.section:not(.section-dark) .module-step h4 { color: var(--black); }
.section:not(.section-dark) .module-step p { color: var(--gray-700); }
.section:not(.section-dark) .module-step .step-num { color: var(--black); }

@media (max-width: 1100px) {
  .modules-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Feature rows (alternating image + copy) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--gray-100);
}
.feature .img {
  min-height: 480px;
  background-size: cover;
  background-position: center;
}
.feature .copy {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature h2 { margin-bottom: 24px; }
.feature ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.55;
}
.feature ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--black);
}
.feature.reverse .img { order: 2; }

/* Spec cards (Products page) */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.spec-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--black);
  padding: 40px 32px;
  border-radius: 8px;
}
.spec-card .tier {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.spec-card h3 {
  font-size: 36px;
  margin: 12px 0 28px;
  letter-spacing: -0.02em;
}
.spec-card .placeholder {
  background: var(--gray-100);
  padding: 18px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  font-style: italic;
}
.spec-list { margin: 24px 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list .label { color: var(--gray-700); }
.spec-list .value { color: var(--black); font-weight: 500; }

/* About — bio cards */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.bio-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 40px;
  border-radius: 8px;
}
.bio-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gray-100);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--gray-500);
}
.bio-card h3 { margin-bottom: 4px; }
.bio-card .role {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.bio-card .placeholder-bio {
  background: var(--gray-100);
  padding: 24px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--gray-500);
  font-style: italic;
  line-height: 1.6;
}
.bio-card .contact-line {
  margin-top: 24px;
  font-size: 15px;
  color: var(--gray-900);
}
.bio-card .contact-line a { color: var(--blue); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-top: 56px;
}
.contact-info h3 { margin-bottom: 24px; }
.contact-info .info-row {
  border-top: 1px solid var(--gray-100);
  padding: 20px 0;
}
.contact-info .info-row:last-child { border-bottom: 1px solid var(--gray-100); }
.contact-info .info-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.contact-info .info-value {
  font-size: 17px;
  color: var(--black);
  font-weight: 500;
}
.contact-info .info-value a { color: var(--black); }

.form-card {
  background: var(--gray-100);
  padding: 48px;
  border-radius: 8px;
}
.form-card h3 { margin-bottom: 28px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--black);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-card .submit-row { margin-top: 24px; }

/* CTA strip */
.cta-strip {
  background: var(--black);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 24px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-strip p { color: var(--gray-300); max-width: 60ch; margin: 0 auto 32px; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--gray-500);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-grid a {
  display: block;
  color: var(--gray-500);
  font-size: 14px;
  padding: 6px 0;
  transition: color .15s;
}
.footer-grid a:hover { color: var(--white); }
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.footer-brand img { height: 48px; border-radius: 4px; }
.footer-brand .footer-brand-text {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
}
.footer-brand .footer-brand-text small {
  display: block;
  color: var(--gray-500);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: var(--gray-500);
  transition: all .15s;
  padding: 0;
}
.socials a:hover { color: var(--white); border-color: var(--white); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

/* Mobile */
@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; gap: 16px; }
  .nav { gap: 18px; flex-wrap: wrap; }
  .hero { min-height: 380px; }
  .hero-card { padding: 64px var(--gutter); }
  .hero-home { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-video-wrap { aspect-ratio: 16/10; }
  .pillars, .modules-row, .spec-grid, .bio-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature { grid-template-columns: 1fr; }
  .feature .img { min-height: 280px; }
  .feature.reverse .img { order: 0; }
  .feature .copy { padding: 48px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
