
:root {
  --bg-dark: #0f172a;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-soft: #cbd5e1;
  --accent: #2563eb;
  --accent-wood: #b7791f;
  --accent-green: #2f855a;
  --line: #e2e8f0;
  --shadow: 0 20px 50px rgba(15, 23, 42, .12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text-main);
  background: #fff;
  line-height: 1.65;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 18px 28px;
  pointer-events: none;
}
.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(226, 232, 240, .22);
  border-radius: 999px;
  background: rgba(15, 23, 42, .68);
  color: #fff;
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.brand { font-weight: 800; letter-spacing: .02em; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,.76);
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }
.message-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 7px 13px;
  border: 1px solid rgba(251, 191, 36, .56);
  border-radius: 999px;
  background: transparent;
  color: #fef3c7;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.message-button:hover {
  background: rgba(251, 191, 36, .14);
  border-color: rgba(253, 230, 138, .8);
  transform: translateY(-1px);
}
.resume-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid rgba(147, 197, 253, .52);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.resume-button:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { color: #fff; background: var(--bg-dark); }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.two-col { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: start; }
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-wood);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.05; letter-spacing: -.05em; margin-bottom: 24px; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.14; letter-spacing: -.04em; margin-bottom: 0; }
h3 { font-size: 20px; margin-bottom: 10px; }

