:root {
  --ink: #111418;
  --paper: #f3f2ee;
  --white: #fff;
  --acid: #d7ff35;
  --cyan: #74d9eb;
  --line: rgba(17, 20, 24, 0.18);
  --page: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans SC", sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 78px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; color: white; border-bottom: 1px solid rgba(255,255,255,.22); transition: background .25s, color .25s, height .25s; }
.site-header.scrolled { height: 66px; color: var(--ink); background: rgba(243,242,238,.94); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 14px; font-weight: 600; white-space: nowrap; }
.brand b { font-weight: 400; opacity: .72; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); background: var(--acid); font: 600 11px/1 "IBM Plex Mono", monospace; }
.brand-static { cursor: default; user-select: none; }
.brand-logo-on-light { display: none !important; }
.site-header.scrolled .brand-logo-on-dark { display: none; }
.site-header.scrolled .brand-logo-on-light { display: block !important; }
.site-nav { display: flex; align-items: center; gap: 31px; font-size: 13px; font-weight: 500; }
.site-nav a { transition: opacity .2s; }
.site-nav a:hover { opacity: .62; }
.site-nav .nav-cta { padding: 10px 16px; color: var(--ink); background: var(--acid); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 6px auto; background: currentColor; }

.hero { position: relative; min-height: 92svh; height: 780px; max-height: 900px; color: white; overflow: hidden; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: url("assets/hero-lab-v3.webp") 63% 54% / cover no-repeat; transform: scale(1.02); }
.hero-shade { background: linear-gradient(90deg, rgba(7,10,14,.89) 0%, rgba(7,10,14,.6) 43%, rgba(7,10,14,.13) 77%), linear-gradient(0deg, rgba(7,10,14,.68) 0%, transparent 40%); }
.hero-content { position: relative; z-index: 2; width: var(--page); margin: auto; padding-top: clamp(150px, 19vh, 190px); }
.eyebrow, .section-index { margin: 0 0 26px; font: 600 11px/1.2 "IBM Plex Mono", monospace; text-transform: uppercase; }
.eyebrow { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.72); }
.eyebrow span { width: 22px; height: 2px; background: var(--acid); }
h1 { max-width: 850px; margin: 0; font-size: clamp(62px, 8.5vw, 116px); line-height: .94; letter-spacing: 0; font-weight: 800; }
.hero-copy { max-width: 610px; margin: 31px 0 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.8; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.button { min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 14px; font-weight: 600; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--acid); }
.button-ghost { border: 1px solid rgba(255,255,255,.45); }
.button-dark { color: white; background: var(--ink); }
.hero-meta { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1180px) / 2)); bottom: 58px; display: grid; grid-template-columns: repeat(3, 112px); gap: 1px; background: rgba(255,255,255,.25); }
.hero-meta div { padding: 15px; background: rgba(10,13,16,.62); backdrop-filter: blur(10px); }
.hero-meta strong { display: block; font: 600 24px "IBM Plex Mono", monospace; color: var(--acid); }
.hero-meta span { display: block; margin-top: 5px; font-size: 11px; color: rgba(255,255,255,.66); }
.scroll-cue { position: absolute; z-index: 2; left: max(24px, calc((100vw - 1180px) / 2)); bottom: 38px; display: flex; gap: 13px; align-items: center; font: 500 10px "IBM Plex Mono", monospace; text-transform: uppercase; color: rgba(255,255,255,.65); }

