@charset "UTF-8";

:root {
  --ciot-teal: #009fbb;
  --ciot-teal-dark: #007e97;
  --ciot-navy: #0a3149;
  --ciot-navy-deep: #000000;
  --ciot-blue-soft: #eaf6f8;
  --ciot-gray-100: #f6f8fa;
  --ciot-gray-200: #e8edf1;
  --ciot-gray-500: #667782;
  --ciot-text: #17232d;
  --ciot-white: #ffffff;
  --ciot-border: #d9e2e7;
  --body-size: 17px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ciot-text);
  background: var(--ciot-white);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: var(--body-size);
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.35;
  color: var(--ciot-navy-deep);
}

h1 {
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: .01em;
}

h2 {
  font-size: 40px;
  margin-bottom: 18px;
  font-weight: 700;
}

.h2-subtitle {
  font-size: 20px;
  line-height: 2.3rem;
  font-weight: 300;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 2.5rem;
}

.site-container {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class*="col-"] {
  width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

/* ====== Hero ====== */

.hero-section {
  min-height: 590px;
/*  background: url("../images/iot_security/2026/matter-over-thread/bg.png") center/cover no-repeat;*/
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-section h1 {
  color: #000;
}

.hero-section .eyebrow {
  color: var(--ciot-teal);
}

.hero-row {
  min-height: 470px;
}

.hero-copy, .hero-visual {
  position: relative;
  z-index: 1;
}

.hero-pic img{
border-radius: 40px;
}

@media (min-width: 992px) {
  .hero-row .hero-copy {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
  }
  .hero-row .hero-visual {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

.hero-lead {
  font-size: 18px;
  color: #000;
  margin-bottom: 30px;
  max-width: 610px;
 line-height: 2.3rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
}

.eyebrow {
  display: inline-block;
  color: var(--ciot-teal);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .09em;
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 4px;
  background: var(--ciot-teal);
  color: var(--ciot-white);
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.btn-primary-custom:hover, .btn-primary-custom:focus {
  background: var(--ciot-teal-dark);
  transform: translateY(-1px);
  color: #fff;
}

.btn-text {
  color: var(--ciot-navy);
  font-weight: 700;
  border-bottom: 2px solid var(--ciot-teal);
  padding-bottom: 2px;
}

.hero-section .btn-text {
/*  color: #fff;*/
}

/* ====== Section nav below hero (same pattern as CLM) ====== */

.site-header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--ciot-gray-200);
}

.navbar {
  min-height: 64px;
}

.navbar-nav.thread-nav-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.navbar-nav.thread-nav-scroll::-webkit-scrollbar {
  display: none;
}

.navbar-nav.thread-nav-scroll .nav-item {
  flex: 0 0 auto;
}

.navbar-nav .thread-nav-link {
  display: inline-block;
  color: var(--ciot-navy);
  font-size: 16px;
  padding: 8px 0;
}

.navbar-nav .thread-nav-link:hover,
.navbar-nav .thread-nav-link:focus {
  color: var(--ciot-teal);
}

.navbar-nav .nav-cta .thread-nav-link {
  display: inline-block;
  color: var(--ciot-teal);
  border: 1px solid var(--ciot-teal);
  border-radius: 22px;
  padding: 5px 18px;
}

.navbar-nav .nav-cta .thread-nav-link:hover {
  color: #fff;
  background: var(--ciot-teal);
}

@media (max-width: 991.98px) {
  .navbar-nav.thread-nav-scroll {
    justify-content: flex-start;
    gap: 18px;
    padding: 12px 0;
  }
  .navbar-nav .thread-nav-link {
    padding: 6px 0;
  }
}

/* ====== Section shell ====== */

.section {
  padding: 60px 0;
}

.section-light {
  background: var(--ciot-gray-100);
}

.section-dark {
  background: var(--ciot-navy);
  color: #dce7ee;
}

.section-heading {
  max-width: 100%;
  margin-bottom: 42px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: #000;
}

.section-heading-light h2, .section-heading-light h3 {
  color: #fff;
}

.section-heading-light > p:last-child {
  color: #fff;
}

/* ====== Feature cards (WHY THREAD) — same pattern as CodeSign ====== */

.feature-grid {
  display: grid;
  gap: 20px;
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  background: #fff;
  border: 1px solid var(--ciot-border);
  padding: 28px 24px 26px;
  min-height: 200px;
}

.feature-card p {
  margin-bottom: 0;
  color: #000;
  line-height: 2rem;
}


.operation-icon {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--ciot-blue);
    font-size: 27px;
    font-weight: 600;

}

.operation-icon img {
    width: 70px;        /* 依據設計稿調整寬度 */
    height: 80px;       /* 依據設計稿調整高度 */
    object-fit: contain; /* 確保圖片不拉伸變形 */
}

/* ====== Matter/Thread stack diagram panel ====== */

.matter-stack-panel {
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 30px;
  border: 1px solid var(--ciot-border);
}

.matter-stack-panel img {
  width: 100%;
}

/* ====== Product fit cards ====== */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.fit-card {
  border: 1px solid var(--ciot-border);
  padding: 34px 34px 30px;
  background: #fff;
}

.fit-thread {
  border-top: 4px solid var(--ciot-teal);
}

.fit-wifi {
  border-top: 4px solid var(--ciot-gray-500);
}

.fit-label {
  display: inline-block;
  color: var(--ciot-teal-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.fit-card h3 {
  margin-bottom: 20px;
}

.fit-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.fit-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
 line-height: 1.5rem;

}

.fit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ciot-teal);
}

.fit-card li strong {
  display: block;
  color: var(--ciot-navy-deep);
  margin-bottom: 3px;
}

.fit-card li span {
  color: #000;
  font-size: 16px;
}

/* ====== Compare table ====== */

.compare-block {
  margin-top: 52px;
}

.compare-block-heading {
  margin-bottom: 18px;
}

.compare-block-heading h3 {
  margin: 4px 0 0;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--ciot-border);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ciot-border);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--ciot-blue-soft);
  color: var(--ciot-navy-deep);
  font-weight: 700;
}

