/* ==========================================================
   HYHDATA LLC - Punch Card Mainframe Theme
   css/style.css
   ========================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #F2F5F4;
  color: #232B31;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: #147A74; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: #232B31; }

.home-page { width: 100%; }

/* ==========================================================
   NAVIGATION - READER-FEED NAV
   ========================================================== */
.feednav {
  position: sticky;
  top: 0;
  z-index: 100;
}

.feednav .cardstack-strip {
  height: 16px;
  background-color: #F2F5F4;
  border-bottom: 1px solid #3A454C;
  position: relative;
  overflow: hidden;
}

.feednav .cardstack-strip::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg,
    #147A74 0 22px, #FAFCFB 22px 26px, #147A74 26px 48px, #FAFCFB 48px 52px,
    #7FA83C 52px 74px, #FAFCFB 74px 78px);
}

.feednav .cardstack-strip .hole-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #147A74;
  display: inline-block;
  position: absolute;
  top: 2px;
}

.feednav .walklight {
  position: absolute;
  top: 1px;
  right: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #7FA83C;
  box-shadow: 0 0 0 1px #232B31;
}

.feednav .feedbar {
  background-color: #2B343B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  flex-wrap: wrap;
}

.feednav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feednav .brand-glyph {
  width: 14px;
  height: 18px;
  background-color: #147A74;
  border-radius: 2px;
  position: relative;
  box-shadow: inset 0 0 0 1px #7FA83C;
}

.feednav .brand-glyph::before,
.feednav .brand-glyph::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background-color: #FAFCFB;
}

.feednav .brand-glyph::before { left: 3px; top: 5px; }
.feednav .brand-glyph::after { right: 3px; top: 12px; }

.feednav .brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FAFCFB;
}

.feednav .nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.feednav .nav-links a {
  color: #B9C6C9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 4px;
  position: relative;
}

.feednav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  background-color: #147A74;
}

