/* =========================================================
   Justcos Technology Co., Limited — main stylesheet
   Light olive theme · olive #7C8A3D · deep olive #4A5122
   pale olive #D3D9A8 · body #FAFAF3 · ink #26291A
   ========================================================= */

:root {
  --bg: #FAFAF3;
  --surface: #FFFFFF;
  --ink: #26291A;
  --olive: #7C8A3D;
  --deep: #4A5122;
  --pale: #D3D9A8;
  --ivory: #FFFFFF;
  --hairline: #E6E7D6;
  --soft: #F1F2E3;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #26291A;
  background-color: #FAFAF3;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #4A5122;
}

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

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: #7C8A3D;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #4A5122;
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  color: #4A5122;
  border-color: #4A5122;
}

.btn-outline:hover {
  background-color: #4A5122;
  color: #FFFFFF;
}

.btn-light {
  background-color: #FFFFFF;
  color: #4A5122;
}

.btn-light:hover {
  background-color: #D3D9A8;
  color: #26291A;
}

/* ---------- Circuit nav ---------- */

.circuit-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: #FAFAF3;
  border-bottom: 1px solid #7C8A3D;
}

.circuit-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-word {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #26291A;
}

.circuit-glyph {
  position: relative;
  width: 26px;
  height: 20px;
  display: inline-block;
  flex: none;
}

.circuit-glyph::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  background-color: #7C8A3D;
}

.circuit-glyph::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  background-color: #7C8A3D;
}

.circuit-glyph .glyph-trace {
  position: absolute;
  left: 8px;
  top: 3px;
  width: 12px;
  height: 9px;
  border-top: 2px solid #7C8A3D;
  border-right: 2px solid #7C8A3D;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #4A5122;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #26291A;
}

.nav-link.active {
  color: #26291A;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: #7C8A3D;
}

.nav-cta-wrap {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background-color: transparent;
  border: 2px solid #4A5122;
  border-radius: 7px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #4A5122;
}

/* ---------- Board hero ---------- */

.board-hero {
  background-color: #FAFAF3;
  padding: 80px 0 88px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background-color: #D3D9A8;
  color: #4A5122;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
}

.hero-title {
  font-size: 50px;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: #26291A;
  margin: 22px 0 20px;
  font-weight: 800;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: #4A5122;
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* circuit board panel */

.board-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  background-color: #4A5122;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(38, 41, 26, 0.14);
}