.compare-table tbody th {
  width: 18%;
  color: var(--ciot-navy-deep);
  font-weight: 700;
  background: var(--ciot-gray-100);
}

.compare-table td {
  color: #000;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

/* ====== Component roles ====== */

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.role-card {
  border-top: 3px solid var(--ciot-navy);
  background: var(--ciot-gray-100);
  padding: 27px 24px;
  min-height: 220px;
}

.role-primary {
  border-top: 3px solid var(--ciot-teal);
  background: var(--ciot-blue-soft);
}

.role-tag {
  display: inline-block;
  color: var(--ciot-teal-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.role-card p {
  margin-bottom: 0;
  color: #000;
  line-height: 2rem;
}

.role-card small {
  display: block;
  margin-top: 14px;
  color: #000;
  font-size: 14px;
  line-height: 1.6;
}

/* ====== Adoption options ====== */

.adoption-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.adoption-card {
  background: #fff;
  border: 1px solid var(--ciot-border);
  padding: 15px;
  min-height: 300px;
}

.adoption-primary {
  border-top: 4px solid var(--ciot-teal);
}

.feature-index {
  display: block;
  color: var(--ciot-teal);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.adoption-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.adoption-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  color: #000;
}

.adoption-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ciot-teal);
  transform: translateY(-50%);
}

/* ====== CIOT integration service cards ====== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-grid article {
  background: #fff;
  border: 1px solid var(--ciot-border);
  padding: 28px 24px 26px;
}

.service-grid p {
  margin-bottom: 0;
  color: #000;
  line-height: 2rem;
}

/* ====== FAQ ====== */

.faq-list {
  border-top: 1px solid var(--ciot-border);
}

.faq-list details {
  border-bottom: 1px solid var(--ciot-border);
  background: transparent;
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 21px 42px 21px 0;
  color: var(--ciot-navy-deep);
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 26px;
  font-weight: 400;
  color: var(--ciot-teal);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  margin: -4px 0 22px;
  max-width: 900px;
  color: #000;
}

/* ====== CTA ====== */

.cta-section {
  padding: 58px 0;
  background: var(--ciot-navy);
  color: #dce8ee;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-inner p:last-child {
  margin-bottom: 0;
  color: #fff;
}

.btn-light-custom {
  background: #fff;
  color: var(--ciot-navy-deep);
  flex: 0 0 auto;
}

.btn-light-custom:hover, .btn-light-custom:focus {
  background: #eaf5f7;
  color: var(--ciot-navy-deep);
}

/* ====== RWD ====== */

@media (min-width: 992px) {
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
}

@media (max-width: 1199.98px) {
  h1 {
    font-size: 44px;
  }
  .site-container {
    max-width: 980px;
  }
  .four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }
  .hero-row {
    min-height: auto;
  }
  .hero-visual {
    margin-top: 44px;
  }
  .section {
    padding: 68px 0;
  }
  .fit-grid, .role-grid {
    grid-template-columns: 1fr;
  }
  .adoption-grid, .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 29px;
  }
  .site-container {
    width: calc(100% - 32px);
  }
  .four-col, .adoption-grid, .service-grid {
    grid-template-columns: 1fr;
  }
  .feature-card, .adoption-card {
    min-height: auto;
  }
  .fit-card {
    padding: 28px 24px 25px;
  }
  .matter-stack-panel {
    padding: 16px;
    overflow-x: auto;
  }
  .compare-table {
    min-width: 700px;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 27px;
  }
  .hero-lead {
    font-size: 18px;
  }
  .section {
    padding: 56px 0;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .btn-primary-custom {
    width: 100%;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}
