/* Pindeed Inc. — shared site styles.
   Industrial Precision design system. */

:root {
  --brand-primary: #007ACC;
  --brand-primary-dark: #005A99;
  --brand-ghost: rgba(0, 122, 204, 0.08);
  --surface: #F8F9FA;
  --surface-container-low: #F3F4F5;
  --surface-container: #EDEEEF;
  --surface-container-high: #E7E8E9;
  --surface-dark: #131B2E;
  --surface-inverse: #283044;
  --text-primary: #191C1D;
  --text-secondary: #404751;
  --text-tertiary: #707883;
  --text-inverse: #FFFFFF;
  --border-subtle: #E5E7EB;
  --border-strong: #C0C7D3;
  --success: #4CAF50;
  --warning: #FFA500;
  --danger: #D32F2F;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 128px; }

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'HarmonyOS Sans', 'Microsoft YaHei', 'Source Han Sans SC', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss03';
}

.zh, body:lang(zh-CN) { font-family: 'Noto Sans SC', 'PingFang SC', 'HarmonyOS Sans', 'Microsoft YaHei', 'Source Han Sans SC', 'Inter', sans-serif; font-weight: 400; }

a { color: inherit; text-decoration: none; }

/* Typography scale (Industrial Precision spec) */
.display-hero { font-size: 64px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.display-hero-sub { font-size: 32px; line-height: 1.2; font-weight: 400; letter-spacing: 0; opacity: 0.85; }
.headline-lg { font-size: 40px; line-height: 1.2; font-weight: 600; letter-spacing: -0.005em; }
.headline-md { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -0.005em; }
.headline-sm { font-size: 22px; line-height: 1.3; font-weight: 600; }
.body-lg { font-size: 18px; line-height: 1.55; font-weight: 400; }
.body-md { font-size: 16px; line-height: 1.55; font-weight: 400; }
.body-sm { font-size: 15px; line-height: 1.5; font-weight: 400; }
.label-caps { font-size: 13px; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.caption { font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--text-tertiary); }

@media (max-width: 768px) {
  .display-hero { font-size: 40px; }
  .display-hero-sub { font-size: 22px; }
  .headline-lg { font-size: 30px; }
  .headline-md { font-size: 22px; }
}

/* Layout helpers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
}

.surface-alt { background: var(--surface-container-low); }
.surface-bright { background: #FFFFFF; }
.surface-inverse { background: var(--surface-inverse); color: var(--text-inverse); }
.surface-inverse .body-md,
.surface-inverse .body-lg,
.surface-inverse .body-sm { color: rgba(255,255,255,0.85); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 72px;
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.nav-brand { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; color: var(--brand-primary); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover { color: var(--brand-primary); }
.nav-links a.is-active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-iconbtn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--text-secondary); background: transparent; border: 0; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.nav-iconbtn:hover { background: var(--brand-ghost); color: var(--brand-primary); }
.nav-iconbtn .material-symbols-outlined { font-size: 20px; }
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px;
  font-size: 15px; font-weight: 600; line-height: 1;
  border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); }
.btn-ghost { background: transparent; color: var(--brand-primary); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--brand-ghost); border-color: var(--brand-primary); }
.btn-on-dark {
  background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(6px);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.20); }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  background: var(--surface-dark);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,18,40,0.55), rgba(10,18,40,0.75));
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; padding: 96px 0; }
.hero h1 { margin: 0 0 16px; color: #fff; }
.hero .display-hero-sub { color: rgba(255,255,255,0.78); margin: 0 0 24px; }
.hero .body-lg { color: rgba(255,255,255,0.85); margin: 0 0 32px; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin-bottom: 24px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
  border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
}
.hero-tagline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.card:hover { box-shadow: 0 4px 16px rgba(15,30,60,0.06); border-color: var(--border-strong); }
.card-dark { background: #1F2738; color: #fff; border: 1px solid rgba(255,255,255,0.10); }

.icon-square {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: var(--brand-ghost);
  color: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-square .material-symbols-outlined { font-size: 24px; }

/* Section heading */
.section-head { margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 14px;
}
.section-head .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary); }
.section-head h2 { margin: 0 0 12px; color: var(--text-primary); }
.section-head .subtitle { font-size: 18px; color: var(--text-secondary); margin: 0; max-width: 720px; }
.section-head .zh { color: var(--text-secondary); margin-top: 6px; display: block; font-size: 22px; font-weight: 400; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1024px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.badge-deployed { background: rgba(76, 175, 80, 0.12); color: #2E7D32; }
.badge-pilot { background: var(--brand-ghost); color: var(--brand-primary); }
.badge-deployed .dot { width: 6px; height: 6px; border-radius: 50%; background: #2E7D32; }

/* Lists */
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 15px; color: var(--text-secondary);
}
.list-clean li:first-child { border-top: 0; }
.list-clean .check { color: var(--brand-primary); margin-top: 2px; }
.list-clean .check .material-symbols-outlined { font-size: 18px; }

/* Defect table */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}
.table th, .table td { padding: 18px 20px; text-align: left; font-size: 15px; }
.table thead th {
  background: var(--surface-container);
  font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.table tbody tr { border-top: 1px solid var(--border-subtle); }
.table tbody tr:first-child { border-top: 0; }
.table td:first-child { font-weight: 600; color: var(--text-primary); width: 24%; }
.table td:nth-child(2) { color: var(--text-secondary); }

/* Pain/Help/Outcome flow */
.flow { display: grid; gap: 16px; }
.flow .row { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: baseline; }
.flow .row .label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.flow .row .label.pain { color: var(--danger); }
.flow .row .label.help { color: var(--brand-primary); }
.flow .row .label.outcome { color: #2E7D32; }
.flow .row p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.field input, .field select, .field textarea {
  height: 48px; padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: #fff;
  font: inherit; color: var(--text-primary);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-ghost);
}

/* Footer */
.footer {
  background: var(--surface-container);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer a { display: block; color: var(--text-secondary); font-size: 14px; padding: 4px 0; }
.footer a:hover { color: var(--brand-primary); }
.footer-brand { font-size: 22px; font-weight: 700; color: var(--brand-primary); letter-spacing: 0.04em; margin-bottom: 12px; }
.footer-tag { font-size: 14px; color: var(--text-secondary); max-width: 360px; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-tertiary);
}
.footer-bottom a { display: inline; color: var(--text-tertiary); }
.footer-bottom a:hover { color: var(--brand-primary); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Utility */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.max-w-3xl { max-width: 768px; margin-left: auto; margin-right: auto; }

/* Image placeholder pattern (used when no photo yet) */
.placeholder-photo {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1F2738 0%, #2E3A55 100%);
  color: rgba(255,255,255,0.45);
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  min-height: 280px;
  border-radius: 8px;
}

/* Defects grid (Industries page: image + table side-by-side) */
@media (max-width: 1024px) {
  .defects-grid { grid-template-columns: 1fr !important; }
}

/* Page-level sticky jump nav (sits under main nav) */
.page-nav {
  position: sticky;
  top: 72px;
  z-index: 48;
  height: 52px;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}
.page-nav .container {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 32px;
}
.page-nav .container::-webkit-scrollbar { display: none; }
.page-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.page-nav a:hover { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
@media (max-width: 768px) {
  .page-nav { height: 48px; }
  .page-nav .container { gap: 20px; padding: 0 20px; }
  .page-nav a { font-size: 12px; }
}

/* In-card screenshot */
.card-image {
  margin-top: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-container-low);
}
.card-image img { display: block; width: 100%; height: auto; }
.card-image-caption {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Workflow showcase image (Solution → How it works) */
.workflow-shot {
  margin: 0 auto 48px;
  max-width: 1080px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: #0f1525;
}
.workflow-shot img { display: block; width: 100%; height: auto; }
.workflow-shot-caption {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  margin: 12px auto 0;
  max-width: 720px;
}

/* Bento card (used in home Industries teaser) */
.bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 520px;
}
.bento .feature { grid-row: span 2; position: relative; border-radius: 8px; overflow: hidden; }
.bento .feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento .feature .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,40,0.85) 0%, rgba(10,18,40,0.25) 50%, transparent 100%);
}
.bento .feature .content { position: absolute; left: 28px; right: 28px; bottom: 28px; color: #fff; }
.bento .feature h3 { margin: 8px 0 0; }
.bento .mini {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 8px;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 240px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bento .mini:hover { border-color: var(--brand-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.bento .mini .material-symbols-outlined { color: var(--text-tertiary); align-self: flex-end; font-size: 36px; }
@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .bento .feature { grid-row: span 1; grid-column: span 2; min-height: 260px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento .feature { grid-column: span 1; }
}