.board-panel .chip {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.board-panel .trace {
  position: absolute;
  border-top: 2px solid #D3D9A8;
  border-right: 2px solid #D3D9A8;
}

.board-panel .chip-a { background-color: #D3D9A8; top: 18%; left: 15%; }
.board-panel .chip-b { background-color: #D3D9A8; top: 16%; left: 62%; }
.board-panel .chip-c { background-color: #FAFAF3; border: 2px solid #7C8A3D; top: 62%; left: 22%; }
.board-panel .chip-d { background-color: #7C8A3D; top: 46%; left: 56%; }

.board-panel .trace-1 { top: 27%; left: 15%; width: 43%; height: 22%; }
.board-panel .trace-2 { top: 24%; left: 62%; width: 18%; height: 26%; }

.board-panel .pad {
  position: absolute;
  width: 13px;
  height: 13px;
  background-color: #D3D9A8;
  bottom: 12%;
  right: 13%;
}

/* ---------- Statement row ---------- */

.statement-row {
  background-color: #FAFAF3;
  border-top: 1px solid #E6E7D6;
  border-bottom: 1px solid #E6E7D6;
}

.statement-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}

.statement-text {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #26291A;
  max-width: 900px;
}

.statement-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
  max-width: 900px;
}

.counter {
  flex: 1 1 0;
  min-width: 150px;
  padding: 0 32px;
}

.counter + .counter {
  border-left: 1px solid #E6E7D6;
}

.counter:first-child {
  padding-left: 0;
}

.counter-num {
  font-size: 38px;
  font-weight: 800;
  color: #7C8A3D;
  line-height: 1.1;
}

.counter-label {
  font-size: 14px;
  color: #4A5122;
  margin-top: 6px;
}

/* ---------- Stack rows ---------- */

.stack-rows {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E6E7D6;
}

.stack-head {
  padding-top: 64px;
  padding-bottom: 8px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7C8A3D;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #26291A;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 17px;
  color: #4A5122;
  max-width: 640px;
}

.stack-list {
  padding-bottom: 56px;
}

.stack-row {
  display: grid;
  grid-template-columns: 220px 1fr 32px;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

.stack-row + .stack-row {
  border-top: 1px solid #E6E7D6;
}

.stack-name {
  font-size: 20px;
  font-weight: 700;
  color: #26291A;
}

.stack-desc {
  font-size: 16px;
  color: #4A5122;
}

.stack-marker {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  justify-self: end;
}

.marker-olive { background-color: #7C8A3D; }
.marker-pale { background-color: #D3D9A8; }
.marker-deep { background-color: #4A5122; }
.marker-ivory { background-color: #FFFFFF; border: 2px solid #7C8A3D; }

/* ---------- Case strip ---------- */

.case-strip {
  background-color: #FAFAF3;
  border-bottom: 1px solid #E6E7D6;
}

.case-head {
  padding-top: 64px;
  padding-bottom: 8px;
}

.case-list {
  padding-bottom: 56px;
}

.case-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
}

.case-row + .case-row {
  border-top: 1px solid #E6E7D6;
}

.case-name {
  font-size: 20px;
  font-weight: 700;
  color: #26291A;
}

.case-note {
  font-size: 16px;
  color: #4A5122;
}

.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 5px;
  justify-self: end;
}

.tag-design { background-color: #7C8A3D; color: #FFFFFF; }
.tag-build { background-color: #4A5122; color: #FFFFFF; }
.tag-run { background-color: #D3D9A8; color: #26291A; }

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

.team-cols {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E6E7D6;
}

.team-head {
  padding-top: 64px;
  padding-bottom: 8px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 40px 0 72px;
}

.team-col {
  padding: 0 44px;
}

.team-col:first-child {
  padding-left: 0;
}

.team-col:last-child {
  padding-right: 0;
}

.team-col + .team-col {
  border-left: 1px solid #E6E7D6;
}

.team-marker {
  width: 14px;
  height: 14px;
  background-color: #7C8A3D;
  margin-bottom: 20px;
}

.team-col h3 {
  font-size: 21px;
  font-weight: 700;
  color: #26291A;
  margin-bottom: 12px;
}

.team-col p {
  font-size: 16px;
  color: #4A5122;
}

/* ---------- FAQ ---------- */

.faq-section {
  background-color: #FAFAF3;
  padding: 72px 0 80px;
}

.faq-head {
  margin-bottom: 36px;
}

.faq-list {
  max-width: 860px;
}

.faq-item {
  border-top: 1px solid #E6E7D6;
}

.faq-item:last-child {
  border-bottom: 1px solid #E6E7D6;
}

.faq-question {
  width: 100%;
  background-color: transparent;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: #26291A;
  padding: 22px 8px 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question .faq-icon {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
  border: 2px solid #7C8A3D;
  border-radius: 50%;
}

.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #7C8A3D;
}

.faq-question .faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-question .faq-icon::after {
  width: 2px;
  height: 10px;
}

.faq-item.open .faq-question .faq-icon::after {
  display: none;
}

.faq-answer {
  display: none;
  padding: 0 8px 24px 0;
  font-size: 16px;
  color: #4A5122;
  max-width: 780px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- CTA band ---------- */

.cta-band {
  background-color: #7C8A3D;
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 34px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.cta-band p {
  font-size: 17px;
  color: #F1F2E3;
  max-width: 560px;
}

/* ---------- Node footer ---------- */

.node-footer {
  background-color: #FAFAF3;
  border-top: 2px solid #7C8A3D;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 44px;
}

.footer-brand-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #7C8A3D;
  margin-right: 9px;
  vertical-align: middle;
}

.footer-brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #26291A;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 15px;
  color: #4A5122;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7C8A3D;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #4A5122;
  text-decoration: none;
  font-size: 15px;
}

.footer-links a:hover {
  color: #26291A;
}

.footer-contact {
  list-style: none;
  font-size: 15px;
  color: #4A5122;
}

.footer-contact li {
  margin-bottom: 10px;
}

.footer-contact a {
  color: #4A5122;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #26291A;
}

.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid #E6E7D6;
  font-size: 14px;
  color: #4A5122;
}

.footer-legal a {
  color: #7C8A3D;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #4A5122;
}

.footer-legal .dot {
  margin: 0 8px;
  color: #C7C9B2;
}

/* ---------- Secondary pages (services / contact) ---------- */

.page-hero {
  background-color: #FAFAF3;
  border-bottom: 1px solid #E6E7D6;
  padding: 72px 0 64px;
}

.page-hero .eyebrow {
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #26291A;
  line-height: 1.1;
  margin-bottom: 18px;
}

.page-hero .hero-sub {
  margin-bottom: 0;
}

/* services */

.service-blocks {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E6E7D6;
  padding: 72px 0 40px;
}

.service-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 36px 0;
}

.service-block + .service-block {
  border-top: 1px solid #E6E7D6;
}

.service-block .sb-index {
  font-size: 15px;
  font-weight: 700;
  color: #7C8A3D;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-block h2 {
  font-size: 26px;
  font-weight: 800;
  color: #26291A;
  margin-bottom: 14px;
}

.service-block p {
  font-size: 16px;
  color: #4A5122;
  margin-bottom: 12px;
}

.service-block ul {
  list-style: none;
  margin-top: 8px;
}

.service-block ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15px;
  color: #4A5122;
}

.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background-color: #7C8A3D;
}

.process-overview {
  background-color: #FAFAF3;
  border-bottom: 1px solid #E6E7D6;
  padding: 72px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.process-step {
  padding: 0;
}

.process-step .step-num {
  font-size: 15px;
  font-weight: 800;
  color: #7C8A3D;
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: #26291A;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 15px;
  color: #4A5122;
}

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  padding: 72px 0;
}

.contact-info h2 {
  font-size: 26px;
  font-weight: 800;
  color: #26291A;
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 16px;
  color: #4A5122;
  margin-bottom: 28px;
}

.info-block {
  margin-bottom: 28px;
}

.info-block h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7C8A3D;
  margin-bottom: 8px;
}

.info-block p,
.info-block a {
  font-size: 16px;
  color: #4A5122;
  text-decoration: none;
}

.info-block a:hover {
  color: #26291A;
}

.contact-faq {
  border-top: 1px solid #E6E7D6;
  padding-top: 28px;
  margin-top: 8px;
}

.contact-form {
  background-color: #FFFFFF;
  border: 1px solid #E6E7D6;
  border-radius: 14px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #26291A;
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  color: #26291A;
  background-color: #FAFAF3;
  border: 1px solid #E6E7D6;
  border-radius: 7px;
  padding: 12px 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #7C8A3D;
  border-color: #7C8A3D;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  font-size: 15px;
  color: #4A5122;
  min-height: 24px;
}

/* ---------- Scroll reveal ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 960px) {
  .circuit-nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background-color: #FAFAF3;
    border-bottom: 1px solid #7C8A3D;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    z-index: 55;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #E6E7D6;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-title {
    font-size: 40px;
  }

  .board-panel {
    max-width: 460px;
  }

  .stack-row {
    grid-template-columns: 160px 1fr 28px;
    gap: 18px;
  }

  .case-row {
    grid-template-columns: 150px 1fr auto;
    gap: 18px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-col {
    padding: 0;
  }

  .team-col + .team-col {
    border-left: none;
    border-top: 1px solid #E6E7D6;
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: 33px;
  }

  .statement-text {
    font-size: 25px;
  }

  .counter {
    padding: 0 18px;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stack-marker {
    justify-self: start;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-tag {
    justify-self: start;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
