@layer reset, base, layout, components, motion, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, dl, dd, blockquote { margin: 0; }
  img { display: block; max-width: 100%; }
  button, input, textarea { font: inherit; }
}

@layer base {
  :root {
    --black: oklch(0.075 0.006 270);
    --black-2: oklch(0.105 0.008 270);
    --black-3: oklch(0.16 0.009 270);
    --white: oklch(0.965 0.004 270);
    --white-soft: oklch(0.88 0.006 270);
    --muted: oklch(0.67 0.012 270);
    --line: oklch(0.30 0.012 270 / 0.68);
    --accent: oklch(0.63 0.19 12);
    --accent-bright: oklch(0.72 0.17 12);
    --paper: oklch(0.93 0.006 270);
    --paper-ink: oklch(0.17 0.01 270);
    --page: min(92vw, 1440px);
    --header-h: 78px;
    --radius: 12px;
    color-scheme: dark;
  }

  body {
    min-width: 320px;
    background: var(--black);
    color: var(--white);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
  }

  a { color: inherit; text-decoration: none; }
  h1, h2, h3 { font-weight: 540; letter-spacing: -0.035em; text-wrap: balance; }
  h2 { font-size: clamp(2.7rem, 5.3vw, 5.8rem); line-height: 1.04; }
  p { text-wrap: pretty; }
  :focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }
  ::selection { background: var(--accent); color: white; }
}

@layer layout {
  .section-wrap { width: var(--page); margin-inline: auto; }
  .section-lead { padding-block: clamp(7rem, 11vw, 11rem) clamp(4rem, 7vw, 7rem); }
  .section-lead-split { display: grid; grid-template-columns: 3fr 9fr; gap: 4vw; }
  .section-lead-split > div > p { max-width: 38rem; margin-top: 1.8rem; color: var(--muted); font-size: 1.05rem; }
  .section-label { padding-top: .65rem; color: var(--muted); font-size: .76rem; letter-spacing: .08em; }
}

