/* ============================================================
   PAGES SPECIFIC STYLES
   ============================================================ */

/* --- ECOSYSTEM PAGE --- */
.eco-page__header {
  padding-top: 160px;
  padding-bottom: var(--space-20);
  background: var(--gradient-hero);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.eco-page__wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-16) 0;
  position: relative;
  background: var(--deep-dark);
}
.eco-page__wheel-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 1;
  margin: 0 auto;
  --radius: 260px;
}
.eco-page__wheel-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 107, 0, 0.2);
  animation: rotate-slow 60s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.eco-page__wheel-ring--1 {
  width: 380px;
  height: 380px;
}
.eco-page__wheel-ring--2 {
  width: 550px;
  height: 550px;
  animation-direction: reverse;
  animation-duration: 80s;
}
.eco-page__center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 2px 5px rgba(255,255,255,0.1), 0 0 50px rgba(255,107,0,0.4);
  border: 5px solid var(--sst-orange);
  perspective: 1000px;
}
.eco-page__hub-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.eco-page__hub-subtitle {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}
.eco-page__node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  z-index: 5;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle))) scale(1);
}
.eco-page__node:hover,
.eco-page__node.active {
  border-color: var(--sst-orange);
  background: var(--sst-orange);
  box-shadow: 0 0 30px var(--sst-orange-glow);
  z-index: 12;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle))) scale(1.15);
}
.eco-page__node-label {
  position: absolute;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
}
.eco-page__node:hover .eco-page__node-label,
.eco-page__node.active .eco-page__node-label {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Angles of 360 / 12 = 30 degrees (Top center is 270deg) */
.node-0 { --angle: 270deg; }
.node-1 { --angle: 300deg; }
.node-2 { --angle: 330deg; }
.node-3 { --angle: 0deg; }
.node-4 { --angle: 30deg; }
.node-5 { --angle: 60deg; }
.node-6 { --angle: 90deg; }
.node-7 { --angle: 120deg; }
.node-8 { --angle: 150deg; }
.node-9 { --angle: 180deg; }
.node-10 { --angle: 210deg; }
.node-11 { --angle: 240deg; }

/* --- PRODUCTS PAGE --- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.product-card__img-container {
  height: 240px;
  background: var(--off-white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--light-gray);
}
.product-card__img-container svg {
  width: 80px;
  height: 80px;
  opacity: 0.8;
}
.product-card__content {
  padding: var(--space-6);
}
.product-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--charcoal);
}
.product-card__desc {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}
.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.product-card__spec-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--off-white);
  color: var(--dark-gray);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
}

/* Flagship Profile Section */
.frame-detail {
  padding: var(--space-20) 0;
  background: var(--off-white);
}
.frame-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.frame-detail__render {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.frame-detail__cut-preview {
  aspect-ratio: 16/9;
  border: 2px solid rgba(255,107,0,0.3);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: rgba(2,6,23,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame-detail__cut-line {
  position: absolute;
  width: 141%;
  height: 2px;
  background: var(--sst-orange);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--sst-orange-glow);
}

/* Specs Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
}
.spec-table th, .spec-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}
.spec-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--charcoal);
  background: var(--off-white);
}
.spec-table td {
  font-size: var(--text-sm);
  color: var(--dark-gray);
}

/* --- CHINA DESK PAGE --- */
.china-desk__flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.china-desk__step {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.china-desk__step-num {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--sst-orange);
  opacity: 0.2;
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
}
.china-desk__step-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  margin-top: var(--space-4);
}
.china-desk__step-desc {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  line-height: 1.5;
}

/* --- FACTORY PAGE --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--charcoal);
}
.gallery-item svg {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: opacity var(--duration-fast);
}
.gallery-item:hover svg {
  opacity: 1;
}
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  transition: opacity var(--duration-normal);
}
.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}
.gallery-item__title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* --- ABOUT PAGE --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: var(--space-12) auto 0;
  padding-left: var(--space-8);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-gray);
}
.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sst-orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.2);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--sst-orange);
  margin-bottom: var(--space-1);
}
.timeline-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-2);
}
.timeline-desc {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  line-height: 1.6;
}

/* --- CASE STUDIES --- */
.case-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--light-gray);
  overflow: hidden;
  margin-bottom: var(--space-10);
  transition: all var(--duration-normal);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.case-card__visual {
  background: var(--gradient-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  position: relative;
}
.case-card__content {
  padding: var(--space-10);
}
.case-card__metric {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--sst-orange);
  line-height: 1.1;
  margin-top: var(--space-4);
}
.case-card__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--sst-orange);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.case-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: var(--charcoal);
}
.case-card__block {
  margin-bottom: var(--space-4);
}
.case-card__block h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--mid-gray);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
}
.case-card__block p {
  font-size: var(--text-sm);
  color: var(--dark-gray);
  line-height: 1.5;
}

