/* ===== CSS Variables ===== */
:root {
  --page: #070808;
  --surface: #101111;
  --surface-raised: #151616;
  --text: #f1f2ee;
  --muted: #999d98;
  --faint: #686c68;
  --line: rgba(241, 242, 238, 0.12);
  --line-strong: rgba(241, 242, 238, 0.22);
  --accent: #d9dbd6;
  --accent-text: #111212;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: var(--accent-text);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: rgba(7, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(7, 8, 8, 0.96);
  }
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 22px;
  height: 28px;
}

.brand-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ===== Navigation ===== */
.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s;
  padding: 6px 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle:hover {
  background: var(--surface-raised);
}

/* ===== Sections ===== */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Hero ===== */
.hero {
  min-height: calc(100dvh - 68px);
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  gap: 64px;
  width: 100%;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 40px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 400px;
}

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

.hero-image {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(241, 242, 238, 0.04), 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #c4c6c0;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-raised);
  transform: translateY(-2px);
}

/* ===== Workflow ===== */
.workflow {
  padding: 100px 0;
}

.workflow h2,
.capabilities h2 {
  font-size: 32px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.step {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: none;
  padding-right: 0;
}

.step h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== Capabilities ===== */
.capabilities {
  padding: 100px 0;
}

.capabilities-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.capabilities-image {
  flex: 0 0 56%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(241, 242, 238, 0.04), 0 2px 16px rgba(0, 0, 0, 0.4);
}

.capabilities-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
}

.image-caption {
  font-size: 13px;
  color: var(--faint);
  padding: 12px 16px;
  text-align: center;
}

.capabilities-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.capability-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.capability-item-last {
  border-bottom: none;
}

.capability-item h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.capability-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
}

.contact-panel {
  background: var(--surface);
  border-radius: 16px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-text h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.contact-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-qr {
  flex-shrink: 0;
  padding: 16px;
  background: #f1f2ee;
  border-radius: 16px;
}

.contact-qr img {
  width: 220px;
  height: 220px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.footer-tagline {
  font-size: 13px;
  color: var(--faint);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Focus ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== Responsive: 768px - 1279px ===== */
@media (max-width: 1279px) {
  .section-inner,
  .header-inner,
  .hero-inner,
  .footer-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-inner {
    gap: 40px;
  }

  .hero-lead {
    font-size: 32px;
  }

  .capabilities-layout {
    gap: 36px;
  }

  .workflow h2,
  .capabilities h2 {
    font-size: 28px;
  }
}

/* ===== Responsive: 767px and below ===== */
@media (max-width: 767px) {
  .section-inner,
  .header-inner,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-inner {
    padding: 48px 18px;
    grid-template-columns: minmax(0, 1fr);
  }

  /* Nav toggle */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(7, 8, 8, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

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

  .main-nav a {
    padding: 12px 18px;
    font-size: 16px;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
    width: 100%;
  }

  .hero-lead {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Workflow */
  .workflow {
    padding: 64px 0;
  }

  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .step {
    border-right: none;
    padding-right: 0;
  }

  .workflow h2 {
    font-size: 24px;
  }

  .section-sub {
    margin-bottom: 36px;
  }

  /* Capabilities */
  .capabilities {
    padding: 64px 0;
  }

  .capabilities-layout {
    flex-direction: column;
  }

  .capabilities-image {
    flex: none;
    width: 100%;
  }

  .capabilities h2 {
    font-size: 24px;
  }

  /* Contact */
  .contact {
    padding: 64px 0;
  }

  .contact-panel {
    flex-direction: column;
    padding: 36px 24px;
    text-align: center;
  }

  .contact-qr img {
    width: 180px;
    height: 180px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ===== Responsive: 375px minimum ===== */
@media (max-width: 375px) {
  .hero-lead {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 14px;
  }

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

  .contact-qr img {
    max-width: 160px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