.feednav .nav-links a:hover { color: #FAFCFB; text-decoration: none; }
.feednav .nav-links a:hover::after { transform: scaleX(1); }

.feednav .nav-links .dot {
  width: 4px;
  height: 4px;
  background-color: #7FA83C;
  border-radius: 50%;
  display: inline-block;
}

.feednav .nav-toggle {
  display: none;
}

/* ==========================================================
   HERO - CARD-DECK HERO
   ========================================================== */
.carddeckhero {
  background-color: #F2F5F4;
  position: relative;
  padding: 64px 5% 80px;
  overflow: hidden;
}

.carddeckhero .hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.carddeckhero .hero-copy { text-align: left; }

.carddeckhero .eyebrow {
  display: inline-block;
  background-color: #147A74;
  color: #FAFCFB;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.carddeckhero h1 {
  font-size: 52px;
  margin: 0 0 22px;
  color: #232B31;
  line-height: 1.1;
}

.carddeckhero h1 .accent {
  color: #147A74;
}

.carddeckhero .hero-sub {
  font-size: 18px;
  color: #4E5A61;
  margin-bottom: 32px;
  max-width: 600px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: transform 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background-color: #147A74;
  color: #FAFCFB;
}

.btn-primary:hover { background-color: #11625d; color: #FAFCFB; }

.btn-outline {
  background-color: transparent;
  color: #232B31;
  border: 1px solid #232B31;
}

.btn-outline:hover { background-color: #232B31; color: #FAFCFB; }

/* Mainframe scene */
.mainframe-scene {
  position: relative;
  height: 520px;
}

.scene-cabinet {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 300px;
  height: 380px;
  background-color: #2B343B;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #3A454C;
}

.scene-cabinet .feed-slot {
  position: absolute;
  top: 40px;
  left: 14px;
  right: 14px;
  height: 26px;
  background-color: #1A2226;
  border: 2px solid #3A454C;
  border-radius: 3px;
}

.scene-cabinet .walklight-dome {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 14px;
  border-radius: 10px 10px 0 0;
  background-color: #7FA83C;
  border: 1px solid #3A454C;
}

.scene-cabinet .vents {
  position: absolute;
  top: 110px;
  left: 40px;
  width: 220px;
  height: 170px;
  background-image: repeating-linear-gradient(180deg,
    #1A2226 0 9px, #2B343B 9px 10px, #1A2226 10px 19px, #2B343B 19px 20px);
}

.src-brand {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #B9C6C9;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.cardstack-art {
  position: absolute;
  top: 46px;
  left: 6px;
  z-index: 3;
}

.punch-card-art {
  width: 120px;
  height: 46px;
  background-color: #FAFCFB;
  border: 2px solid #147A74;
  border-radius: 2px;
  position: relative;
  box-shadow: 3px 3px 0 #B3BFC0;
}

.punch-card-art .colmarks {
  position: absolute;
  top: 5px;
  right: 4px;
  display: flex;
  gap: 2px;
}

.punch-card-art .colmarks span {
  width: 2px;
  height: 6px;
  background-color: #147A74;
}

.punch-card-art .holes {
  position: absolute;
  bottom: 5px;
  left: 6px;
  display: flex;
  gap: 5px;
}

.punch-card-art .holes i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #147A74;
}

.pc-a { position: absolute; top: 0; left: 0; transform: rotate(-2deg); }
.pc-b { position: absolute; top: 30px; left: 10px; transform: rotate(3deg); }
.pc-c { position: absolute; top: 60px; left: 0; transform: rotate(0deg); }

.tape-drive {
  position: absolute;
  top: 280px;
  left: 0px;
  width: 210px;
  height: 120px;
  background-color: #2B343B;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #3A454C;
  z-index: 2;
}

.reel {
  position: absolute;
  border-radius: 50%;
  background-color: #147A74;
  top: 30px;
}

.tape-spool-big { width: 70px; height: 70px; left: 18px; }
.tape-spool-big::before {
  content: "";
  position: absolute; inset: 18px; border-radius: 50%;
  background-color: #2B343B;
}
.tape-spool-big::after {
  content: "";
  position: absolute; inset: -8px; border-radius: 50%;
  border: 6px solid #1A2226;
}

.tape-spool-sm { width: 52px; height: 52px; right: 24px; top: 38px; }
.tape-spool-sm::before {
  content: "";
  position: absolute; inset: 13px; border-radius: 50%;
  background-color: #2B343B;
}
.tape-spool-sm::after {
  content: "";
  position: absolute; inset: -6px; border-radius: 50%;
  border: 4px solid #1A2226;
}

.tape-line {
  position: absolute;
  top: 44px;
  left: 88px;
  width: 70px;
  height: 26px;
  border-top: 3px solid #7FA83C;
  border-bottom: 3px solid #7FA83C;
}

.printer-stack {
  position: absolute;
  top: 220px;
  right: 60px;
  width: 130px;
  z-index: 2;
}

.printer-paper {
  width: 130px;
  height: 70px;
  background-image: repeating-linear-gradient(0deg,
    #EAF4D0 0 14px, #FAFCFB 14px 28px);
  border: 2px solid #3A454C;
  border-radius: 2px;
}

.printer-sheet {
  width: 130px;
  height: 34px;
  background-color: #FBF6E7;
  border-left: 2px solid #3A454C;
  border-right: 2px solid #3A454C;
  margin: 0 auto;
}

.patch-panel {
  position: absolute;
  bottom: 30px;
  right: 340px;
  width: 200px;
  height: 110px;
  background-color: #1A2226;
  border: 2px solid #2B343B;
  border-radius: 4px;
}

.patch-panel .ports {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.patch-panel .ports span {
  width: 22px;
  height: 6px;
  background-color: #3A454C;
  border-radius: 1px;
}

.cable {
  position: absolute;
  width: 4px;
  background-color: #7FA83C;
  border-radius: 2px;
}

.cable-teal { background-color: #147A74; height: 60px; bottom: 14px; right: 30px; }
.cable-lime { background-color: #7FA83C; height: 60px; bottom: 30px; right: 45px; }
.cable-grey { background-color: #B9C6C9; height: 40px; bottom: 20px; right: 60px; }

.status-column {
  position: absolute;
  top: 40px;
  left: 250px;
  width: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-column .led {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #3A454C;
}

.status-lime { background-color: #7FA83C; }
.status-teal { background-color: #147A74; }
.status-grey { background-color: #4E5A61; }
.status-dim { background-color: #B9C6C9; }

.flowchart-art {
  position: absolute;
  bottom: 120px;
  left: 250px;
  z-index: 4;
}

.flow-step {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.flow-box {
  background-color: #FAFCFB;
  border: 2px solid #147A74;
  color: #232B31;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  width: 96px;
  text-align: center;
}

.flow-arrow { color: #7FA83C; font-size: 16px; font-weight: 700; margin: 2px 0 2px 42px; }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section {
  padding: 76px 5%;
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-kicker {
  display: inline-block;
  color: #147A74;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 36px;
  color: #147A74;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 17px;
  color: #4E5A61;
  max-width: 760px;
  margin: 0 auto;
}

.about-text {
  color: #4E5A61;
  font-size: 17px;
  max-width: 940px;
  margin: 0 auto 22px;
  padding: 0 8px;
}

/* Pipeline step rows */
.pipeline-wrap {
  background-color: #F2F5F4;
}

.pipeline-stage {
  max-width: 1200px;
  margin: 0 auto;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: center;
  gap: 26px;
  background-color: #FAFCFB;
  border: 1px solid #3A454C;
  border-left: 4px solid #147A74;
  border-radius: 4px;
  padding: 26px 30px;
  margin-bottom: 12px;
}

.step-tab {
  position: relative;
  background-color: #2B343B;
  color: #B9C6C9;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 14px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.step-tab .corner-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #7FA83C;
  display: inline-block;
  margin-right: 8px;
}

.pipeline-body h3 {
  font-size: 22px;
  color: #232B31;
  margin-bottom: 8px;
}

.pipeline-body p {
  color: #4E5A61;
  font-size: 16px;
}

.batch-counter {
  position: relative;
  background-color: #232B31;
  color: #FAFCFB;
  font-family: "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 12px 16px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  border: 2px solid #2B343B;
  max-width: fit-content;
}

.batch-counter .cpu-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #147A74;
  display: inline-block;
  margin-left: 10px;
}

/* Metric band */
.metric-band {
  background-color: #1A2226;
  padding: 76px 5%;
}

.metric-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.metric-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.metric-item { border-left: 1px solid #FAFCFB; padding: 10px 20px; }
.metric-item:first-child { border-left: none; }

.metric-item .metric-num {
  font-size: 52px;
  font-weight: 800;
  color: #147A74;
  line-height: 1.1;
}

.metric-item .metric-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: #B9C6C9;
  margin-top: 8px;
}

/* Statement band */
.statement-band {
  background-color: #2B343B;
  padding: 80px 5%;
}

.statement-inner {
  max-width: 960px;
  margin: 0 auto;
  border-left: 4px solid #7FA83C;
  padding-left: 34px;
}

.statement-inner p {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
  color: #FAFCFB;
}

.statement-attr {
  margin-top: 24px;
  color: #B9C6C9;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* CTA band */
.cta-band {
  background-color: #F2F5F4;
  text-align: center;
}

.cta-band h2 {
  font-size: 34px;
  color: #147A74;
  margin-bottom: 16px;
}

.cta-band p {
  color: #4E5A61;
  font-size: 17px;
  margin-bottom: 34px;
}

/* ==========================================================
   FOOTER - GREEN-BAR
   ========================================================== */
.greenbar-footer {
  background-color: #121A1D;
  padding: 0;
}

.printout-strip {
  height: 16px;
  width: 100%;
  background-color: #7FA83C;
  background-image: repeating-linear-gradient(90deg,
    #7FA83C 0 28px, #BBD17C 28px 56px, #7FA83C 56px 84px, #8fb24a 84px 112px, #2B343B 112px 130px);
}

.footer-stack {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 54px 5% 56px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #FAFCFB;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}

.footer-links a {
  color: #B9C6C9;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.footer-links a:hover { color: #7FA83C; }

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-divider .chip {
  display: inline-block;
  width: 44px;
  height: 18px;
  background-color: #FAFCFB;
  border: 2px solid #147A74;
  border-radius: 2px;
}

.footer-divider .chip::before {
  content: "";
  display: block;
  width: 3px; height: 3px; border-radius: 50%;
  background-color: #147A74;
  margin: 3px 0 0 4px;
}

.reel-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reel-mini {
  width: 18px; height: 18px; border-radius: 50%;
  border: 4px solid #147A74;
  position: relative;
}

.reel-tape {
  width: 30px;
  height: 2px;
  background-color: #7FA83C;
}

.legal-line {
  color: #B9C6C9;
  font-size: 13px;
  line-height: 1.8;
}

.legal-line a { color: #B9C6C9; text-decoration: underline; }
.legal-line a:hover { color: #7FA83C; }

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .carddeckhero .hero-grid {
    grid-template-columns: 1fr;
  }

  .mainframe-scene { height: 480px; margin-top: 20px; }
  .patch-panel { right: auto; left: 10px; }
  .status-column { left: 210px; }
  .pipeline-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .metric-cols { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .metric-item { border-left: none; }
  .metric-item:nth-child(odd) { border-right: 1px solid #FAFCFB; }
}

@media (max-width: 640px) {
  .feednav .feedbar { flex-direction: column; align-items: flex-start; gap: 10px; }

  .feednav .nav-toggle {
    display: block;
    position: absolute;
    top: 16px;
    right: 5%;
    width: 34px;
    height: 34px;
    background-color: transparent;
    border: 1px solid #B9C6C9;
    border-radius: 3px;
    cursor: pointer;
  }

  .feednav .nav-toggle .bar {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #B9C6C9;
    margin: 5px auto;
  }

  .feednav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    display: none;
    width: 100%;
    padding-top: 8px;
  }
  .feednav .nav-links.show { display: flex; }
  .feednav .nav-links .dot { display: none; }

  .carddeckhero h1 { font-size: 38px; }
  .statement-inner p { font-size: 21px; }
  .mainframe-scene { height: 430px; }
  .scene-cabinet { width: 240px; }
  .punch-card-art { width: 100px; }
}