.hero { min-height: 100vh; min-height: 100svh; position: relative; overflow: hidden; display: grid; align-items: center; padding: 120px 0 70px; }
.hero-bg { position: absolute; inset: 0; opacity: 1; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, .25), transparent 50%),
    rgba(15, 23, 42, 0.65);
}
.hero-inner { position: relative; z-index: 1; width: min(900px, calc(100% - 40px)); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { color: #93c5fd; font-weight: 700; letter-spacing: .08em; margin-bottom: 22px; }
.hero-subtitle { font-size: clamp(16px, 2vw, 24px); color: #e2e8f0; margin-bottom: 18px; line-height: 1.5; }
.hero-text { color: var(--text-soft); font-size: 16px; line-height: 1.6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tag-row span { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #e2e8f0; padding: 8px 12px; border-radius: 999px; font-size: 14px; }
.hero-media { justify-self: center; }
.video-frame {
  width: min(340px, 72vw);
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: #020617; }
.media-note { text-align: center; color: #cbd5e1; margin: 14px 0 0; font-size: 14px; }

.message-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(2, 6, 23, .76);
  backdrop-filter: blur(9px);
}
.message-modal[hidden] { display: none; }
.message-dialog {
  position: relative;
  width: min(560px, 100%);
  margin: auto;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0 0, rgba(183, 121, 31, .12), transparent 34%),
    #fff;
  box-shadow: 0 32px 90px rgba(2, 6, 23, .38);
}
.message-dialog-head { padding-right: 44px; margin-bottom: 26px; }
.message-dialog-head h2 { font-size: clamp(28px, 5vw, 38px); }
.message-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fafc;
  color: #475569;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.message-close:hover { background: #e2e8f0; color: var(--text-main); transform: rotate(4deg); }
.message-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.message-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--text-main);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.message-form textarea { display: block; margin: 0; padding: 12px 14px; resize: vertical; min-height: 150px; }
.message-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.message-form textarea::placeholder { color: #94a3b8; }
.message-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.message-submit-row { margin-top: 18px; }
.message-submit {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
  flex: 0 0 auto;
  padding: 11px 20px;
  background: var(--text-main);
  color: #fff;
}
.message-submit:hover { background: #1e293b; transform: translateY(-1px); }
.message-submit:disabled { cursor: wait; opacity: .58; transform: none; }
.message-status { margin: 0; color: var(--text-muted); font-size: 14px; }
.message-status[data-state="success"] { color: var(--accent-green); }
.message-status[data-state="error"] { color: #b91c1c; }

.lead-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
  color: var(--text-muted);
  font-size: 17px;
}
.lead-card p:last-child { margin-bottom: 0; }
.compact-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.compact-flow article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.compact-flow span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #eff6ff; color: var(--accent); font-weight: 800; margin-bottom: 18px; }
.compact-flow p { margin-bottom: 0; color: var(--text-muted); }

.section-head { text-align: center; max-width: 780px; }
.section-head p:not(.section-kicker) { color: var(--text-muted); font-size: 17px; margin: 18px 0 0; }
.compare-panel, .wide-figure {
  margin-top: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-panel { margin-top: 38px; }
.image-button { border: 0; padding: 0; background: transparent; cursor: zoom-in; width: 100%; display: block; }
.image-button img { width: 100%; height: auto; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.focus-card:hover .image-button img,
.sample-card:hover .image-button img,
.gallery-grid figure:hover .image-button img,
.wide-figure:hover .image-button img {
  transform: scale(1.03);
}
.panel-caption { display: flex; justify-content: space-between; gap: 24px; padding: 18px 22px; border-top: 1px solid var(--line); color: var(--text-muted); }
.panel-caption strong { color: var(--text-main); }
.panel-caption-stack { display: block; }
.panel-caption-stack span { display: block; margin-top: 4px; }

.defect-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 18px;
  margin-top: 18px;
}
.focus-stack { display: grid; gap: 18px; }
.focus-card, .sample-card, .gallery-grid figure, .wide-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}
.focus-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f8fafc; }
.focus-card-large img { aspect-ratio: 1.52 / 1; object-fit: cover; }
.card-note {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: 15px;
  background: rgba(248, 250, 252, .9);
}

.sample-head {
  text-align: center;
  max-width: 820px;
  margin-top: 32px;
}
.sample-head p { color: var(--text-muted); margin: 10px 0 0; }
.sample-grid { display: grid; gap: 18px; margin-top: 18px; }
.sample-grid-three { grid-template-columns: repeat(3, 1fr); }
.clear-grid .sample-card img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; background: #f8fafc; }
figcaption { padding: 13px 16px; font-weight: 700; color: #334155; border-top: 1px solid var(--line); background: rgba(248, 250, 252, .9); }

.robot-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(300px, .72fr); gap: 50px; align-items: center; }
.robot-copy p:not(.section-kicker) { color: var(--text-muted); font-size: 17px; }
.duty-list { display: grid; gap: 14px; margin-top: 26px; }
.duty-list div { border-left: 4px solid var(--accent); padding: 16px 18px; background: #fff; border-radius: 0 var(--radius-md) var(--radius-md) 0; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.duty-list span { display: block; font-weight: 800; margin-bottom: 6px; }
.duty-list p { margin: 0; }
.robot-card { width: min(360px, 80vw); justify-self: center; border-radius: 34px; padding: 12px; background: #0f172a; box-shadow: var(--shadow); }
.robot-card video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 24px; background: #020617; }

.system-showcase { margin-top: 36px; }
.wide-figure { border-radius: var(--radius-xl); }
.wide-figure img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; object-position: top center; background: #0f172a; }
.gallery-grid { display: grid; gap: 18px; margin-top: 18px; }
.gallery-grid-large { grid-template-columns: repeat(2, 1fr); }
.gallery-grid figure img { width: 100%; aspect-ratio: 1.45 / 1; object-fit: cover; background: #e2e8f0; }
.gallery-grid-large .span-2 { grid-column: span 2; }
.gallery-grid-large .span-2 img { aspect-ratio: 16 / 6; object-fit: contain; padding: 8px 16px; background: #f8fafc; }
.gallery-grid-large figure:nth-child(2) img { aspect-ratio: 4 / 3; }

.final-section { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.final-card { background: #0f172a; color: #fff; border-radius: 32px; padding: clamp(30px, 5vw, 54px); display: grid; grid-template-columns: .86fr 1.14fr; gap: 42px; box-shadow: var(--shadow); }
.final-card .section-kicker { color: #fbbf24; }
.final-card h2 { color: #fff; }
.tech-blocks { display: grid; gap: 16px; }
.tech-blocks div { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 18px; padding: 18px; }
.tech-blocks h3 { color: #bfdbfe; margin-bottom: 6px; }
.tech-blocks p { color: #cbd5e1; margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(2,6,23,.86); backdrop-filter: blur(8px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1240px, 94vw); max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #fff; }
.lightbox-close { position: absolute; top: 20px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

@media (max-width: 1080px) {
  .defect-focus-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .site-header { padding: 12px; }
  .nav-links { display: none; }
  .hero { min-height: 100vh; min-height: 100svh; padding: 112px 0 56px; }
  .hero-inner, .two-col, .robot-grid, .final-card { grid-template-columns: 1fr; }
  .hero-media { justify-self: start; }
  .compact-flow, .sample-grid-three, .gallery-grid-large { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .panel-caption { display: block; }
  .panel-caption span { display: block; margin-top: 4px; }
  .wide-figure img { aspect-ratio: 16 / 10; }
  .gallery-grid-large .span-2 { grid-column: auto; }
  .gallery-grid-large .span-2 img { aspect-ratio: 1.5 / 1; }
}

@media (max-width: 520px) {
  .container, .hero-inner { width: min(100% - 26px, 1120px); }
  .nav-shell { padding: 9px 12px; }
  .brand { font-size: 14px; }
  .nav-actions { gap: 5px; }
  .message-button { padding: 6px 9px; font-size: 13px; }
  .message-button span { display: none; }
  .resume-button { padding: 6px 10px; font-size: 13px; }
  .hero-text, .lead-card, .robot-copy p:not(.section-kicker), .section-head p:not(.section-kicker), .sample-head p { font-size: 15px; }
  .tag-row span { font-size: 13px; padding: 7px 10px; }
  .lead-card, .compact-flow article { padding: 20px; }
  .message-modal { padding: 12px; }
  .message-dialog { padding: 26px 18px 22px; border-radius: 22px; }
  .message-dialog-head { padding-right: 38px; }
  .message-close { top: 12px; right: 12px; }
  .message-submit-row { align-items: flex-start; flex-direction: column; }
  .final-card { border-radius: 24px; }
  .wide-figure img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