.section { padding: 120px 0; }
.section-intro { width: var(--page); margin: 0 auto 70px; display: grid; grid-template-columns: 1fr 2fr 1.25fr; align-items: start; gap: 40px; }
.section-index { padding-top: 12px; color: #667078; }
.section-intro h2 { margin: 0; font-size: clamp(38px, 4.6vw, 65px); line-height: 1.12; letter-spacing: 0; }
.section-intro > p:last-child { margin: 10px 0 0; line-height: 1.85; color: #596067; }
.project-feature { width: var(--page); margin: auto; padding: 38px; background: var(--white); border-top: 5px solid var(--ink); display: grid; grid-template-columns: 1.35fr 1fr; gap: 50px; }
.project-status { grid-column: 1/-1; display: flex; align-items: center; gap: 9px; padding-bottom: 25px; border-bottom: 1px solid var(--line); font: 600 11px "IBM Plex Mono", monospace; }
.project-status span { width: 8px; height: 8px; border-radius: 50%; background: #26b965; box-shadow: 0 0 0 5px rgba(38,185,101,.12); }
.project-kicker { margin: 0 0 12px; font: 600 11px "IBM Plex Mono", monospace; color: #617078; }
.project-main h3 { margin: 0; font-size: clamp(38px, 5vw, 66px); }
.project-main > p:last-child { max-width: 620px; margin: 22px 0 0; line-height: 1.8; color: #535a60; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-grid div { min-height: 112px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-grid span { display: block; margin-bottom: 11px; font-size: 11px; color: #71777c; }
.project-grid strong { font-size: 14px; }

.bootcamp { color: white; background: var(--ink); }
.section-intro-light .section-index, .section-intro-light > p:last-child { color: rgba(255,255,255,.55); }
.sprint-list { width: var(--page); margin: auto; border-top: 1px solid rgba(255,255,255,.2); }
.sprint { min-height: 132px; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 30px; border-bottom: 1px solid rgba(255,255,255,.2); transition: background .25s, padding .25s; }
.sprint:hover { padding: 0 22px; background: rgba(255,255,255,.045); }
.sprint > span { font: 500 30px "IBM Plex Mono", monospace; color: var(--acid); }
.sprint small { font: 500 10px "IBM Plex Mono", monospace; color: rgba(255,255,255,.42); }
.sprint h3 { margin: 6px 0 4px; font-size: 24px; }
.sprint p { margin: 0; font-size: 13px; color: rgba(255,255,255,.58); }
.sprint b { font: 500 11px "IBM Plex Mono", monospace; color: var(--cyan); }

.principle-grid { width: var(--page); margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.principle-grid article { min-height: 270px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.principle-grid span { font: 600 12px "IBM Plex Mono", monospace; color: #777; }
.principle-grid h3 { margin: auto 0 15px; font-size: 22px; }
.principle-grid p { min-height: 72px; margin: 0; color: #5c6267; line-height: 1.7; font-size: 14px; }
.join { padding: 110px 0; background: var(--acid); }
.join-inner { width: var(--page); }
.join h2 { max-width: 840px; margin: 0; font-size: clamp(48px, 7.3vw, 96px); line-height: 1.05; }
.join p:not(.section-index) { max-width: 570px; margin: 28px 0 35px; line-height: 1.8; }

footer { min-height: 145px; padding: 42px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; color: white; background: #090b0e; }
footer p { margin: 0; font-size: 12px; color: rgba(255,255,255,.55); }
.copyright { font-family: "IBM Plex Mono", monospace; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --page: min(100% - 32px, 680px); }
  .site-header { height: 68px; padding: 0 16px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 68px 0 auto; padding: 24px 16px 30px; color: var(--ink); background: var(--paper); display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 14px; padding: 15px; text-align: center; border: 0; }
  .hero { height: 740px; min-height: 90svh; }
  .hero-content { padding-top: 140px; }
  h1 { font-size: clamp(56px, 16vw, 86px); }
  .hero-copy { max-width: 520px; font-size: 16px; }
  .hero-meta { right: 16px; left: 16px; bottom: 20px; grid-template-columns: repeat(3, 1fr); }
  .scroll-cue { display: none; }
  .section { padding: 82px 0; }
  .section-intro { grid-template-columns: 1fr; gap: 14px; margin-bottom: 45px; }
  .section-index { padding-top: 0; margin-bottom: 8px; }
  .section-intro > p:last-child { max-width: 550px; }
  .project-feature { padding: 25px; grid-template-columns: 1fr; gap: 30px; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; padding: 38px 16px; }
}

@media (max-width: 560px) {
  .brand b { display: none; }
  .hero { height: 760px; }
  .hero-media { background-position: 66% 50%; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,10,14,.92), rgba(7,10,14,.42)), linear-gradient(0deg, rgba(7,10,14,.8), transparent 45%); }
  .hero-content { padding-top: 126px; }
  h1 { font-size: 55px; line-height: 1.02; }
  .hero-copy { margin-top: 24px; line-height: 1.7; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 270px; }
  .button { min-height: 48px; }
  .hero-meta div { padding: 12px 10px; }
  .hero-meta strong { font-size: 21px; }
  .hero-meta span { font-size: 9px; }
  .section-intro h2 { font-size: 38px; }
  .project-main h3 { font-size: 38px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid div { min-height: 90px; }
  .sprint { min-height: 145px; grid-template-columns: 48px 1fr; gap: 12px; }
  .sprint > span { font-size: 22px; }
  .sprint b { display: none; }
  .sprint h3 { font-size: 21px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { min-height: 220px; }
  .join { padding: 78px 0; }
  .join h2 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.mono-label, .section-index, .eyebrow, .project-kicker, .project-status, .sprint small, .sprint b, .copyright, .metric strong, .panel-heading p, .kanban-title span, .member-role, .member-number-input { font-family: "Cascadia Mono", Consolas, monospace; }
.auth-visual { background-image: linear-gradient(0deg, rgba(5,8,10,.85), rgba(5,8,10,.1)), linear-gradient(90deg, rgba(5,8,10,.45), transparent), url("assets/hero-lab-v3.webp"); }
.brand-logo-image, .auth-brand-logo, .workspace-brand-logo { display: block; object-fit: contain; }
.brand-logo-image { width: 96px; height: 58px; }
.brand-footer .brand-logo-image { width: 116px; height: 72px; }
.auth-brand-logo { width: 104px; height: 64px; }
.workspace-brand { display: block; width: 118px; height: 72px; }
.workspace-brand-logo { width: 100%; height: 100%; }
.member-avatar, .chat-avatar, .online-avatar, .profile-avatar-large { background: transparent; }
.default-avatar { width: 100%; height: 100%; padding: 3%; object-fit: contain !important; background: transparent; }
@media (max-width:700px) { .auth-brand-logo { width: 88px; height: 54px; } }