/* --- INSIGHTS --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: all var(--duration-normal);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.blog-card__image {
  height: 200px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__content {
  padding: var(--space-6);
}
.blog-card__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--mid-gray);
  margin-bottom: var(--space-2);
  display: flex;
  gap: var(--space-4);
}
.blog-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.blog-card__title a:hover {
  color: var(--sst-orange);
}
.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--space-12);
  margin-top: var(--space-12);
}
.contact-info {
  background: var(--gradient-blue);
  color: var(--white);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
}
.contact-info__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}
.contact-info__item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.contact-info__item-icon {
  font-size: 1.4rem;
}
.contact-info__item-text h5 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--sst-orange);
  text-transform: uppercase;
}
.contact-info__item-text p {
  font-size: var(--text-sm);
  margin-top: 2px;
}
.contact-tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}
.contact-tab {
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  background: var(--off-white);
  color: var(--dark-gray);
  border: 1px solid var(--light-gray);
  border-bottom: none;
  white-space: nowrap;
  transition: all var(--duration-fast);
}
.contact-tab:hover {
  background: var(--light-gray);
}
.contact-tab.active {
  background: var(--sst-orange);
  color: var(--white);
  border-color: var(--sst-orange);
}
.contact-pane {
  display: none;
  animation: fadeInUp 0.4s var(--ease-smooth);
}
.contact-pane.active {
  display: block;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.contact-form__span-2 {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .eco-page__wheel-wrapper { max-width: 500px; --radius: 185px; }
  .eco-page__wheel-ring--1 { width: 280px; height: 280px; }
  .eco-page__wheel-ring--2 { width: 400px; height: 400px; }
  .eco-page__node { width: 56px; height: 56px; font-size: 1.3rem; }
  .frame-detail__grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .eco-page__wheel-wrapper { max-width: 340px; height: 340px; --radius: 125px; }
  .eco-page__wheel-ring--1 { width: 180px; height: 180px; }
  .eco-page__wheel-ring--2 { width: 265px; height: 265px; }
  .eco-page__node { width: 42px; height: 42px; font-size: 1.1rem; }
  .eco-page__node svg { width: 20px !important; height: 20px !important; }
  .eco-page__center-hub { width: 100px; height: 100px; }
  .eco-page__hub-title { font-size: 1.1rem; }
  .eco-page__hub-subtitle { font-size: 0.5rem; }
  .eco-page__node-label {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    font-size: 0.55rem !important;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 107, 0, 0.2);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.2px;
    white-space: nowrap !important;
    transition: opacity var(--duration-normal) var(--ease-smooth), visibility var(--duration-normal) var(--ease-smooth);
  }
  .eco-page__node:hover .eco-page__node-label,
  .eco-page__node.active .eco-page__node-label {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: var(--white) !important;
    color: var(--black) !important;
    border-color: var(--white) !important;
  }
  .node-0 .eco-page__node-label,
  .node-1 .eco-page__node-label,
  .node-2 .eco-page__node-label,
  .node-3 .eco-page__node-label,
  .node-9 .eco-page__node-label,
  .node-10 .eco-page__node-label,
  .node-11 .eco-page__node-label {
    top: -24px !important;
    bottom: auto !important;
  }
  .node-4 .eco-page__node-label,
  .node-5 .eco-page__node-label,
  .node-6 .eco-page__node-label,
  .node-7 .eco-page__node-label,
  .node-8 .eco-page__node-label {
    bottom: -24px !important;
    top: auto !important;
  }
  .china-desk__flow { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .contact-form__span-2 { grid-column: span 1; }
}
@media (max-width: 375px) {
  .eco-page__wheel-wrapper { max-width: 290px; height: 290px; --radius: 105px; }
  .eco-page__wheel-ring--1 { width: 150px; height: 150px; }
  .eco-page__wheel-ring--2 { width: 220px; height: 220px; }
  .eco-page__node { width: 36px; height: 36px; }
  .eco-page__node svg { width: 16px !important; height: 16px !important; }
  .eco-page__center-hub { width: 80px; height: 80px; }
  .eco-page__hub-title { font-size: 0.9rem; }
}