@layer components {
  .skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--white); color: var(--black); }
  .skip-link:focus { top: 1rem; }

  .site-header {
    position: fixed; inset: 0 0 auto; z-index: 20; height: var(--header-h); padding-inline: 4vw;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    border-bottom: 1px solid transparent; transition: background .35s, border-color .35s;
  }
  .site-header[data-scrolled] { background: oklch(0.075 0.006 270 / .9); backdrop-filter: blur(18px); border-color: var(--line); }
  .brand { width: 84px; height: 48px; display: flex; align-items: center; overflow: hidden; }
  .brand img { width: 78px; height: 58px; object-fit: contain; }
  .desktop-nav { display: flex; gap: clamp(1.5rem, 3vw, 3rem); color: var(--muted); font-size: .82rem; }
  .desktop-nav a { transition: color .2s; }
  .desktop-nav a:hover { color: var(--white); }
  .header-contact { justify-self: end; display: flex; align-items: center; gap: 1rem; font-size: .82rem; }
  .header-contact i { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; transition: background .2s, color .2s; }
  .header-contact:hover i { background: var(--white); color: var(--black); }
  .menu-toggle, .mobile-nav { display: none; }

  .hero { min-height: 100dvh; position: relative; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
  .hero-visual { position: absolute; inset: 0; }
  .hero-visual::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--black) 0%, oklch(0.075 0.006 270 / .9) 35%, transparent 72%),
      linear-gradient(0deg, var(--black) 0%, transparent 35%);
  }
  .hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; opacity: .88; }
  .hero-content { position: relative; z-index: 2; width: var(--page); margin: auto; padding-top: var(--header-h); }
  .hero-context { margin-bottom: 2.2rem; color: var(--muted); font: 650 .67rem/1.4 Arial, sans-serif; letter-spacing: .16em; }
  .hero h1 { max-width: 12em; font-size: clamp(3.7rem, 7vw, 6rem); line-height: .98; }
  .hero h1 em { color: var(--accent-bright); font-style: normal; }
  .hero-bottom { margin-top: clamp(2.3rem, 4vw, 4rem); display: grid; grid-template-columns: minmax(20rem, 34rem) auto; align-items: end; gap: 4rem; }
  .hero-bottom > p { color: var(--white-soft); font-size: clamp(1rem, 1.35vw, 1.18rem); }
  .hero-actions { display: flex; align-items: center; gap: .85rem; }
  .button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 1.3rem; padding: .75rem 1.35rem; border: 1px solid transparent; border-radius: 3px; cursor: pointer; white-space: nowrap; transition: transform .25s, background .25s, border-color .25s; }
  .button:active { transform: translateY(1px); }
  .button-primary { background: var(--accent); color: white; font-weight: 650; }
  .button-primary:hover { background: var(--accent-bright); transform: translateY(-2px); }
  .button-quiet { border-color: var(--line); color: var(--white-soft); }
  .button-quiet:hover { border-color: var(--white-soft); color: var(--white); }
  .hero-signal { position: absolute; z-index: 2; right: 4vw; bottom: 4vh; display: flex; align-items: center; gap: 1rem; color: var(--muted); font: .6rem/1 Arial, sans-serif; letter-spacing: .12em; }
  .hero-signal b { width: 72px; height: 1px; background: var(--accent); }

  .proof { padding-top: clamp(6rem, 9vw, 9rem); }
  .proof .section-lead { padding-top: 0; display: grid; grid-template-columns: 3fr 9fr; }
  .proof-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
  .proof-list > div { min-height: 220px; padding: 2rem 1.5rem 2rem 0; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
  .proof-list > div:not(:first-child) { padding-left: 1.5rem; }
  .proof-list > div:last-child { border-right: 0; }
  .proof-list dt { display: flex; align-items: flex-start; gap: .45rem; }
  .proof-list dt strong { font: 500 clamp(3.4rem, 6vw, 6rem)/1 Arial, sans-serif; letter-spacing: -.06em; }
  .proof-list dt span { margin-top: .55rem; color: var(--accent-bright); font-weight: 650; }
  .proof-list dd { color: var(--muted); font-size: .82rem; }
  .industry-bar { padding: 1.5rem 0 4rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
  .industry-bar p { display: flex; align-items: center; gap: 1rem; color: var(--white); letter-spacing: .06em; }
  .industry-bar i { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

  .statement { min-height: 92dvh; position: relative; display: grid; grid-template-columns: 5fr 7fr; align-items: center; overflow: hidden; background: var(--paper); color: var(--paper-ink); }
  .statement-mark { margin-left: -7vw; color: oklch(.80 .015 270); font: 200 clamp(15rem, 36vw, 40rem)/.8 Arial, sans-serif; }
  .statement-copy { position: relative; z-index: 1; padding: 8vw 8vw 8vw 0; }
  .statement-copy > p:first-child { margin-bottom: 2rem; color: oklch(.42 .02 270); font: 650 .68rem Arial, sans-serif; letter-spacing: .16em; }
  .statement-body { max-width: 42rem; margin: 3rem 0 0 auto; color: oklch(.36 .015 270); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }

  .capability-list { padding-bottom: clamp(7rem, 11vw, 11rem); }
  .capability-row { min-height: 250px; display: grid; grid-template-columns: 1fr 3.2fr 3.5fr 3fr; align-items: center; gap: 2vw; border-top: 1px solid var(--line); transition: background .3s; }
  .capability-row:last-child { border-bottom: 1px solid var(--line); }
  .capability-row:hover { background: var(--black-2); }
  .capability-index { color: var(--accent-bright); font: .7rem Arial, sans-serif; }
  .capability-row h3 { font-size: clamp(1.8rem, 2.8vw, 3rem); }
  .capability-row > p { max-width: 31rem; color: var(--muted); }
  .capability-row ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .65rem 1rem; color: var(--white-soft); font-size: .78rem; }
  .capability-row li::before { content: "—"; margin-right: .5rem; color: var(--accent); }

  .fde { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); color: var(--paper-ink); }
  .fde-visual { min-height: 760px; position: relative; display: grid; place-items: center; overflow: hidden; background: oklch(.12 .01 270); color: var(--white); }
  .orbit { position: absolute; width: 60%; aspect-ratio: 1; border: 1px solid oklch(.62 .03 270 / .45); border-radius: 50%; }
  .orbit-a { transform: rotate(54deg) scaleY(.46); }
  .orbit-b { transform: rotate(-28deg) scaleY(.46); }
  .orbit-core { width: 34%; aspect-ratio: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 50%; background: oklch(.14 .02 270); box-shadow: 0 0 0 2.2rem oklch(.63 .19 12 / .035); }
  .orbit-core::after { content: ""; position: absolute; width: 8px; height: 8px; right: 7%; top: 48%; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 18px var(--accent); }
  .orbit-core span { color: var(--accent-bright); font: 500 clamp(3rem, 6vw, 6rem)/1 Arial, sans-serif; letter-spacing: -.06em; }
  .orbit-core small { margin-top: 1rem; color: var(--muted); font: .55rem/1.5 Arial, sans-serif; letter-spacing: .16em; text-align: center; }
  .fde-content { padding: clamp(5rem, 8vw, 9rem) clamp(3rem, 7vw, 8rem); }
  .fde-content .section-label { color: oklch(.43 .02 270); }
  .fde-content h2 { margin-top: 2rem; }
  .fde-intro { max-width: 39rem; margin-top: 2.5rem; color: oklch(.36 .015 270); font-size: 1.08rem; }
  .fde-steps { margin: 4rem 0 0; padding: 0; list-style: none; border-top: 1px solid oklch(.68 .015 270); }
  .fde-steps li { min-height: 100px; display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 2rem; border-bottom: 1px solid oklch(.68 .015 270); }
  .fde-steps span { font-weight: 650; }
  .fde-steps p { color: oklch(.4 .015 270); font-size: .88rem; }

  .architecture { padding-block: clamp(7rem, 11vw, 11rem); }
  .architecture-heading { display: grid; grid-template-columns: 3fr 9fr; }
  .architecture-flow { margin: clamp(5rem, 8vw, 8rem) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
  .architecture-flow li { min-height: 310px; position: relative; padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
  .architecture-flow li:last-child { border-right: 0; }
  .architecture-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; background: var(--black); color: var(--accent-bright); }
  .architecture-flow span { color: var(--accent-bright); font-size: .78rem; }
  .architecture-flow strong { margin-top: 3rem; font-size: clamp(1.3rem, 1.7vw, 1.75rem); line-height: 1.55; }
  .architecture-flow small { margin-top: auto; color: var(--muted); }

  .method { padding-bottom: clamp(8rem, 12vw, 12rem); }
  .method-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
  .method-list li { min-height: 390px; padding: 2rem clamp(1rem, 2vw, 2rem) 2rem 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .method-list li:not(:first-child) { padding-left: clamp(1rem, 2vw, 2rem); }
  .method-list li span { color: var(--accent-bright); font: .72rem Arial, sans-serif; }
  .method-list h3 { margin-top: 2.5rem; font-size: clamp(1.7rem, 2.5vw, 2.6rem); }
  .method-list p { max-width: 19rem; margin-top: 1.2rem; color: var(--muted); }
  .method-list strong { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 600; }

  .quote { min-height: 75dvh; padding: 8vw; display: flex; flex-direction: column; justify-content: center; background: var(--accent); color: white; }
  .quote blockquote { font-size: clamp(3rem, 7vw, 7.3rem); line-height: .98; letter-spacing: -.045em; }
  .quote p { margin-top: 3rem; font: 650 .68rem Arial, sans-serif; letter-spacing: .16em; }

  .about { padding-block: clamp(8rem, 12vw, 12rem); display: grid; grid-template-columns: 5fr 7fr; gap: 8vw; }
  .about-title h2 { margin-top: 2rem; }
  .about-copy { padding-top: 2.9rem; }
  .about-copy p { max-width: 44rem; margin-bottom: 1.5rem; color: var(--white-soft); font-size: clamp(1rem, 1.35vw, 1.18rem); }
  .about-copy strong { display: block; margin-top: 3.5rem; color: var(--accent-bright); font: 650 .72rem Arial, sans-serif; letter-spacing: .18em; }

  .contact { padding: clamp(7rem, 10vw, 10rem) max(4vw, calc((100vw - 1440px) / 2)); display: grid; grid-template-columns: 5fr 7fr; gap: 8vw; background: var(--paper); color: var(--paper-ink); }
  .contact-heading > p { color: oklch(.42 .02 270); font: 650 .68rem Arial, sans-serif; letter-spacing: .16em; }
  .contact-heading h2 { margin-top: 2rem; }
  .contact-heading > a { display: inline-block; margin-top: 3rem; padding-bottom: .35rem; border-bottom: 1px solid oklch(.6 .02 270); color: oklch(.36 .02 270); }
  .contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; align-content: start; }
  .contact-form label { display: grid; gap: .5rem; color: oklch(.42 .02 270); font-size: .76rem; }
  .field-wide, .contact-form button { grid-column: 1 / -1; }
  input, textarea { width: 100%; padding: .85rem 0; border: 0; border-bottom: 1px solid oklch(.66 .015 270); border-radius: 0; outline: 0; resize: vertical; background: transparent; color: var(--paper-ink); }
  input::placeholder, textarea::placeholder { color: oklch(.48 .015 270); opacity: 1; }
  input:focus, textarea:focus { border-color: var(--accent); }
  .contact-form button { width: max-content; margin-top: 1rem; }

  footer { min-height: 130px; padding-inline: 4vw; display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 3rem; color: var(--muted); font-size: .72rem; }
  .footer-brand { width: 108px; }
  .footer-brand img { width: 100px; height: 76px; }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .hero-visual img { animation: hero-image 1.7s cubic-bezier(.16, 1, .3, 1) both; }
    .hero-content > * { animation: hero-copy .9s cubic-bezier(.16, 1, .3, 1) both; }
    .hero-content > :nth-child(2) { animation-delay: .08s; }
    .hero-content > :nth-child(3) { animation-delay: .16s; }
    .orbit-a { animation: orbit-a 16s linear infinite; }
    .orbit-b { animation: orbit-b 20s linear infinite reverse; }
    @keyframes hero-image { from { opacity: 0; transform: scale(1.045); } to { opacity: .88; transform: scale(1); } }
    @keyframes hero-copy { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes orbit-a { to { transform: rotate(414deg) scaleY(.46); } }
    @keyframes orbit-b { to { transform: rotate(332deg) scaleY(.46); } }
  }
}

@layer responsive {
  @media (max-width: 980px) {
    :root { --page: min(90vw, 760px); }
    .site-header { grid-template-columns: 1fr auto; }
    .desktop-nav, .header-contact { display: none; }
    .menu-toggle { justify-self: end; width: 42px; height: 42px; display: grid; place-content: center; gap: 6px; border: 0; background: transparent; color: var(--white); }
    .menu-toggle span { width: 22px; height: 1px; background: currentColor; transition: transform .2s; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .mobile-nav { position: fixed; top: var(--header-h); inset-inline: 0; padding: 2rem 5vw 3rem; background: var(--black); border-bottom: 1px solid var(--line); }
    .mobile-nav[data-open] { display: grid; gap: 1.4rem; }
    .hero-visual { left: 15%; opacity: .75; }
    .hero-bottom { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
    .proof .section-lead, .section-lead-split, .architecture-heading { grid-template-columns: 1fr; gap: 2rem; }
    .proof-list { grid-template-columns: 1fr 1fr; }
    .proof-list > div:nth-child(2) { border-right: 0; }
    .proof-list > div:nth-child(3), .proof-list > div:nth-child(4) { border-top: 1px solid var(--line); }
    .statement { grid-template-columns: 1fr; min-height: 80dvh; }
    .statement-mark { position: absolute; opacity: .6; }
    .statement-copy { padding: 10vw 8vw; }
    .capability-row { grid-template-columns: .6fr 2fr 3fr; padding-block: 2rem; }
    .capability-row ul { grid-column: 2 / -1; }
    .fde { grid-template-columns: 1fr; }
    .fde-visual { min-height: 62dvh; }
    .architecture-flow, .method-list { grid-template-columns: 1fr 1fr; }
    .architecture-flow li:nth-child(2) { border-right: 0; }
    .architecture-flow li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .architecture-flow li:nth-child(2)::after { display: none; }
    .about, .contact { grid-template-columns: 1fr; }
    footer { grid-template-columns: 1fr 1fr; gap: 1.2rem; padding-block: 2rem; }
  }

  @media (max-width: 620px) {
    .hero h1 { font-size: clamp(3rem, 14vw, 4.9rem); }
    .hero-visual { left: 0; transform: translateX(17%); }
    .hero-visual::after { background: linear-gradient(90deg, var(--black) 0%, oklch(0.075 .006 270 / .85) 55%, transparent), linear-gradient(0deg, var(--black), transparent 60%); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-signal { display: none; }
    .proof-list { grid-template-columns: 1fr; }
    .proof-list > div, .proof-list > div:not(:first-child) { min-height: 160px; padding: 1.6rem 0; border-right: 0; border-top: 1px solid var(--line); }
    .industry-bar, .industry-bar p { align-items: flex-start; flex-direction: column; }
    .capability-row { grid-template-columns: 1fr; gap: 1rem; padding-block: 2.5rem; }
    .capability-row ul { grid-column: 1; margin-top: 1rem; }
    .fde-visual { min-height: 54dvh; }
    .orbit-core { width: 42%; }
    .fde-content { padding: 5rem 5vw; }
    .fde-steps li { grid-template-columns: 1fr; gap: .4rem; padding: 1.3rem 0; }
    .architecture-flow, .method-list { grid-template-columns: 1fr; }
    .architecture-flow li { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
    .architecture-flow li:not(:last-child)::after { content: "↓"; top: auto; right: auto; bottom: -13px; left: 50%; }
    .architecture-flow li:nth-child(2)::after { display: grid; }
    .method-list li, .method-list li:not(:first-child) { min-height: 290px; padding: 2rem 0; }
    .quote { min-height: 65dvh; padding: 10vw 5vw; }
    .contact { padding-inline: 5vw; }
    .contact-form { grid-template-columns: 1fr; }
    .field-wide, .contact-form button { grid-column: 1; }
    footer { grid-template-columns: 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
}
